Dialog long-press power off lewat terminal emulator
1. Bikin sebuah file script, namanya (misalkan) power.sh, dan taroh di sdcard. isinya :
#!system/bin/sh
sendevent /dev/input/event2 1 116 1
sleep 1
sendevent /dev/input/event2 0 0 0
sleep 1
sendevent /dev/input/event2 1 116 0
sleep 1
sendevent /dev/input/event2 0 0 0
sleep 1
exit
2. Buka terminal emulator dan ketik berikut ini
su[enter]
cd /mnt/sdcard[enter]
sh power.sh
0 komentar