You need the Android SDK Platform-Tools installed on your computer.
Modern phones are encrypted by default. The "key" isn't just a file that can be deleted; the data itself is locked behind the password.
Upon rebooting, you may still see a lock screen. If you do, , and the phone should unlock. Why this rarely works on modern Android download adb shell rm /data/system/gesture.key
In older versions of Android (typically Android 4.4 KitKat and below), the system stored your lock screen pattern information in a specific file located at /data/system/gesture.key .
Samsung owners can often unlock their screen remotely if they have a Samsung account active on the device. You need the Android SDK Platform-Tools installed on
The /data/system/ folder is a protected system directory. Unless your phone is rooted or you are running the command through a custom recovery (like TWRP), the system will deny permission to delete the file. How to execute the command If you meet the requirements, the process looks like this: Connect your phone to your computer via USB. Open a Command Prompt or Terminal in your ADB folder. Verify connection by typing: adb devices
This setting must have been turned on in Developer Options before you were locked out. Upon rebooting, you may still see a lock screen
If you are using , this method will likely fail for several reasons: