From e6d10041e9536960d0064ed8870b4399897913a8 Mon Sep 17 00:00:00 2001 From: Kris Chen Date: Thu, 28 Oct 2021 01:19:32 +0800 Subject: [PATCH] gs201: set permission for UDFPS factory apk to control HBM Bug: 204142361 Test: Perform UDFPS calibration. Change-Id: Ie60ddbea72ebe6c3c3998e7cdb8a5809ec47ffd2 --- conf/init.factory.rc | 11 ----------- conf/init.gs201.rc | 9 +++++++++ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/conf/init.factory.rc b/conf/init.factory.rc index 1eba34c2..42a1ad15 100644 --- a/conf/init.factory.rc +++ b/conf/init.factory.rc @@ -6,17 +6,6 @@ on early-init on init export PATH /product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin:/vendor/bin/factory - # Set UDFPS default calibration to LHBM - setprop persist.vendor.sensors.fingerprint.ghbm 0 - -on post-fs-data - # HBM mode for UDFPS factory apk - chmod 666 /d/dri/0/DSI-1/panel/reg/payload - chmod 666 /d/dri/0/DSI-1/panel/hbm_mode - chmod 666 /sys/class/backlight/panel0-backlight/local_hbm_max_timeout - chmod 666 /sys/class/backlight/panel0-backlight/local_hbm_mode - chmod 666 /sys/class/backlight/panel0-backlight/hbm_mode - on boot # FTM log folder mkdir /data/ftmlog 0775 system system diff --git a/conf/init.gs201.rc b/conf/init.gs201.rc index 948ad8f6..b2c430f8 100644 --- a/conf/init.gs201.rc +++ b/conf/init.gs201.rc @@ -819,3 +819,12 @@ on property:vendor.disable.bcl.control=1 on property:vendor.disable.bcl.control=0 write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 1 + +# UDFPS +on post-fs-data && property:ro.vendor.factory=1 + # HBM mode for UDFPS factory apk + chmod 666 /d/dri/0/DSI-1/panel/reg/payload + chmod 666 /d/dri/0/DSI-1/panel/hbm_mode + chmod 666 /sys/class/backlight/panel0-backlight/local_hbm_max_timeout + chmod 666 /sys/class/backlight/panel0-backlight/local_hbm_mode + chmod 666 /sys/class/backlight/panel0-backlight/hbm_mode