Re-enter your password/pin even before setting up a pin/password? Android (fix) - Android Q&A, Help & Troubleshooting

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!

Related

Miui 7 forces to login on first start (without internet connection)

My new xiaomi redmi note 2 forces to sign in to an account on first start, skipping this dialog is not possible. On the display there is displayed:
Thank you!
Thank you for helping make MIUI better!
I can type an Username (number-keyboard) and a Password. There is one Button to validate. Does anybody know how to skip this or which account is required to login (and how a login works since my sim card is locked and wifi is not enabled)?
Thank you
tau.gi.mo
Sorry, can anybody move it to MIUI discussion?
did you deleted "Updater.apk" maybe?
flash latest miui, maybe its bloatrom from the shop you bought it
4r3k said:
did you deleted "Updater.apk" maybe?
Click to expand...
Click to collapse
yes, I deleted the updater.apk.
I still can use Mipad 2 because of the setting menu and using my own launcher. haven't tested the system launcher.
Anyway, how do I get rid of this welcome/thanks page/windows when starting device?? I have root so I could butcher some moe system apk's if I have to do it... Do you know the answer?
Luckily I had backup and it is working now. Just fix permission also to wrx-rx-rx
I'm a new MIUI user, and I just encountered this screen after my first OTA update ever. I use a MIUI 8 Global Developer ROM on a Xiaomi Mi 5 (with Unlocked Bootloader).
One way I found to avoid this screen, is by removing the SIM card and rebooting. I re-insert the SIM after MIUI has booted properly.
I don't think that's very good for the phone (or the SIM). That's just a temporary solution, until I manage to figure out what's going on...
if have root n twrp then
from twrp recovery>mount>system..then advanced>file manager>system>priv-app>miuikeyguard.apk>delete.. it worked for me.
i also removed provision.apk from the same folder.. so no startup screens.. directly takes u to the launcher

[FIX] Can't Unlock your Phone after full restore from TWRP.!!!!

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!

Helium backup problems

Hi I installed CM14 yesterday and was hoping to use Helium to restore all my wifi passwords.
The app starts and asks for my Google Drive login. Then it says checking for superuser, the # appears in the taskbar, then it sits and waits. That's it. The only thing I can do is press cancel, then it says I have to install the desktop app and try that way.
I am on Ubuntu so I downloaded the Linux package, ran the script and according to the readme it says I should have seen a connecting message. I didn't, it sat on a terminal prompt saying i9100: and the phone sat on saying it's set to MTP mode and needs PTP mode (it was definitely in PTP mode as the photo editor launched on my desktop).
So now I'm a bit stuck. I spent hours last night googling the problem and others are reporting it but I have read one comment which said the developer has a habit of abandoning apps which I hope isn't the case. This app worked fine on Marshmallow but it's not working on Nougat at all.
The only other thing I could do is try to restore my wifi passwords from Google backup but again this is a problem I spent a long time looking for answers and it doesn't seem that I can just restore the passwords like that.
Any advice how I can get Helium back up please?
laptopu said:
Hi I installed CM14 yesterday and was hoping to use Helium to restore all my wifi passwords.
The app starts and asks for my Google Drive login. Then it says checking for superuser, the # appears in the taskbar, then it sits and waits. That's it. The only thing I can do is press cancel, then it says I have to install the desktop app and try that way.
I am on Ubuntu so I downloaded the Linux package, ran the script and according to the readme it says I should have seen a connecting message. I didn't, it sat on a terminal prompt saying i9100: and the phone sat on saying it's set to MTP mode and needs PTP mode (it was definitely in PTP mode as the photo editor launched on my desktop).
So now I'm a bit stuck. I spent hours last night googling the problem and others are reporting it but I have read one comment which said the developer has a habit of abandoning apps which I hope isn't the case. This app worked fine on Marshmallow but it's not working on Nougat at all.
The only other thing I could do is try to restore my wifi passwords from Google backup but again this is a problem I spent a long time looking for answers and it doesn't seem that I can just restore the passwords like that.
Any advice how I can get Helium back up please?
Click to expand...
Click to collapse
Did you make a backup in recovery before you flashed CM14?
If so, boot to recovery and make a backup of your CM14 then restore the backup that you made of whatever you had before you flashed CM14.
Then go to your /data/misc/wifi folder and find the "wpa_supplicant.conf" file and make a copy of that file, it contains the name and password of all the WiFi points the device has been connected to before you flashed it. Save the copy of that file to your extsdcard.
Then boot to recovery and restore your backup of CM14 and reboot when its done, then you transfer the copy of wpa_supplicant.conf to the /data/misc/wifi folder. You may or may not have reboot or wipe cache and dalvik and reboot.
Sent from my SCH-I535 using Tapatalk

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

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