Commit Graph

64 Commits

Author SHA1 Message Date
mikairyuu
fad1fdd33a Revert "sm7250-common: Nuke FM radio"
Turns out people still use it
2022-06-24 00:33:24 +10:00
Subbaraman Narayanamurthy
ccaf40fbc3 sm7250-common: Add QTI health implementation
Add QTI health implementation so that it waits for battery power
supply for a max timeout of 5 seconds. This is to ensure by the
time health HAL service starts, battery power supply device is
available. Without this, health HAL couldn't find battery power
supply sometimes because of the time taken for battery charger
driver to probe on platforms where it can happen only after the
remote subsytem is bought out of reset.
2022-06-20 15:01:41 +10:00
mikairyuu
dfb5a8e37f sm7250-common: remove non-existent los overlay folder 2022-06-17 22:27:09 +10:00
mikairyuu
b9118ce1b2 sm7250-common: Nuke FM radio 2022-06-17 18:49:41 +10:00
mikairyuu
8e6c6a2f49 sm7250-common: Remove WFD jar 2022-06-17 18:49:41 +10:00
Akash Srivastava
f0a6977227 sm7250-common: Include ipacm makefile
* No need to populate device tree with its package. Just include its makefile

Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:49:41 +10:00
Haoran.Wang
b05559daf5 sm7250-common: Grant android.permission.WRITE_DEVICE_CONFIG to gms
Grant android.permission.WRITE_DEVICE_CONFIG to com.google.android.gms
package.

TEST: run gts -m GtsDeviceConfigTestCases -t
com.google.android.deviceconfig.gts.DeviceConfigApiPermissionTests#testWriteDeviceConfigPermission

Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
Reviewed-on: http://androidsource.ap.freescale.net/project/13666
Reviewed-by: guoyin.chen <guoyin.chen@nxp.com>
Reviewed-by: Tian Yang <yang.tian@nxp.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:09:45 +10:00
mikairyuu
2989264ed6 sm7250-common: Declare high performance VR support
Needed for daydream etc to work
2022-06-17 18:09:45 +10:00
mikairyuu
1f04cc785d sm7250-common: Build Pixel Thermal HAL 2022-06-17 18:09:45 +10:00
mikairyuu
a9b018a266 sm7250-common: import configs from snow 2022-06-17 18:08:49 +10:00
Mikhail Naganov
525035cbd7 sm7250-common: Switch audio HAL to V7
Updated audio policy manager configuration files to comply
with the changes in the XML schema.

Bug: 142480271
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioEffectV7_0TargetTest
Change-Id: I55d3728c809d27e58d5d496a1c7d637050dde53a
2022-06-16 13:02:53 +10:00
johnmart19
3a625d8bda sm7250-common: Apply latest supported deqp levels for Vulkan & OpenGL
Device uses drivers OpenGL ES 3.2 V@502.0 Date: 10/04/2021, Vulkan v1.1.128, which fully support this versions

Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-16 13:00:10 +10:00
kondors1995
0d8b31cf3e sm7250-common: Add Livedisplay 2.1 2022-06-16 12:56:26 +10:00
Sebastiano Barezzi
3bf10fed5d sm7250-common: Drop QTI camera device usage
* qcom-camera topic hasn't been ported to 19.1
* Keep building vendor.qti.hardware.camera.device@1.0 interface lib, IMS stack and possibly camera HAL still needs it

Change-Id: I87bcd5b54ad986d5844df50de243fc1a18507198
2022-06-05 14:29:58 +02:00
Sebastiano Barezzi
898e641b18 sm7250-common: Drop atrace HIDL
Change-Id: Iaaaf62e9dda26dd15d51f5975d9f21fe1037d2eb
2022-06-05 14:29:58 +02:00
Sebastiano Barezzi
35c9ecbc6e sm7250-common: Stop explicitely building netutils-wrapper-1.0
* Built by default

Change-Id: Id6666535bb8d0b84d2d0a8d19411fafa49df3d68
2022-06-05 14:29:58 +02:00
xSylla
aaaf91f031 sm7250-common: We already have USB audio policy configuration so don't pick AOSP one
Change-Id: I92056d03df54abcfec42fcc6781ba1ae3651a4e5
2022-06-05 14:29:25 +02:00
Sebastiano Barezzi
f52759c8e1 sm7250-common: Implement UDFPS handler
Change-Id: I7afff305140639d38ebb8bc51fbe790a1636db9e
2022-06-05 14:29:13 +02:00
SebaUbuntu
a6624039b5 sm7250-common: Move to common Xiaomi fingerprint HIDL
Change-Id: I6c29a831e985ee440c92a98aad8d33f25b9e5b2d
2022-06-05 14:29:13 +02:00
Sebastiano Barezzi
a10f85a8f4 sm7250-common: Build mtdservice interface lib from source
Change-Id: Ie739f283c4be1b77d57aaee1941ed46957da1d1a
2022-06-05 14:29:13 +02:00
Bruno Martins
78150a3f1e sm7250-common: Switch to source-built mlipay interface
Change-Id: I7daaaffd9fe7a870e42c1d882b52dc93b3231120
2022-06-05 14:29:13 +02:00
xSylla
76225f1e92 sm7250-common: Update blobs from MIUI V13.0.2.0.SJIMIXM
Change-Id: Ie65bb522086e1ee099423ca6d4d9cd9f2ebbefe7
2022-06-05 14:28:33 +02:00
Sebastiano Barezzi
55c2763845 sm7250-common: Move to common IfaaService
Change-Id: I71bfdacc4626d75d56aa12ec384f0f116d6d6ff2
2022-06-05 14:27:56 +02:00
Timi Rautamäki
746e3abd5a sm7250-common: Drop Snap
It's not included in 19.1

Change-Id: Ie3f908234cf7a3d94d33ad0e9d170d3738bb9752
2022-06-05 14:27:26 +02:00
LuK1337
c2c12192bd sm7250-common: Remove trust HAL from product packages
USB 1.3 HAL now provides the same functionality and even more.

Change-Id: Idda908a90d3b935e1065eb41abec4babeefc4fd0
2022-06-05 14:27:05 +02:00
Albert Wang
bfee3fe144 sm7250-common: Update USB HAL to V1.3 implementation
Supports to enable/disable USB data signaling

Bug: 161414036
Test: Pass USB V1.3 HIDL tests
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: Iffe00f8753206fb66cd3ab96cae5aa5ad9c410cd
2022-06-05 14:27:05 +02:00
xSylla
aa3f49ebd5 sm7250-common: Move media configs to proprietary-files
Change-Id: If6c11d5a775e717e6bf5146a9a29880e02d0e48d
2022-06-05 14:26:20 +02:00
xSylla
e4aba27c5b Revert "sm7250-common: Add KeyHandler to handle an goodix FOD key"
This reverts commit 11b649960c.

Change-Id: Idc9f5b41f1223a0e681b378dbb674d179af84977
2022-06-05 14:26:05 +02:00
Sebastiano Barezzi
6ee34f4beb sm7250-common: Build libhidltransport
Change-Id: Ic764084c6225b9f5cfcbe511dd01c4d65c1794d3
2022-06-05 14:25:50 +02:00
Sebastiano Barezzi
cedd2fecf6 sm7250-common: Move to AOSP NXP NFC HAL
* NXP added snxxx support in AOSP, \o/

Change-Id: Id1b9cdbe1f29d1ff61af8182ae2f8370e5210426
2022-06-05 14:24:12 +02:00
TheScarastic
e2acea18d7 sm7250-common: biometrics/fod: Uprev to 2.3
* [SebaUbuntu]: Move fingerprint HIDL to 2.3
 * Remove Lineage FOD HIDL
 * Rename fodextension to udfpsextension

Change-Id: I292bbb9509de89eb9031daebab3cb5b2e5411d21
2022-06-05 14:24:12 +02:00
Sebastiano Barezzi
945f0e2b6d sm7250-common: rootdir: Move remaining modules to Android.bp
Change-Id: Id2f440af5abaab38d01f2804822279c8c7e821b2
2022-06-05 14:23:39 +02:00
Sebastiano Barezzi
1bc432c444 sm7250-common: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: I0f1713ee542102374183ef8088bcad62d3859c2f
2022-06-05 14:23:25 +02:00
Sebastiano Barezzi
1786abe62a sm7250-common: Uprev clearkey DRM HIDL to 1.4
Change-Id: Id0895fee70495913f57bc8408ea433660467a7c7
2022-06-05 14:23:25 +02:00
Sebastiano Barezzi
6aa5b9e85e sm7250-common: Build vendor interfaces libraries
Change-Id: I0c8760ff6923c2d2a43ec058554d724ca6600f3c
2022-06-05 14:23:25 +02:00
Sebastiano Barezzi
168202c8e6 sm7250-common: Build all extra VNDK versions
* Basically make system a GSI, but this should avoid us the headache made by VNDK libs not being built based on proprietary interfaces

Change-Id: I1ca876b5d2a82d41af76f4c327b89a181bb3d6bd
2022-06-05 14:23:25 +02:00
Sebastiano Barezzi
ede9a7fff1 sm7250-common: Move to common Xiaomi light AIDL
Change-Id: I1edcfafce4ea7a76327f8466f8535e63cfc8ed39
2022-06-05 14:22:33 +02:00
xSylla
17332c2465 sm7250-common: Move props to properties.mk 2021-12-01 16:43:29 +01:00
blankaf
9915f84c99 sm7250-common: rootdir: Adapt for libperfmgr
Co-authored-by: Ramii Ahmed <ramy@ahmedramy.com>
Co-authored-by: SebaUbuntu <barezzisebastiano@gmail.com>
Change-Id: Ia5f59d183056728dc2966b99ff74dbb4fcc83c7b
2021-12-01 16:43:28 +01:00
Albert I
b7cd634ffa sm7250-common: Cleanup rootdir scripts
* Some of these scripts are unused on lito, so remove them
* Also remove factory scripts, meant for eng

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I19cb6c84a4767cdc790f3ad42c256ca20ecde629
2021-12-01 16:43:28 +01:00
Sebastiano Barezzi
5c6a011963 sm7250-common: Default to 6GB Dalvik heap configuration
* Our libinit is missing on GSIs and DSUs

Change-Id: Ie5d7c5e297a47c9d5587b075bd0641914d368f78
2021-12-01 16:43:28 +01:00
xSylla
680846d96c sm7250-common: Changes for FM Radio
* Imported fm_helium and libfm-hci blobs
* Build libqcomfm_jni

Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00
Dobsgw
9e300d19d3 sm7250-common: fix media codecs copy out directory
Change-Id: I574f705518c7ead35381970ba76c3a34e97818df
2021-12-01 16:43:28 +01:00
Arian
11b649960c sm7250-common: Add KeyHandler to handle an goodix FOD key
* The goodix FOD HAL sends an key event (code 338) on touches
  at the FOD area. This event causes the recents to be stuck
  sometimes when swiping over it or closes the keyboard when
  using bubbles and tapping in the FOD area.

Change-Id: I2f2fa65ae4d6d3be12193c5d75fdf7daf33b175a
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
xSylla
f6043070f1 sm7250-common: Build FM2
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
dianlujitao
de973890b8 sm7250-common: Support Alipay and WeChat fingerprint payment
* IFAA manager is based on OnePlusOSS, but adapted for Xiaomi's mlipay
   interface.

Change-Id: Ied17d6456561bb399e4dd4a868d57a48d2d51db2
2021-12-01 13:02:03 +01:00
Albert I
779828ff23 sm7250-common: Set Bluetooth MAC address using persist property
The idea is to allow us to not depend on stock QTI Bluetooth HAL, as MAC
addresses fetched from NVRAM by nv_mac script will be saved as hex-encoded
files. We can decode back saved files to then the Bluetooth one be set using
persist property so it can be read by Bluetooth HAL.

This is loosely based on similar techniques used on Mi 9 and ZenFone Max Pro M2.

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I74d07c3c3125a04962c37fe8bfcc8385d1fd3398
2021-12-01 13:02:03 +01:00
Albert I
a0d1c94773 sm7250-common: Wire up hardware permissions
Don't advertise (aka copy here) permissions which physical sensors nor
features are either present or available, especially for barometer sensor
which doesn't exist on alioth and apollo. Copy missing permissions for
Wi-Fi, too.

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Iffc6c8bb696985099738c20140c68a0fe2188899
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
53f39f7889 sm7250-common: Kill touchfeature
Change-Id: Iea8dbe1a69906627ffdabca70ecea624435fc53e
2021-12-01 13:02:03 +01:00
TheScarastic
7eaae54a2b Revert "sm8250-common: Add FODService"
This reverts commit 06f816fd6b.

Change-Id: I75216f8439bdf2fa23b478889e6800014e08226a
2021-12-01 13:02:03 +01:00