Commit Graph

1071 Commits

Author SHA1 Message Date
Jean-Michel Trivi
d9529e1245 sm6150-common: Increase media volume from 15 to 25 steps
Test: play media, use all 25 vol steps and observe varying attenuation
Bug: 32195657
Change-Id: I7ac87df0b2b15de3a7bb87e739bd88ef7b185236
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 14:27:15 +00:00
2c4b6bd151 sm6150-common: inherit OnePlus Dolby
- https://repo.radio/donjohanliebert/hardware_dolby

Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 13:46:46 +00:00
23dd912894 sm6150-common: add ViPER4AndroidFX support
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 09:19:53 +00:00
Pratyay Borborah
827c9a9cf1 sm6150-common: Add SystemUI restart in restart advanced menu
* replace fastbootd

Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 09:14:03 +00:00
basamaryan
e42165702f sm6150-common: media: Sync features with stock
Change-Id: I25d74d95eabe384d2cb209c3c6b5894871207d0f
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Stephen Thomas-Dorin
c9aedf482f sm6150-common: Update config_ims_rcs_package to use new ImsService
Change-Id: I77fcd2a3451c99df5fa47136fa0cd36a5abab9fe
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Pulkit077
800a67583a sm6150-common: add Telephony overlays
- from sweetin-user 11 RKQ1.200826.002 V12.5.8.0.RKFINXM release-keys

Signed-off-by: Pulkit077 <pulkitagarwal2k1@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Pranav Vashi
8a7be87e91 sm6150-common: configs: Update wcnss config from sm8150
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Richard Raya
ee92f23f2c sm6150-common: Import suspend properties from gs201
053f552fae/device.mk (1114)

Change-Id: I3ad335c987abfd3e081342a0117567dcaef1c21f
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Pranav Vashi
e6fd460901 sm6150-common: overlay: Remove 5G specific config
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
basamaryan
79f3c1d455 sm6150-common: Update blobs from sweet_k6a OS1.0.10.0.THGMIXM
Change-Id: Ie381202ad3699268a2ef1e4c4fcd96fbe80e2450
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Paras Nagda
a4d960a298 sm6150-common: media: Tune perf xml as per results
Updated fps values for mpeg4 decoder.

Change-Id: I5f095948ba7be2eb4f446db884982da7979d50b1
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
AdarshGrewal
4d65686dda sm6150-common: audio: Disable Stereo channel support for voip over audio path
* This breaks in-game voice chat and audio in some messaging apps
   causing it to plays with a higher pitch and speed, making it sound
   like chipmunks.

Change-Id: I0baf0d01481b755372c3420bb58b73d2f38eb2d9
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
K A R T H I K
cbb0818ace sm6150-common: sepolicy: Fix up libperfmgr crash on logs
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.boost with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.prefer_high_cap with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /proc/sys/kernel/sched_energy_aware with value: 1, fd: -1
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.boost with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.prefer_high_cap with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /sys/class/devfreq/soc:qcom,cpu6-cpu-l3-lat/min_freq with value: 1516200000, fd: 10
W/libperfmgr(798): Failed to write to node: /proc/sys/kernel/sched_energy_aware with value: 0, fd: -1

Change-Id: I55c65018f1635353ebd6082e1a45c363424f881c
Signed-off-by: romgharti <romgharti@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
1f306b7842 sm6150-common: move camera aux prop to miuicamera tree
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Bharath
68e538c974 sm6150-common: Switch to QTI Thermal HAL
Thermal HAL 2.0 has support for a lot of additional
features including temperature protection and others.

Also, Thermal HAL 1.0 is not supported in FCM level 4.

Change-Id: I1f4fd1957a776934cf5a85e214caf01bd73de47c
(cherry picked from commit dd83877166d7e43c6d2e3eb1a0c2fccbeec28f48)
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Pranav Vashi
baa0491cd8 sm6150-common: Set display props from stock
Change-Id: I0e2eb326c3e89f127c71e702645b26e1a009d74a
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Alex Buynytskyy
45077fa04b 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: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Pranav Vashi
7e40c91ba0 sm6150-common: sepolicy: Correctly label miui props
Change-Id: I2ddb25206d3452d28004ba1e186ca2285f51f306
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Pranav Vashi
8504338712 sm6150-common: sepolicy: Label fortsense prop
07-06 17:44:29.521 11518 11518 W android.hardwar: type=1400 audit(0.0:1502): avc:  denied  { read } for  name="u:object_r:system_prop:s0" dev="tmpfs" ino=9574 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0
07-06 17:44:29.524 11518 11518 W libc    : Access denied finding property "persist.sys.sw.dbg.en"

Change-Id: I07cf8a837b7e617a6727137035e7d8376b685ac5
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Pulkit077
7cb036a2ba sm6150-common: sepolicy: Label UFS discard_max_bytes
* Allow init.rc to write to discard_max_bytes

Change-Id: I91e2b6d1471eeaa91e1dd6fe9d26257de224405f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
ShevT
542f696182 sm6150-common: sepolicy: Label extcon sysfs
Fix warnings like:
W ExtconUEventObserver: Unable to read /sys/devices/platform/vendor/vendor:extcon_usb1/extcon/extcon3/cable.1/name. This probably means the selinux policies need to be changed.
W ExtconUEventObserver: Unable to read /sys/devices/platform/vendor/vendor:extcon_usb1/extcon/extcon3/cable.0/name. This probably means the selinux policies need to be changed.

Change-Id: I1859028d973246064f18efe47e95a7ff8eec657b
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Pranav Vashi
5c947a8ae9 sm6150-common: sepolicy: Label camera props
Change-Id: Ib4e62c05abb875c8d59a0973b2f702ace3f24f8c
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
chrisl7
32c04e382c sm6150-common: sepolicy: Label ro.vendor.ril.oem.wifimac property
[1] - E init    : Unable to set property 'ro.ril.oem.wifimac' from uid:1000 gid:1000 pid:1362: SELinux permission check failed
[2] - W libc    : Unable to set property "ro.ril.oem.wifimac" to "48:87:59:3f:ad:53": error code: 0x18
[3] - W /system/bin/init: type=1107 audit(0.0:61): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=ro.ril.oem.wifimac pid=1362 uid=1000 gid=1000 scontext=u:r:vendor_wcnss_service:s0 tcontext=u:object_r:radio_prop:s0 tclass=property_service permissive=0'

Change-Id: I1acac81964074aeb66e2f17970407ebe9744855f
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Pranav Vashi
437b5437c1 sm6150-common: Enable memcg on boot
Change-Id: I39707749b8df4505488e0e59667445ba1dd99790
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Pranav Vashi
2104569f75 sm6150-common: Move wide display prop to system.prop
* Vendor partition is RO and prop cannot be changed there to
  disable wide color gamut.

Change-Id: Ie5d90bc608f428c2be11d5159aaec98a6cdfbd03
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Juhyung Park
bc62ebb575 sm6150-common: Set debug.sf.frame_rate_multiple_threshold to 60 by default
If the device only have 60 and 120 Hz in the config group, 60 Hz won't be
used when watching a 24 fps video and instead 120 Hz will be used because
it is perfectly divisible by 24.

This is a publicly documented AOSP behavior [1], but it simply does not
make any practical sense and trades off significant amount of power for a
very-hard-to-notice jitter-free experience.

Set debug.sf.frame_rate_multiple_threshold to 60 by default to limit this
behavior to 60 or lower fps.

[1] https://source.android.com/devices/graphics/multiple-refresh-rate

Change-Id: I66353abc46ad16e63b2c9188794469ad71f2192e
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
iovxw
349e7a3724 sm6150-common: audio: Remove FM Tuner from input devices
* This fixes google voice recorder.

Change-Id: Ibe1fb52ebee738b26e73ba9b45915a0317113de1
Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:47:59 +08:00
Kshitij Gupta
a8158c5ae8 sm6150-common: sepolicy: Dontaudit untrusted_app to open ashmem_device
- Fixes scroll lag in many apps, such as Twitter:
    W RenderThread: type=1400 audit(0.0:12371): avc: denied { open } for path=/dev/ashmem dev=tmpfs ino=10848 scontext=u:r:untrusted_app:s0:c123,c256,c512,c768 tcontext=u:object_r:ashmem_device:s0 tclass=chr_file permissive=0 app=com.twitter.android
- Apps are no longer allowed open access to /dev/ashmem, unless they
  target API level < Q.
  (8b12ff5f21)

Change-Id: I6d1763f439f1a0998a425d5203242b39b3631510
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
Pranav Vashi
3942fef8e7 sm6150-common: sepolicy: Allow binder call for hal_camera_default
Change-Id: I661e3374947a4a4dff12164cad3a2e05bfce8ab4
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
ghostrider-reborn
496e6a8ae6 sm6150-common: overlay: Disable alpha compositing in WM
* Completely eliminates occasional jank in few animations

Change-Id: Ia4cb48664a52242374419a923d07fcf584fe50cf
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
Pranav Vashi
f1762592cf 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: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
Pranav Vashi
92605a371d 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: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
Pranav Vashi
02a597bcac sm6150-common: rootdir: Configure buffered background throttling
Change-Id: I13b0677e2654ad40ee966b58b7b4427202af5f79
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
althafvly
4ed6f95771 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: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
markakash
8c82fed7cc sm6150-common: audio: Add wired headset mic source for voip_tx
* Fix mic issues in apps like WhatsApp

Change-Id: I2b178a7284038f7ed22449576b7f050d6c9d66bd
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
lemezohaib
56281b1118 sm6150-common: parts: Move Xiaomi Doze inside stock ambient display preference
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
63bb1554b9 Revert "sm6150-common: overlay: Remove COLOR_MODE_SATURATED"
This reverts commit 2db5017df7.

Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
5e8982813d sm6150-common: nuke dependencies file
* all dependencies file are on device specific tree

Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
itsshashanksp
af531167ac sm6150-common: Cleanup Kernel
Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
itsshashanksp
26fc0b9dd8 sm6150-common: Compile kernel with AOSP clang version 19.0.0
Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
Adithya R
b7d51947ba sm6150-common: Disable backpressure propagation in SF
* based on 7e86e7588a
 * depends on 3bc0f96f58

Change-Id: I4816ba34e0ddf96c9d6f1c049bf584a4190c9a8e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
Midas Chien
0d5c90cde5 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: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
itsshashanksp
9e07139915 sm6150-common: memory: Enable SVELTE memory configuration
Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
itsshashanksp
a5a703c83d sm6150-common: rootdir: Drop suspend to idle mode
* Actually we don't use s2idle because of its buggy behavior.

Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
itsshashanksp
3ee158f846 sm6150-common: Include kernel dtb.img
Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
itsshashanksp
bb85703747 sm6150-common: rootdir: Set CPU Min frequencies for little & big cluster
* Set little/big CPU Min frequencies to 576 MHz & 652 MHz

Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
itsshashanksp
a773f419ba sm6150-common: rootdir: Bump schedTune top-app boost value
* Improves junk Jitter/Animations while app opening.

Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
itsshashanksp
4bf0035a0f sm6150-common: rootdir: Set DDR bus devfreq Max Frequency
Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00
itsshashanksp
70b396c675 sm6150-common: rootdir: Create qcom power init script
Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-12-19 08:25:21 +08:00