This repository has been archived by the owner. It is now read-only.
Utility script to automate the swiping of a lockscreen pattern on an Android device via ADB.
Branch: master
Clone or download
Pull request Compare This branch is 7 commits ahead of mattwilson1024:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Android pattern unlock

This script sends simulated touch input over ADB for remotely swiping on Android's pattern lockscreen.

This allows you to unlock the device even if the touch screen is broken.


  • You must have USB debugging enabled on your device for this script to work (in the developer options). See the related blog post for help if you did not enable it before breaking the screen.
  • The device does not need to be rooted for this method to work.
  • You need to have adb on your PATH to run this script.
  • Personalize the script to your needs by setting the unlock pattern and the coordinates of each point of the pattern unlock screen


chmod +x