How to reset pattern lock in Android when forgotten


 
Friends, here is a very important trick for your android phone.
If you've an android phone and u have forget your pattern lock and email than don't need to hard reset.
Just follow below steps:-

Method: [adb shell method](root only)
Steps :
  • Connect ur locked Android  device in pc and open adb shell.
  • Then type the following :
su
rm /data/system/device_policies.xml
rm /data/system/gesture.key

  • Then restart the device.
Now u can unlock your device with any pattern and then in Settings u can change lock setting.