File tree 4 files changed +14
-9
lines changed
4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ func main() {
112
112
} else {
113
113
// Top left coordinates
114
114
debug ("Running TOUCH command" )
115
- err = input .TouchUpDown (touchDevice , 50 , 125 )
115
+ err = input .TouchUpDown (touchDevice , 50 , 150 )
116
116
if err != nil {
117
117
panic ("running touch command: " + err .Error ())
118
118
}
Original file line number Diff line number Diff line change @@ -2,10 +2,11 @@ echo "Building"
2
2
./build.sh
3
3
4
4
echo " Pushing"
5
- adb push -p " backtap" ' sdcard/'
5
+ adb push -p " backtap" " sdcard/"
6
6
7
7
echo " Install"
8
- # adb shell "su -c \"killall backtap\" || true" || true
9
8
10
- adb shell su -c " mv /sdcard/backtap /sbin"
11
- adb shell su -c " chmod +x /sbin/backtap"
9
+ adb shell su -c " chmod +x /sdcard/backtap"
10
+
11
+ adb shell su -c " cp /sdcard/backtap /system/bin/backtap.dev"
12
+ adb shell su -c " chmod +x /system/bin/backtap.dev"
Original file line number Diff line number Diff line change 1
1
id=backtap
2
2
name=backtap
3
- version=v2 .0
4
- versionCode=00200
3
+ version=v3 .0
4
+ versionCode=00300
5
5
author=xarantolus
6
6
description=Enables several gestures when tapping the fingerprint sensor of a Xiaomi Mi Mix 2
Original file line number Diff line number Diff line change 3
3
# This script runs on boot. Here we can start our service
4
4
MODDIR=${0%/* }
5
5
6
- # Log debug message
6
+ # Log debug message
7
7
if [ -f " $MODDIR /DEBUG" ]; then
8
- echo " Waiting for user to unlock/decrypt phone" > /cache/backtap.log
8
+ echo " $( date ' +%Y/%m/%d %H:%M:%S ' ) Waiting for user to unlock/decrypt phone" > /cache/backtap.log
9
9
fi
10
10
11
11
# Wait until boot & decryption finished
@@ -20,6 +20,10 @@ pgrep zygote > /dev/null && {
20
20
done
21
21
}
22
22
23
+ if [ -f " $MODDIR /DEBUG" ]; then
24
+ echo " ` date ' +%Y/%m/%d %H:%M:%S' ` Ready, starting service"
25
+ fi
26
+
23
27
# Make backtap executable in case it isn't
24
28
BTPATH=" /system/bin/backtap"
25
29
chmod +x " $BTPATH "
You can’t perform that action at this time.
0 commit comments