#an easy method for unlocking "too many f***ing attempts" locked android device
#THIS IS FOR DEMONSTRATIONAL AND EDUCATIONAL PURPOSES ONLY AND MAY NOT BE USED FOR BAD STUFF BLA BLA BLA
#you will need working ADB (get it in android sdk)
adb shell
su
cd /data/data/com.android.providers.settings/databases
mv settings.db settings.db.old
exit
exit
adb reboot
#this will basically delete all your settings and they will get auto-fixed on the next boot. This is not proven for all phones, but it did work for me on rooted Samsung galaxy mini. Keep in mind that this could f**k up your system and you should only use it to save the data. When you're done you should backup important stuff and reinstall your ROM/ preform a factory reset.