Commit Graph

448 Commits

Author SHA1 Message Date
82523dcb34 mondrian: specify encryption format for adoptable storage
Change-Id: I781d803627330d81b4011321ca721ff4abba4339
2023-05-21 09:26:24 +02:00
0c11fd4153 msm8974-common: Disable continuous transaction tracing on all build types
Change-Id: I95657a00e38f1229675682e784b20cca12c119b0
2023-05-20 12:09:10 +02:00
fb8a1929cb msm8974-common: Disable HWC composition strategy prediction
Change-Id: Id45165c604c825bc55a324e7dc8f3dcd7a3f25ee
2023-05-20 12:07:45 +02:00
336f143be9 msm8974-common: Always preopt extracted APKs 2023-05-20 11:56:54 +02:00
kdrag0n
a2c1c7fb20 msm8974-common: overlay: Compact cached app heaps in the background
* Background ART heap compaction for cached apps has been recommended for
  Android Go devices for a while, and Google has enabled it for the Pixel
  5 on RQ1A.201205.010. This feature should help fit more cached apps in
  memory

Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2023-05-20 11:55:08 +02:00
Danny Lin
75f3e69631 msm8974-common: overlay: Offload WM shell to another thread
Android 12 added this config to offload some window management to a
dedicated thread. Enable it to improve performance when the main System
UI thread is busy.

Change-Id: I387d7f5034b43e05e79a40095d61c01bb5982fe1
2023-05-20 11:53:46 +02:00
24fedfac2a msm8974-common: sepolicy 2023-01-08 14:20:24 +01:00
852519a4e9 msm8974-common: clean obsolete 2023-01-08 09:51:06 +01:00
ae0eb756ee msm8974-common: Ship cgroups.json and task_profiles.json
Google's prebuilt cgroups.json and task_profiles.json for products
launched with previous API levels only covers
ro.product.first_api_level >= 28. [1]

Oneplus 5,5t were launched with Nougat (API level 25), so schedtune and
task groups are completely broken. Since the system also checks
/vendor/etc for vendor profiles, make a copy of cgroups_28.json
and task_profiles_28.json and ship them to /vendor/etc. Profiles
for previous API levels are all the same anyway.

Test: boot and check /dev/stune/

[1] system/core/libprocessgroup/profiles/

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Change-Id: If8c09fa1868f60a451ced9e094e5796e46545fc0
2022-12-10 20:21:52 +01:00
3431b3798f msm8974-common: Build mock hidl power stats
* Fix for hidl power stats errors.
- Now with this we fixing both errors:
BatteryStatsService: Unable to load Power Hal or power.stats HAL
hwservicemanager: getTransport: Cannot find entry android.hardware.power.stats@1.0::IPowerStats/default in either framework or device manifest.
hwservicemanager: getTransport: Cannot find entry android.hardware.power@1.0::IPower/default in either framework or device manifest.
2022-12-02 21:24:38 +01:00
e817ccd476 msm8974-common: Uprev manifests/FCM level 2022-11-28 21:52:50 +01:00
c7f3de6465 msm8974-common: sepolicy 2022-11-28 20:13:07 +01:00
25b53ebb61 msm8974-common: Inherit several Android Go configurations
Beneficial for everyone, even on non-Go devices.
2022-11-27 16:29:24 +01:00
1238d5b4d0 msm8974-common: Speed profile services and wifi-service to reduce RAM and storage 2022-11-27 16:28:14 +01:00
1a305b52c1 msm8974-common: Adapt GPS hal to S 2022-11-26 19:46:02 +01:00
c1c2ca26da msm8974-common: Uprev to audio 7.1 2022-11-26 19:45:43 +01:00
5d18b27d50 msm8974-common: Build hardware/samsung
needed after  LineageOS/android_hardware_samsung@04dfa0c
2022-11-26 19:43:00 +01:00
6850a3ff78 msm8974-common: Add custom audio service
with reverts of:
LineageOS/android_hardware_interfaces@3f8f599
LineageOS/android_hardware_interfaces@d90c474

Fixed bluetooth audio
2022-11-26 19:42:50 +01:00
4e8c9b2b08 msm8974-common: Drop support for Snapdragon Camera
* Won't be implemented this cycle (or ever again hopefully).

Change-Id: Ie2a346319dfe814deaf9833cb31640505cc6b7dc
2022-10-09 12:19:36 +02:00
fdb0013418 mondrianwifi: Enable zygote critical window
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
2022-10-09 12:00:12 +02:00
a55aeeba2a msm8974-common: Switch to health AIDL HAL
Change-Id: Icbb7194943388679abd25b2dbd105424c34496a1
2022-10-09 11:57:25 +02:00
82f4e68e0d msm8974-common: Set ro.vndk.version to current 2022-10-09 11:57:25 +02:00
824be3531e msm8974-common: Switch audio HAL to V7 2022-10-09 11:57:18 +02:00
53afcdf3eb mondrianwifi: Remove TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE
This hasn't been ported after lineage-18.1

Change-Id: I2946fdb08c09a3bfd238d65103869dc89ca2b558
2022-09-30 22:56:19 +02:00
becaedc12d msm8974-common: drop audio.a2dp.default
- building from here
  https://github.com/LineageOS/android_build/blob/lineage-18.1/target/product/full_base.mk\#L35

Change-Id: Ib71c1abd381468ec3621d60e5ca959f738f51168
2022-09-24 12:48:53 +02:00
3f0f860922 msm8974-common: set TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS 2022-08-28 09:28:36 +02:00
b5f77c318f msm8974-common: Disable client composition cache
* Disabling client composition cache improves system smoothness and fix issues like lags when media output is showed on qs panel

Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
Signed-off-by: improbir <ghosh_probir@yahoo.com>
Signed-off-by: Abhishek001konni <Abhishek001konni@gmail.com>
2022-08-26 09:30:28 +02:00
76a30dd6e1 msm8974-common: add missing gatekeeper manifest 2022-08-20 23:41:36 +02:00
c0f34f4d6c msm8974-common: Switch to SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS
Fixes:
warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated.
    Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
Change-Id: I752602079de8ff4c5370fe3ec861b8746838d878
2022-08-20 11:52:08 +02:00
082b8d8fa3 msm8974-common: Update GPS config for S
XTRA_SERVER has been changed to LONGTERM_PSDS_SERVER in framework so we follow suit here.

Change-Id: I0a15782e49b1c530f2f0fd8ff991ebb9e1da1403
2022-08-19 09:30:25 +02:00
48a44601e0 msm8974-common: Kill sysfs_io_sched_tuneable
Change-Id: I49bb16cd8539f80b50974ceb6af9fa6a92e7cbeb
2022-08-18 20:45:25 +02:00
retiredtab-gerrit
b34b271f48 msm8974-common: these 4 display modes all cause crashes and eventually OS restarts over and over
Remove all these display modes are they are not started by OS correctly
and/or cause the OS to crash and reboot.
2022-08-18 11:42:40 +02:00
Janis Danisevskis
83085fd5b3 msm8974-common: update keymaster to 4.1
Remove keymaster 3.0 entries and update to 4.1.
2022-08-18 11:42:31 +02:00
dianlujitao
a15c8e8f7d msm8974-common: Uprev to audio hal 5.0
Audio hal 2.0 was deprecated in Android 12.  Using audio hal 6.0 causes
a bootloop during OS startup so we use 5.0 for now.
2022-08-18 11:42:13 +02:00
Kyle Harrison
efc0985e2a msm8974-common: Use threaded GLES render engine
In Android 12, the default graphics engine is no longer GLES.

For msm8974, the OS crashes if skia is used and never boots.
2022-08-18 11:41:57 +02:00
Kyle Harrison
f1758aed19 msm8974-common: props: Don't write binary XML files
- Android 12 now writes XML files in binary format by default. This can cause incompatibility with TWRP which can hang when attempting to read XML files e.g. /data/system/storage.xml

- This commit sets the persist.sys.binary_xml property to false so that XML files are written in text format.
2022-08-18 11:41:47 +02:00
Kyle Harrison
4e6e487df6 msm8974-common: Enable BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES 2022-08-18 11:41:28 +02:00
Tim Zimmermann
d5e6bcaee5 msm8974-common: switch to new AIDL light HAL
Old hardware.light hidl will cause OS to get stuck at boot animation.
2022-08-18 11:40:53 +02:00
d34582f2b4 msm8974-common: remove duplicate ro.sf.lcd_density in device 2022-05-29 10:27:16 +02:00
83333fa975 msm8974-common: init: Drop no longer necessary libbase include dir
It seems that soong is now solving exported headers for all modules
in shared_libs.

Change-Id: Id9612abe17222226fd8b3009c92f5376543ec261
2022-05-29 10:17:16 +02:00
Nolen Johnson
4f28aad667 msm8974-common: Enable Wi-Fi Display
* AOSP Wi-Fi display is back in lineage-18.1.

Change-Id: I7958fc6869a22d66ad2955f80c4ea1867bdc23fd
2021-12-23 04:41:31 +01:00
Danny Wood
d851283fe6
msm8974-common: libril: initialise RIL_CallForwardInfo to 0 when requesting status
Some devices have extra pointers in this structure that if non-zero
causes libsec-ril.so to segfault

Change-Id: I9fd07a4747ef0fb1388ebbec472f2dda8dea4003
2021-09-10 11:36:15 -06:00
Kevin F. Haggerty
6a2957e85e
msm8974-common: Set bluetooth enable timeout to 12s
Change-Id: I99886621c85c4ee00a3d4a1cff732bcc03e8ac78
2021-04-17 07:19:57 -06:00
Michael Bestas
10eedbc70b msm8974-common: Don't build tinymix
* This tool can be built manually for debugging cases,
  there is no need to ship it in production

Change-Id: I9ab8b076b4bede70c368c198960ceabc68dad65b
2021-04-12 13:41:41 -04:00
Kevin F. Haggerty
dbc57d889c
msm8974-common: Don't let builds complete without vendor tree
* There is zero reason to ever build without blobs. We've even seen
  this situation with official builds from our servers. It's always
  better for a build to fail than it is for it to produce something
  that has no chance at working.

Change-Id: I4968795670c91f691e9ecdc0e4af62e16ba3a93a
2021-04-09 10:20:09 -06:00
Bruno Martins
efb106815f
msm8974-common: Define shipping FCM version in the manifest
Shipping API level less than 26 corresponds to legacy FCM version.

This addresses the following build warning:

   Warning: Shipping FCM Version is inferred from Shipping API level. Declare Shipping FCM Version in device manifest directly.

Change-Id: Ib230c345ff7deb552597824838b8809ceefbbe8a
2021-02-09 07:26:47 -07:00
Kevin F. Haggerty
d267ad8693
Merge branch 'lineage-17.1' of http://www.github.com/LineageOS/android_device_samsung_msm8974-common into lineage-18.1
* 'lineage-17.1' of http://www.github.com/LineageOS/android_device_samsung_msm8974-common:
  msm8974-common: Drop OVERRIDE_RS_DRIVER

Change-Id: Ia98c7e5352e49a86a98937c0e1890f66e74cba22
2021-02-09 07:25:48 -07:00
Kevin F. Haggerty
271ce38322
msm8974-common: Drop OVERRIDE_RS_DRIVER
* So, this one from bullhead can cause everything to get janky AF
  every time RenderScript is actually used, and finding one that
  actually loads (no missing symbols) AND actually works well is,
  well, challenging. The device works fine with the "normal"
  non-adreno driver in AOSP, so let's use that until/unless we find
  an actually working adreno driver.

Change-Id: I4ab19269eb49f5f2aed375d9055d68c1b9835f69
2021-02-08 07:02:49 -07:00
Michael Bestas
345ae3b0f6
msm8974-common: Switch to standalone extract utils
* Align with templates while we are at it

Change-Id: Ife50623a3d1b8733f5cc76995c982d8950d39ad4
2021-02-08 05:47:57 -07:00
Kevin F. Haggerty
3cb55ae129
msm8974-common: sepolicy: Resolve hostapd HAL denials
avc: denied { read } for name="phy80211" dev="sysfs" ino=30200
scontext=u:r:hal_wifi_hostapd_default:s0
tcontext=u:object_r:sysfs_net:s0 tclass=lnk_file permissive=0

avc: denied { open } for name="rfkill" dev="tmpfs" ino=8718
scontext=u:r:hal_wifi_hostapd_default:s0
tcontext=u:object_r:wlan_device:s0 tclass=chr_file permissive=0

Change-Id: Ie196e3fb2c5a9458a73444bb1de13f15a037532d
2021-01-23 13:41:37 -07:00