diff --git a/init/init.mmi.overlay.rc b/init/init.mmi.overlay.rc index 3a02551..edef0ef 100644 --- a/init/init.mmi.overlay.rc +++ b/init/init.mmi.overlay.rc @@ -1,14 +1,13 @@ -on post-fs - # "Tap to wake" gesture - chown root input /sys/class/sensors/dt-gesture/enable - chmod 0660 /sys/class/sensors/dt-gesture/enable - chown root input /sys/class/sensors/dt-gesture/poll_delay - chmod 0660 /sys/class/sensors/dt-gesture/poll_delay - on post-fs chown system system /sys/devices/platform/soc/4804000.ufshc/clkgate_enable chown system system /sys/devices/platform/soc/4804000.ufshc/devfreq/4804000.ufshc/min_freq + # Sensors + chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_enabled + chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_pressed + chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_enabled + chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_pressed + on post-fs-data chown system system /sys/devices/platform/soc/soc:fm_wcn39x0/elna_en diff --git a/sensors/Sensor.h b/sensors/Sensor.h index 4bc0676..f85a892 100644 --- a/sensors/Sensor.h +++ b/sensors/Sensor.h @@ -120,7 +120,7 @@ class SysfsPollingOneShotSensor : public OneShotSensor { int mPollFd; }; -const std::string kTsPath = "/sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/primary/"; +const std::string kTsPath = "/sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/"; const std::string kTsDoubleTapPressedPath = kTsPath + "double_tap_pressed"; const std::string kTsDoubleTapEnabledPath = kTsPath + "double_tap_enabled";