Skip to content

Commit 42d13d8

Browse files
committed
Android 13
1 parent ff3e113 commit 42d13d8

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

cmd/backtap/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func main() {
112112
} else {
113113
// Top left coordinates
114114
debug("Running TOUCH command")
115-
err = input.TouchUpDown(touchDevice, 50, 125)
115+
err = input.TouchUpDown(touchDevice, 50, 150)
116116
if err != nil {
117117
panic("running touch command: " + err.Error())
118118
}

deploy.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ echo "Building"
22
./build.sh
33

44
echo "Pushing"
5-
adb push -p "backtap" 'sdcard/'
5+
adb push -p "backtap" "sdcard/"
66

77
echo "Install"
8-
# adb shell "su -c \"killall backtap\" || true" || true
98

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"

module/backtap/module.prop

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=backtap
22
name=backtap
3-
version=v2.0
4-
versionCode=00200
3+
version=v3.0
4+
versionCode=00300
55
author=xarantolus
66
description=Enables several gestures when tapping the fingerprint sensor of a Xiaomi Mi Mix 2

module/backtap/service.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# This script runs on boot. Here we can start our service
44
MODDIR=${0%/*}
55

6-
# Log debug message
6+
# Log debug message
77
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
99
fi
1010

1111
# Wait until boot & decryption finished
@@ -20,6 +20,10 @@ pgrep zygote > /dev/null && {
2020
done
2121
}
2222

23+
if [ -f "$MODDIR/DEBUG" ]; then
24+
echo "`date '+%Y/%m/%d %H:%M:%S'` Ready, starting service"
25+
fi
26+
2327
# Make backtap executable in case it isn't
2428
BTPATH="/system/bin/backtap"
2529
chmod +x "$BTPATH"

0 commit comments

Comments
 (0)