From a865a799ffd83dc13c5dbaadcf325281fe65c94f Mon Sep 17 00:00:00 2001 From: fjrXTR Date: Tue, 13 Aug 2024 19:41:22 +0800 Subject: [PATCH] LG8n: rootdir: Add init.gesture.sh for fix DT2W * idk why after using the powerhint method dt2w doesn't work, so we tried to use the sh scripts method. hopefully it works lol Signed-off-by: fjrXTR Signed-off-by: Shirayuki39 --- device.mk | 1 + rootdir/Android.bp | 6 ++++++ rootdir/bin/init.gesture.sh | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 rootdir/bin/init.gesture.sh diff --git a/device.mk b/device.mk index 1e04e34..0df809c 100644 --- a/device.mk +++ b/device.mk @@ -240,6 +240,7 @@ PRODUCT_PACKAGES += \ init.cgroup.rc \ init.connectivity.common.rc \ init.connectivity.rc \ + init.gesture.sh \ init.insmod.sh \ init.insmod.mt6789.cfg \ init.modem.rc \ diff --git a/rootdir/Android.bp b/rootdir/Android.bp index 09166e9..d2f17dd 100644 --- a/rootdir/Android.bp +++ b/rootdir/Android.bp @@ -101,6 +101,12 @@ prebuilt_etc { vendor: true } +sh_binary { + name: "init.gesture.sh", + src: "bin/init.gesture.sh", + vendor: true +} + sh_binary { name: "init.insmod.sh", src: "bin/init.insmod.sh", diff --git a/rootdir/bin/init.gesture.sh b/rootdir/bin/init.gesture.sh new file mode 100644 index 0000000..1eac66b --- /dev/null +++ b/rootdir/bin/init.gesture.sh @@ -0,0 +1,2 @@ +# Enable DT2W +echo cc1 > /proc/gesture_function \ No newline at end of file