mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-25 23:16:26 -08:00
[SQUASH] Revert "LG8n: rootdir: Change init.gesture.sh code"
This reverts commit70cd3788d3
. Revert "LG8n: rootdir: Add shebang on init.gesture.sh" This reverts commit856f196618
. Revert "LG8n: rootdir: call init.gesture.sh on boot" This reverts commit5ead707f36
. Revert "LG8n: rootdir: Improve init.gesture.sh to allow dt2w to be turned off" This reverts commit9e8121393c
. Revert "LG8n: rootdir: Add init.gesture.sh for fix DT2W" This reverts commita865a799ff
.
This commit is contained in:
parent
f5d0d8ae8f
commit
1eba94acbd
|
@ -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 \
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue