Commit graph

783 commits

Author SHA1 Message Date
Bruno Martins
72b553259d sdm710-common: Revise and update audio feature flags and props
So to match what is shipped with stock because prebuilt a-HAL
and extensions are being used.

Change-Id: I74d5bd1de5ea87984ace38076cb5a0bd54736ca6
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:28:55 +01:00
Bruno Martins
822a2aaab1 sdm710-common: Drop custom APM flag along with no-op audio flags
Custom audio policy manager is hard disabled by CAF
for 2 years now. Remove as well the audio feature flags
that were used to configure it.

Change-Id: Idd34d1cbbdb735d6cf0de3b159c2670bf7ddd1e3
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:27:28 +01:00
Mohammed Mirza Mandayappurath Manzoor
e1b63048b3 sdm710-common: ueventd: Set permissions for KGSL sysfs node
Some KGSL sysfs nodes need to be access controlled. Set proper
permissions for the same.

Change-Id: Idc7e2447d02742074873901c6539f2c6d9d25862
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:25:50 +01:00
Bruno Martins
4226e5591c sdm710-common: overlay: Remove BT related configs
These have been migrated to sysprops in Android 13.

Change-Id: I34c1f6b882a61df6db95523997002512354d875e
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:25:10 +01:00
Alexander Koskovich
5c069d12de sdm710-common: Move Bluetooth power overlays to sysprops
* These were moved to sysprops in Android 13 [1] and while
   frameworks reads the values directly from power_profile.xml
   Bluetooth app reads from the properties.

 [1] 976d33062b%5E%21/#F0

Change-Id: I5bff67a15c537e8a47a19f30776fca6bf2c9fbe5
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:23:40 +01:00
Bruno Martins
548b1cdce4 sdm710-common: Migrate to AIDL ClearKey DRM HAL
Change-Id: Iad5cc1176978137c647069197b33f49fb4d98ab2
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:22:00 +01:00
LuK1337
688742ef3e sdm710-common: Pull appropriate USB props from vendor_product.mk
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:21:36 +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
Woody Lin
c898c89e44 sdm710-common: Enable zygote critical window
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:16:57 +01:00
Bruno Martins
c262a28e3f sdm710-common: Remove dead targets
Change-Id: I496e37e3d813a96ca3a0138dbc61cd1a90655244
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:15:53 +01:00
Michael Bestas
7c1c0cc57b sdm710-common: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:14:56 +01:00
Georg Veichtlbauer
3c293f5f41 sdm710-common: Drop config_setColorTransformAccelerated
It's now enabled by default

Change-Id: I57f059c872fc2ad2fd15e788b1391eeebaff9bde
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:13:47 +01:00
Muhammed Siju
4118c7b51b sdm710-common: Disable advance network scan for legacy targets
- Set persist.vendor.radio.enableadvancedscan to false

Change-Id: Id01e7a545e89ff9ab9fb659aec1fbae527c40f71
CRs-Fixed: 2780132
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:12:32 +01:00
Volodymyr Zhdanov
2caf49b8dd sdm710-common: power-libperfmgr: move dt2w mode on top of setMode switch
* fixed dt2w after reboot

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2022-11-12 15:09:34 +01:00
Volodymyr Zhdanov
069088dff8 sdm710-common: power-libperfmgr: enable DOUBLE_TAP_TO_WAKE mode explicitly
* libperfmgr expects mode to be declared in powerhint but dt2w is handled in powerhal
* so let's just force enable it like google did with LOW_POWER
* also use break instead of fallthrough because there's no need to play with hints

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2022-11-12 15:09:34 +01:00
SamarV-121
623f59e656 sdm710-common: power-libperfmgr: Enable dt2w
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2022-11-12 15:09:34 +01:00
giasen
c69c3e3d54 fixup: sdm710-common: update power sepolicy from xiaomi-sdm845
- remove unwanted rc file
2022-11-12 15:09:34 +01:00
Jesse Chan
dd42b3033c sdm710-common: libperfmgr: remove Google-specific VR and camera hints
Change-Id: Iac0e65a16f660583d3400a35622113d35d8d1d27
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:09:34 +01:00
Chenyang Zhong
2018306009 sdm710-common: power: rename pixel to lenovo-sdm710
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:09:34 +01:00
Chenyang Zhong
39646561d1 sdm710-common: power: re-import power HAL
from android-13.0.0_r3

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:09:34 +01:00
giasen
1c28990a9a sdm710-common: drop GcamGo 2022-11-12 15:09:27 +01:00
Nolen Johnson
eb7e1162ae sdm710-common: Move to libhidl shim in hardware/lineage/compat
Change-Id: Ia2cd305baf3ce0fa7ac52d440a4ff51f94654438
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:09:07 +01:00
jjpprrrr
f9cd79b925 sdm710-common: add wfd blobs 2022-09-21 17:45:42 +02:00
giasen
ff41e008e0 sdm710-common: dependencies: track branch thirteen 2022-09-18 20:37:31 +02: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
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