It sucks when you forget your passwords
But Gmail account can save you. But what for those who don't have it?
There are some methods to reset them
Wiping data being most popular
But, why loosing precious data when there is a easier or easiest to do method
This is a new method found and tested by me on a rooted device but the resources it uses are available to be used without root too, so it may work on unrooted devices too.
This method uses Aroma File Manager by amarullz in Recovery Mode of the device to delete the password database related files. So, it should work on all devices!
*amarullz for Amazing Aroma File Manager
*m.sabra for information about which files are related to passwords and pattern
1. Download Aroma File Manager.
2. Place it in the root of your sdcard(Preferred)
3. Reboot into recovery
4. For CWM:
Mount all partitions (including sd-ext if you have it)
And flash Aroma File Manager from sdcard
For stock recovery(Samsung e3):
In stock recovery, there is no option to mount partitions, so
Flash Aroma File Manager, Click on menu option and go to settings
Select Mount All Partitions
Now, exit from Aroma File Manager and reflash it.
Now, you will see each partition is mounted
5. Now, go to /data/system
Note : If you have sd-ext mod to increase internal storage, go to /sd-ext/system/
6. Now, If you have to remove pattern lock, long press and delete gesture.key
If you want to remove password, delete password.key
7. Exit the Aroma File Manager