[SQUASH] Revert "LG8n: rootdir: Change init.gesture.sh code"

This reverts commit 70cd3788d3.

Revert "LG8n: rootdir: Add shebang on init.gesture.sh"

This reverts commit 856f196618.

Revert "LG8n: rootdir: call init.gesture.sh on boot"

This reverts commit 5ead707f36.

Revert "LG8n: rootdir: Improve init.gesture.sh to allow dt2w to be turned off"

This reverts commit 9e8121393c.

Revert "LG8n: rootdir: Add init.gesture.sh for fix DT2W"

This reverts commit a865a799ff.
This commit is contained in:
Shirayuki39 2024-08-14 01:57:33 +08:00
parent f5d0d8ae8f
commit 1eba94acbd
4 changed files with 0 additions and 30 deletions

View file

@ -244,7 +244,6 @@ 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 \

View file

@ -101,12 +101,6 @@ 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",

View file

@ -1,14 +0,0 @@
#!/vendor/bin/sh
# Enable DT2W
while [[ -z $(getprop sys.boot_completed) ]]; do sleep 5; done
while true; do
dt2w_state=$(getprop persist.sys.MT6789.dt2w)
if [ "$dt2w_state" == "0" ]; then
echo cc2 > /proc/gesture_function
elif [ "$dt2w_state" == "1" ]; then
echo cc1 > /proc/gesture_function
fi
sleep 1
done

View file

@ -102,12 +102,3 @@ on property:sys.boot_completed=1
write /sys/kernel/tracing/instances/mmstat/events/mmstat/enable 1
write /sys/kernel/tracing/instances/mmstat/tracing_on 1
service gesture_service_sh /vendor/bin/init.gesture.sh
class main
user root
group root system
disabled
oneshot
on property:sys.boot_completed=1
start gesture_service_sh