[FIX] Can't Unlock your Phone after full restore from TWRP.!!!! - Xiaomi Redmi Note 3 Questions & Answers

HAD A FULL BACKUP OF YOUR CURRENT ROM!?
BRICKED YOUR PHONE AND TRIED TO RESTORE.?
SOMEHOW WENT TO RECOVERY AND RESTORED EVERYTHING.!?
HOPED EVERYTHING TO BE FINE BUT BOOM. WHATthe**** CANT UNLOCK YOUR PHONE. SAYS WRONG PIN EVERY TIME. CANT USE FINGERPRINT ALSO. HARD LUCK.!?
Generally this problems occurs because you had done your backup after setting up the pin or fingerprint or pattern.
TWRP otherwise restores everything superfine with every app and data and settings restored but sometimes when rebooted users can't unlock there phone with pin or pattern and can't even use their fingerprints. Common bug of restoring pattern of TWRP.
THOUGH its recommended that do your backup whithout any screen lock. And while restoring uncheck 'cache' and recovery.
BUT THERE'S A 100% WORKING FIX FOR THIS ::
1. TRY 3 TO 4 TIMES THE PIN AND FINGERPRINT. IF DOESNT UNLOCKS REBOOT ONCE AND THEN TRY.
2. IF THAT FAILS. 'POWER OFF' YOUR PHONE.
BOOT TO TWRP RECOVERY. (Pressing power button and volume up button at once)
3. IF PROMPTED ALLOW MODIFICATIONS.
DONT DO ANYTHING. GO STRAIGHT TO ADVANCED.
4. NOW HEAD TO FILE MANAGER.
(normally opened in the main folder '/', if not select storage internal). HEAD TO '/data/system' folder. Scroll down.
5. FIND FILES WITH .key EXTENSIONS AND CLICK ON THEN (generally two files). AND 'DELETE' THEM.
6. NOW FIND AND DELETE ALL FILES WITH KEYWORD 'locksettings'
AFTER DELETING. JUST REBOOT TO SYSTEM.
NOW YOU COULD BE ABLE TO UNLOCK YOUR PHONE WITHOUT any PIN or PATTERN or FINGERPRINT.
just SWIPE UP. Phone got restored to original state.
NOW SET UP FINGERPRINT AND NEW PIN IN THE SETTINGS.
* for me while setting up new pin and FINGERPRINT. The settings apps stopped closed suddenly. I opened it again and i found fingerprint and lock already set up.
Locked the screen and unlocked with my old pin and fingerprint.
DO GIVE A THUMBS UP IF YOU FOUND THE POST HELPFUL...!!!!!!!

Thanks

Or flash AgniToolbox from Recovery and select the option to reset the lock.

or, flash mandatory firmware depends on rom you've restored (cm13 or cm14 firmware)
this tricks worked for me, whenever im restoring my full backup of RR MM and then i flash CM 13 firmware

locksettings.db is the only file you need to delete.
This happens to me with every backup, even i set up the pin a long time before backup.
Sent from my Redmi Note 3 using XDA-Developers mobile app

Thanks brother , you saved my day (Y)

[email protected] said:
HAD A FULL BACKUP OF YOUR CURRENT ROM!?
BRICKED YOUR PHONE AND TRIED TO RESTORE.?
SOMEHOW WENT TO RECOVERY AND RESTORED EVERYTHING.!?
HOPED EVERYTHING TO BE FINE BUT BOOM. WHATthe**** CANT UNLOCK YOUR PHONE. SAYS WRONG PIN EVERY TIME. CANT USE FINGERPRINT ALSO. HARD LUCK.!?
Generally this problems occurs because you had done your backup after setting up the pin or fingerprint or pattern.
TWRP otherwise restores everything superfine with every app and data and settings restored but sometimes when rebooted users can't unlock there phone with pin or pattern and can't even use their fingerprints. Common bug of restoring pattern of TWRP.
THOUGH its recommended that do your backup whithout any screen lock. And while restoring uncheck 'cache' and recovery.
BUT THERE'S A 100% WORKING FIX FOR THIS ::
1. TRY 3 TO 4 TIMES THE PIN AND FINGERPRINT. IF DOESNT UNLOCKS REBOOT ONCE AND THEN TRY.
2. IF THAT FAILS. 'POWER OFF' YOUR PHONE.
BOOT TO TWRP RECOVERY. (Pressing power button and volume up button at once)
3. IF PROMPTED ALLOW MODIFICATIONS.
DONT DO ANYTHING. GO STRAIGHT TO ADVANCED.
4. NOW HEAD TO FILE MANAGER.
(normally opened in the main folder '/', if not select storage internal). HEAD TO '/data/system' folder. Scroll down.
5. FIND FILES WITH .key EXTENSIONS AND CLICK ON THEN (generally two files). AND 'DELETE' THEM.
6. NOW FIND AND DELETE ALL FILES WITH KEYWORD 'locksettings'
AFTER DELETING. JUST REBOOT TO SYSTEM.
NOW YOU COULD BE ABLE TO UNLOCK YOUR PHONE WITHOUT any PIN or PATTERN or FINGERPRINT.
just SWIPE UP. Phone got restored to original state.
NOW SET UP FINGERPRINT AND NEW PIN IN THE SETTINGS.
* for me while setting up new pin and FINGERPRINT. The settings apps stopped closed suddenly. I opened it again and i found fingerprint and lock already set up.
Locked the screen and unlocked with my old pin and fingerprint.
DO GIVE A THUMBS UP IF YOU FOUND THE POST HELPFUL...!!!!!!!
Click to expand...
Click to collapse
Saved me from installing freshly again

I was using latest aosip...then i decided to change to Nitrogen os...
I wiped everything needed and then flashed Nitrogen os...
I was using a pattern lock in the aosip and when the Nitrogen os starts..it asks for pattern..but the previous pattern doesn't work...
when i again flash the aosip the same pattern works..but it doesn't work in nitrogen os
I tried to delete the keys from data/system but there are no keys there(in nitrogen os)
what shall i do? help guys....i can only use

ME TOO
biratlama said:
I was using latest aosip...then i decided to change to Nitrogen os...
I wiped everything needed and then flashed Nitrogen os...
I was using a pattern lock in the aosip and when the Nitrogen os starts..it asks for pattern..but the previous pattern doesn't work...
when i again flash the aosip the same pattern works..but it doesn't work in nitrogen os
I tried to delete the keys from data/system but there are no keys there(in nitrogen os)
what shall i do? help guys....i can only use
Click to expand...
Click to collapse
I myself also have this problem kindly tell a fix guys

thank dude...... worked like a charm..... u saved some grey hairs...bless

Thanks thanks thanks a lot my friend, you saved me from losing every precious data from my locked phone. Thanks once again

only delete locksettings.db worked for me
no need to delete other files

I erased *.key and locksettings... but now I enter but can't insert new finger or pin.

I restored with TWRP /system and /data (no error), cleared devlick/art and cache, reboot and now I can't enter in "Security settings". What can I do?

simona70 said:
I restored with TWRP /system and /data (no error), cleared devlick/art and cache, reboot and now I can't enter in "Security settings". What can I do?
Click to expand...
Click to collapse
Flash the same ROM without wiping anything.
If you had.

Noor9933 said:
Flash the same ROM without wiping anything.
If you had.
Click to expand...
Click to collapse
Yes... I have not thinked the more obvious thing!!!! Thanks!!!!! Install exact rom (I have) and reinstall xposed and supersu and all shoud be lilke before.
---------- Post added at 05:37 PM ---------- Previous post was at 04:42 PM ----------
MMM all ok but... /modem damaded (no sim read)... anymore twrp and /modem restore solved this second derivated problem.

None... again I can't enter in security settings

biratlama said:
I was using latest aosip...then i decided to change to Nitrogen os...
I wiped everything needed and then flashed Nitrogen os...
I was using a pattern lock in the aosip and when the Nitrogen os starts..it asks for pattern..but the previous pattern doesn't work...
when i again flash the aosip the same pattern works..but it doesn't work in nitrogen os
I tried to delete the keys from data/system but there are no keys there(in nitrogen os)
what shall i do? help guys....i can only use
Click to expand...
Click to collapse
@sarabeshsab i think your phone is encrypted (MIUI encrypt by defaul /DATA and /internalSD) . NitrogenOS not support encryption (maybe in lasted build yes), you need to format data button on TWRP, this erase all DATA and Internal SD and disable partition encryption, (make backup to PC first, pictures and docs, etc). Now you be able to install NOS 8.

thank you works 10000000000000%

I followed this guide 'cause when I've restored a twrp backup my fingerprints didn't work (PIN did).
Removed them, added again, but not working.
Following this guide, deleting all these files didn't work.
Removing instead locksettings.db only*worked!

Related

Sometimes downloads aren't starting at all

I have a Moto Z with stock image, Magisk Root and Turbo Z Custom Kernel.
As far as I see everything is fine except two one things:
1. Sometimes downloads aren't starting at all. Which is very weird because regular surfing with Chrome works flawlessly. But if I want to watch a video from YouTube (regardless whether YouTube app or within Chrome) the video won't play sometimes. The same happens with F-Droid downloads. Sometimes an installation/updated doesn't even start the download. The network is fine (it works perfectly with any other device).
2. I have a screenlock set up but I don't think there is encryption active. I have to type the password just once (device boots to GUI then SIM pin, then unlock PIN). On encryption the unlock PIN have to be entered bevore booting into the GUI — right? However, Security Settings claims that the phone is encrypted. I wanted to set / change the password with cryptfs password manager but the app doesn't even start claiming 'cannot get superuser access' (maybe it's not compatible to Magisk?). Is it possible to change/set the password in this state without risking data loss?
The stock kernel enforces encryption, the z-kernel doesen't. However, your stock kernel already did its deeds. So if you really want to remove encryption, here is what you might want to do:
Remove all phone passwords (pin/password/pattern etc), then make a backup of everything. (If you don't & then restore such a backup, you'll always end up with password/pin/pattern mismatch).
Then boot into TWRP recovery and format(!) data partiton (erase just doesn't cut it..). If there's still a problem, change data's filesystem to ext4 and then back to f2fs - that should remove any nasty residual settings.
Then reboot & enjoy. Maybe you can restore the backed-up data files to the unencrypted partition now, but I wouldn't bet on it...
Hi again @benzinerwin
However, I don't want to remove encryption. I want to enable it.
It says that it is enabled in settings but I strongly doubt that it actually is.
Just change the password, opt for boot password (or whatever it's called), boot into TWRP and see if it asks for password/pattern to unlock access to the data partition...
If you cannot get there, just do the above, end up with an unencrypted data partition and the go through the settings and trigger the encryption with boot pass etc...
benzinerwin said:
Just change the password, opt for boot password (or whatever it's called[…]
Click to expand...
Click to collapse
That was it
In retrospective this is pretty obvious. Thank you.
Now just the problem with the struggling downloads is left.
Hmm, about the strange download problem... that pretty much sounds like an app not having all the requested rights (look through all the settings, not just the app's properties... [sigh])
But it affects all apps. Even Chrome. Regular surfing is fine but for example loading a YouTube file sometimes doesn't even start.

Pattern Lock on boot changed to Password Entry without Reason (HTC One M8 | RR 5.8.5)

Hi Everyone!
I am running latest version of Resurrection Remix (7.1.2) on my HTC One M8 and somehow, the Pattern unlock Sequence i have set during Boot (using it since Months!) has changed to a Password entry Box without any reasons.
I have never set any Password or PIN for the Device, so i have been locked out.
Just to make sure, i have also tried any PIN and Password that i could remember.
Disc Encryption is active , but i can access System and SD Partitions in TWRP without entering a Pattern/PIN.
I have read some Guides wich describe how to delete pass and pattern key-files to bypass the Boot Security, but without success yet. Any Ideas, what might have changed the Pattern Protection and how to revert it?
Thanks in advance!
br
Qudo
qudo said:
Hi Everyone!
I am running latest version of Resurrection Remix (7.1.2) on my HTC One M8 and somehow, the Pattern unlock Sequence i have set during Boot (using it since Months!) has changed to a Password entry Box without any reasons.
I have never set any Password or PIN for the Device, so i have been locked out.
Just to make sure, i have also tried any PIN and Password that i could remember.
Disc Encryption is active , but i can access System and SD Partitions in TWRP without entering a Pattern/PIN.
I have read some Guides wich describe how to delete pass and pattern key-files to bypass the Boot Security, but without success yet. Any Ideas, what might have changed the Pattern Protection and how to revert it?
Thanks in advance!
br
Qudo
Click to expand...
Click to collapse
Deleting a Few Files In /Data Will Unlock Deactivate any Password.Try Finding the Locksettings.db in /Data/system or Somewhere.
Sent from my Nexus 6P using Tapatalk
Atifbaig786 said:
Deleting a Few Files In /Data Will Unlock Deactivate any Password.Try Finding the Locksettings.db in /Data/system or Somewhere.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Atifbaig786,
already did this.
files i have removed:
password.key
pattern.key
locksettings-db-shm
locksettings-db.wal
locksettings.db
no effect. still requests a password.
qudo said:
Atifbaig786,
already did this.
files i have removed:
password.key
pattern.key
locksettings-db-shm
locksettings-db.wal
locksettings.db
no effect. still requests a password.
Click to expand...
Click to collapse
I can't say For Sure But.There are more Files Than That In Version Above MarshMellow.Those Guides were for Android 4.4.4 and low.
Or Someone Just Took your Gmail Account and Locked It.
It's The Most Possible Reason For Auto-Locking Devices That Someone Accessed your Device and Did Some Bad S,H,I,T to you.
Sent from my Nexus 6P using Tapatalk
Atifbaig786 said:
I can't say For Sure But.There are more Files Than That In Version Above MarshMellow.Those Guides were for Android 4.4.4 and low.
Or Someone Just Took your Gmail Account and Locked It.
It's The Most Possible Reason For Auto-Locking Devices That Someone Accessed your Device and Did Some Bad S,H,I,T to you.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Google Account is safe and definitely not hacked.
Secured by 2-step-authentication and i still have access to it. there is also nothing wrong in phone management there. already checked this.
And to get this straight, the device is not auto locked as you may from device management in your google account.
Disc has been encrypted and a pattern has been set for decryption. this pattern has changed to Password entry.
same password entry that you have when encrypting with a password.
i had this behaviour before on some older cm versions on my samsung i9305...
i have started creating a current backup and will restart everything from scratch.
seems more like an error in android, than <<s,h,i,t>>
all hail to titanium backup!
thanks anyways.
Qudo
OK, this bug is reproducable.
i have tested it twice.
- clean install from scratch
- disc encryption
- creating a nandroid backup
- reboot afterwards
-> pattern set before is not available, but a password prompt asking for a password that i had never set.
System details:
Phone 1:
HTC One M8
resurrection remix ROM 5.8.5
TWRP Recovery Version 3.1.1-0
Phone 2:
Google Nexus 5
resurrection remix ROM 5.8.5
TWRP Recovery Version 3.1.1-0
Anyone else? :/
EDIT:
This does ot happen, if i don't create a nandroid backup. seems linked somehow ...

Re-Enter Pin Problem

Hey Guys.
I am using and modding my android devices since the legendary Dream device. Yesterday I wanted to change the current rom on my Xiaomi Mi6 but some roms didn't work. I got tired of trying around and to encrypt the phone every time i am in recovery menu, so I installed the rom i used before and which worked, went to security settings, disabled my pin protection and started flashing again. Then i noticed, that every rom hang up at the "configure your fingerprint" setting. It kept asking me to "re-enter your pin. Enter your device pin to continue". I have used the same screen pin for years but the device keeps saying, that I use the wrong pin.
How can I change my current pin? Is there a google pin which it keeps asking for? Am i mixing any pins up?
Do i have to "fastboot format userdata" to solve this issue?
solved - the only way was to wipe, install rom, then without starting the rom boot into fastboot and delete all personal data with "fastboot format userdata".
Stupiddiary said:
solved - the only way was to wipe, install rom, then without starting the rom boot into fastboot and delete all personal data with "fastboot format userdata".
Click to expand...
Click to collapse
I have no words to express my huge thank you!
Boot To TWRP Recovery Then, head to Advanced > File Manager, and go to the /data/system folder. Scroll down and 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 locksettings.
Ex. locksettings.db
And REBOOT .......
enjoy.
Hope your issue solved

Re-enter your password/pin even before setting up a pin/password? Android (fix)

If your getting a promt to re-enter your pin even before setting up one? Try this method, it may fix the problem. I was having the same issue after flashing an new ROM or restoring a TWRP backup.
How to fix
Using a root explorer go to root\data\system folder( if it asks for password during setup then do the same using TWRP file manager)
Then find "locksettings.db" and rename it to "locksettings.db.old" .
This should stop confilcs of you old ROM password which confuses it in thinking that there is a pin setup.
Android will automatically creat a new file "locksettings.db" after reboot and you should be good to go
This worked for me, if it helps you please thank the post!
Nandan.R.D said:
If your getting a promt to re-enter your pin even before setting up one? Try this method, it may fix the problem. I was having the same issue after flashing an new ROM or restoring a TWRP backup.
How to fix
Using a root explorer go to root\data\system folder( if it asks for password during setup then do the same using TWRP file manager)
Then find "locksettings.db" and rename it to "locksettings.db.old" .
This should stop confilcs of you old ROM password which confuses it in thinking that there is a pin setup.
Android will automatically creat a new file "locksettings.db" after reboot and you should be good to go
This worked for me, if it helps you please thank the post!
Click to expand...
Click to collapse
You're a life saver! This has been plaguing me for weeks (and many wipes and restores)
I do have this 2nd weird problem though, after I set a new pin/pattern. If you leave the device locked too long, when you enter the pin/pattern it resets the screen and brings you back to lock screen. Not sure how to fix this one yet!

OnePlus One, CM-13.1.2 stock room. Phone hangs every time after reboot

Hello,
For a long time I'm using my good old friend OnePlus One, it works great to me on stock AOSP CM-13.1.2 until yesterday. I fail in the name of good and terrible thing has happened xD.
I wanted to stop draining my battery by apps which all the time were using GPS service to track my location so I started to make some change in settings -> privacy guard settings -> Location permission.
I tried to change the permission to those apps from "Allowed" to "Always ask". I do mistake and change permission to Google Play Services. After that I restart my phone. Now every time my OnePlus One is stuck/freeze after booting screen and I see only black screen and popup window in center with requests to give Location permission to Google Play Service.
Touch screen not working when is press to Allow, It cant go ahead to lock screen.
My phone is not rooted, locked bootloader, no TWRP, only stock Cayanogen recovery with options:
Reboot system now
Apply update -> Apply from ADB->ADB Sideload
Factory reset -> Full factory reset or Wipe cache partition ( I dont want lose my data on phone)
Advanced-> Reboot recovery
Advanced-> Reboot to bootloader
I read on internet that I need to modify or delete /data/system/appops.xml file
What can I do now, how can I do this modification without losing data.
Can I do it from shell console ADB? and which option I have to choose in recovery to connect my laptop OS: win XP with OnePlus One?
I read that i can do it by TWRP recovery but i dont have it on OPO. Can I safely flash it to phone without losing data? Bootloader is locked.
Is there any tutorial how to do it safely? How to Delete or download, modiffy and replace file /data/system/appops.xml using ADB commands, backup my personal data to PC, connect with phone by ADB with computer.
Any help needed. Sorry for my bad english.
Best Regard
ArkadiSEA

Categories

Resources