From 36603afb7fd2cbd37cf078234ce885f30a20b958 Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Tue, 2 Apr 2024 12:09:39 +0900 Subject: [PATCH] universal7885: Switch to AIDL fingerprint HAL - Also cleanup overlays --- .../base/core/res/res/values/config.xml | 23 ---------------- .../base/core/res/res/values/config.xml | 20 -------------- .../base/core/res/res/values/config.xml | 16 ------------ .../base/core/res/res/values/config.xml | 19 -------------- .../base/core/res/res/values/config.xml | 26 ------------------- a30s/vendor.prop | 7 +++++ .../base/core/res/res/values/config.xml | 20 -------------- universal7885-common/universal7885-common.mk | 2 +- universal7885-common/vendor.prop | 4 +++ 9 files changed, 12 insertions(+), 125 deletions(-) diff --git a/a10/overlay/frameworks/base/core/res/res/values/config.xml b/a10/overlay/frameworks/base/core/res/res/values/config.xml index 533568e..d419772 100644 --- a/a10/overlay/frameworks/base/core/res/res/values/config.xml +++ b/a10/overlay/frameworks/base/core/res/res/values/config.xml @@ -35,27 +35,4 @@ --> M62,0l-3.8,0l-3.9,0.2l-3.9,0.4l-4,0.8l-3.9,1.2l-3.8,1.6l-3.7,2l-3.4,2.4l-3.1,2.8l-2.9,3l-2.7,3.1l-2.6,3.1 l-2.7,2.8C12.5,28,6.2,30.3,0,30.3c-6.3,0-12.5-2.3-17.5-6.8l-2.7-2.8l-2.6-3.1l-2.7-3.1l-2.9-3l-3.2-2.8 L-35,6.2l-3.7-2l-3.8-1.6l-3.9-1.2l-4-0.8L-54.3,0.2L-58.2,0L-62,0Z @dp @*android:string/config_mainBuiltInDisplayCutout - - false - true - false - false - false - true - - - 0:2:15 - - - - 4 - - true - - true - - 2 diff --git a/a20/overlay/frameworks/base/core/res/res/values/config.xml b/a20/overlay/frameworks/base/core/res/res/values/config.xml index 6c4bbc8..aefd788 100644 --- a/a20/overlay/frameworks/base/core/res/res/values/config.xml +++ b/a20/overlay/frameworks/base/core/res/res/values/config.xml @@ -35,27 +35,7 @@ --> M 0,0 H -22.42857142857143 V 30.85714285714286 H 22.42857142857143 V 0 H 0 Z @dp @*android:string/config_mainBuiltInDisplayCutout - - false true - false - false true true - - - 0:2:15 - - - - 4 - - true - - true - - 2 diff --git a/a20e/overlay/frameworks/base/core/res/res/values/config.xml b/a20e/overlay/frameworks/base/core/res/res/values/config.xml index c62ff96..bdd86d1 100644 --- a/a20e/overlay/frameworks/base/core/res/res/values/config.xml +++ b/a20e/overlay/frameworks/base/core/res/res/values/config.xml @@ -1,21 +1,5 @@ - false true - false M 0,0 H -22.42857142857143 V 30.85714285714286 H 22.42857142857143 V 0 H 0 Z @dp @*android:string/config_mainBuiltInDisplayCutout - false - false - - - 0:2:15 - - - - 4 - - true diff --git a/a30/overlay/frameworks/base/core/res/res/values/config.xml b/a30/overlay/frameworks/base/core/res/res/values/config.xml index 0bf7342..5d041dd 100644 --- a/a30/overlay/frameworks/base/core/res/res/values/config.xml +++ b/a30/overlay/frameworks/base/core/res/res/values/config.xml @@ -36,10 +36,7 @@ M 0,0 H -67.42857142857143 V 30.85714285714286 H 67.42857142857143 V 0 H 0 Z @dp @*android:string/config_mainBuiltInDisplayCutout - false true - false - false true true com.samsung.sensor.physical_light - - - 0:2:15 - - true - - 4 - - true - - true - - 2 diff --git a/a30s/overlay/frameworks/base/core/res/res/values/config.xml b/a30s/overlay/frameworks/base/core/res/res/values/config.xml index 9f1f7e7..98bc3ed 100644 --- a/a30s/overlay/frameworks/base/core/res/res/values/config.xml +++ b/a30s/overlay/frameworks/base/core/res/res/values/config.xml @@ -35,11 +35,7 @@ --> M 0,0 H -67.42857142857143 V 30.85714285714286 H 67.42857142857143 V 0 H 0 Z @dp @*android:string/config_mainBuiltInDisplayCutout - - false true - false - false true true com.samsung.sensor.physical_light - - - 0:2:15 - - - - 4 - - true - - true - - 2 true - - - 540 - 2145 - 114 - diff --git a/a30s/vendor.prop b/a30s/vendor.prop index 4d063be..4220aa1 100644 --- a/a30s/vendor.prop +++ b/a30s/vendor.prop @@ -1,2 +1,9 @@ ## Bluetooth bluetooth.device.default_name=Galaxy A30s + +# Fingerprint +ro.vendor.fingerprint.force_calibrate=true +ro.vendor.fingerprint.supports_gestures=false +ro.vendor.fingerprint.type=udfps +ro.vendor.fingerprint.sensor_location=540|2145|114 +ro.vendor.fingerprint.request_touch_event=true diff --git a/a40/overlay/frameworks/base/core/res/res/values/config.xml b/a40/overlay/frameworks/base/core/res/res/values/config.xml index de0579f..98bc3ed 100644 --- a/a40/overlay/frameworks/base/core/res/res/values/config.xml +++ b/a40/overlay/frameworks/base/core/res/res/values/config.xml @@ -35,11 +35,7 @@ --> M 0,0 H -67.42857142857143 V 30.85714285714286 H 67.42857142857143 V 0 H 0 Z @dp @*android:string/config_mainBuiltInDisplayCutout - - false true - false - false true true com.samsung.sensor.physical_light - - - 0:2:15 - - - - 4 - - true - - true - - 2 true diff --git a/universal7885-common/universal7885-common.mk b/universal7885-common/universal7885-common.mk index 1cc2146..9ed0762 100644 --- a/universal7885-common/universal7885-common.mk +++ b/universal7885-common/universal7885-common.mk @@ -128,7 +128,7 @@ PRODUCT_PACKAGES += \ TARGET_BOARD_HAS_FP ?= true ifeq ($(TARGET_BOARD_HAS_FP), true) PRODUCT_PACKAGES += \ - android.hardware.biometrics.fingerprint@2.3-service.samsung + android.hardware.biometrics.fingerprint-service.samsung endif # Gatekeeper diff --git a/universal7885-common/vendor.prop b/universal7885-common/vendor.prop index 21aa70c..4561f07 100644 --- a/universal7885-common/vendor.prop +++ b/universal7885-common/vendor.prop @@ -59,3 +59,7 @@ ro.config.vc_call_vol_steps=8 ro.vendor.vibrator_hal.click_duration=75 ro.vendor.vibrator_hal.tick_duration=65 ro.vendor.vibrator_hal.texture_tick_duration=60 + +# Fingerprint +ro.vendor.fingerprint.type?=rear +ro.vendor.fingerprint.supports_gestures?=true