From c0695517bc70bcf05329a8404898d9af07cfc4b1 Mon Sep 17 00:00:00 2001 From: Ilya Matyukhin Date: Fri, 19 Mar 2021 12:36:23 -0700 Subject: [PATCH 1/2] oriole: grant write access to the LHBM node Bug: 182520014 Test: on device Change-Id: I5c23c93ee0aa5fad745bf2344581d07e2e64b01c --- conf/init.oriole.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/init.oriole.rc b/conf/init.oriole.rc index 8425b5a..c3e6976 100644 --- a/conf/init.oriole.rc +++ b/conf/init.oriole.rc @@ -31,6 +31,10 @@ on fs # Start the twoshay touch service start twoshay + # LHBM + # FIXME(b/183223359): Only grant write access to SystemUI. + chmod 0666 /sys/class/drm/card0/card0-DSI-1/panel/backlight/panel0-backlight/local_hbm_mode + # Toggle glove_mode according to touch_sensitivity_mode on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1 write /sys/class/spi_master/spi11/spi11.0/glove_mode 00 From 369d53cb09a8f1aaab06d1c0c280a29eb7086e63 Mon Sep 17 00:00:00 2001 From: Ilya Matyukhin Date: Fri, 19 Mar 2021 12:37:41 -0700 Subject: [PATCH 2/2] raven: grant write access to the LHBM node Bug: 182520014 Test: on device Change-Id: I2de9933f7a7c13a5b278220ca54d3c89c0865f4f --- conf/init.raven.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/init.raven.rc b/conf/init.raven.rc index e7ba699..5f6088b 100644 --- a/conf/init.raven.rc +++ b/conf/init.raven.rc @@ -31,6 +31,10 @@ on fs # Face exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/faceauth.app + # LHBM + # FIXME(b/183223359): Only grant write access to SystemUI. + chmod 0666 /sys/class/drm/card0/card0-DSI-1/panel/backlight/panel0-backlight/local_hbm_mode + on property:mfgapi.touchpanel.permission=1 chmod 0600 /sys/devices/virtual/sec/tsp/cmd chown system system /sys/devices/virtual/sec/tsp/cmd