Nowadays we have to remember a lot of passwords, with the consequence that we often forget a few. Fortunately, there are recovery methods, but in the particular case of Android there are more ways in case we should forget the pin, the sequence or whatever it is of our lock screen.
Usually it is sufficient to restore the password via Google account or in the worst case with a full wipe, but in reality it is possible to restore - or rather eliminate - the password, or the blocking code in more ways: through the app, ADB, recovery ..
This is a double-edged sword, as it makes us understand how easy it is to access any terminal regardless of whether it has an easy or fairly complicated passcode. So this could be a very useful guide in case we forget our password but at the same time malicious if the terminal falls into the wrong hands.
Below I will list seven methods reported on the XDA forum. These have not been personally tested, furthermore it is possible that one method works on certain terminals and on others not. If no one works, it will then be necessary to proceed with a wipe.
- If you still find the lock / pin / password sequence on reboot, enter any combination
- If none of these methods work, a full wipe is required;
- Active USB debugging is required, in some cases even ROOT
Here are the methods to bypass the Android lockscreen
Solution via Recovery
- Download Pattern Password Disable | Download
- Copy the file to your phone
- Restart the terminal in recovery mode
- flash the file and restart
Solution via ADB
- Install ADB (if not installed); on Ubuntu execute the line:
sudo apt-get install android-tools-adb
- connect the terminal to the PC and start a terminal
- execute the following commands
adb devices adb shell cd data / system on rm * .key
UPDATE: The following is the case of Marco which used this method using recovery, since it could not activate usb debugging due to the password. (Root permissions enabled, Galaxy S3 device)
- from cell. off press together Vol up + Home + power button to enter recovery (I have the PhilZ Touch 6 recovery
- connect usb cable to the p
- proceed with the 2 method ignoring any error with the "su" command (as happened to me) that says this: "/ sbin / sh: su: not found" and continue with the following instructions
- once the cell has restarted. accepts any combination of gestures
Solution via SMS (only as a precaution, if the phone is already locked choose another method)
- Download and install the application | Download
- Give the ROOT permissions
- Set a different pin from the preset one (1234)
- Send a message from another phone to unlock, as follows:
reset code (1234 reset for example)
- The phone will restart
Solution via ADB - SQL
- Through terminal, execute the following commands
adb shell cd /data/data/com.android.providers.settings/databases sqlite3 settings.db update system set value = 0 where name = 'lock_pattern_autolock'; update system set value = 0 where name = 'lockscreen.lockedoutpermanently'; .Quit
Solution via ADB - file removal
- Connect the phone and open a terminal
adb shell rm /data/system/gesture.key
Solution via USB debugging
[Will update in the future]
Solution via Recovery
- Download and copy on your phone Aroma file manager.zip | Download
- Start the phone in recovery
- Using the "mount" option, mount everything
- Then flashate the aromafilemanager.zip file
- After installation, aromafilemanager will start, use the volume rocker to move and the power button to select, as with the recovery
- Go to "Menu", then to "Settings"
- At the bottom, select "mount all partition in startup", then exit from aromafilemanager
- After closing the aroma, flash it again and it will start again
- Move to "Data", then to "System"
- Find yourself now gesture.key (for the sequence) or password.key (for the password). Tap extended on one of these, then select "delete"
And do you know any other method?