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
Related
My sgs2 suddenly locked me out of my phone. I was playing around with the screen lock (numbers) just pressing some random numbers and after some 40-50 attempts of wrong passwords i entered the right password and it does not let me login now. Before formatting the phone i would want to copy some videos which i really want. Do you guys have any solution to the lock issue or is there any other way i can copy data from my phone ?
Thanks in advance.
Renish
AFAIK, there is a button called "forgot password" below, if in case that button doesn't exists, try download this https://market.android.com/details?id=se.curity.android.screenlockbypass will help you bypass the screen, and lets you backup your files.
Option 1. See if you see any forget password link etc, which will prompt you to enter your primary google account password. If you enter it correctly, you are in. No worries.
Option 2. Remove battery and re-insert. Turn on phone by pressing " Vol Up + Menu + Power " at the same time, which will take you to recovery.
Then select factory reset. It will not delete your videos. But you will lose all your apps installed from Market, your google/twitter/facebook accounts etc.
Your camera photos, videos, other videos on the phone will not be deleted.
if you do a factory reset your data will remain there, you will lose all the apps tho but i believe its the easier way
Thanks guys.. i managed to recover my phone and i have the resurrection mod on it now..
Hey i have a terrible adware thingy on my phone, unable to remove it. No antivirus detect anything.. Its different sometimes. Before it came only when i open whatsapp now it comes anywhere. It comes 1 time a week (not often) very few times a week. Pls help.. How do i remove this????
No one knows ?
if it started just on whats app i would generally suggest it has linked to the whats app files. now it is opening more and more it has now sync with most of your files and folders.
best thing to do factory reset your device save as much as you can to SD card which you need.
1 Before you reset your Android , see options for backing up your data.
2 On your mobile device, open the Settings menu Settings .
3 Under "Personal", touch Backup & reset. You may need to enter your pattern, PIN or password.
4 Under "Personal data", touch Factory data reset.
5 Read the information on the screen and touch Reset phone.
6 If you have a screen lock, you'll need to enter your pattern, PIN or password.
7 When prompted, touch Delete everything to delete all data from your device's internal storage.
8 When your device has finished erasing, select the option to reboot your device.
Ps stay off the porn sites ^^ generally virus are downloads when visiting random links and the website installs an .apk generally the main anti virus programs are paid to miss these or dont bother because they think there a part of an .apk so do not flag up hope this helps
mgrandy1984 said:
if it started just on whats app i would generally suggest it has linked to the whats app files. now it is opening more and more it has now sync with most of your files and folders.
best thing to do factory reset your device save as much as you can to SD card which you need.
1 Before you reset your Android , see options for backing up your data.
2 On your mobile device, open the Settings menu Settings .
3 Under "Personal", touch Backup & reset. You may need to enter your pattern, PIN or password.
4 Under "Personal data", touch Factory data reset.
5 Read the information on the screen and touch Reset phone.
6 If you have a screen lock, you'll need to enter your pattern, PIN or password.
7 When prompted, touch Delete everything to delete all data from your device's internal storage.
8 When your device has finished erasing, select the option to reboot your device.
Ps stay off the porn sites ^^ generally virus are downloads when visiting random links and the website installs an .apk generally the main anti virus programs are paid to miss these or dont bother because they think there a part of an .apk so do not flag up hope this helps
Click to expand...
Click to collapse
Thx for the long help thing. But im not gonna reset because of a pop up thing i barely see anymore, but well thanks
Yeah more and more things like this are being sent through whatsapp and fb. It mostly because now alot of people from smaller/developing countries are using it while the majority of us gave it up and switched to something else.
if you would like to know where and what is pop it up try installing "QtADB" it has a program in it called "logcat" basically shows you all jobs that the phone is running you can use this to bug check where the program is running from but you may be going in circles for a few hours thats why i said just to reset. google QtADB should come up with a list of instructions to install.
mgrandy1984 said:
if you would like to know where and what is pop it up try installing "QtADB" it has a program in it called "logcat" basically shows you all jobs that the phone is running you can use this to bug check where the program is running from but you may be going in circles for a few hours thats why i said just to reset. google QtADB should come up with a list of instructions to install.
Click to expand...
Click to collapse
Lol thats some deep ****, i dont need o install as i have one built in. But not goig thru all that trouble cus of a few lines of text XDD
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!
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!
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