Skip to content

Instantly share code, notes, and snippets.

@BCsl
Created October 11, 2016 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BCsl/7578db531ce88ffc48e8d19f1477fb11 to your computer and use it in GitHub Desktop.
Save BCsl/7578db531ce88ffc48e8d19f1477fb11 to your computer and use it in GitHub Desktop.
Adb shell to unlock my Mx4
#!/bin/bash
# power button
adb shell input keyevent 26 &&
adb shell sleep 0.1 &&
# swipe to unlock
adb shell input swipe 655 1774 655 874 &&
adb shell sleep 0.1 &&
# input 2
adb shell input tap 612 726 &&
adb shell sleep 0.1 &&
# input 6
adb shell input tap 813 1000 &&
adb shell sleep 0.1 &&
# input 6
adb shell input tap 813 1000 &&
adb shell sleep 0.1 &&
# input 4
adb shell input tap 255 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment