Related
Hey All!
I've been browsing the XDA scene for a while after getting my new E4GT back in November, and until now haven't had any sort of problem flashing roms, themes, mods, and the like.
I had flashed the phone back to stock EL29 in order to have a chance to return the phone to my carrier for some USB issues I'm having...
But earlier today, I put a pin code on my phone in order to secure it when being put into a shared locker at my work, and I promptly forgot it. Now here's my problem:
I can't access the phone. I've tried every combination of every pin I think of that I would have used. Now, I wouldn't have thought this would be an issue, being able to hard reset the phone.
Well, it won't let me do any sort of factory reset to the phone without inputting the forgotten pin...
Read online that after 5 failed entries, Android asks for other security info to override pin codes. 50 failed attempts later, no prompts.
Ok no problem, I'll Odin EL29 using the rooted one-click method to put stock back onto the phone. (No Go... requires PIN to even boot system)
Ok I'll flash CWM5 (was able to get in and flash a rom that was on my SD card)
Success! I have a bootable OS now, and can change security.
Go to re-activate PIN security, type in new security code, it accepts it. Lock the Phone, put in the -new-code (that was just made), and it's incorrect.
Reboot CWM5, Wipe Data, Cache, etc. and reboot. Able to access phone again.
Go to try a password based security using a simple password. Lock the phone, put in the new password, and again it's incorrect.
Basically, no matter what I do, if I put a pin or password, it defaults to that forgotten pin code and locks me out of my phone.
Now my question to everyone is this:
Is there a way to wipe the boot-loader security, so it wont override the new settings, so that i can use my own passwords again?
(As a side note, pattern unlocks work)
I think if you had held the power button down, the phone should have rebooted no matter what. A battery pull of course would have too.
Did you do a format all then you reinstalled the rom? You should still do the one-click and reinstall the rom now that the phone is back up to see if the problem still persists.
try last 4 digits of your phone # or 0000.
SilverDFlame said:
Hey All!
I've been browsing the XDA scene for a while after getting my new E4GT back in November, and until now haven't had any sort of problem flashing roms, themes, mods, and the like.
I had flashed the phone back to stock EL29 in order to have a chance to return the phone to my carrier for some USB issues I'm having...
But earlier today, I put a pin code on my phone in order to secure it when being put into a shared locker at my work, and I promptly forgot it. Now here's my problem:
I can't access the phone. I've tried every combination of every pin I think of that I would have used. Now, I wouldn't have thought this would be an issue, being able to hard reset the phone.
Well, it won't let me do any sort of factory reset to the phone without inputting the forgotten pin...
Read online that after 5 failed entries, Android asks for other security info to override pin codes. 50 failed attempts later, no prompts.
Ok no problem, I'll Odin EL29 using the rooted one-click method to put stock back onto the phone. (No Go... requires PIN to even boot system)
Ok I'll flash CWM5 (was able to get in and flash a rom that was on my SD card)
Success! I have a bootable OS now, and can change security.
Go to re-activate PIN security, type in new security code, it accepts it. Lock the Phone, put in the -new-code (that was just made), and it's incorrect.
Reboot CWM5, Wipe Data, Cache, etc. and reboot. Able to access phone again.
Go to try a password based security using a simple password. Lock the phone, put in the new password, and again it's incorrect.
Basically, no matter what I do, if I put a pin or password, it defaults to that forgotten pin code and locks me out of my phone.
Now my question to everyone is this:
Is there a way to wipe the boot-loader security, so it wont override the new settings, so that i can use my own passwords again?
(As a side note, pattern unlocks work)
Click to expand...
Click to collapse
Excuse me if I missed something because I skimmed through your paragraph but I had the same problem with this phone and I followed sfhubs directions to the tee for restoring a phone with a pin code and it worked flawlessly.
http://forum.xda-developers.com/showthread.php?t=1433101
Note #1: Please DISABLE any PIN code you may have created to protect your phone. As a security measure, after the flash, Android will ask you for your PIN, if you have one enabled. It is simpler to have no PIN active. If you forgot your PIN then, after the factory restore, just enter the wrong PIN a few times and it will warn you. Enter the wrong PIN again and it will reset the filesystem.
Click to expand...
Click to collapse
^^^that gets done right after you odin it back to stock or restore it in his words
I managed to somehow break my 3 week old HTC 10's rear camera glass so I'm going to get it replaced via the "Uh-Oh Protection" since I bought from HTC directly.
I have the Unlocked US edition, but use it on Verizon. When I get my replacement phone, I'll go through the steps to Unlock via HTC dev, run Sunshine for S-OFF and change the CID/MID to Verizon. At that point, can I just flash a NANDROID backup from my old device onto the new one to get my ROM / Apps / etc. back? Will there be any issues since it'll be different hardware? The NANDROID will contain everything I need so I won't need to first apply the VZW RUU right? I think I've done it before on previous HTC hardware but I want to check if it'll work before I try it. Will encryption be an issue?
Sounds good as long as correct firmware is also flashed
drumz0rz said:
I managed to somehow break my 3 week old HTC 10's rear camera glass so I'm going to get it replaced via the "Uh-Oh Protection" since I bought from HTC directly.
I have the Unlocked US edition, but use it on Verizon. When I get my replacement phone, I'll go through the steps to Unlock via HTC dev, run Sunshine for S-OFF and change the CID/MID to Verizon. At that point, can I just flash a NANDROID backup from my old device onto the new one to get my ROM / Apps / etc. back? Will there be any issues since it'll be different hardware? The NANDROID will contain everything I need so I won't need to first apply the VZW RUU right? I think I've done it before on previous HTC hardware but I want to check if it'll work before I try it. Will encryption be an issue?
Click to expand...
Click to collapse
I don't see it being any issue.
So I just got my replacement phone. I followed the exact same steps as I did on my original HTC 10 to get s-off and convert to Verizon (used the same files as well). I made a fresh NANADROID backup on the old phone in TWRP, copied it over to the new phone, and restored it. When I reboot I get stuck on the white splash screen. I tried wiping the cache but I can't progress further.
I was really hoping I'd just be able to use the NANDROID so I don't have to go through the arduous process of backing up all of my apps and settings, and copying them over in TiBu, and having to recustomize everything in VenomHub/Xposed.
What am I doing wrong?
drumz0rz said:
So I just got my replacement phone. I followed the exact same steps as I did on my original HTC 10 to get s-off and convert to Verizon (used the same files as well). I made a fresh NANADROID backup on the old phone in TWRP, copied it over to the new phone, and restored it. When I reboot I get stuck on the white splash screen. I tried wiping the cache but I can't progress further.
I was really hoping I'd just be able to use the NANDROID so I don't have to go through the arduous process of backing up all of my apps and settings, and copying them over in TiBu, and having to recustomize everything in VenomHub/Xposed.
What am I doing wrong?
Click to expand...
Click to collapse
Try dirty flashing ROM
How would changing devices between TWRP backup/restore affect encryption?
EDIT: Since TWRP decrypts now, phone encryption would be a moot point in this context.
I received a replacement Uh-Oh phone from HTC. Unlocked bootloader, installed TWRP and S-Offed. Tried using my Nandroid to restore but TWRP would not see it (file names different, based on S/N). I created a small new backup to create the proper file structure and renamed the old Nandroid backup and placed it in the proper directory. Still would not work so I went to my TiBu backup and reset everything back up.
Here's a strange result though - my fingerprint works fine to unlock the phone but somewhere along the line (perhaps my attempt restoring Nandroid) the pattern lock changed. So now I cannot unlock phone using the pattern and cannot change it. I can use fingerprint so it works for now but I would like to reset the pattern lock - any ideas?
stebaile said:
I received a replacement Uh-Oh phone from HTC. Unlocked bootloader, installed TWRP and S-Offed. Tried using my Nandroid to restore but TWRP would not see it (file names different, based on S/N). I created a small new backup to create the proper file structure and renamed the old Nandroid backup and placed it in the proper directory. Still would not work so I went to my TiBu backup and reset everything back up.
Here's a strange result though - my fingerprint works fine to unlock the phone but somewhere along the line (perhaps my attempt restoring Nandroid) the pattern lock changed. So now I cannot unlock phone using the pattern and cannot change it. I can use fingerprint so it works for now but I would like to reset the pattern lock - any ideas?
Click to expand...
Click to collapse
So when you did a restore with TWRP, what was the result? What does "still would not work" mean exactly? What did the log say?
I'll have to dig into the log file but it is my habit to only backup /data. That's what I was trying to restore. I might need to factory reset to get the pin reset I suppose. Was hoping there was a file I could delete to reset the encryption.
Sent from my HTC 10 using XDA-Developers mobile app
Just in case anyone has this issue of losing their pattern lock from a Nandroid restore I found the answer in a different thread. Use a file manager with root access such as Root Explorer, or use TWRP's file manager capability to delete the locksettings.* files in /data/system. Reboot and your device will no longer have a pattern lock. You will need to create a new pattern lock along with new fingerprint unlocks.
stebaile said:
might need to factory reset to get the pin reset I suppose. Was hoping there was a file I could delete to reset the encryption.
Click to expand...
Click to collapse
Factory reset erases everything, leaving nothing to decrypt.
Your idea of "reset encryption" would make encryption useless if anyone could just remove the lock without the PIN/password.
stebaile said:
Just in case anyone has this issue of losing their pattern lock from a Nandroid restore I found the answer in a different thread. Use a file manager with root access such as Root Explorer, or use TWRP's file manager capability to delete the locksettings.* files in /data/system. Reboot and your device will no longer have a pattern lock. You will need to create a new pattern lock along with new fingerprint unlocks.
Click to expand...
Click to collapse
Rolo42 said:
Factory reset erases everything, leaving nothing to decrypt.
Your idea of "reset encryption" would make encryption useless if anyone could just remove the lock without the PIN/password.
Click to expand...
Click to collapse
Next time just read the TWRP FAQ
http://forum.xda-developers.com/htc-10/development/recovery-twrp-touch-recovery-t3358139/page74
10. After I restored my Data backup and boot back to Android, I'm entering the correct PIN/password, but it's telling me the password is wrong. What happened, and how do I fix it?
It appears that sometimes after restoring a backup of Data where security was enabled (such as a PIN or password lock), the device does not recognize the correct password. There are two ways to avoid this issue:
Disable security in Android?*before?*making a backup of data.
After restoring Data, while still in TWRP, use the TWRP File Manager to navigate to /data/system and delete all the locksettings.* files (such as locksettings.db, etc). When you reboot, the password will be gone.
Click to expand...
Click to collapse
Maik268 said:
Next time just read the TWRP FAQ
http://forum.xda-developers.com/htc-10/development/recovery-twrp-touch-recovery-t3358139/page74
Click to expand...
Click to collapse
Is that referring to unlocking the screen or decrypting the device?
The question was referring to encryption.
When TWRP restores a backup, is it encrypted? (There's a few "it depends" to that question I would think.)
Hello xda community,
I've been having a problem with my OP3, I really like to flash a new rom quite regularly, like most people here, so Nandroid backups are awesome. However, for a while now I've been trying to switch between backups, but whenever they are done betting they ask me for my passcode, but it's always wrong no matter what I put in. Is there a way to fix this? I already tried wiping NY whole phone even /data so it was completely empty. I also turned off the option to retire the passcode before the boot finishes.
I would really appreciate any suggestions.
If it's the encryption pin, I'm not too sure what to tell you. However, if it's just the lock screen pin, after you restore, you go into the two file explorer and delete a few files from /data/system. Two of them are gatekeeper.password.key and gatekeeper.pattern.key and the other three are locksettings.db, locksettings.db-shm, and locksettings.db-wal. Then you can reboot after. Keep note that you'll need to go back into your security settings once the ROM boots and reactivate your preferred unlock method, the fingerprint data will not be touched however
Just DO NOT set a pin code or any security lock before doing Nandroid back up
Wow thanks for the quick answers. Now I've got both grounds covered thanks so much. I actually can't believe that I didn't think to disable the picture code before making a Nandroid. I guess it's because I never used a pin code on any of my previous phones before the OP3 as they had no fingerprintscanner.
Hi guys, first, sry for my bad english.
I have a huge Problem. I did a Twrp Backup from my Viper rom. After Backing up, i installed cm13. After that, i would go back to my backup from Viper. The Problem is, i can restore the Backup but ive got a bootloop. How can i go back to my Backup ?
Next Problem is, everytime i start into twrp i got asked for the Decrypt password. How can i deactivate that ?
Which TWRP version are you currently on? Sounds asbif it is an older one. If so, try the latest 3.0.2-6 and report back.
Sent from my htc_pmeuhl using XDA Labs
hi, im on 3.0.2-6.
Now i restored my Viper backup. It Boots normaly.
Then i have type my Pin, that works. But after that, i have to unlock the Pattern lock. But it says my Code is Wrong.
I know it is the right code. I can try 1000000 different times, i cant unlock
pboden83 said:
hi, im on 3.0.2-6.
Now i restored my Viper backup. It Boots normaly.
Then i have type my Pin, that works. But after that, i have to unlock the Pattern lock. But it says my Code is Wrong.
I know it is the right code. I can try 1000000 different times, i cant unlock
Click to expand...
Click to collapse
directly from twrp FAQ:
"After I restored my Data backup and boot back to Android, I'm entering the correct PIN/password, but it's telling me the password is wrong. What happened, and how do I fix it?
It appears that sometimes after restoring a backup of Data where security was enabled (such as a PIN or password lock), the device does not recognize the correct password. There are two ways to avoid this issue:
Disable security in Android before making a backup of data.
After restoring Data, while still in TWRP, use the TWRP File Manager to navigate to /data/system and delete all the locksettings.* files (such as locksettings.db, etc). When you reboot, the password will be gone."
pboden83 said:
hi, im on 3.0.2-6.
Now i restored my Viper backup. It Boots normaly.
Then i have type my Pin, that works. But after that, i have to unlock the Pattern lock. But it says my Code is Wrong.
I know it is the right code. I can try 1000000 different times, i cant unlock
Click to expand...
Click to collapse
adb into the phone via TWRP or live system and rm -rf /system/data/*.key and locksettings* this will reset the security. no one currently knows why twrp is doing this but it seems to only happen to me when flashing a different rom then going back. it does NOT does this if restoring a previous backup of my current rom.
really the only file you need to delete is the locksettings.db file. I've never had issues deleting just that one.
I also tried this way to delete the locksetting.db and can bypass the suck lockscreen!
BTW, highly recommend you that in addition to whole system backup in TWRP, also use Titanium Backup to backup all user apps. In case of restore failure, you still can preserve your user apps and restore in newly installed system.
I was trying to get rooted, I've downgraded and am on 5.1.1 on the CPD firmware currently, but I can't get wifi back. I had the boot loader unlocked but somehow lost it after flashing to the CPD firmware. I was using this guide: https://forum.xda-developers.com/no...guide-step-step-stock-n910v-6-0-1-to-t3426905
I've made it to step 35 from there, but I can't get Kingroot to work on this current firmware because of no wifi, I guess. It tries but it keeps failing.
Any ideas or suggestions? At this point I don't care if I have root or not, I just need a workable phone with wifi
At that point, you need a SIM card because you are on the updated bootloader (CPD1) for 6.01 and will not have WiFi. You have upgraded the bootloader, but you're still on the older 5.11 baseband. Pop a SIM card into the phone and root it once again. Then follow the rest of the instructions. It works. I've done it on multiple devices.
BeckPC said:
At that point, you need a SIM card because you are on the updated bootloader (CPD1) for 6.01 and will not have WiFi. You have upgraded the bootloader, but you're still on the older 5.11 baseband. Pop a SIM card into the phone and root it once again. Then follow the rest of the instructions. It works. I've done it on multiple devices.
Click to expand...
Click to collapse
Unfortunately, I've pulled the sim from my working phone and put it into this one, and despite running KingRoot about a dozen times now, I can't ever get it to go through. I don't know if I don't have enough data bandwidth here in the area for it to work entirely correct, or what, but I can't seem to get past this stage or get any wifi up and going again.
hondaatc said:
Unfortunately, I've pulled the sim from my working phone and put it into this one, and despite running KingRoot about a dozen times now, I can't ever get it to go through. I don't know if I don't have enough data bandwidth here in the area for it to work entirely correct, or what, but I can't seem to get past this stage or get any wifi up and going again.
Click to expand...
Click to collapse
It sounds like you're stuck on a 6.01 ROM with a 5.11 bootloader. You have a few more steps to complete before you're ready to flash to your hearts content. King Root doesn't download much.
I had the same problem once. Go to setting and do a hard reset on the device, wiping all data and let it boot up for the first time (with the same ROM installed. Don't sign into Google, just skip all the setup routines. Install King Root and try again. It should work. It might take a few times. It's extremely unstable. As soon as you get root, run the ADB routine quickly and unlock the bootloader. Now you can use ODIN to flash the final file N910VVRU2BPA1_N910VVRU2CPD1_FullFirmware.tar. That will update you to the new firmware and restore your wifi. Don't let the phone reboot automatically. Once it's done, pull the battery. Leave it out for a minute at least. Then start up the phone in bootloader mode (vol down, home and power). Immediately after that, you want to use ODIN to install the twrp 3.0.20 file as well.
Now boot up the phone and enter TWRP. Do a standard wipe (cache/dalvic/data) but not System. Do it twice. Now reboot. You should be unlocked (open padlock on the screen) and booting into 6.0.1. You can check for root. At this point, you should be good. Now you can flash any ROM that requires the CPD1 firmware. You can always update the modem, but your firmware will remain at that version. Personally, I recommend Modest Rom 8. It's as close to stock as you can get, with a few nice tweaks and addons that makes life a bit better. From there, you can experiment all you want.
Two more bits of advice ... once you have it rooted and fixed up, you need to do two things.
1. Use Root Explorer to completely delete all files from /systems/efs folder. Why you ask, this folder will contain chinese junk that will slow down your phone. Trust me. It works and hurts nothing. Do this especially after rooting.
2.Use TWRP to make a backup of the complete system to your memory card. It's so much easier to go back and restore, than it is to redo all the work you just did.
BeckPC said:
It sounds like you're stuck on a 6.01 ROM with a 5.11 bootloader. You have a few more steps to complete before you're ready to flash to your hearts content. King Root doesn't download much.
I had the same problem once. Go to setting and do a hard reset on the device, wiping all data and let it boot up for the first time (with the same ROM installed. Don't sign into Google, just skip all the setup routines. Install King Root and try again. It should work. It might take a few times. It's extremely unstable. As soon as you get root, run the ADB routine quickly and unlock the bootloader. Now you can use ODIN to flash the final file N910VVRU2BPA1_N910VVRU2CPD1_FullFirmware.tar. That will update you to the new firmware and restore your wifi. Don't let the phone reboot automatically. Once it's done, pull the battery. Leave it out for a minute at least. Then start up the phone in bootloader mode (vol down, home and power). Immediately after that, you want to use ODIN to install the twrp 3.0.20 file as well.
Now boot up the phone and enter TWRP. Do a standard wipe (cache/dalvic/data) but not System. Do it twice. Now reboot. You should be unlocked (open padlock on the screen) and booting into 6.0.1. You can check for root. At this point, you should be good. Now you can flash any ROM that requires the CPD1 firmware. You can always update the modem, but your firmware will remain at that version. Personally, I recommend Modest Rom 8. It's as close to stock as you can get, with a few nice tweaks and addons that makes life a bit better. From there, you can experiment all you want.
Two more bits of advice ... once you have it rooted and fixed up, you need to do two things.
1. Use Root Explorer to completely delete all files from /systems/efs folder. Why you ask, this folder will contain chinese junk that will slow down your phone. Trust me. It works and hurts nothing. Do this especially after rooting.
2.Use TWRP to make a backup of the complete system to your memory card. It's so much easier to go back and restore, than it is to redo all the work you just did.
Click to expand...
Click to collapse
Well that gives me some hope I'm on the right track, I guess I'll keep trying. I've done much of that, and the thing is every time I do a factory reset (Like before an odin flash), I get stuck in a boot loop again until it seemingly randomly comes out of it and starts up normal again, so its kinda spooky doing that. All the steps and finagling makes me yearn for my old Samsung Moment that was a simple drop a rom onto the SD card...lol
If you have the SD card installed, remove it. It may need to be cleaned for the phone to boot properly.
Just do the wipe and reboot normally. See if it will continue. You'll need the SD card later, but it needs to be formatted if it was used during the bootloader backup. It looks like you are almost finished. Just one more round with the ADB command and you'll be complete.
BeckPC said:
If you have the SD card installed, remove it. It may need to be cleaned for the phone to boot properly.
Just do the wipe and reboot normally. See if it will continue. You'll need the SD card later, but it needs to be formatted if it was used during the bootloader backup. It looks like you are almost finished. Just one more round with the ADB command and you'll be complete.
Click to expand...
Click to collapse
Okay, so I went back and did factory reset from recovery console to retry Kingroot. I noticed though, it set me back to BPA, and not CPD1. So now I'm trying to use odin to back back up to CPD1.
Was this normal, for a factory reset to go back to BPA, or should it have kept me on CPD1?
It sounds like you missed a step unlocking the bootloader. You have to do it three times, with each firmware update you do. A factory reset should not have rolled back to BPA1. Why don't you take a look at the other thread on rooting and use it. When I got to the bottom of the one you're using, I knew I didn't want to do the Jasmine ROM, so I followed this one: https://forum.xda-developers.com/no...asy-guide-how-to-root-verizon-galaxy-t3454593
Just take it slowly and it will take a couple of hours, but once it's done, you'll be rooted.
hondaatc said:
Okay, so I went back and did factory reset from recovery console to retry Kingroot. I noticed though, it set me back to BPA, and not CPD1. So now I'm trying to use odin to back back up to CPD1.
Was this normal, for a factory reset to go back to BPA, or should it have kept me on CPD1?
Click to expand...
Click to collapse
If you have rooting issues try inputting the proper APN manually before attempting to root. That was my issue. Even tho it recognized my sim it wouldn't root until I put in my actual APN settings for Koodo.
Try an older version of the root apps also.