scrambled PIN now locked out. Help please. - Nexus 6P Q&A, Help & Troubleshooting

Hi guys.
i'm new here and greatly appreciate the knowledge here. I recently installed purenexus on my 6p. first time installing a custom rom. worked beautifully until i decided to try out the lockscreen scramble pin feature. Now when I try to unlock my phone it doesn't recognize my PIN. i've tried many times and something undoubtedly went wrong. is this a known issue with scrambling your pin?
So what should i do? A quick google search suggested I restore a backup. Is this the recommended method? I did a factory back up, i think. i did the back up after the factory reset but before flashing purenexus. i used the default twrp back up settings, which i believe did not include the vendor file.
i'm a complete novice when it comes to this sort of thing so if someone can give me a step-by-step explanation for me to unscrew myself here i'd greatly appreciate it.
thanks.

ent3rpryze said:
Hi guys.
i'm new here and greatly appreciate the knowledge here. I recently installed purenexus on my 6p. first time installing a custom rom. worked beautifully until i decided to try out the lockscreen scramble pin feature. Now when I try to unlock my phone it doesn't recognize my PIN. i've tried many times and something undoubtedly went wrong. is this a known issue with scrambling your pin?
So what should i do? A quick google search suggested I restore a backup. Is this the recommended method? I did a factory back up, i think. i did the back up after the factory reset but before flashing purenexus. i used the default twrp back up settings, which i believe did not include the vendor file.
i'm a complete novice when it comes to this sort of thing so if someone can give me a step-by-step explanation for me to unscrew myself here i'd greatly appreciate it.
thanks.
Click to expand...
Click to collapse
Are you sure you're hitting the right numbers? They'll be in a different position every time.

Heisenberg said:
Are you sure you're hitting the right numbers? They'll be in a different position every time.
Click to expand...
Click to collapse
I am. 100% certain.
it really seems as if my password was for some reason changed. before someone asks i am definitely using the correct pin. its the same PIN i've been using for years.
how do i regain control of my phone?

ent3rpryze said:
I am. 100% certain.
it really seems as if my password was for some reason changed. before someone asks i am definitely using the correct pin. its the same PIN i've been using for years.
how do i regain control of my phone?
Click to expand...
Click to collapse
i rebooted to recovery mode and i discovered that i moved my backup to my laptop. so now backup file is available.
can i just wipe my phone and reinstall the purenexus rom which is still on my phone

ent3rpryze said:
i rebooted to recovery mode and i discovered that i moved my backup to my laptop. so now backup file is available.
can i just wipe my phone and reinstall the purenexus rom which is still on my phone
Click to expand...
Click to collapse
Yes, if you clean flash the ROM you'll be able to get back into it. Had you restored a nandroid backup recently by any chance?

Heisenberg said:
Yes, if you clean flash the ROM you'll be able to get back into it. Had you restored a nandroid backup recently by any chance?
Click to expand...
Click to collapse
thanks a lot for clarifying that. i guess i have no other option.
has this been known to happen? scrambling PIN causing the pin to change.
I dont have a recent nandroid backup because my purenexus flash is only days old. is there a way to automate nandroid backups? is it wiser to keep the backups on the phone?

ent3rpryze said:
thanks a lot for clarifying that. i guess i have no other option.
has this been known to happen? scrambling PIN causing the pin to change.
I dont have a recent nandroid backup because my purenexus flash is only days old. is there a way to automate nandroid backups? is it wiser to keep the backups on the phone?
Click to expand...
Click to collapse
I've never seen this happen before. I'm pretty sure you can use Tasker to automate backups. I usually advise people to keep at least one backup or ROM zip on their phone, just in case.

IT HAPPENED AGAIN!
Per the ever hepful Heisenberg's recommendation, I wiped my phone and reflashed purenexus. This was yesterday. Everything went smoothly. Recreated my security PIN. Was able to unlock my phone with it without incident...until just now. Incorrect PIN error 3 times.
What is going on?!?!
It should be noted that both times this has happened has come after I turned my phone off. This time I happened to be charging my phone while it was off. I can't recall if it was the same case the first time it happened. Is this a purenexus issue?

found the solution.
"Delete this file /data/system/locksettings.db from TWRP."
I wish I had known this the first time it happened. Oh well. I sure hope this helps someone else in the future.

ent3rpryze said:
found the solution.
"Delete this file /data/system/locksettings.db from TWRP."
I wish I had known this the first time it happened. Oh well. I sure hope this helps someone else in the future.
Click to expand...
Click to collapse
This is usually over necessary after a user has created (and later restored) a nandroid backup without removing lockscreen security first. Are you saying you hadn't done this at all prior to the problem occurring?

Heisenberg said:
This is usually over necessary after a user has created (and later restored) a nandroid backup without removing lockscreen security first. Are you saying you hadn't done this at all prior to the problem occurring?
Click to expand...
Click to collapse
i dont know what qualifies as a nandroid backup. the only backup i created was with the TWRP backup function which i later moved to my laptop, as previously mentioned. and yes, i did that before the problem occured. it was before I had even installed pure nexus.
btw, it happened AGAIN (#3 for those keeping score). i'm going to assume there's a bug in the rom and forego the use of a security pin. also, for the first time, when i went back into twrp to once again delete the locksettings.db file i was prompted to enter a password before i could modify the system. Odd.

ent3rpryze said:
i dont know what qualifies as a nandroid backup. the only backup i created was with the TWRP backup function which i later moved to my laptop, as previously mentioned. and yes, i did that before the problem occured. it was before I had even installed pure nexus.
btw, it happened AGAIN (#3 for those keeping score). i'm going to assume there's a bug in the rom and forego the use of a security pin. also, for the first time, when i went back into twrp to once again delete the locksettings.db file i was prompted to enter a password before i could modify the system. Odd.
Click to expand...
Click to collapse
When making a nandroid (backup) in TWRP remove any pin, patter or fingerprints before backup or getting locked out will continue.

elevatorguy said:
When making a nandroid (backup) in TWRP remove any pin, patter or fingerprints before backup or getting locked out will continue.
Click to expand...
Click to collapse
thanks for that, but i believe i did that because i backuped a clean factory 6.0.1, sans any security setup. not sure if that was necessary but that's what i did.

ent3rpryze said:
i dont know what qualifies as a nandroid backup. the only backup i created was with the TWRP backup function which i later moved to my laptop, as previously mentioned. and yes, i did that before the problem occured. it was before I had even installed pure nexus.
btw, it happened AGAIN (#3 for those keeping score). i'm going to assume there's a bug in the rom and forego the use of a security pin. also, for the first time, when i went back into twrp to once again delete the locksettings.db file i was prompted to enter a password before i could modify the system. Odd.
Click to expand...
Click to collapse
The problem isn't with the ROM, I (along with what I'm guessing is pretty much every other user) use fingerprint and/or PIN/pattern security on Pure Nexus with no issues. A nandroid backup is one of those backups you create with TWRP, so yes it's what you described. But this problem shouldn't be occurring on a clean flash of Pure Nexus, can you please explain in detailed steps how you installed the ROM?

ent3rpryze said:
Hi guys.
i'm new here and greatly appreciate the knowledge here. I recently installed purenexus on my 6p. first time installing a custom rom. worked beautifully until i decided to try out the lockscreen scramble pin feature. Now when I try to unlock my phone it doesn't recognize my PIN. i've tried many times and something undoubtedly went wrong. is this a known issue with scrambling your pin?
So what should i do? A quick google search suggested I restore a backup. Is this the recommended method? I did a factory back up, i think. i did the back up after the factory reset but before flashing purenexus. i used the default twrp back up settings, which i believe did not include the vendor file.
i'm a complete novice when it comes to this sort of thing so if someone can give me a step-by-step explanation for me to unscrew myself here i'd greatly appreciate it.
thanks.
Click to expand...
Click to collapse
On Marshmallow, the scramble pin option is bugged if you use a long pin. Some rom devs choose to leave this out entirely. I haven't played with it to determine the cut off point but 4 digits is fine. I think I tried 8 digits once and it locked me out.
Sent from my Nexus 5X using Tapatalk

ent3rpryze said:
found the solution.
"Delete this file /data/system/locksettings.db from TWRP."
I wish I had known this the first time it happened. Oh well. I sure hope this helps someone else in the future.
Click to expand...
Click to collapse
Awesome.. Thanks a bunch for posting this... I am using Oneplus 3T , Resurrection Remix 5.7.4 ( Marshmallow) . Had turned on Scrambled PIN.. Ran into same issue as yours.. Last option left for me was to do factory reset from TWRP but I was scared to lose Google Authenticator Setup on my phone and many other things... Your solution saved me!! :good::good:

I also had a similar problem:
- freshly installed Carbon ROM with TWRP
- added lockscreen password in phone
- locked screen
- tried accessing using password
The password just fails. Using a shorter password works normally. The failing password is 13 characters long.

Related

Nexus 6P not unlocking, even with right password

As the title says, my phone just isn't unlocking, no matter what.
I know for a fact I'm using the right password, it's successfully decrypting my phone. Entering the same password or any password I've used doesn't unlock the right screen, though.
I tried flashing a backup from a couple days ago, but it's having the same problem too.
Any advice?
Did you remove all security from your devices before making a backup?
I've seen several posts that tell people to do so before backing up. So I think that's where the issue is.
Yreisolgakig said:
As the title says, my phone just isn't unlocking, no matter what.
I know for a fact I'm using the right password, it's successfully decrypting my phone. Entering the same password or any password I've used doesn't unlock the right screen, though.
I tried flashing a backup from a couple days ago, but it's having the same problem too.
Any advice?
Click to expand...
Click to collapse
That's the known issue with TWRP and has been fixed with v3.0.2-0. Try that one.
DJBhardwaj said:
That's the known issue with TWRP and has been fixed with v3.0.2-0. Try that one.
Click to expand...
Click to collapse
It's affecting the OS?
Yreisolgakig said:
As the title says, my phone just isn't unlocking, no matter what.
I know for a fact I'm using the right password, it's successfully decrypting my phone. Entering the same password or any password I've used doesn't unlock the right screen, though.
I tried flashing a backup from a couple days ago, but it's having the same problem too.
Any advice?
Click to expand...
Click to collapse
Did this start occurring after restoring a backup? And before making the backup did you forget to remove all security?
DJBhardwaj said:
That's the known issue with TWRP and has been fixed with v3.0.2-0. Try that one.
Click to expand...
Click to collapse
He's talking about the OS, not TWRP.
Heisenberg said:
Did this start occurring after restoring a backup? And before making the backup did you forget to remove all security?
He's talking about the OS, not TWRP.
Click to expand...
Click to collapse
Nandroid backup issue with security is solved, isn't it @Heisenberg ?
Please correct me if I am wrong.
DJBhardwaj said:
Nandroid backup issue with security is solved, isn't it @Heisenberg ?
Please correct me if I am wrong.
Click to expand...
Click to collapse
Not that I'm aware of, I could be wrong though.
Heisenberg said:
Not that I'm aware of, I could be wrong though.
Click to expand...
Click to collapse
I hope it is. In the meantime, I just backed up PN ROM with fingerprint and PIN, and restored it successfully. :victory:
DJBhardwaj said:
I hope it is. In the meantime, I just backed up PN ROM with fingerprint and PIN, and restored it successfully. :victory:
Click to expand...
Click to collapse
Interesting. I'll have to give it a try myself at some point when I get the time.
Heisenberg said:
Interesting. I'll have to give it a try myself at some point when I get the time.
Click to expand...
Click to collapse
Sure. If you confirm, we will know that the issue has been resolved with the latest update. :highfive:
2 days ago, I made a backup of the Pure Rom I had so I could try another asop rom. Today I decided I wanted to go back to pure and when I did the restore, all went well, except when I had to enter a pin right after it booted. It would not recognize my pin that I know 100% was correct.
Any advice on that?
joey3002 said:
2 days ago, I made a backup of the Pure Rom I had so I could try another asop rom. Today I decided I wanted to go back to pure and when I did the restore, all went well, except when I had to enter a pin right after it booted. It would not recognize my pin that I know 100% was correct.
Any advice on that?
Click to expand...
Click to collapse
Which TWRP recovery version did you use?
joey3002 said:
2 days ago, I made a backup of the Pure Rom I had so I could try another asop rom. Today I decided I wanted to go back to pure and when I did the restore, all went well, except when I had to enter a pin right after it booted. It would not recognize my pin that I know 100% was correct.
Any advice on that?
Click to expand...
Click to collapse
If the backup you restored had a security pin still active then it won't restore properly or you won't be able to deactivate the pin code when asked for a screen pincode. At least that's how it has been in the past. They may of fixed it by now but that's only in the latest version.
This happened to me the other day when updating to the new PureNexus. There's a file in MM you can delete through TWRP so the OS will boot without a passcode, and then you can set a new one. I'm not sure whether I'm allowed to post it here as it seems dodgy but I found it in another XDA forum.
joey3002 said:
2 days ago, I made a backup of the Pure Rom I had so I could try another asop rom. Today I decided I wanted to go back to pure and when I did the restore, all went well, except when I had to enter a pin right after it booted. It would not recognize my pin that I know 100% was correct.
Any advice on that?
Click to expand...
Click to collapse
Go into TWRP>Advanced>File Manager>data>system.......delete locksettings.db, locksettings.db-shm, and locksettings.db-wal. Reboot the phone and you'll be able go into the OS just fine after that. You'll have to do this every time unless you make a backup with security removed.
DJBhardwaj said:
Sure. If you confirm, we will know that the issue has been resolved with the latest update. :highfive:
Click to expand...
Click to collapse
I can confirm that the issue has been resolved. Performed a backup and restore of my PN setup today.
Everything on my phone was successfully backed up and restored, including pin and fingerprint.
bouchigo said:
Go into TWRP>Advanced>File Manager>data>system.......delete locksettings.db, locksettings.db-shm, and locksettings.db-wal. Reboot the phone and you'll be able go into the OS just fine after that. You'll have to do this every time unless you make a backup with security removed.
Click to expand...
Click to collapse
This is how I fixed mine a couple days ago. Easy and quick. I also recommend this method. Although all I deleted was the locksettings.db because I couldn't find the others lol either way it worked
Sent from my Nexus 6P using XDA-Developers mobile app
Yreisolgakig said:
As the title says, my phone just isn't unlocking, no matter what.
I know for a fact I'm using the right password, it's successfully decrypting my phone. Entering the same password or any password I've used doesn't unlock the right screen, though.
I tried flashing a backup from a couple days ago, but it's having the same problem too.
Any advice?
Click to expand...
Click to collapse
https://drive.google.com/file/d/0B3AOKwsYI1C5WWVTeDZSSFhXZ0U/view?pref=2&pli=1
Try flashing this zip it will remove your current lock security. It is working on my phone though. (Don't have nexus 6p yet ) just be sire to make a backup before as i have never tested this for nexus 6P.

Issues restoring backup

Mostly just out of curiosity I flashed a new ROM this weekend. I decided I like pure nexus better so I flashed my backup from twrp but wound up in bootloop. Even though I've never had issues restoring ROMs with MANY other devices, I still followed the directions for backing it up very carefully. I also did a full wipe before trying to restore it. In fact after the 3rd attempt I accidentally wiped internal storage. So that wasn't the issue.
Only thing I can figure is I was using elemental kernel when I made the backup so maybe that was the problem? I don't see why it would matter (or how that would work--removing the kernel, make backup, flash kernel again...) but I'm really stumped on how I went wrong.
KLit75 said:
Mostly just out of curiosity I flashed a new ROM this weekend. I decided I like pure nexus better so I flashed my backup from twrp but wound up in bootloop. Even though I've never had issues restoring ROMs with MANY other devices, I still followed the directions for backing it up very carefully. I also did a full wipe before trying to restore it. In fact after the 3rd attempt I accidentally wiped internal storage. So that wasn't the issue.
Only thing I can figure is I was using elemental kernel when I made the backup so maybe that was the problem? I don't see why it would matter (or how that would work--removing the kernel, make backup, flash kernel again...) but I'm really stumped on how I went wrong.
Click to expand...
Click to collapse
What partitions did you backup/restore?
Heisenberg said:
What partitions did you backup/restore?
Click to expand...
Click to collapse
Well Ive got the right guy to talk to Pretty sure it was what you suggested (system/data/boot/vendor boxes)
But I don't recall if I checked everyone to restore. However, I did store the backup on my computer. Even though I've since got everything back I can try again to restore it. But can you just confirm which I should check when I restore it?
I'll be certain to pay closer attention next time. Its just that this is one thing I had never struggled with. Thanks
KLit75 said:
Well Ive got the right guy to talk to Pretty sure it was what you suggested (system/data/boot/vendor boxes)
But I don't recall if I checked everyone to restore. However, I did store the backup on my computer. Even though I've since got everything back I can try again to restore it. But can you just confirm which I should check when I restore it?
I'll be certain to pay closer attention next time. Its just that this is one thing I had never struggled with. Thanks
Click to expand...
Click to collapse
I recommend restoring system, data, boot, and vendor. Just make sure you're not restoring system image or vendor image.
Heisenberg said:
I recommend restoring system, data, boot, and vendor. Just make sure you're not restoring system image or vendor image.
Click to expand...
Click to collapse
So simple. Thanks a lot!
KLit75 said:
So simple. Thanks a lot!
Click to expand...
Click to collapse
Let me know if you get it booting.
Heisenberg said:
Let me know if you get it booting.
Click to expand...
Click to collapse
Well yes. Thanks again. However, I've got something funky going on. Pin pointing is hard but yea the backup restored. Then I tweaked elemental kernel (nothing crazy, used stable profiles) maybe it was that and an xposed mod (thinking ifont because its one I only just started using lt recently). Anyway when I rebooted to install drivers for viper I got stuck in bootloop. This time I couldn't restore my backup. So I factory reset and reflashed pure nexus. Due to the time I couldn't try and restore the backup again but will try tonight. If I wasn't so hasty I could've deleted the modules list in twrp then maybe booted up but I'm not 100% it has anything to do with xposed. One other factor, it was using dark stock theme.
EVERYTHING I mentioned I've done/run on this ROM without issues but there's a combination of things that's causing the bootloop I think.

Restored a TWRP backup, now swipe pattern isn't working

So, I just restored a TWRP backup to my phone from earlier today, and upon boot, I can't unlock my phone. My fingerprint brings up the unlock pattern as normal, but my phone doesn't accept the pattern. And it's the same pattern I've always used, so it's not just me being stupid. Anyone know of a way around this? I'm going to try restoring the backup again, but I'm guessing it won't work any differently the 2nd time.
sfreemanoh said:
So, I just restored a TWRP backup to my phone from earlier today, and upon boot, I can't unlock my phone. My fingerprint brings up the unlock pattern as normal, but my phone doesn't accept the pattern. And it's the same pattern I've always used, so it's not just me being stupid. Anyone know of a way around this? I'm going to try restoring the backup again, but I'm guessing it won't work any differently the 2nd time.
Click to expand...
Click to collapse
http://forum.xda-developers.com/nexus-6p/general/psa-twrp-backups-lockscreen-security-t3245070
matt4321 said:
http://forum.xda-developers.com/nexus-6p/general/psa-twrp-backups-lockscreen-security-t3245070
Click to expand...
Click to collapse
Awesome, thanks

Nandroid backup bootloop

Hi guys, little issue here with nandroid backups. I've been using the 6p since it's release and have tried about 5 different Roms. I like switching between them monthly or weekly, but every time I attempt a nandroid restore, I get a boot loop. Every time. I'm using twrp recovery, and when I go into backup, I just leave the default ones chosen, but I've even tried choosing all of them. The boot loop goes on for over 10 minutes before I power it down. I've tried wiping the phone, minus storage, I've tried restoring without wiping and both fail.
Can anyone here tell me what I might be doing wrong? I've looked around for guides but they all seem to work without issue for everyone.
Edit: maybe if someone can write me a simple guide on how to do a nandroid or link me to one in case I missed a step, although it seems pretty straight forward, I'd appreciate it
Robertdudeman said:
Hi guys, little issue here with nandroid backups. I've been using the 6p since it's release and have tried about 5 different Roms. I like switching between them monthly or weekly, but every time I attempt a nandroid restore, I get a boot loop. Every time. I'm using twrp recovery, and when I go into backup, I just leave the default ones chosen, but I've even tried choosing all of them. The boot loop goes on for over 10 minutes before I power it down. I've tried wiping the phone, minus storage, I've tried restoring without wiping and both fail.
Can anyone here tell me what I might be doing wrong? I've looked around for guides but they all seem to work without issue for everyone.
Edit: maybe if someone can write me a simple guide on how to do a nandroid or link me to one in case I missed a step, although it seems pretty straight forward, I'd appreciate it
Click to expand...
Click to collapse
All you need for a backup is system, data, and boot if that's what you're doing it might be you need to flash the vendor
I'm having this issue as well. Maybe we can work together to narrow it down. This happens every time and the only reason can currently think of is that I may need to remove the fingerprint and pin security before the backup. My question to you is, have you tried disabling lockscreen security before backing up?
Robertdudeman said:
Hi guys, little issue here with nandroid backups. I've been using the 6p since it's release and have tried about 5 different Roms. I like switching between them monthly or weekly, but every time I attempt a nandroid restore, I get a boot loop. Every time. I'm using twrp recovery, and when I go into backup, I just leave the default ones chosen, but I've even tried choosing all of them. The boot loop goes on for over 10 minutes before I power it down. I've tried wiping the phone, minus storage, I've tried restoring without wiping and both fail.
Can anyone here tell me what I might be doing wrong? I've looked around for guides but they all seem to work without issue for everyone.
Edit: maybe if someone can write me a simple guide on how to do a nandroid or link me to one in case I missed a step, although it seems pretty straight forward, I'd appreciate it
Click to expand...
Click to collapse
stryver said:
I'm having this issue as well. Maybe we can work together to narrow it down. This happens every time and the only reason can currently think of is that I may need to remove the fingerprint and pin security before the backup. My question to you is, have you tried disabling lockscreen security before backing up?
Click to expand...
Click to collapse
You're most likely selecting the wrong options when creating the backup. There's a section dedicated to nandroid backups in my guide here:
http://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928
This helped a lot, thank you.

Can't unlock pattern and TWRP shows no files

Earlier I was on Megapixel Rom running february vendor img. I flashed my PN ROM backup thru flashify then it boots up with my security lock pattern. It shows that my pattern is not correct. I am rebooting to y TWRP but still it doesn't show me any files and I cant flash a zip rom. Someone help me (((
Try using different decryption method...
Your problem seems to be unsolvable right now. This is a known bug or vulnerability in the latest release of TWRP build. I am sorry.
Gameplay_Ethan said:
Your problem seems to be unsolvable right now. This is a known bug or vulnerability in the latest release of TWRP build. I am sorry.
Click to expand...
Click to collapse
wow I am in shock right now, idk what to do.. my computer doesn't recognize my phone even though Im on bootloader/twrp
lesterinidad said:
wow I am in shock right now, idk what to do.. my computer doesn't recognize my phone even though Im on bootloader/twrp
Click to expand...
Click to collapse
factory reset?
v12xke said:
factory reset?
Click to expand...
Click to collapse
idk what I did but the files suddenly shows but it wipes my media.. only problem now is whenever I reboot into TWRP it asks me the password to decrypt and after I booted up it also ask me my password to start my device like a pop up message
lesterinidad said:
idk what I did but the files suddenly shows but it wipes my media.. only problem now is whenever I reboot into TWRP it asks me the password to decrypt and after I booted up it also ask me my password to start my device like a pop up message
Click to expand...
Click to collapse
See the sticky thread in General: https://forum.xda-developers.com/nexus-6p/general/psa-twrp-backups-lockscreen-security-t3245070
You might be better off flashing the full factory image to start over and then reflash whatever you want in terms of recovery and custom rom. I did that when I was in the same situation as you. But I have never successfully restored a nandroid backup on the 6P and I never had that problem with any other phone I have ever owned. Different versions of TWRP only give me different issues when I try to restore a backup. I've had bootloops. I've had TWRP ask for a password even though I removed security before making the back up as people advise. I've had backups that seemed to restore until I started getting error messages that there was something wrong with my device and I should contact the phone manufacturer. I've given up on Nandroid backups on this phone.

Categories

Resources