HOW TO BYPASS ANDROID LOCKSCREEN PATTERN
In this tutorial, i’ll be showing you how to bypass android lockscreen pattern using ADB To reset forgotten password on Android device
NOTE: This will only work if you had USB debugging enabled before you ran into this problem.
Also Read: How to setup adb on windows
How to bypass pattern lock using adb
We’ll need to Delete the Password File on your device with this simple steps

First, connect your phone to your computer with a USB data cable. Then, open a command prompt window in your ADB installation directory. Type the following command, and hit Enter.
? adb shell rm /data/system/gesture.key
Next, reboot your phone and the secure lock screen should be gone, letting you to access your phone. But note that this is only temporary. Therefore, before you reboot again, ensure that you have set a new pattern, PIN, or password for your phone.