Tuesday, September 9

How To Remove Pattern Lock From Your Android Without Data Loss (Hard Reset)

Have you ever face a situation when you forgot your pattern lock and you have to wipe out all data for recovering from that problem?

Many android users stuck at pattern lock screen when they enter pattern in wrong way for 20 times,the real problem begins when they have data/wifi connection turned off and not able to login through gmail.

There are methods available for hard reset on internet for all devices,which solves the problem but not in the way any user would like,in fact this hard reset method also delete all user data from device including contacts,images*,videos* (* if they resides in internal storage).




Now no need to factory reset your device each time you forgot your pattern lock.this method is related with android ADB (Android Debug Bridge).

Today we will share a technique that let you solve the problem without factory reset,though the same thing but its better to say without losing any data from your device.


for this method you need to download USB drives for your device first,
search the term "USB DRIVERS FOR [Your Device Name]" on Google.

Install Downloaded USB driver on your computer.Windows 7/8 is recommended.

it should work on android,if its not working then do hard reset.

follow the procedure below.
  • First of all you need to download adb/fasboot toolkit from here.Download here
  • extract the zip file downloaded in above step.
  • Now press shift-key and right click on blank space and select 'open command prompt here' as shown below.for xp users open cmd from program and change directory to same where you downloaded adb/fastboot toolkit.

  • Now write command adb devices and execute command
  • If your device listed after this command then move ahead otherwise try to install your USB device drivers again.
  • After your device gets connected execute below 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
exit
adb reboot
  • if this works then cheers,if not execute below command
adb shell
cd /data/data/com.android.providers.settings/databases
sqlite3 settings.db
update secure set value=0 where name='lock_pattern_autolock';
update secure set value=0 where name='lockscreen.lockedoutpermanently';
.quit
exit
adb reboot


this is how the command line interface would look like


  • This will reboot your device and hope that your pattern lockscreen has gone away.
  • If both of the above commands doesn't work then don't worry we still have one more :D
adb shell rm /data/system/gesture.key
(gesture.key if you have pattern lock,for password based lock screen password.key instead of gesture.key)
  • Reboot your device
  • This code will not remove the pattern but you will be able to enter any pattern for unlock your device after execution of this code correctly.

Hope it will work for your device.

CAUTION:THIS IS FOR EDUCATIONAL PURPOSE ONLY

Tested on Micromax A54,A57,A58

If it doesn't work for you,you can try hard reset or Aroma zip file manager if your device is rooted and have cwm recovery.

for hard reset each device has its own hard reset procedure,Google term "HARD RESET FOR [Your Device Name]" for your device's hard reset code.

Comment if you are facing any problem with guide.








No comments:

Post a Comment