Method 2: Use ADB to Delete the Password File
Easy wahy to unlock your phone lock when you forget your password or pin.
Here is the simple step-by-step guide on how to bypass Android screen lock using ADB:
Step 1 To begin with, connect your device to the system using a USB cable. Next, you need to hold down the letter “R” + “Windows button” at the same time to pop-up the box on your system screen. Now, enter “cmd” in the input field and click on the “Ok” button to open the Command Prompt window.
Step 2 Next, enter the command “adb shell rm /data/system/gesture.key” and then, press Enter.
Step 3 After that, reboot your phone and pattern or password will be removed from your device. Make sure to set up a new pattern or PIN or password before your device reboot again as this is a temporary method to unlock the device.