aboutsummaryrefslogtreecommitdiff
path: root/rootdir/etc/init.qcom.rc
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2019-05-10 21:25:31 +0200
committerDavide Garberi <dade.garberi@gmail.com>2019-05-10 23:26:10 +0200
commitc3d328b6be521feff20f9d10f755716d4d639cc7 (patch)
treee4ff8fa2805d9349181c7cdf976f2ed5f3e01e77 /rootdir/etc/init.qcom.rc
parente95cf897590b5ab6b25ac286e8baf6eaec9dd297 (diff)
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
Diffstat (limited to 'rootdir/etc/init.qcom.rc')
-rw-r--r--rootdir/etc/init.qcom.rc2
1 files changed, 2 insertions, 0 deletions
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