Commit graph

324 commits

Author SHA1 Message Date
Arian
2ab727afe0 sm8450-common: udfps: Change verbose logging to DEBUG
Change-Id: Ic3c4401e61b54445f9acc0d1e53c75c21b6a6ee6
2024-03-19 23:22:37 +01:00
Arian
1c5b35a3c1 sm8450-common: udfps: Inform hwmodule about press coordinates
These coordinates can be from the last press, ideally we would
get the coordinates freshly when fod_press_status changes.

Change-Id: I8c0096c96612c8ea8b612696ecf702d7945a1b84
2024-03-19 23:22:37 +01:00
Arian
43650d15a4 sm8450-common: udfps: Use 110 nit fod when the brightness is low
Change-Id: I892c8c5eaef6606a7576722ec1751db2f0a9b2ef
2024-03-19 23:22:37 +01:00
Arian
9b37d1a99e sm8450-common: udfps: Add comments about setFingerDown usage
Change-Id: Ifb0394a887cdabdad20208b5deb2386e7cc7f55a
2024-03-19 23:22:37 +01:00
Arian
ed1d014229 sm8450-common: udfps: Drop unnecessary setFingerDown on cancel
HBM is usually not on when it gets cancelled

Change-Id: I6c2c4836bf9dad627d4f97283b0fe8d2c398908a
2024-03-19 23:22:37 +01:00
Arian
1198676eff sm8450-common: udfps: Defer extCmd until fod ui is ready
This does not work with xiaomi's original display driver,
since partial reads from it are broken and it rejects all
reads whose size is insufficient to get the whole response.
However, the size is not known in prior, so we actually
want to read the header first to determine the actual size
and continue reading then. This requires a kernel side fix
like [1].

To make this work with the stock kernel driver instead,
adjust the parseDispEvent method to read with a larger
buffer directly and decrease the size of the data
according to the header later.

[1]: b80cb5a028

Change-Id: Id8f9ac8ef32462dd00832af12ff60a3610103e2a
2024-03-19 23:22:37 +01:00
Arian
abee51ea08 sm8450-common: udfps: Move HBM requests to fod press status listener
Change-Id: If00769fdd766f62c6e35d0f2c19496197ea218af
2024-03-19 23:22:37 +01:00
Arian
44edf478c1 sm8450-common: udfps: Correct vendorCodes
Change-Id: I39f37f278e39487c21d96e05ee331c4960d5e2be
2024-03-19 23:22:37 +01:00
Arian
6cfbe86b6d sm8450-common: udfps: Improve fod press poll logging
Change-Id: I9999722660f3d56519463c8e3762b9f48ef0208b
2024-03-19 23:22:37 +01:00
Arian
5588bbf3dd sm8450-common: udfps: Use MI_DISP_PRIMARY as touch id
Change-Id: Ie4144887165d56f37c871bb85da56e8c80dfd721
2024-03-19 23:22:37 +01:00
Arian
1328eabc27 sm8450-common: udfps: Enable HBM via disp_feature
Change-Id: I6ffdf1de9b0cf5eb2b479ce3ff66ca4f7e74e17c
2024-03-19 23:22:37 +01:00
Arian
ec8786ca3a sm8450-common: udfps: Keep fod_status enabled during enroll
Change-Id: Ie09efc80c6d4ad06db82c5c693f202f651fd56dd
2024-03-19 23:22:37 +01:00
kxxt
b2dcc1ec15 sm8450-common: sepolicy: Add rules for fpc fod
Change-Id: Ib0cb756a54a3d5416af4f892a0ebb9159a2130af
2024-03-19 23:22:37 +01:00
Arian
bba13b580d sm8450-common: Set radio build profile to u-stable
As seen on unicorn V816.0.3.0.ULECNXM

Change-Id: I86d4dfb5e384f986799257e1c670988823712775
2024-03-19 23:22:37 +01:00
Arian
1875e9bedf sm8450-common: Enable radio ecc_cloud
As seen on unicorn V816.0.3.0.ULECNXM

Change-Id: I52272c6060c257895edd6befc4fecede9d511933
2024-03-19 23:22:37 +01:00
Zhen Kong
f2b2c87a82 sm8450-common: Enable TDES support when Keymaster 4.0 is enabled
Add ro.hardware.keystore_desede to property list to pass
CtsSecurityTestCases TDES related tests.

Change-Id: I02e34e93b52f82546dffc2c4f2cce78671885310
2024-03-19 23:22:37 +01:00
Alex Sarraf
14bf8731ea sm8450-common: display: Set debug.sf.auto_latch_unsignaled to 0
Need to explicitly set auto_latch_unsignaled property to
disabled state to keep latch-unsignaled as the default
behavior.

Change-Id: I3856caaf0a68e7e720819f25338d1eb9196f56b0
2024-03-19 23:22:37 +01:00
Edwin Moquete
189e6a3d72 sm8450-common: Disable frame rate override feature
This is enabled by default on U, and it causes apps like
Chrome and YouTube to render the frame rate at 30FPS when
playing some videos.

Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec
Signed-off-by: basamaryan <basam.aryan@gmail.com>
2024-03-19 23:22:37 +01:00
Andrzej Perczak
e0ab3da8d5 sm8450-common: Disable redir_party_num
Caused incoming caller number not being parsed correctly by Phone app on
VoLTE and VoWiFi. No idea why Xiaomi enabled this ancient prop.

Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com>
Change-Id: I4d3d19b80bedd7410e638c78909a8a910bc10be8
2024-03-19 23:22:37 +01:00
Arian
e8c54c487a sm8450-common: Pin hotword blobs from global rom
Change-Id: I4ca5f33ba1daf39c2e6e847d7802f36316a545e8
2024-03-19 23:22:37 +01:00
Arian
f45cab519c sm8450-common: sepolicy: Relax xiaomi camera postproc rules
Change-Id: I278843abfa2f91fc44ef54c8b61f81d97b8e772e
2024-03-19 23:22:37 +01:00
Flower sea
b400ebbb65 sm8450-common: Add support for mayfly
Change-Id: I8539b0a06dec4c13bde92a4b0041ce0caa6ae235
2024-03-19 23:22:37 +01:00
Arian
54a931f1eb sm8450-common: overlay: Enable burn in protection
Change-Id: Iaf1aff7e72a30e17ec6f1581cad34b94b37ffa84
2024-03-19 23:22:37 +01:00
Jayachandran C
ccf482a700 sm8450-common: Move default network property to vendor partition
This fixes GSI image overriding the default value

Bug: 153852350
Test: Manually verified after flashing the GSI image
Change-Id: I78b415862c420c23121ec03d6953814cd628ea9a
2024-03-19 23:22:37 +01:00
David Sehr
6f4d56864e sm8450-common: Enable usage of dex2oat64
Use 64-bit dex2oat for better dexopt time.

Bug: 153380900
Test: boot and install an application
Change-Id: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
(cherry picked from commit 126f03be80f57a8a0411842011152d9381589b78)
Merged-In: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
2024-03-19 23:22:37 +01:00
SebaUbuntu
efab1ce586 sm8450-common: overlay: Drop MMS user agent overlays
* Current profile URL points to a 404 page

Change-Id: I92f3ded52dda04f6cec5709d51c84b32f39d8095
2024-03-19 23:22:37 +01:00
Santiago Seifert
ef8b610fc8 sm8450-common: overlay: Unpin updatable-media from memory
Bug: 214499288
Change-Id: I4823afa45553b9484ad5215d081b0e6635c4b183
Test: Presubmit
2024-03-19 23:22:37 +01:00
Nicolas Geoffray
f255e55127 sm8450-common: overlay: Remove odex/oat files from pinner list
The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: I8de2a2935901cbd3eaa50ce2d8aa09f61080ba02
Merged-In: Ie633ea788dab3389a3407ec9a461b5837befca46
2024-03-19 23:22:37 +01:00
Kevin Jeon
2fc31b90ec sm8450-common: overlay: Update SurfaceFlinger pin on all targets
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
2024-03-19 23:22:37 +01:00
Arian
e2d0eff5b4 sm8450-common: overlay: Set shutdown battery temperature
Change-Id: Ifd89970e9b7c939c2ef59266c212b3d495df9a97
2024-03-19 23:22:37 +01:00
Arian
6053321792 sm8450-common: overlay: Update from unicorn V816.0.3.0.ULECNXM
Change-Id: I5d2462414ffa67b5169154e76b5e8a4ce0d7288c
2024-03-19 23:22:37 +01:00
Arian
3e6614bdad sm8450-common: overlay: Add WifiResTarget_cape
Change-Id: Ia83c6747afb58dd1606d5c441fda20b8994b501f
2024-03-19 23:22:37 +01:00
Arian
6b2c1b3656 sm8450-common: overlay: Import xiaomi wifi changes for taro
Change-Id: I063dc07d6375082919fbe5d334f1b4855da3ceb4
2024-03-19 23:22:37 +01:00
Arian
85d6f16ea9 sm8450-common: overlay: Restrict WifiResTarget to taro
Change-Id: I64b58cb1f726111b09184582fab0e281f83dd6f3
2024-03-19 23:22:37 +01:00
Michael Bestas
341bfeae81 sm8450-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2024-03-19 23:22:37 +01:00
Jens Reidel
8c6add2160 sm8450-common: Build Lineage PowerShare HAL
Change-Id: I3ea02cd0c6b1a26851f1961768e00e5f3339c4bb
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 23:22:37 +01:00
Jens Reidel
dc9bdf5c33 sm8450-common: Decommonize goodix_fod.ko
Change-Id: I443f5e3444c82ec55ab3d0781f7e2534d253f6a6
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 23:22:37 +01:00
Jens Reidel
a49e28c03c sm8450-common: Address marble denials
Change-Id: Icb73c862a1da3fa43da1885f7da93f2c71fe9da7
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 23:22:37 +01:00
Jens Reidel
e6fb9bb57c sm8450-common: Address marble fingerprint denials
Change-Id: I5b409c7bd3158efb042429432c771e5574b5b8b6
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 23:22:37 +01:00
Jens Reidel
6d717119b7 sm8450-common: Allow choosing NFC supported SKUs
Change-Id: Ia14a6c93e6320c8dfa1df2957e19b51a267c2234
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 23:22:37 +01:00
Jens Reidel
28fe79f30b sm8450-common: keylayout: Disable single tap on fingerprint sensor
Change-Id: Ib2aecbaf34e69af1c670b64ec22e4966fa69fde3
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 23:22:37 +01:00
Jens Reidel
50623401a9 sm8450-common: Import fingerprint sensor keylayouts from marble V14.0.9.0.TMREUXM
Change-Id: I70aaedf6225ac556fee608aa76402c5076cf408e
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 23:22:37 +01:00
Jens Reidel
a0e5dbbc8a sm8450-common: hidl: Add fingerprint extension HAL
Change-Id: I478b2995d5960c37176b476451e6476ba684a196
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 23:22:37 +01:00
Jens Reidel
f9ec3dca24 sm8450-common: rootdir: Set more fingerprint permissions
Change-Id: I864af77ad6da08d5a8b05d13e638b3039619fc4b
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 23:22:37 +01:00
Arian
8185530f07 sm8450-common: Decommonize cit sensors
Change-Id: Ie05151e932c6b99dcb73aa0969119dd84ab27c0a
2024-03-19 23:22:37 +01:00
Arian
9a110f0e9f sm8450-common: Drop goodix_core.ko kernel module
Change-Id: Ia173961285f401417126bd5e8a5f5cc4825aa390
2024-03-19 23:22:37 +01:00
Arian
d16e2b4731 sm8450-common: Patch citsensorservice to work with OSS libdisplayconfig.qti
For some reason xiaomi has duplicated the Init method as ClientImplGet.
(or it gets automatically generated for them due to some other differences?)
However, our OSS libdisplayconfig.qti doesn't provide this symbol, but the
Init method takes the same parameters and seems to be sufficient for
citsensorservice to work.

Change-Id: I26a88eb379b517f147932310de1da51d65a31c6b
2024-03-19 23:22:37 +01:00
Arian
37cc6f3bf4 sm8450-common: Update QtiTelephony and ims from unicorn V816.0.3.0.ULECNXM
Patch to QtiTelephony.apk:
```

Change-Id: I4605252094d9404e1eadbd5f6cdc76a5cae0d1c1
--- a/QtiTelephony/AndroidManifest.xml
+++ b/QtiTelephony/AndroidManifest.xml
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="utf-8" standalone="no"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" android:compileSdkVersion="34" android:compileSdkVersionCodename="14" android:sharedUserId="android.uid.qtiphone" android:singleUser="true" coreApp="true" package="com.qti.phone" platformBuildVersionCode="34" platformBuildVersionName="14">
-    <permission android:name="com.qualcomm.qti.permission.USE_EXT_TELEPHONY_SERVICE" android:protectionLevel="signatureOrSystem"/>
     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
     <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
     <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
@@ -18,7 +17,7 @@
                 <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/>
             </intent-filter>
         </receiver>
-        <service android:exported="true" android:name="com.qti.phone.ExtTelephonyService" android:permission="com.qualcomm.qti.permission.USE_EXT_TELEPHONY_SERVICE"/>
+        <service android:exported="true" android:name="com.qti.phone.ExtTelephonyService"/>
         <service android:exported="false" android:name="com.qti.phone.powerupoptimization.PowerUpOptimizationService"/>
         <service android:exported="false" android:name="com.qti.phone.primarycard.PrimaryCardService"/>
         <activity android:excludeFromRecents="true" android:label="@string/primary_card_selection_dialog_title" android:launchMode="singleTop" android:name="com.qti.phone.primarycard.PrimaryCardSelectionActivity"/>
```

Patch to ims.apk: fb3cbfb458

Change-Id: I8d789ea9f001527409ff03343ee618c1eb805e6c
2024-03-19 23:22:37 +01:00
Arian
3959dbf2b5 sm8450-common: Unpin display blobs
Change-Id: I555279d601afa0c1987056e1016bd84df9d64852
2024-03-19 23:22:37 +01:00
Arian
2080c6119f sm8450-common: Decommonize libQnnHtpAltPrepV69Stub.so
Change-Id: Ia004d75b9dd87e43fa275675f6cf3c021dcc8445
2024-03-19 23:22:37 +01:00