Commit Graph

117 Commits

Author SHA1 Message Date
Ivan Vecera
d469151b3f sdm710-common: sepolicy: Label additional data files used by FOD
Resolves:
avc: denied { open } for comm="qseecomd" path="/mnt/vendor/persist/goodix/caliParamsInfo.so" dev="sdf7" ino=223 scontext=u:r:tee:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=0
avc: denied { open } for comm="qseecomd" path="/mnt/vendor/persist/goodix/BMatrix.so" dev="sdf7" ino=224 scontext=u:r:tee:s0 tcontext=u:object_r:mnt_vendor_file:s0 tclass=file permissive=0
avc: denied { open } for comm="qseecomd" path="/mnt/vendor/persist/goodix/ifaa_fplist" dev="sdf7" ino=215 scontext=u:r:tee:s0 tcontext=u:object_r:mnt_vendor_file:s0 tclass=file permissive=0

Signed-off-by: Ivan Vecera <ivan@cera.cz>
Change-Id: If92b4dafc2186fc616db755882830aba162d5cd3
2022-08-19 15:24:16 +02:00
Ivan Vecera
b2ffa9bc9d sdm710-common: Add shim for missing symbol in lib-imsvideocodec.so
Commit 992496bd2e ("Allow creating child surfaces from
BlastBufferQueue") added 3rd parameter to Surface::Surface
constructor that causes an unresolved symbol in existing blobs.

Provide a shim library with implementation of older Surface
constructor for lib-imsvidcodec.so that references the mentioned
symbol. Class constructor is a function with thiscall calling
convention so to preserve ABI we have to provide a C-function with
pointer as first parameter (that is hidden in C++) and return that
pointer from the function.

Resolves:
E ims_media_jni: Error loading library lib-imsvt.so: dlopen failed: cannot locate symbol "_ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEb" referenced by "/system/system_ext/lib64/lib-imsvideocodec.so"

Signed-off-by: Ivan Vecera <ivan@cera.cz>
Change-Id: I91abeabb07cac8553ee548e507a949e929590995
2022-08-19 15:24:16 +02:00
Ivan Vecera
48943bc614 Revert "sdm710-common: Split RF configs from the main NFC config"
We are using AOSP stack so libnfc-nxp_RF.conf is inappropriate.

This reverts commit b5affc765c.

Signed-off-by: Ivan Vecera <ivan@cera.cz>
Change-Id: Id71571d1a2ab2fa9668b0c49773d02f1ee00a999
2022-08-17 23:34:27 +02:00
Ivan Vecera
782dfdd1a7 sdm710-common: rootdir: Add entry for SD card
* Add entry for SD card as Pyxis unlike Grus supports it

Signed-off-by: Ivan Vecera <ivan@cera.cz>
Change-Id: Ia4aa49b4ea4b0d632ec56ba48a4a2882fdcc2563
2022-08-17 23:33:40 +02:00
Sebastiano Barezzi
f8abbc87d2 sdm710-common: Remove Megvii stub
* It's in hardware/xiaomi

Change-Id: If2e57cd6be7f8fe8a77b1fa202753c54551d68ac
2022-06-26 21:39:34 +02:00
Sebastiano Barezzi
f7fb8eb4e5 sdm710-common: Define DT2W node for power HAL
Change-Id: I1dc2f23e0c7764a8ca9d5bf6c9f2f78dcd89dbbe
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
60064eb0dc sdm710-common: Don't use DCI-P3 for adaptive color profile
* FOD HBM doesn't work with DCI-P3 profile

Change-Id: I599e346f40629ace2d61169c62a8bf1e4c050f69
2022-06-13 23:08:39 +02:00
uixdess
a74adef95a sdm710-common: rootdir: Update power init script for sdm710
Change-Id: I62b02be1e9b2c496d3a6fea1e5e86e1edbee87eb
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
9d53dca6ad sdm710-common: rootdir: Don't hardcode bootdevice name
Change-Id: If8248d72c3495a4fe488d1b3afc77bf6540f3173
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
6e487862fb sdm710-common: rootdir: On charger, mount persist in /mnt/vendor/persist
Change-Id: Icd5c96513f2f4ebc5e120737411f1d247ca92946
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
1893570b90 sdm710-common: Import init.qcom.power.rc from sdm845-common
* 00d7748a9e, minus some stuff we already do in qcom scripts

Change-Id: I64cc283b073af748473b39851c02e1d4ade7b19b
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
37b092477b sdm710-common: Declare BOARD_VENDOR
* Needed for xiaomi-perfmgr power AIDL guards

Change-Id: Idbb48e0f9b01090a456ad5d3f2d51f4dfab55672
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
3f97e6a254 sdm710-common: libqti-perfd-client: Move to C
* Why bothering with C++ mangling when we can just build it as a standard C library?

Change-Id: I45ea977edf7ea7fab6fece76f3049654a8d24c5d
2022-06-13 23:08:39 +02:00
Chenyang Zhong
5bb4cd8174 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>
Change-Id: I861672e9a738c2204755d802670f4b28b662f286
2022-06-13 23:08:39 +02:00
Bruno Martins
181698e817 sdm710-common: libqti-perfd-client: Remove namespace declaration
It's pointless when using extern "C".

Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d
2022-06-13 23:08:39 +02:00
Lucchetto
96621b9f59 sdm710-common: Create dummy libqti-perfd-client
* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future

Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb
2022-06-13 23:08:39 +02:00
Albert I
be9cd21a5f sdm710-common: powerhint: Update for sdm710
Change-Id: I580a527b8621252b44e5a8bfcb906b8a98d2156b
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
b54180ed5a sdm710-common: Import powerhint from sdm845-common
* 28089d58b7

Change-Id: Ic38bf29e552d1639ad015481df9f70c11a82700b
2022-06-13 23:08:39 +02:00
Bruno Martins
8921898956 sdm710-common: Drop I/O prefetcher
This depends on the already removed QTI perf stack.

Change-Id: I06b9a57f868e77bbcbb77c3970aec723404689f4
2022-06-13 23:08:39 +02:00
Wei Wang
7f1e48e0f0 sdm710-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2022-06-13 23:08:39 +02:00
Bruno Martins
7307289280 sdm710-common: Migrate to Xiaomi power AIDL HAL
Change-Id: I42170d51a517170b58d532addd9c38496e43457c
2022-06-13 23:08:39 +02:00
Albert I
f0ef45bc96 sdm710-common: Set up display color compositions
* Enable QDCM combined mode
* Rest of configuration is kanged off Pixel's overlay

Change-Id: Ib26033fe00a6cc1e8c7d8f93da417516e31a52e3
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
b0678051c1 sdm710-common: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: I0f1713ee542102374183ef8088bcad62d3859c2f
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
9fd96b243b sdm710-common: Use QTI USB init configs from USB HAL repo
Change-Id: I966d251a2756c9d9e91f621cbc5872448d022de4
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
46a26ad73e sdm710-common: rootdir: Cleanup
* Remove unused or disabled shell scripts
* Remove init.qcom.factory.rc, it is used for debugging

Change-Id: I5495fccd63eb857e3cd7101c17809aa95f9e0b9c
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
2dce9eaae9 sdm710-common: rootdir: Remove Xiaomi charger modifications
* Make your bet, is it mount persist command or fs classes triggers that kills AOSP off mode charging? :xiaomi:

Change-Id: I608316b928b63e37ec82a2d160a316a606b3365e
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
2814d9e961 sdm710-common: megvii: Initial stub libraries
* Our camera HALs just needs mg_facepp, which is a struct containing some functions

Change-Id: Id931f767e327cf69b5c7264a8ad0bd335488ec12
2022-06-13 23:08:39 +02:00
Roger Ellis
02c983114a sdm710-common: Add exclusion for vendor ELF prebuilts
- ELF prebuilts were banned in PRODUCT_COPY_FILES starting May 11.
 - Adding BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true to
BoardConfig.mk temoporarily.
 - See b/156534160 for long-term fix which should override this change.

Test: Build
Bug: 156534160
Change-Id: I7d80798d3b2d3818bc835fcede21de2e7ab04735
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
9cb034dc4e sdm710-common: Initial sepolicy
* From sdm845-common, cleaned up using sm8250-common one as reference

Change-Id: I9094d8593fba89c96cb2be3ee8a996b5cf4d3969
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
1d535e45f1 sdm710-common: Add support for UDFPS devices
Change-Id: If31a314c50174c89b4b094dbd1d3da431917d238
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
f880d8839b sdm710-common: rootdir: Add fingerprint permissions rc
Change-Id: I2d736597d499c511ed8b86e9750f6fbd8e7f98f7
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
ee28877ccc sdm710-common: Build common Xiaomi fingerprint HIDL
Change-Id: I2681e4a9c3f028b58852e744b144bdece69468d0
2022-06-13 23:08:39 +02:00
dianlujitao
d018ceb0de sdm710-common: audio: Enable AOSP bluetooth audio HAL v2
Author: Cheney Ni <cheneyni@google.com>
Date:   Mon, 18 Feb 2019 14:34:20 +0800

    sdm710-common: audio: Support A2DP offload for Bluetooth Audio HAL
 V2

    Bug: 124277691
    Bug: 124014853
    Test: manual with BluetoothAudioHAL enabled / disabled
    Change-Id: Ibc86687a6a6c2f0767a213ccd408e7bb5de98985

Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
2022-06-13 23:08:39 +02:00
notsyncing
6f219b70d6 sdm710-common: audio: Use USB audio policy configuration from AOSP
* This can greatly improve audio quality when an external
   USB DAC is connected.

Change-Id: I4eeaadc9e3dd26fb54dbfa5a1acf3599b3e6b16b
2022-06-13 23:08:39 +02:00
LuK1337
e3fe6306b3 sdm710-common: audio: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2022-06-13 23:08:39 +02:00
LuK1337
2bcf660fab sdm710-common: audio: Disable ULL mode
* Ultra low latency playback is currently broken. Crackling audio
   can be well noticed while playing WhatsApp audio messages or even
   during some games.

 * This patch routes all audio that normally used audio-ull-playback
   paths to low-latency-playback paths instead, thus meaning we're
   switching from ULL to LL mode.

Change-Id: I7d672f1ff10b984c8096c9c4ca83475e730fd16f
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
c081fa469d sdm710-common: Inherit 6GB Dalvik heap config
Change-Id: Ia012f8b5e3581bd34b11611394627eadaa87fe83
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
0a7491921e sdm710-common: Fixup manifest entries
Change-Id: Ia1286564d57f0a7f7f92a8c2f4885e9e0d32efa4
2022-06-13 21:33:40 +02:00
Sebastiano Barezzi
5d4c5e434a sdm710-common: Define common kernel config and fragment
Change-Id: I09cf0baa3fe6c42e9da0d5521e6defc07d0c0501
2022-06-13 21:33:40 +02:00
Bruno Martins
b5affc765c sdm710-common: Split RF configs from the main NFC config
This is now expected with the Q NXP NFC halimp.

Change-Id: Ie58c0cb61441e8bbe22ed100c1067a91a49921d1
2022-06-13 21:33:40 +02:00
Sebastiano Barezzi
044c7f4b67 sdm710-common: Build AOSP NFC HIDL
Change-Id: I417f0f50f88cb50267bae014ae3948ef151a865e
2022-06-13 21:33:40 +02:00
Sebastiano Barezzi
5da57d4673 sdm710-common: Initial permissions
Change-Id: I3b464603b97ec9b4961fee09b9286dc9315b934b
2022-06-13 21:33:40 +02:00
XiNGRZ
cffee1e939 sdm710-common: releasetools: Ship and update vbmeta image
Change-Id: I8bb4da99945eceae3beab77489e6b9e2a47ab972
2022-06-13 21:33:40 +02:00
XiNGRZ
d66dbb9ce5 sdm710-common: releasetools: Add dtbo image to the output zip if present
Change-Id: I8bb4da99945eceae3beab77489e6b9e2a47ab972
2022-06-13 21:33:40 +02:00
LuK1337
b9698dd953 sdm710-common: Disable APEX compression
Kernel panics on msm-4.9 + ext4.

Change-Id: I3ae1322880286a7edf8e53e6f602618d129bba91
2022-06-13 21:33:40 +02:00
Sebastiano Barezzi
28c84f1d14 sdm710-common: rootdir: Remove wigignpt interface definition
Change-Id: I0343fbf8e2e5267ee414bff7bb3eaeb9b10d8770
2022-06-13 21:33:40 +02:00
Sebastiano Barezzi
85921b321f sdm710-common: Remove displayfeature and citsensor entries from manifest
Change-Id: Ia710247b15929e2dce8e3170bc334e7c1bd446ab
2022-06-13 21:33:40 +02:00
Sebastiano Barezzi
7cac2665df sdm710-common: Import public libraries list
* From grus-user 11 RKQ1.20082.002 V12.5.1.0.RFBMIXM release-keys

Change-Id: I13eba92823c176b65bd1ae1d9a3ed847c0c46fe7
2022-06-13 21:33:40 +02:00
LuK1337
dc1a180951 sdm710-common: Add vendor symlinks
Change-Id: I3e3dcfa58fe56eb37ca9354556aedd6293ec22dd
2022-06-13 21:33:40 +02:00
Sebastiano Barezzi
8a93f84251 sdm710-common: Reboot to recovery if init fails
Change-Id: I1d8f38620caa7b003911ff30f69ed7973c100e6d
2022-06-13 21:33:40 +02:00