Skip to content
This repository
tree: 265ac1b8af
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (13 sloc) 0.522 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# p2p-adb
# https://github.com/kosborn/p2p-adb/
# @theKos
# kyle@kyleosborn.com


echo $ISROOT

if [ $ISROOT -le 1 ]; then
DATAPATH="/data/system/gesture.key"
TEST=$(adb shell "su -c '/data/local/tmp/busybox hexdump -C /data/system/gesture.key' | /data/local/tmp/busybox sed 's/00000000//g'|/data/local/tmp/busybox head -n 1|/data/local/tmp/busybox sed 's/ //g' |/data/local/tmp/busybox sed 's/|.*//g'"|head -c 30)
echo "The gesture is: "
grep $TEST includes/gesture_hash.txt|awk {'print $1'}
else
echo $ISROOT
fi
Something went wrong with that request. Please try again.