Commit Graph

185 Commits

Author SHA1 Message Date
Sebastiano Barezzi
03f69f21a8
sm8250-common: Chown DT2W node
Change-Id: Idb121cba92d38dac5bd27575d349cf054bb7ef50
2021-06-08 16:31:55 +02:00
Sebastiano Barezzi
c4f2ea7e88
sm8250-common: fod: Add m at the start of class variables
Change-Id: I7e2a7c97512774b2b64d1edc2a4ca38fbad02ad4
2021-06-08 14:53:18 +02:00
Abhishek Aggarwal
4a2f70507b
sm8250-common: fod: Add surfaceflinger extension lib
* And specialize it for xiaomi kona devices

Co-authored-by: dataoutputstream <mb150996@gmail.com>
Change-Id: I440e6d246884fd22044756c6260b3583a1e58a7b
2021-06-08 14:53:18 +02:00
TheScarastic
b4c0800991
sm8250-common: fod: Prepare for displayfeature dim and hbm
Change-Id: I93790f33d8c694c47e030fec1bfdf2074c29f0e2
2021-06-08 14:53:18 +02:00
TheScarastic
06f816fd6b
sm8250-common: Add FODService
Change-Id: I34af976ce5c6cbaaa2a45c96374664119d6ac5c8
2021-06-08 14:53:18 +02:00
Sebastiano Barezzi
2a540b832e
sm8250-common: fod: Readd displayfeature hook
Change-Id: I34bbceae23f0d5b82de90f9606507dd507816d16
2021-06-08 14:53:18 +02:00
Sebastiano Barezzi
2fd2065970
sm8250-common: sepolicy: Bring back displayfeature policies
* FOD devices will use it, sigh

Change-Id: I2712a06f20a3b10c3b5666e1cd17b82f6374c783
2021-06-08 14:53:18 +02:00
Sebastiano Barezzi
7d367dd95a
sm8250-common: Don't override DEVICE_{MATRIX|MANIFEST}_FILE
* Allow device-specific manifests to be safely added

Change-Id: Iccafe8c8491219336389015af8caa2c7a700ff61
2021-06-08 14:53:18 +02:00
Sebastiano Barezzi
cee90aceae
sm8250-common: Use only full qualified name for manifest entries
* As recommended by Google for multiple different versions of the same HAL in VINTF manifests
* https://android.googlesource.com/platform/hardware/interfaces/+/master/drm/1.1/README.md#devices-launching-with-android-pie

Change-Id: I4922d72ab60ca1aae78c010aeb610f9bca9012cb
2021-06-08 14:53:02 +02:00
Sebastiano Barezzi
e3bc4521f2
sm8250-common: Remove unused entries from manifest
Change-Id: If460cbaed9d0d27d30dc64d7d407fd28547f3283
2021-06-08 14:52:37 +02:00
MB
c21283896c
sm8250-common: fod: Improve dimming formula
Change-Id: Ie043d49e8954d061f355ed51f4c02a2cacdb04ba
2021-06-08 14:52:37 +02:00
Sebastiano Barezzi
2a28b637c2
sm8250-common: fod: Set the module type to vendor
* It isn't proprietary

Change-Id: Iae66b9005850895b02682450c583aac53c304382
2021-06-08 14:52:37 +02:00
Sebastiano Barezzi
4347b0ea43
sm8250-common: biometrics: Cleanup Android.bp
Change-Id: I6e594d8f9860d23e40e354bc79b4960a6991c036
2021-06-08 14:52:37 +02:00
Sebastiano Barezzi
704a14b5c8
sm8250-common: fod: Use SPDX license identifier
* Also update copyright year

Change-Id: Ieea387fe303bb9c59cbf75c23fb568f9393374eb
2021-06-08 14:52:37 +02:00
Sebastiano Barezzi
1ca97128ca
sm8250-common: Remove USE_XML_AUDIO_POLICY_CONF
* Dead since Q, where XML audio policies weren't enforced yet

Change-Id: I302a0ed97964b052176dc3bb0141db1ba85e78c8
2021-06-08 14:52:37 +02:00
Sebastiano Barezzi
3fe9a3b11a
sm8250-common: Remove BOARD_RAMDISK_OFFSET
* Not used

Change-Id: I5fd7c439aad46800b77514682a28b590e04179db
2021-06-08 14:52:37 +02:00
Sebastiano Barezzi
354ecc47b2
sm8250-common: biometrics: Move to AOSP Soong conditionals
Change-Id: Iaf7c291d2f08262d9f578901d688eb98ade4beba
2021-06-08 14:52:37 +02:00
Sebastiano Barezzi
08f52c5841
sm8250-common: biometrics: Iter classes array with C++ way
Change-Id: I9aad93dc0ec8bcfc6167e49442e67e5c99031e17
2021-06-08 14:52:36 +02:00
Sebastiano Barezzi
49f1174e9c
sm8250-common: Switch to AOSP light HIDL
* QTI light AIDL is just the AIDL version of the default light HIDL

Change-Id: I2d88cf7dd2aadcbfee4af7b0dae99e7facef80c1
2021-06-08 14:51:43 +02:00
Omkar Chandorkar
a1d198ffa9
sm8250-common: Remove unused multilibs
Change-Id: I4c6e3aeb223d9da45b2892b941f9f7f1fff569b1
2021-06-07 18:48:26 +02:00
Sebastiano Barezzi
a87e513f8a
sm8250-common: Decommonize sensors blobs
Change-Id: Ie1dfc32b1e0d7402bb7918ba1a68f31ba2b79338
2021-06-03 01:14:19 +02:00
dianlujitao
b35142646d sm8250-common: sepolicy: Label TP node
Change-Id: Id55db9b6614320650c8c61e698f71ddc9f04d086
2021-06-03 00:30:15 +02:00
Sebastiano Barezzi
9db0864cb7 sm8250-common: Add power AIDL DT2W support via sysfs node
Change-Id: Idcff758444a5c89ba20f2ae804a407ee78c445cb
2021-06-03 00:30:15 +02:00
Sebastiano Barezzi
545fe5c78e sm8250-common: Drop power AIDL extension
Change-Id: Ied144ee0f7840ab43499d43f3d0c64dfd414d99f
2021-06-03 00:27:20 +02:00
Sebastiano Barezzi
3289131e2b
sm8250-common: sepolicy: Refactor file_contexts and genfs_contexts
Change-Id: Ia55dc04019bbf58a433ae534677896b7563765ab
2021-06-03 00:13:12 +02:00
Sebastiano Barezzi
5d6a65af44
sm8250-common: Redo wakeup sources labels
Change-Id: Ia07572ce7a6435fb5e135839aa5cf3d514de90aa
2021-06-02 23:46:57 +02:00
Sebastiano Barezzi
27f98a746a
sm8250-common: Remove useless sysfs labels
Change-Id: Ic96f11d1a3cea01dd1ae8f952b654ae1ca5ca545
2021-06-02 23:46:57 +02:00
Sebastiano Barezzi
d202c38b35
sm8250-common: Label bq2597x-standalone device
Change-Id: I35cacbcbd9312c87292c3e39cf8f4ac342210238
2021-06-02 23:46:57 +02:00
Sebastiano Barezzi
e46be13972
sm8250-common: Build default Trust HIDL
Change-Id: Icfecbd97df7adccc51406ae667fbc3cb10865a5a
2021-05-20 11:45:15 +02:00
Sebastiano Barezzi
21bc0bdf77
sm8250-common: biometrics: Hardcode fingerprint HAL classes list
* We have just 3 variants for all 7 devices, why do we even bother

Change-Id: I7488aaccd35bc2de4d214b3c71cce14177ab76c7
2021-05-20 11:45:15 +02:00
Sebastiano Barezzi
1c8f0be186
sm8250-common: biometrics: Simplify HAL classes array size calculation
Change-Id: Iea06ba23f39490316c0bd4bf768e68459d6f9625
2021-05-20 11:45:15 +02:00
Sebastiano Barezzi
e17a33df36
sm8250-common: Allow Goodix FOD HAL to access perf HAL
* For somehow reason Xiaomi decided to implement perf locks in the HAL, not in fingerprint HIDL, so I'm forced to allow it

Change-Id: I4472f9768858916231f19c765d8aa74d8c3b401a
2021-05-05 17:36:54 +02:00
Sebastiano Barezzi
1b3fbae7b0
sm8250-common: biometrics: Implement boosting on authentication
Change-Id: Ia9cde9f540a614ad700fb497288a2a986e924dbd
2021-05-05 17:36:54 +02:00
Sebastiano Barezzi
a856c06112
sm8250-common: Import audio_policy_volumes.xml from stock
* And apply latest changes from AOSP

Change-Id: I1988f841d3df1126b234cad5456661e919b58705
2021-04-29 19:38:49 +02:00
Sebastiano Barezzi
c3addbabc9
sm8250-common: Add alioth and thyme to the list of supported devices
Change-Id: Iaeae1b8ccd0264ac3a6fef0bc6e4ff7ed30fd7e7
2021-04-29 18:48:14 +02:00
Sebastiano Barezzi
63500bb501
sm8250-common: Import excluded-input-devices.xml
* From lmi-user 11 RKQ1.200826.002 V12.2.6.0.RJKMIXM release-keys

Change-Id: I9ec50ed82b07ec5936e54d8cd021985b0c1b9486
2021-04-25 03:19:54 +02:00
Quallenauge
2dd47ea9c3
sm8250-common: Exclude CarrierConfig overlays from RRO
They doesn't work right, because xml attributes where
stripped down, and leading zeros are removed.

E.g. instead of
 <carrier_config mcc="262" mnc="06">
the values are modified and get
 <carrier_config mcc="262" mnc="6">

This prevents matching of defined carrier definitions.

Change-Id: I11efe716f9d2ea44bef80c15004d7a8cb71b58b9
2021-04-25 03:03:42 +02:00
Sebastiano Barezzi
d2472c31c5
sm8250-common: biometrics: Move fingerprintextension manifest entry
Change-Id: I0040c903c9560f1ad5179b010ac2cacb7e112c0a
2021-04-25 02:54:51 +02:00
Sebastiano Barezzi
8949260eaf
sm8250-common: Enable FOD Soong configs with opt-in
Change-Id: Ie7a731e45a93cd92003d0d0c026047ff6c2c63c3
2021-04-25 02:49:49 +02:00
Sebastiano Barezzi
65dd214490
sm8250-common: Require opt-in for FOD
Change-Id: I71523b61b47cb2d454d38ba5ba8aeb08e7b93d11
2021-04-25 02:49:48 +02:00
LuK1337
cd09fddfab
sm8250-common: Enable TARGET_QTI_USB_SUPPORTS_AUDIO_ACCESSORY
We can handle analog audio just fine, no need to
inform the user that their device is not supported.

Change-Id: I7dda01e7bd2560e8c782245dea3f3b7519c3b0b6
2021-04-25 00:55:02 +02:00
Sebastiano Barezzi
a520e21b9e
sm8250-common: Build fingerprint HIDL
Change-Id: I2e18fc9891610e6285f29d5d43d6728f6057e65c
2021-04-25 00:26:38 +02:00
Sebastiano Barezzi
dd7ebf7f90
sm8250-common: biometrics: Add fingerprint devices permissions
Change-Id: I1c748b4f4e269bff76aa17af8d407ecb8739ab50
2021-04-25 00:26:38 +02:00
Sebastiano Barezzi
f9e1ba11b8
sm8250-common: biometrics: Wire up Xiaomi FingerprintExtension
Co-authored-by: C457 <android.c357@gmail.com>
Change-Id: Ic94f7b3fd28f7db81695e47f54ce6fa89248bde9
2021-04-25 00:26:38 +02:00
Sebastiano Barezzi
5ac57d355f
sm8250-common: biometrics: Implement custom HAL loading list
Change-Id: Id545287bed468f39738dbaa4c069660047055585
2021-04-24 08:54:27 +02:00
Sebastiano Barezzi
54d643ec3d
sm8250-common: biometrics: Rebrand to Xiaomi SM8250
Change-Id: If1106b9567ec5e138e1404dc49f99d63f7fb6c84
2021-04-22 15:52:30 +02:00
Sebastiano Barezzi
4dc003b74a
sm8250-common: Import AOSP fingerprint HIDL service
Change-Id: I849c9f988aad708ece5746f0b91878d962de351c
2021-04-22 15:17:29 +02:00
Panchajanya1999
b02b30b969
sm8250-common: wifi: Disable WLAN Firmware loggings
Change-Id: I111943a641670ea052f68148103e377771297d77
2021-04-22 15:17:29 +02:00
LuK1337
739dd66e05
sm8250-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: I1f029d7df9a306f411598b0cffc536409cb2ae95
2021-04-22 15:17:29 +02:00
RealSchnedi
4fb85b40f3
sm8250-common: Import some audio props from Coral
* This fixes in-call loudspeaker volume control

Change-Id: I7a97dfd76b930b6c70161aecbf1ac6203f31ecf4
2021-04-22 15:17:29 +02:00