How to reset pattern lock when forgotten email

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 do not do hard reset.
Just follow below steps:-

Method:-
[adb shell method](root only)
Steps :
1.Connect ur locked Android  device in pc and open adb shell.
2. Then type the following :

su

rm /data/system/device_policies.xml

rm /data/system/gesture.key

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