Commit graph

32 commits

Author SHA1 Message Date
Alcatraz323
af617d4761
sdm710-common: sepolicy: fix vendor_init prop access denial
* these prop should be accessed by init process from /system partition
I /system/bin/init: type=1107 audit(0.0:3): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=persist.vendor.bt.a2dp_offload_cap pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:bluetooth_prop:s0 tclass=property_service permissive=1'
I /system/bin/init: type=1107 audit(0.0:4): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=ro.hwui.render_ahead pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=1'
2023-11-24 16:52:14 +02:00
Alice Kuo
fc8d340024
sdm710-common: Disable LE audio related profiles for sdm710
Bug: 231671426
Test: build
Change-Id: I85b7f023c03a7a2e603af94e88196c10a16fe4ec
Merged-In: I85b7f023c03a7a2e603af94e88196c10a16fe4ec
(cherry picked from commit 9b57be4d7f57e1d117c65fac1e2dc60dbc59cb4b)
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-06-17 17:04:04 +03:00
Sal Savage
a68d521487
sdm710-common: Use the ?= operator so BT properties can be overridden
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Change-Id: I12dfdf4830e041b2c4e50eb8136ac0fb7146cc8e
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-06-17 17:04:04 +03:00
Sal Savage
c7b191de6f
sdm710-common: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Change-Id: I07e83ca352ff969be0e53a0f63b6c940b6c34dfb
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-06-17 17:04:03 +03:00
Etienne Ruffieux
9513de19a9
sdm710-common: Added new vendors for Bluetooth config migration
* Modify bluetooth.profile.asha.central to
  bluetooth.profile.asha.central.enabled
* Enable bluetooth profiles with product.prop

Tag: #feature
Test: manual
Bug: 211570675
Change-Id: Id74ec5e1b30f21c534c35b212a2fb297e9d591fb
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-06-17 17:04:03 +03:00
ghostrider-reborn
c9521c1f15
sdm710-common: overlay: Enable display color control 2023-06-17 17:04:01 +03:00
Jabiyeff
843e14c5c3
sdm710-common: Force disable iorapd
* Its eating more RAM and slow down device
* Thanks for CAFEBABE find this

Signed-off-by: Jabiyeff <cebiyevanar@gmail.com>
Signed-off-by: Pranav Temkar <pranavtemkar@gmail.com>
2023-06-17 17:03:59 +03:00
aswin7469
be2ff83246
sdm710-common: suppress ims logspam 2023-06-17 17:03:58 +03:00
Kyle Harrison
ee2cf80cdf
sdm710-common: 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.

Change-Id: Ibc6ee9a611cdda5947145603218465e17ed11ff8
2023-06-17 17:03:56 +03:00
PainKiller3
38a646e5e7
sdm710-common: props: Disable vsync for CPU rendered Apps
* Choreographer VSync has some performance impact for CPU rendered apps
as the app has to wait for VSync to start a new frame draw. When the
frame draw time exceeds one VSync, this has a direct impact on the FPS.
debug.cpurend.vsync property controls the VSync for CPU rendered apps.

Disable VSync for CPU rendered app, by setting this property to false.
2023-06-17 17:03:37 +03:00
dotkit
484f87b616
sdm710-common: props: Disable continuous transaction tracing
01-16 20:42:21.500 W/TransactionTracing(788): Could not find layer handle 0x7011020130
01-16 20:42:23.216 W/TransactionTracing(788): Could not find layer id -1

Change-Id: I453c9efe4b6e53e97c1891851c58f20dc71cb64e
Signed-off-by: dotkit <ewprjkt@proton.me>
2023-06-17 17:03:35 +03:00
Pasha
c49264e4f4
sdm710-common: props: move some props to product
[    2.759039] init: Do not have permissions to set 'audio.offload.disable' to 'true' in property file '/vendor/build.prop': SELinux permission check failed
[    2.759060] init: Do not have permissions to set 'audio.sys.noisy.broadcast.delay' to '600' in property file '/vendor/build.prop': SELinux permission check failed
[    2.759074] init: Do not have permissions to set 'audio.sys.offload.pstimeout.secs' to '3' in property file '/vendor/build.prop': SELinux permission check failed
[    2.759137] init: Do not have permissions to set 'persist.audio.fluence.voicecomm' to 'true' in property file '/vendor/build.prop': SELinux permission check failed
[    2.759207] init: Do not have permissions to set 'persist.audio.fluence.voicecall' to 'true' in property file '/vendor/build.prop': SELinux permission check failed
[    2.759222] init: Do not have permissions to set 'persist.audio.fluence.voicerec' to 'false' in property file '/vendor/build.prop': SELinux permission check failed
[    2.759235] init: Do not have permissions to set 'persist.audio.fluence.speaker' to 'true' in property file '/vendor/build.prop': SELinux permission check failed
[    2.759289] init: Do not have permissions to set 'persist.vendor.bt.a2dp_offload_cap' to 'sbc-aptx-aptxhd-aac-ldac' in property file '/vendor/build.prop': SELinux permission check failed
[    2.759309] init: Do not have permissions to set 'ro.qc.sdk.audio.ssr' to 'false' in property file '/vendor/build.prop': SELinux permission check failed
[    2.759323] init: Do not have permissions to set 'ro.qc.sdk.audio.fluencetype' to 'none' in property file '/vendor/build.prop': SELinux permission check failed
[    2.760215] init: Do not have permissions to set 'ro.iorapd.enable' to 'false' in property file '/vendor/build.prop': SELinux permission check failed
[    2.760229] init: Do not have permissions to set 'iorapd.perfetto.enable' to 'false' in property file '/vendor/build.prop': SELinux permission check failed
[    2.760241] init: Do not have permissions to set 'iorapd.readahead.enable' to 'false' in property file '/vendor/build.prop': SELinux permission check failed
[    2.760276] init: Do not have permissions to set 'persist.device_config.runtime_native_boot.iorap_readahead_enable' to 'false' in property file '/vendor/build.prop': SELinux permission check failed
2023-06-17 17:03:34 +03:00
Husker
99cac333d0
sdm710-common: props: Fix and remove unnecessary space below Gboard 2023-06-17 17:03:33 +03:00
lzgmc
d99533a8c2
sdm710-common: Add Aperture to aux whitelist 2023-06-17 17:03:32 +03:00
OnlyTomInSecond
4ff3eae3b2 sdm710-common: Set block_binder_thread_on_incoming_calls prop
In order to fix incoming calls.

Change-Id: Id474622f3e08b88f1d099e3d6507fd1d84de4d88
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-01-27 20:18:49 +01:00
Alexander Koskovich
ee78b6a959 sdm710-common: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:19:12 +01:00
Alice Kuo
5867faec8f sdm710-common: Disable LE audio related profiles for sdm710
Bug: 231671426
Test: build
Change-Id: I85b7f023c03a7a2e603af94e88196c10a16fe4ec
Merged-In: I85b7f023c03a7a2e603af94e88196c10a16fe4ec
(cherry picked from commit 9b57be4d7f57e1d117c65fac1e2dc60dbc59cb4b)
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-18 19:23:32 +02:00
Sal Savage
54e6cda2a4 sdm710-common: Use the ?= operator so BT properties can be overridden
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Change-Id: I12dfdf4830e041b2c4e50eb8136ac0fb7146cc8e
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-18 19:23:17 +02:00
Sal Savage
6f97131f79 sdm710-common: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Change-Id: I07e83ca352ff969be0e53a0f63b6c940b6c34dfb
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-18 19:22:57 +02:00
Sal Savage
305fd7b1fe sdm710-common: Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I1260e95d357bd86099f75b910e0d744f97513fbc
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-18 19:22:40 +02:00
Etienne Ruffieux
7b47001a04 sdm710-common: Added new vendors for Bluetooth config migration
* Modify bluetooth.profile.asha.central to
  bluetooth.profile.asha.central.enabled
* Enable bluetooth profiles with product.prop

Tag: #feature
Test: manual
Bug: 211570675
Change-Id: Id74ec5e1b30f21c534c35b212a2fb297e9d591fb
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-18 19:22:17 +02:00
Jiakai Zhang
81bbaecef4 sdm710-common: Add a system property for System UI compiler filter.
Bug: 227310505
Test: m
Change-Id: Ieaa417a5024fd367543ff9879e5d57f0eb41aa94
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-14 19:01:47 +02:00
Chenyang Zhong
8d06b390ba sdm710-common: disable backpressure propagation for GL client
Previously we relied on debug.sf.disable_backpressure=1 to disable
backpressure propagation. Now that the prop is gone in S, drop
the backpressure prop for GL client to maintain the same behavior
as before. From past experience, backpressure propagation often
increases jank rate instead of reducing it for some reason.

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-05-22 18:47:42 +02:00
SamarV-121
455239b562 sdm710-common: Remove obsolete debug.sf.disable_backpressure property
* It has been removed in Android S
 * 2ec5391acf

Change-Id: I23a210a37ad257f0c8b7a3c5e1d59b2ac20cde9a
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-05-22 18:47:04 +02:00
Giammarco Senatore
9a84e02264 sdm710-common: Enable H/W Composition
Change-Id: I9f4c5435d51d1dfaead1c11208059e7a6f922cbb
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
2022-01-23 09:38:30 +01:00
GiaSen
dfda6c76d8 sdm710-common: move graphics props from vendor to product 2022-01-23 09:36:55 +01:00
hh2333
f0b5986f56
sdm710-common: Disable settings provider model
* When it is enabled, if we have multiple SIM cards, the networks
  settings UX will only show the first SIM card.
2021-10-30 12:23:22 +02:00
Chenyang Zhong
cfb696ab83
sdm710-common: disable blurs
Blurs on android12 are extremely janky, even with EXPENSIVE_RENDERING
raising GPU frequency.

W FrameTracker: Missed SF frame:1
W FrameTracker: Missed SF frame:4
W FrameTracker: Missed SF frame:68
W FrameTracker: Missed SF frame:68
W FrameTracker: Missed SF frame:65
...

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-23 13:55:54 +02:00
Yan Wang
c912954421
sdm710-common: iorap: Enable iorapd prefetching
Bug: 141987657
Bug: 139831359

Change-Id: I71c32bf3f1b1c406dd27ac643638ea909b849ee6
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-20 22:38:25 +02:00
Giammarco Senatore
32471d788e
sdm710-common: Fix green screen WFD 2021-08-16 21:55:24 +02:00
Minchan Kim
40863d5577
sdm710-common: Enable zram writeback job scheduler
Bug: 140882488
Change-Id: I5489a7ce7a8d73306a6ecf69f57d338b2b0eaad2
Signed-off-by: Minchan Kim <minchan@google.com>
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-08-02 12:19:37 +02:00
Henrique Pereira
65cb7a78e4
sdm710-common: Split system properties from vendor 2021-08-02 11:57:36 +02:00
Renamed from system.prop (Browse further)