From c3d328b6be521feff20f9d10f755716d4d639cc7 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Fri, 10 May 2019 21:25:31 +0200 Subject: msm8996-common: pocketmode: Allow control over PocketMode service * Once the service is running, proximity sensor is constantly active when the display is turned off, resulting into a residual increase in battery consumption. Add a toggle so that users can decide whether they accept that and prefer to prevent accidental wake-ups triggered by the fingerprint sensor. * Keep the receiver that listens for the screen status registered only if the fingerprint wake-up feature is enabled at the same time as the accidental wake-up prevention feature. * Set PocketMode as a required module of ConfigPanel, to make sure it is only shipped on devices building the latter. * The configpanel part is integrated in b07a633bdeda835867aa3dc5a033529d7bd712dc Change-Id: Icfa23d2aef971e368476b6f1f7612493c2b69a20 --- rootdir/etc/init.qcom.rc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 2b4e5f8..66b14d4 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -242,6 +242,8 @@ on boot chmod 0660 /sys/devices/soc/soc:fpc1020/screen chmod 0660 /sys/devices/soc/soc:fpc1020/proximity_state chown system system /sys/devices/soc/soc:fpc1020/proximity_state + chmod 0660 /sys/devices/soc/soc:fpc1020/enable_wakeup + chown system system /sys/devices/soc/soc:fpc1020/enable_wakeup # Access permission for secure touch chmod 0660 /sys/devices/soc/75ba000.i2c/i2c-12/12-0020/secure_touch_enable -- cgit v1.2.3