Commit graph

1008 commits

Author SHA1 Message Date
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
Chenyang Zhong
68970345ed sdm710-common: update DPM, IMS, and RIL system blobs
from LA.QSSI.13.0.r1-05300-qssi.0

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-17 17:57:35 +02:00
Santiago Seifert
267a8cf4ee sdm710-common: overlay: Unpin updatable-media from memory on coral
Bug: 214499288
Change-Id: I83757ae6a053ec6b10b08322c4e76d988f1a4a48
Test: Presubmit
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-14 19:02:51 +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
Jiakai Zhang
243a516aab sdm710-common: Preopt SystemUI for AOSP builds.
Bug: 232860596
Test: See no dex2oat invocation on the first boot.
Change-Id: I21b99fac3934060d27fad7323979cbb5f0ed28e8
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-14 19:01:16 +02:00
Alexander Koskovich
4006e12c62 sdm710-common: Remove virtual framebuffer
* It's largely for testing purposes and it consumes
   a large amount of memory. If your hardware doesn't
   have graphics then it can be useful, which isn't the
   case for shipped devices.

Change-Id: I2348718ad3afba846498572161fa7e83dd8b7ce9
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-14 18:56:17 +02:00
Etienne Ruffieux
50253e3152 sdm710-common: Removed audio A2dp and Hearing Aid from device.mk
Bug: 220306859
Test: atest
Tag: #feature
Change-Id: I300369d36399ffb558b98bafc2478b872d09faba
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-14 00:04:16 +02:00
Jiyong Park
e40f608cd2 sdm710-common: Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Change-Id: I14a1c57bd06f1f2aa52491f779c7030d4de03547
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-13 23:56:40 +02:00
Hajime Morrita
3ff54f7818 sdm710-common: Stop including iorap_large_memory_config.mk
Test: Presubmit.
Bug: 195415601
Change-Id: Ic49fcadb8bb33db262295a8b11eaca9c59362ae7
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-13 23:48:03 +02:00
uixdess
c9276ba291 sdm710-common: Commonize HDR and AOSP color props
* All sdm710 devices were shipped with screens that support HDR10

Signed-off-by: Alex Damaratski <alexeydomoratsky1@gmail.com>
Change-Id: I8ab0fa855db892084a5c6ff77532a228161bee39
2022-09-06 17:18:11 +02:00
GiaSen
f5aa12e10c sdm710-common: Revert media configs to stock 2022-09-06 17:18:11 +02:00
GiaSen
518ed57996 sdm710-common: Kang display configs from xiaomi-sdm710
After new kernel has now everything working codecs bug went brr
Thanks sebaubuntu for not helping me :)
2022-09-06 17:16:56 +02:00
Alexander Koskovich
b2809fddd0 sdm710-common: Pick up USB configurations from QCOM
Change-Id: I83882d8992eb367211871130c163f4ca5689fcd4
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-05-22 18:53:21 +02:00
Chenyang Zhong
714988dc45 sdm710-common: sepolicy: allow apps to get aux camera prop
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-05-22 18:49:02 +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
GiaSen
341f6909e6 Revert "sdm710-common: switch to S sepolicy_vndr"
This reverts commit fe1019795c.
S is now default one
2022-04-03 15:32:26 +02:00
MadhavSaladi
7089a5938f sdm710-common: Switch to GcamGo 2022-01-23 09:39:00 +01: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
dianlujitao
d1262f6f6d Revert "sdm710-common: Switch to Audio HAL V6"
All target devices use pre-R audio.bluetooth_qti.default.so and
pre-R audio hal, in which the new set_event_callback API is not
implemented and the audio service will crash due to mismatched struct.

jjpprrrr:
The audio flinger also warns about event callback when playing
audio through a USB audio adapter with DAC. Let's go back to v5
to avoid calling these unimplemented features at all.

...
D AudioFlinger: Failed to add event callback
...

Change-Id: Ia330ac05d84d3dfb3a639458d66a3dc29689e67c
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-01-23 09:37:02 +01:00
GiaSen
dfda6c76d8 sdm710-common: move graphics props from vendor to product 2022-01-23 09:36:55 +01:00
Giammarco Senatore
868da84395
sdm710-common: Add few padding on the start of the statusbar 2022-01-05 17:24:00 +01:00
Giammarco Senatore
c5ecd8c189
Revert "sdm710-common: Address init denial"
This reverts commit e05b539a51.
2022-01-04 22:07:15 +01:00
Giammarco Senatore
2e21c30312
Revert "sdm710-common: relax sysprop owner enforcement"
use 15436 from gerrit until patch gets merged

This reverts commit 2ebb67f1d4.
2022-01-04 21:36:36 +01:00
Bruno Martins
4db4cdbad2
sdm710-common: libqti-perfd-client: Remove namespace declaration
It's pointless when using extern "C".

Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-01-03 21:25:51 +01:00
Chenyang Zhong
4f60724dac
sdm710-common: libqti-perfd-client: return a dummy value
Return a positive integer for perf lock acquire and release so
that Goodix/FPC fingerprint sensor blobs will not complain.

Goodix:
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_acquire: Failed to acquire perf lock, err: 0
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_release: Perf lock release error 0

FPC:
E fpc_tac : fpc_perf_lock_acquire: Incorrect params, Failed to acquire perf lock, err
E fpc_tac : fpc_perf_lock_release: Perf lock release error 0

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-01-03 21:25:29 +01:00
Ivan Vecera
609cd1a9fd
sdm710-common: powerhint: Tuning for camera streaming
Change-Id: Ie838bba91f26732529bd3a34df941ac6dc6f1ce5
Signed-off-by: Ivan Vecera <ivan@cera.cz>
2022-01-03 21:23:32 +01:00
Albert I
35fab10381
sdm710-common: powerhint: Update for sdm710
Power hints tuned for our devices by Albert I.

Thanks-to: Albert I <kras@raphielgang.org>
Signed-off-by: Ivan Vecera <ivan@cera.cz>
Change-Id: I580a527b8621252b44e5a8bfcb906b8a98d2156b
2022-01-03 21:23:14 +01:00
Dan Pasanen
2242d1fe31
sdm710-common: overlay: Enable config_vibrateOnIconAnimation
* Need those sexy vibes.

Change-Id: If5671135879f6f4069d0ed881b41b0a243890349
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-01-03 21:19:39 +01:00
Stephen Thomas-Dorin
1e81ec34f8
sdm710-common: overlay: Update config_ims_rcs_package to use new ImsService
Change-Id: I77fcd2a3451c99df5fa47136fa0cd36a5abab9fe
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-01-03 21:17:05 +01:00
Giammarco Senatore
fe1019795c
sdm710-common: switch to S sepolicy_vndr 2022-01-03 19:36:06 +01:00
jjpprrrr
ed50308116
sdm710-common: update DPM, IMS, and RIL system blobs
from LA.QSSI.12.0.r1-05100-qssi.0

sdm710-lenovo: also drop WFD and update remaining libs

Note that ims factory jars are added for the new ImsRcsService.apk.

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-01-03 14:40:57 +01:00
jjpprrrr
e05b539a51
sdm710-common: Address init denial 2021-11-25 20:05:41 +01:00
jjpprrrr
df77b02041
sdm710-common: let's not deal with ELF file copies for now
Basically any non-plain-text files in our proprietary file list
are ELF binaries. Granted that I can use llvm-readobj to check the
headers and build them through cc_prebuilt_binary or
cc_prebuilt_library_shared one by one, but the result is kind of
pointless.

The purpose of cc_prebuilt_binary is to track dependencies by
running check_elf_file.py on them. We have so many proprietary blobs
that it is nearly impossible (and sometimes impractical and undesirable)
to define dependencies.
2021-11-24 20:45:42 +01:00
Giammarco Senatore
153b435cfe
sdm710-common: Update dependencies 2021-11-21 12:35:35 +01:00
lzgmc
63e608a22f
sdm710-common: WifiOverlay: Swap RSSI threshold values
This fixes random Wi-Fi disconnects.
Forgot to pick in 12 branch
2021-11-16 11:37:01 +01:00
Chenyang Zhong
50bb739532
sdm710-common: sepolicy: allow system_server to get app_zygote pgid
avc: denied { getpgid } for scontext=u:r:system_server:s0 tcontext=u:r:app_zygote:s0:c512,c768 tclass=process permissive=0

Appeared during UiBench.

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-11-12 16:17:06 +01:00
Giammarco Senatore
040f8d3543
Revert "sdm710-common: Permissive SELinux"
This reverts commit ddee12f5a5.
2021-10-30 12:58:43 +02:00
jjpprrrr
14ed563a24
sdm710-common: sepolicy: specify the owner of vendor props
vendor_fp_prop is public because apps like Alipay may access it
to enable biometrics payment authentication.
sdm710: Drop a neverallow
2021-10-30 12:58:35 +02: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
Rick Yiu
ae1bd89aa2
sdm710-common: rootdir: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Ib7acc0fd83adca37e247cd9f3113c1f117e5196e
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-21 19:39:24 +02:00
Wilson Sung
711c2be171
sdm710-common: Set SOC properties for SDM710
Bug: 158284209
Bug: 180589452
Change-Id: I31ec2aff20a4efb3c502ee5c8c6463e31c892bd5
Signed-off-by: Wilson Sung <wilsonsung@google.com>
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-21 19:37:13 +02:00
Chenyang Zhong
ed065abb05
sdm710-common: sepolicy: allow vendor_init to read persist_debug_prop
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-20 22:42:05 +02:00
Chenyang Zhong
2ebb67f1d4
sdm710-common: relax sysprop owner enforcement
Quoting commit afc09932f6fa07c5f6beffbcdc2bb4691e527321 in
system/sepolicy [1]:

"Devices launching with R or eariler can this by setting following
under BoardConfig.mk"

It is impractical to replace every prop definition from qcom to
vendor_property_type for old platforms like SDM845, so relax the
enforcement to avoid triggering millions of neverallows.

ref:
[1] afc09932f6

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-20 22:38:25 +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
jjpprrrr
397dc77a48
sdm710-common: build the missing libs
Not sure why these aren't there by default anymore.
2021-10-20 22:38:25 +02:00