From 5553dea641bed36f5f7e9ee625378af2ad3b16ca Mon Sep 17 00:00:00 2001 From: basamaryan Date: Sun, 29 Sep 2024 16:24:14 -0400 Subject: [PATCH] sm8350-common: Move to Xiaomi fingerprint AIDL Change-Id: I68dba7184034fd37454c7d32a065f041cb611625 --- common.mk | 2 +- overlay/frameworks/base/core/res/res/values/config.xml | 9 --------- sepolicy/vendor/file_contexts | 2 +- sepolicy/vendor/hal_fingerprint_default.te | 1 + sepolicy/vendor/property_contexts | 1 + vendor.prop | 5 +++++ 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/common.mk b/common.mk index 80ae206..aefb24f 100644 --- a/common.mk +++ b/common.mk @@ -160,7 +160,7 @@ PRODUCT_PACKAGES += \ # Fingerprint PRODUCT_PACKAGES += \ - android.hardware.biometrics.fingerprint@2.3-service.xiaomi + android.hardware.biometrics.fingerprint-service.xiaomi PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 6449178..c0a8b38 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -196,15 +196,6 @@ true - - - - 0:2:15 - - "/system/framework/framework.jar" diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index b8914e5..7cf0d85 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -52,7 +52,7 @@ /data/vendor/fpc(/.*)? u:object_r:fingerprint_vendor_data_file:s0 /data/vendor/fpdump(/.*)? u:object_r:fingerprint_vendor_data_file:s0 /data/vendor/goodix(/.*)? u:object_r:fingerprint_vendor_data_file:s0 -/vendor/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.3-service\.xiaomi u:object_r:hal_fingerprint_default_exec:s0 +/vendor/bin/hw/android\.hardware\.biometrics\.fingerprint-service\.xiaomi u:object_r:hal_fingerprint_default_exec:s0 /sys/devices/platform/soc/soc:qcom,dsi-display-primary/fod_hbm u:object_r:vendor_sysfs_udfps:s0 /sys/devices/platform/soc/soc:qcom,dsi-display-primary/fod_ui u:object_r:vendor_sysfs_udfps:s0 /sys/devices/virtual/touch/tp_dev/fod_status u:object_r:vendor_sysfs_udfps:s0 diff --git a/sepolicy/vendor/hal_fingerprint_default.te b/sepolicy/vendor/hal_fingerprint_default.te index 6670be8..608d4d0 100644 --- a/sepolicy/vendor/hal_fingerprint_default.te +++ b/sepolicy/vendor/hal_fingerprint_default.te @@ -13,6 +13,7 @@ allow hal_fingerprint_default vendor_hal_perf_hwservice:hwservice_manager find; allow hal_fingerprint_default self:netlink_socket create_socket_perms_no_ioctl; # Props +get_prop(hal_fingerprint_default, vendor_fp_prop) set_prop(hal_fingerprint_default, vendor_fp_prop) set_prop(hal_fingerprint_default, vendor_fp_info_prop) diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index 49237b4..c4d9e57 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -3,6 +3,7 @@ vendor.camera.sensor. u:object_r:vendor_camera_sensor_prop:s0 ro.boot.camera.config u:object_r:vendor_camera_sensor_prop:s0 # Fingerprint +persist.vendor.fingerprint. u:object_r:vendor_fp_prop:s0 persist.vendor.sys.fp. u:object_r:vendor_fp_prop:s0 persist.vendor.sys.fp.info u:object_r:vendor_fp_info_prop:s0 persist.vendor.sys.fp.uid u:object_r:vendor_fp_info_prop:s0 diff --git a/vendor.prop b/vendor.prop index 8fd789e..30d41e0 100644 --- a/vendor.prop +++ b/vendor.prop @@ -162,6 +162,11 @@ persist.vendor.dpm.idletimer.mode=default persist.vendor.dpm.nsrm.bkg.evt=3955 persist.vendor.dpmhalservice.enable=1 +# Fingerprint +persist.vendor.fingerprint.type=side +persist.vendor.fingerprint.sensor_location=1080|960|200|local:4630946480857061762 +persist.vendor.fingerprint.sensor_modules=fpc,goodix + # FRP ro.frp.pst=/dev/block/bootdevice/by-name/frp