From f73ecea4f5a1cafeb0918ea627a6c69819811c33 Mon Sep 17 00:00:00 2001 From: Rick Chen Date: Fri, 8 Apr 2022 10:53:01 +0800 Subject: [PATCH] Disable hall sensor in factory mode. Bug: 226505523 Test: Set ro.bootmode=factory and see hall sensor is disabled. Signed-off-by: Rick Chen Change-Id: Ic698c1ed9fde777f5686c1597eee2ec7b8952474 --- conf/init.felix.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.felix.rc b/conf/init.felix.rc index a39f977..1328b9f 100644 --- a/conf/init.felix.rc +++ b/conf/init.felix.rc @@ -99,6 +99,9 @@ on late-init on init && property:ro.bootmode=normal write /sys/devices/platform/hall_sensor/enable 0 +on init && property:ro.bootmode=factory + write /sys/devices/platform/hall_sensor/enable 0 + # SecureElement eSE2 cts mode on property:persist.vendor.se.ese2.mode=ctsmode write /sys/class/st33spi/st33spi/st33spi_state 33