Commit graph

869 commits

Author SHA1 Message Date
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
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