R: [GUIDA] [editing] TOUCH GESTURE script
Quote:
Originariamente inviato da
mythra
ciao, se indichi cosa non funge e che procedimento hai usato, possiamo aiutarti meglio...
Ciao ho inserito le coordinate della L scritte sopra al posto delle coordinate della gesture 7 già presente ma non va faccio qualunque L ma non simula il tasto power
Inviato dal mio GT-I9100 con Tapatalk 2
R: [GUIDA] [editing] TOUCH GESTURE script
Quote:
Originariamente inviato da
mythra
ciao puoi postare il tuo script completo?
P.S.
ma la modifica l'hai fatta da PC o direttamente da S2?
Si ecco lo script fatto da pc:
#!/sbin/busybox sh
#
# Sample touch gesture actions by Tungstwenty
# Visit the thread at: http://forum.xda-developers.com/show....php?t=1831254
#
echo "
# Gesture 7 - 1 finger draws an X starting at the top left
10:1:(0|150,0|200) # top left
10:1:(0|150,600|800) # bottom left
10:1:(330|480,600|800) # bottom right
" > /sys/devices/virtual/misc/touch_gestures/gesture_patterns
# Detect ICS or JB - bluetooth calls are different
case "`getprop ro.build.version.release`" in
4.1.* ) is_jb=1;;
* ) is_jb=0;;
esac
( while [ 1 ]
do
GESTURE=`cat /sys/devices/virtual/misc/touch_gestures/wait_for_gesture`
elif [ "$GESTURE" == "7" ]; then
# Simulate key press - Power
# 26 = Power
# 3 = Home
# 24/25 = Volume up/down
# 85 = Media Play / pause
# 86 = Media stop
# 87/88 = Media next / previous
# 164 = Volume mute / unmute
# 187 = Recent apps
input keyevent 26
fi;
done ) > /dev/null 2>&1 &
Inviato dal mio GT-I9100 con Tapatalk 2