Commit Graph

1105 Commits

Author SHA1 Message Date
Pranav Vashi
e575aef583 sm6150-common: sepolicy: Label camera props
Change-Id: Ib4e62c05abb875c8d59a0973b2f702ace3f24f8c
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:59:17 +00:00
Alexander Martinz
5c2efe2ee5 sm6150-common: lmkd: kill heaviest task instead of any eligible task
Also remove min oom_adj score override for critical tasks as well
as log_stats, which is true by default already.

Change-Id: I1ac259ccd21b4e9c56822bf55f243877979852e1
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:59:17 +00:00
althafvly
7e06c0ccb1 sm6150-common: Update CarrierConfig from munch V816.0.2.0.ULMMIXM
Change-Id: I4df6ab6ac380b3eeed1ab6ed64f64bc0e0d0ed3f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:59:17 +00:00
Pranav Vashi
1a99a64259 sm6150-common: Setup zram with post-boot script
* This way zram size can be optimized.

Change-Id: Ida4fca8aab88ab5af3dcba166e98cf722bab6614
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:59:14 +00:00
Pranav Vashi
38fd4cd494 sm6150-common: rootdir: Configure buffered background throttling
Change-Id: I13b0677e2654ad40ee966b58b7b4427202af5f79
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:58:21 +00:00
Pranav Vashi
716efc3989 sm6150-common: sepolicy: Allow parts to set haptic intensity
Change-Id: I94774ccf021eb7713b41fc9d5ad6bb6979ca5d95
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:57:52 +00:00
Pranav Vashi
29b74efa2c sm6150-common: sepolicy: Allow parts to modify thermal config
Change-Id: I940a6deef33df856f0e093c3d048708271e9ef2f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:57:52 +00:00
Pranav Vashi
642251df47 sm6150-common: Set display props from stock
Change-Id: I0e2eb326c3e89f127c71e702645b26e1a009d74a
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:57:52 +00:00
Pranav Vashi
0431271ab6 sm6150-common: overlay: Configure turbo charging
Change-Id: I48bfe9d53b1d5887f653c14ab37a16f12d9b905f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:57:45 +00:00
Pranav Vashi
3a8cd2847f sm6150-common: Add back camera aux and privapp props
* Some blobs check these props directly.

Change-Id: I38d7f52d8ecbdfa4e17eb6f2fe250eebcbc8ed01
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:56:34 +00:00
helliscloser
8e67006761 sm6150-common: Explicitly disable "Enable GL comp backpressure"
When blur is enabled,
There is severe lag in; Launcher3 while scrolling apps in App drawer, Scrolling through recents and occasionally on QS pull down.

Enabling or completely removing the prop here d6233e0e7c doesn't seem to make an effect.
Explicitly disabling the "Enable GL comp backpressure" prop seems to slove the issue.

Lag & janks are gone now, even with blur.

Signed-off-by: helliscloser <mrumais@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:55:55 +00:00
Pranav Vashi
bd4a67d192 sm6150-common: rootdir: Switch to lmkd
Change-Id: Iaa4ac06f35710231f53adff488c211404bf0cd43
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:55:55 +00:00
Pranav Vashi
f489c33789 sm6150-common: Remove XiaomiParts doze
Change-Id: Ie16ddda3347682b103217bd304d1b170f88654f0
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:55:22 +00:00
Pranav Vashi
774f4d6eef sm6150-common: Disable zram writeback
* Disabled on many devices with reports to lagginess in long term and random reboot in some instances.

Change-Id: I73985159766da08cd35b0288db29cfafc7db62b0
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:55:22 +00:00
Pranav Vashi
028564770e sm6150-common: sepolicy: Correctly label miui props
Change-Id: I2ddb25206d3452d28004ba1e186ca2285f51f306
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:52:56 +00:00
Alex Buynytskyy
157575378b sm6150-common: Enable Incremental on new devices.
Bug: 185298880
Fixes: 185298880
Test: atest IncrementalFeatureTest
Change-Id: I06dcb75307d71e693ad58150889b208c063c664a
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:52:55 +00:00
Midas Chien
5af1c15be4 sm6150-common: Don't latch unsignal buffers
Set debug.sf.latch_unsignaled=1 is used to allow surfaceflinger to
latch unsignal buffers that can give more time for buffer to render.
But if the buffer takes longer time to finish, it will block whole
display pipeline result to jank.

Bug: 157964883
Test: scrolling, launch
Change-Id: I56c3e05921de5fc9569bf3f93fde03022a64b6a4
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:51:37 +00:00
Pranav Vashi
b9efdb26c7 sm6150-common: Use appropriate arch setup
Change-Id: Ib687617676ee308b4336a9a8be76777821009f0a
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:51:37 +00:00
basamaryan
f32066f19c sm6150-common: Drop TARGET_KERNEL_CONFIG
Change-Id: Ic6401b4f5a33ff6ff2881705f51b7e4c57eaa172
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:34 +00:00
Adithya R
988be1072d sm6150-common: sepolicy: Allow system_server to read fastcharge node
* required for oem fast charger detection

Change-Id: Ide02d4a2161b4e0d023eba18626aebe8cd3e11f9
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:32 +00:00
basamaryan
bc0dc1d83f sm6150-common: rootdir: Remove /data/vendor/dolby on upgrade
This is required after switching to the OnePlus Dolby Atmos stack

Based on:
09e0c6ad23
346519f7f2

Change-Id: I2ac8f83899a0866975aa6cbce26da9670b16843d
Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Co-authored-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:29 +00:00
Adithya R
3c1c3192ec sm6150-common: Add sepolicy for Dolby Atmos
Arrange hwservice_contexts while at it

Change-Id: I8c41ff32e579cec9c871d6a0177ca027034281c8
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:27 +00:00
Sugakesshaa
df74c24026 sm6150-common: Import Dolby C2 Media service
from OnePlus 11 CPH2447_15.0.0.401(EX01)

Change-Id: Icdfc5b11c7635d0707c2a39f54e0c8d149c771bc
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:20 +00:00
Omkar Chandorkar
4a839cb4df sm6150-common: Introduce Dolby Atmos support
Change-Id: I46b62d08ad51c321c997792301524fc0c18d6ba6
Co-authored-by: Sugakesshaa <sugakesshaa@gmail.com>
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:17 +00:00
basamaryan
8e7d7d1ee3 sm6150-common: Enable anti_flicker by default
Change-Id: Ifc93157308f57ca0062f61347d158ebc96db912b
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:52 +00:00
vantoman
9d9dfdc7d1 sm6150-common: livedisplay: Rename AntiFlicker node
Change-Id: I563b4de02ae41755d707da84bc1bbf937228b68c
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:52 +00:00
timocapa
15474f8b61 sm6150-common: fstab: Fix fsmgr flag for F2FS Compression
- Without this, F2FS Compression would not work as this flag will be passed to recovery at format-time.

Change-Id: I29082d680320cebda6d3c1457318555bb33ba1b7
Signed-off-by: timocapa <timo.capa@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:52 +00:00
Panchajanya1999
253f618f87 sm6150-common: fstab: Support F2FS compressions and garbage collector
Partially based on Pixel 6 fstab[1] and personal
recommendations.
F2FS Compression requires kernel support too.

[1]: https://android.googlesource.com/device/google/gs101/+/refs/heads/android12-d1-s4-release/conf/fstab.gs101#20

Change-Id: I319fa4033911e89160308535b626c978d7269805
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:52 +00:00
John Galt
2ccadfcb00 sm6150-common: Switch to LZ4 for EROFS
lz4hc has a higher compression ratio, but extends build time significantly
for no decompress gains. Additionally, testing on sm8150 + lz4 1.9.4
showed larger decompress gains on lz4 than lz4hc despite the hair-splitting
results on v1.9.0.

Change-Id: Icb38aea5f8116dbf316e8cff440994c4c76aeb59
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:52 +00:00
Cyber Knight
5ae014790b sm6150-common: Bump EROFS PCluster Size
- This sets the maximum "pcluster", or variable length block size, to 262144 bytes.
- The number must be a multiple of 4096.

- The description above was cited from [1].

[1]: https://source.android.com/docs/core/architecture/kernel/erofs#compression_tuning

Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Change-Id: I9f07773fe0e3df88190a0ec2a3b4e82cd997914e
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:52 +00:00
John Galt
97b04c69fc sm6150-common: Set EROFS pcluster size
- Used on cuttlefish as part of erofs switch. Benefits performance considerably..

Change-Id: I5b7aab7c479704aa7e23a2186ee43957c5cef6f0
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:52 +00:00
Cyber Knight
ad56131883 sm6150-common: Mount EROFS at init for /system
- We don't use EXT4 for /system anymore hence let's mount it appropriately.

Change-Id: Ida90e4be8e36ca5778a4ca7d483ca3586b1f95e3
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:52 +00:00
Cyber Knight
fcbaa25ffd sm6150-common: Switch to EROFS for relevant partitions
- EROFS offers much more compressed partition sizes compared to the likes of ext4 albeit being read-only.
- We have switched to EROFS for /system, /system_ext, /product, /odm and /vendor.
- This patch was inspired by [1].

[1]: 2b52a00408

Change-Id: I438f6b88ede93fe7e5d581439ba630b5c5440a48
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:52 +00:00
Ujjwal Kirorimal
7e6ee028dd sm6150-common: overlay: Disable Adaptive Connectivity preference
Change-Id: I7274588c29cfd0078c168b7b7d9d36ef935e6bd0
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:52 +00:00
Michael Bestas
e54a6dbc60 sm6150-common: Enable UFFD GC
Kernel has support for it now.

Change-Id: I3863ee71477f321fe47646571b857fdc39a1902b
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:14 +00:00
basamaryan
db30b68aee sm6150-common: Drop TARGET_DISABLED_UBWC
Unused after switching to C2

Change-Id: I0186d9865d62ca61848d85f0044660095541654a
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Michael Bestas
721f92bcad sm6150-common: gps: Remove CleanSpec.mk
Change-Id: Id5a91ac0dfc35cd4c84218f02e50c0905e04c43a
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
LuK1337
7f49615dca sm6150-common: Add libwfdservice_shim for WFD
e69a5be2449122f90220151f9d01ace15221facf in system/hardware/interfaces
broke the ABI ;'(

Change-Id: I3badfc56581a6bf3de5d7e996fa51f59eb164aae
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
feiyuchen
a44403ef4a sm6150-common: rootdir: Add "system" group to Audio HAL
needed for using EdgeTpu.
Due to this code goes to AOSP, please see CL details and test result in
b/289097511#comment24.

Bug: 289097511
Change-Id: Ie0969309346cd85b4bb8ac71860a529710c73345
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Andy Hung
bc2c53f49c sm6150-common: rootdir: Optimize for Spatial Audio
Add CAP_SYS_NICE.
Allow util_clamp_min for Spatializer Effect worker thread.
Reduce glitches caused by core migration.
Reduce power consumption as Spatializer Effect is DSP compute bound.
This change only affects Spatial Audio Effect processing.

Test: instrumented
Test: adb shell 'uclampset -a -p $(pgrep -of
android.hardware.audio.service)'
Test: adb shell cat "/proc/$(adb shell pgrep -of
android.hardware.audio.service)/status"
Test: adb shell 'ps -Tl -p $(pgrep -of android.hardware.audio.service)'
Bug: 181148259
Bug: 260918856
Bug: 261228892
Bug: 261686532
Bug: 262803152
Merged-In: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56

Change-Id: I21697423e8c20b34040c5a6641126918b0d75bb5
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Andy Hung
34020d9682 sm6150-common: rootdir: Enable RT priority inheritance
Test: instrumented
Bug: 181148259
Bug: 260918856
Merged-In: If56e449a9c6f1a49e372591893d8714534574e3a
Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
emilchung
d90e41c1b4 sm6150-common: rootdir: add context_hub into audio hal group
While implementing the capo nanoapp for audio configuration, we met
some chre socket connected error due to the access group denied.

Add context_hub group for audio hal to connect chre socket.

go/capo-algo

Bug: 141128522
Bug: 149069556
Test: FULL build with audio hal part and local prebuilts nanoapp.
Test: Audio HAL communicates normally with CHRE socket.
Change-Id: Iea84411682f4c3e08f8b37a5b21818b0e9b04983
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
86369be166 sm6150-common: Update blobs from sweet_k6a OS1.0.15.0.THGMIXM
Change-Id: I7b7ba8ff64c81eda1a3e9049b03f1515357b42c4
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Michael Bestas
a34a72f2d5 sm6150-common: Enable ELF checks for libwpa_client dependent libs
Change-Id: I490df02b68da4b9a7088a239672a1dcace66d270
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
7bf15f5b1b Revert "sm6150-common: Import missing qcriNvOpt radio dependency"
This reverts commit 350d3fb4c8df85e57438c764411557d5934a7f72.

Reason for revert: RIL does not work on longcheer devices with libril-qc-hal-qmi.so from sweet_k6a

Change-Id: I07d8fd46ed9262319d0251e9b801a3dbf598163f
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yumi Yukimura
c57fda3a05 sm6150-common: Import RIL stack from mojito V14.0.8.0.SKGMIXM
* For compatibility with old devices like violet

Change-Id: I5367bfd63f61525b115e3f3138854f0857de57ce
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yung Ti Su
7bd3a629c4 sm6150-common: Enabling sound trigger V2_3
Bug: 139071862
Test: manual

Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: I4123b0af64fc7bed934026540136e3811fab32f3
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Tyler Wear
1a5ad0d93d sm6150-common: tetheroffload: Version 1.1
Update tetheroffload to version 1.1.

Change-Id: I004e44e416a88a1b39a4c80366df9008722f096b
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
a65aad9817 sm6150-common: Define missing TARGET_HEALTH_CHARGING_CONTROL related configs
Change-Id: I859a4d5c25b07bcf45f998e0ad54a4d9afca10fb
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Martin Liu
2b0f37ef3c sm6150-common: decrease swappiness to 60
This tweak also aligns the policy with P23.

Test: boots with correct settings
Bug: 299975853
Change-Id: I0ed7088ddf2ff2fa0feca2197e5cc03c7f5c6778
Signed-off-by: Martin Liu <liumartin@google.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00