Sometimes you find yourself in a situation where you’ve forgotten your pattern lock. Maybe a child handles your phone and continually enters a wrong pattern/code. The phone locks itself out until you enter your Gmail account. We all know the procedure doesn’t work.
The fastest way to get the phone fixed is to format it and lose all data. Below are two ways of bypassing the formatting route:
Command Prompt Method
- Make sure USB Debugging is enabled, then plug your phne to the PC
- On your Windows PC, Go to START-> RUN –>Type CMD –>Enter
- Type the following commands in the command prompt one after the other:
Adb shell
cd/data/data/com.android.prov
iders.settings/
databases sqlite3 settings.db
update system set value=0 where
name=’lock_pattern_autolock’;
update system set value=0 where
name=’lockscreen.lockedout
permanently’;
.quit“
After entering the above commands, Reboot your device. After this, the Lock pattern screen reappears, but this time, it gives you the option of creating a new pattern lock code.
Flashable Zip Method:
For this method to work you need to have ClockWorkMod Recovery installed on your Android device.
- First download the zip from HERE and move it to your SD card.
- Insert the sdcard into your phone.
- Reboot your phone to recovery mode (This can be done by holding down power button and volume up buttons)
- Goto Install Zip option and Flash the zip file.
- Reboot
- Done!
Credit to Kilroy @Xdadevelopers
Will these methods keep the data on the phone intact?
One trick that works too, albeit at the cost of data loss, is to reset the phone from recovery.
Yes your data will remain intact
Well appreciated.However not many like me can go thru this stress.
can i put them all in one line
Is it only patterns, or does it work for passwords and pins as well?