i'm using redmi note 3 sd pro
androd version 7.1 (cm14.1 unoffical)
recovery : twrp 3.2.2 offical
I forgot my pattern for my phone and it doesn't ask me for my gmail password after failed attempts.
then i reboot to recovery and Open file explorer >>data >> system “password.key” i delete that and reboot my phone it worked phone have no lock. but now i can't set password( finger print too) in my phone it closing automatically .....any solutions
without erasing anything......
did you delete all the .key files and the locksettings (3 of them) files? I usually delete all 5 of them.
No only one pattern
Titanium backup for apps+data and Nandroid Manager for restore, from previous Nandroid, calls, sms, wifi points, bluetoth,etc.
[email protected] said:
No only one pattern
Click to expand...
Click to collapse
try deleting those files i mentioned. There's a total of 5 files. I've done this numerous times and there's no horrible repercussions other than having to set the lockscreen security again.
goofball2k said:
try deleting those files i mentioned. There's a total of 5 files. I've done this numerous times and there's no horrible repercussions other than having to set the lockscreen security again.
Click to expand...
Click to collapse
Can please describe the files names
[email protected] said:
Can please describe the files names
Click to expand...
Click to collapse
locksettings.db
locksettings.db-wal
locksettings.db-shm
gatekeeper.password.key
gatekeeper.pattern.key
Related
I have a silly problem, I had freshly installed the unofficial CM14.x and between all the new settings forgot the Lockscreen pattern. Since i didn't want to try factory reset and other solutions without data loss didn't wird, I searched a bit and erasted the /data/system/gatekeeper.pattern.key via ADB ! It actually helped passing through lockscreen, but now I can't set any new lock (none of the options tough) / I can't go to the option… I get dropped out with an error…
What can I do??
roshak said:
What can I do??
Click to expand...
Click to collapse
Open thread in right section.
CheckYourScreen said:
Open thread in right section.
Click to expand...
Click to collapse
Well, I guessed that users in the Q&A/Troubleshoot section wouldn't have much clue about manipulating Android's /data/system/. . . files and apparently I was true! No reply since 3-4 days
roshak said:
Well, I guessed that users in the Q&A/Troubleshoot section wouldn't have much clue about manipulating Android's /data/system/. . . files and apparently I was true! No reply since 3-4 days
Click to expand...
Click to collapse
Chill.
You able to access your files and data?
Just open settings and change the screen lock to "none" or "swipe", then select pin/password and set your own.
It should fix it.
If it doesnt then make a backup of your data and clean flash stock rom by wiping system,cache and data (not internal sd).
CheckYourScreen said:
Chill.
You able to access your files and data?
Just open settings and change the screen lock to "none" or "swipe", then select pin/password and set your own.
It should fix it.
If it doesnt then make a backup of your data and clean flash stock rom by wiping system,cache and data (not internal sd).
Click to expand...
Click to collapse
Says right in the in original post that he can't set any new lock with any of the options, it just crashes. I think he's got not choice but a re-flash.
As @Tanner1294 noticed. I can't change the locksreen options anymore and that's the problem (I can't use the device without lock! But I wouldn't)
backing up data may work or maybe not, because the missing files could be under data… But I'll give it a try.
I don't know why I couldn't replace the screen password via Google Device Manager… The device was recognised and the pass and message has been sent to it, but i couldn't interact with it at all! only "emergency call" was touchable If it's an issue in Android 7.x or CM14.x dunnow
Maybe dirty flashing the ROM again will help
mcmarius said:
Maybe dirty flashing the ROM again will help
Click to expand...
Click to collapse
didn't work!
roshak said:
As @Tanner1294 noticed. I can't change the locksreen options anymore and that's the problem (I can't use the device without lock! But I wouldn't)
backing up data may work or maybe not, because the missing files could be under data… But I'll give it a try.
I don't know why I couldn't replace the screen password via Google Device Manager… The device was recognised and the pass and message has been sent to it, but i couldn't interact with it at all! only "emergency call" was touchable If it's an issue in Android 7.x or CM14.x dunnow
Click to expand...
Click to collapse
Make a backup of contacts,sms, apps(or just download from playstore) or use titanium backup if you want app data also.
And clean flash rom.
Forget everything and clean flash after making backup.
That file is related to system and has to be present in /data/system/ so will remain excluded from backups you make.
Make sure you clean flash rom.
CheckYourScreen said:
Make a backup of contacts,sms, apps(or just download from playstore) or use titanium backup if you want app data also.
And clean flash rom. . .
Click to expand...
Click to collapse
If I only knew how I can re-install my selection of apps straightforward, I wouldn't hesitate about clean flash; I don't worry about my files, contacts etc.
I'll try to figure out, how Titanium Backup works… Thanks for advice
The problem is now solved without reflashing etc.
I just had to know which other files need to be removed in addition to /data/system/gatekeeper.pattern.key
they were locksettings.db locksettings.db-wal locksettings.db-shm from the same directory!
So i removed them, whatever they may contain
then rebooted to system and everything was on the rail, i could pick a lockscreen method again.
PS: I haven't imagined that havong debugging mode enabled could make an Android system so unsecure though!
roshak said:
If I only knew how I can re-install my selection of apps straightforward, I wouldn't hesitate about clean flash; I don't worry about my files, contacts etc.
I'll try to figure out, how Titanium Backup works… Thanks for advice
Click to expand...
Click to collapse
Titanium backup is godly makes transitioning between ROMs a breeze like you never left your setup. In TB app top right corner is a blank page with check mark on it. In there you can backup/restore large chunks of apps and data. After a fresh install rooted first thing install is TB and got to that section restore and choose what you want from backup. System apps can be backup also but will find some won't work on other ROMs. Regular apps will have no such issues. There is also TB sms backup. To use that you must set TB as default sms app. Restore sms then revert back to regular sms app and open. There all your messages will be restored.
roshak said:
The problem is now solved without reflashing etc.
I just had to know which other files need to be removed in addition to /data/system/gatekeeper.pattern.key
they were locksettings.db locksettings.db-wal locksettings.db-shm from the same directory!
So i removed them, whatever they may contain
then rebooted to system and everything was on the rail, i could pick a lockscreen method again.
PS: I haven't imagined that havong debugging mode enabled could make an Android system so unsecure though!
Click to expand...
Click to collapse
You shouldn't delete " /data/system/gatekeeper.pattern.key" as "locksettings.db locksettings.db-wal locksettings.db-shm" contain your lock screen pattern. So to remove pattern just delete these files. Android device manager won't work if it reads that your device has already a pattern/PIN enabled. I guess it worked a while ago on password protected devices as well but not anymore.
EDIT: Sry for the trouble, i just reinstalled it again. this time using Format Data in TWRP and it worked.
so i have the snapdragon xiaomi Redmi note 3, and i did the offical bootlocker.
after that worked, i installed twrp using this guide https://forum.xda-developers.com/redmi-note-3/how-to/zcx-twrp-install-twrp-flash-supersu-t3462448
so far so good.
i chose this ROM https://forum.xda-developers.com/redmi-note-3/development/rom-aospextended-rom-v1-2-t3506955
and installed it using the GApps(ARM64) for 7.1 ofcourse.
but when i reboot my phone it says To start Android, enter your password.
i read about it online and it says either it was your password(my phone wasnt locked, only swipe to unlock) OR use your Google account to open, but i didn't have Google accounts logged in the device(it is brand new, only MI account but that password didn't work).
So i tried to perform factory reset using TWRP (Wipe->Data), that didn't work.
SO i re-installed the new ROM+GApps thinking it will fix it, still same error.
anyone got a solution?
PIC:
http://imgur.com/a/tiKnJ
ty for everyone that helps
555satan said:
anyone got a solution?
Click to expand...
Click to collapse
Boot into TWRP. Mount /system, then go to filemanager and delete the following files inside /data/system (just delete the ones that are there, I think all 5):
gatekeeper.password.key
gatekeeper.pattern.key
locksettings.db-wal
locksettings.db-shm
locksettings.db
Then reboot, it should work, let me know (or thank me if it works)
I can really help you.
Now you conform me that your device is working or not
Boot into Twrp and under Wipe you`ll find FORMAT DATA, not wipe data.. Format the data and the rom will boot . Note that you`ll lose everything from you phone, so it`s good to save files on pc before, if you have something important..
Robin>Hood said:
Boot into TWRP. Mount /system, then go to filemanager and delete the following files inside /data/system (just delete the ones that are there, I think all 5):
gatekeeper.password.key
gatekeeper.pattern.key
locksettings.db-wal
locksettings.db-shm
locksettings.db
Then reboot, it should work, let me know (or thank me if it works)
Click to expand...
Click to collapse
Sadly it doesn't work :crying:
Did you have password/pin protection enabled? I had a similar issue, and I entered TWRP, and used the in-app file explorer. I went to the data/system folder and deleted all the *.key files. Then I rebooted my phone and everything was there! Hope it helps you!
PS: I was having a hard time, after having formatted my system, in order to install AOSP 8.0.0, and trying to restore my MIUI backup ....
Guys, sorry to hijack the post, but can this be solved by using LazyFlasher? Hope someone can help. Thanks.
Op_Flashpoint said:
Guys, sorry to hijack the post, but can this be solved by using LazyFlasher? Hope someone can help. Thanks.
Click to expand...
Click to collapse
didn't help
Yes Formatting Data under wipe section works
Robin>Hood said:
Boot into TWRP. Mount /system, then go to filemanager and delete the following files inside /data/system (just delete the ones that are there, I think all 5):
gatekeeper.password.key
gatekeeper.pattern.key
locksettings.db-wal
locksettings.db-shm
locksettings.db
Then reboot, it should work, let me know (or thank me if it works)
Click to expand...
Click to collapse
Is it inside of any other folder or in system
cristiandiaconu6 said:
Boot into Twrp and under Wipe you`ll find FORMAT DATA, not wipe data.. Format the data and the rom will boot . Note that you`ll lose everything from you phone, so it`s good to save files on pc before, if you have something important..
Click to expand...
Click to collapse
thanks, it was work on my vince when i tried install AOSP Ext
Hitagi End said:
thanks, it was work on my vince when i tried install AOSP Ext
Click to expand...
Click to collapse
did you format data after installing the rom or before that?
mona356 said:
did you format data after installing the rom or before that?
Click to expand...
Click to collapse
after installing AEX, if your TWRP said No OS installed just flash the rom again and the rest will be fine
Hitagi End said:
after installing AEX, if your TWRP said No OS installed just flash the rom again and the rest will be fine
Click to expand...
Click to collapse
are you using pie or Oreo?
mona356 said:
are you using pie or Oreo?
Click to expand...
Click to collapse
Pie
cristiandiaconu6 said:
boot into twrp and under wipe you`ll find format data, not wipe data.. Format the data and the rom will boot . Note that you`ll lose everything from you phone, so it`s good to save files on pc before, if you have something important..
Click to expand...
Click to collapse
thanks dude!!!!!!!!!! It worked!!!!!!!!!!!!!!!!!!!!!11 :d:d:d
i cannot find always on display ? is it not available on pixel rom s8+?
Many of you know how to fix this issue.
I created a simple zip to do it faster. The TWRP file manager can be very useful but it's not as confortable as a file manager like MiXplorer, Amaze, Solid...
From now on, instead of going to the TWRP file manager to remove the files one by one, just flash one of these zips and reboot.
- To remove the 5 files > DOWNLOAD LINK
- As suggested, here is another flashable zip to only remove the LOCKSETTINGS files > DOWNLOAD LINK
- Final version, to only remove locksettings.db => DOWNLOAD LINK (recommended)
Here are below the list of files it removes:
Code:
gatekeeper.password.key
gatekeeper.pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal
Does this only apply to PIN errors?
I recentrly restored a backup and it didn't recognize my password. I gave up and deleted everything.
carlosh2k4 said:
Does this only apply to PIN errors?
I recentrly restored a backup and it didn't recognize my password. I gave up and deleted everything.
Click to expand...
Click to collapse
The zip only removes the lockscreen protection where you have to enter your PIN/patter/password to reach your homescreen.
It doesn't apply to the boot protection while you are encrypted.
Thanks for this flashable zip,
I've got the same files on my NEXUS 6P , it should work... :good:
Lol
I made the same for another device some time ago..
https://forum.xda-developers.com/g4/development/tool-lock-screen-fix-encrypted-devices-t3499478
#
Sent from my LG-H815 using XDA Labs
I had this issue and had to clean install.
I have deleted only those locksetting files and it works fine.
TurboStrutsi said:
I have deleted only those locksetting files and it works fine.
Click to expand...
Click to collapse
Yep, I only ever delete the 3 locksetting files and it works great. Preserves fingerprints too, so only need to set up the PIN again.
New zip to only remove the LOCKSETTINGS files.
Thanks for this. Saves a lot of people from nuking their ROM ?
honestly all I've ever deleted was locksettings.db and that was enough...
dimm0k said:
honestly all I've ever deleted was locksettings.db and that was enough...
Click to expand...
Click to collapse
Fingerprint enabler xposed module also works for the times i restore and forget to erase that file in twrp.
Thanks so much. Solved my problems on my rooted HTC U11. You are awesome. Do I need to flash it everytime I leave TWRP?
Cdneyes said:
Thanks so much. Solved my problems on my rooted HTC U11. You are awesome. Do I need to flash it everytime I leave TWRP?
Click to expand...
Click to collapse
no
this is only used once - when you restore your TWRP backup and lockscreen security fails to log you in
Does my phone have to be rooted and have twrp to use this? If not, how do i flash the zip file?
kingslash said:
Does my phone have to be rooted and have twrp to use this? If not, how do i flash the zip file?
Click to expand...
Click to collapse
That's a convenient solution for a specific issue, I suggest to read the OP, if you don't have TWRP you cannot be locked out due to restoring a backup by TWRP in first place, it only applies to TWRP users in a certain usage scenario... It's flashed from recovery, root has nothing to do with this...
Sent from my OnePlus3T using XDA Labs
Is it applicable to op3?
prasant737 said:
Is it applicable to op3?
Click to expand...
Click to collapse
Of course. Many devices are compatible.
Primokorn said:
Of course. Many devices are compatible.
Click to expand...
Click to collapse
Hey!
I'm an HTC U11+ user and this doesn't work for me, im facing the same issue either i restock via OTA or TWRP backup, any thing you consider sharing that could help me?
1 thing though, i manually flashed 1.24.401.2 images, while my bootloader shows the actual version to be 1.24.401.12 .
Could this be in anyway be causing my problems?
If I do not set up any boot password/pattern etc but just a swipe on lockscreen then,
after restoring the back up and then flashing the given zips for five files immediately,
Will I be able to set up the PIN/Password/pattern on the restored ROM?
Before this incident, I set finger-print password nd the Lock screen password....
Yesterday after connected to Wi Fi, it automatically started Updating the MIUI software....
And after completing the software update, the phone did'nt recognize my finger-print....
And I frgt my password too... I tride Android Device Manager too, But it did'nt work...
So i even tried MI Cloud, Earlier I did'nt set the option "Find my Device"...So it did'nt work...
In the past when I updated the Miui software it worked fine but with the recent update, It did'nt...
So please help me to recover my password without factory resetting it.... It's Urgent & thnks in advance...
Reboot into recovery
Using file manager of TWRP browse to /data/system folder
There you will see 2 files with .key extension. Delete those files.
Also delete locksettings.db file in /data/system.
Reboot and you are good to go
Immediately locking as soon as I boot the device...
Actually I know don't have TWRP in my phone (I mean it is not rooted)
I have experience in rooting but this phone is newly bought nd I don't want to root it...
Is there any method so that TWRP can be installed nd but the phone is not rooted....
Nd can u pls send a step-by-step guide how to do it ?.....
nd Tq for your reply.... I really appreciate it...
gulshanstrider said:
Reboot into recovery
Using file manager of TWRP browse to /data/system folder
There you will see 2 files with .key extension. Delete those files.
Also delete locksettings.db file in /data/system.
Reboot and you are good to go
Click to expand...
Click to collapse
Then factory reset is only option
Hi, thanks once again, kindly guide me how to factory reset the device... i am not albe to go to settings as the device is asking for password which i don't remember and this the root cause for all problems i m facing now...
gulshanstrider said:
Then factory reset is only option
Click to expand...
Click to collapse
Does someone here knows how to hard reset A50s? I can't wipe data from recovery mode, it says MDM does not allow factory reset. Badly need help on this one, I want to clean reset my phone
hey there, sorry for the delay.
if your phone can go to os, encrypt it and enable to wipe out all your data if enter wrong more than 10 times.
after that, go to recovery mode, wipe out data and you will receive error message.
reboot to system, you enter wrong password until it erase all data and you're done.
follow-up question
halcyon441 said:
hey there, sorry for the delay.
if your phone can go to os, encrypt it and enable to wipe out all your data if enter wrong more than 10 times.
after that, go to recovery mode, wipe out data and you will receive error message.
reboot to system, you enter wrong password until it erase all data and you're done.
Click to expand...
Click to collapse
i have a neighbor phone thats forgotten both pattern and gmail, even the sim corresponds to it. she is 10 years old and im just trying to help
gradd said:
i have a neighbor phone thats forgotten both pattern and gmail, even the sim corresponds to it. she is 10 years old and im just trying to help
Click to expand...
Click to collapse
since we have TWRP for now, that will be easier.
here is the TWRP:
https://forum.xda-developers.com/ga.../unofficial-twrp-3-3-1-0-galaxy-a50s-t4098783
1. flash it.
2.Go to advanced and then go to File Manager to access the files in your phone.
3.Go to the /data/system folder.
Scroll down and you will find the two files with the .key extension. Delete both of them (by tapping on the file and then tapping the Delete button). Then, delete all the files containing the word lock settings.
- password.key
- pattern.key
- locksettings.db
- locksettings.db-shm
- locksettings.db-wal