Related
Hello, I hope it's the right part of XDA to post my thread as I have serious issues here.
Got my HTC 10 (with Android 6)back from repair today and restored my backup.
But dumb me it seems as if i set a password/patern whatever and i can't remember it.
So after a restart i can't unlock my phone cause it's asking for the code (and won't let unlock only with fingerprint) and i can't remember.
All combination that i would have used are wrong and now i got a working phone back again (after almost 2 month of repairing) and can't unlock it.
Is there any way of bypassing/ignoring the restart password or is it possible to only unlock it again with the fingerprint that is stored?
As i don't know what i should do if i don't get my phone unlocked
I tried to factory reset it andxthat worked but all my apps and data is gone as google seems to only restore some apps and almost no data of the apps.
So i set it up as a new device and only restored /data but immediately after reboot I was asked to put in the forgotten password.
So is there anyway of bypassing the pin/pattern after restart and only unlock the device with the fingerprint that is stored. And if not, is there any way of being able to use my /data after a factory reset again?
Kind regards
Hi,
My phone and all my personal data (4 years of photos, videos, and other app data) just got WIPED.
Here's how it happened:
* I was on OS 5.1.5 till yesterday. Had TWRP as my recovery and Magisk as my root method. Everything was hunky dory.
* Oxygen OS 5.1.6 hit my phone today. I downloaded the update and installed it. Before installing - it clearly stated that my phone will be unrooted by the update. I was ok with that, as I would have simply installed Magisk again from TWRP.
* After the reboot, I opened Magisk manager and saw that Magisk wasn't installed.
* So I did a reboot to recovery from the phone's reboot options (advanced reboot was ON in developer options)
* It did not boot to TWRP. Instead, I saw a stock recovery type screen (black background, OnePlus logo).
* There was a single text called "Decrypt" and a terminal type basic keyboard displayed on the screen.
* At this point I knew TWRP is gone and this would definitely be the stock recovery, asking me for my PIN, to decrypt storage.
* I entered my PIN and pressed ok. IMMEDIATELY after that the screen displayed the message - "Wiping" along with "do not turn off your device while this happens" or similar.
* I was shocked to see this, as all I had done was enter my PIN in a stock-looking recovery with the OnePlus logo.
* The phone rebooted, and lo and behold - I see the new installation screen saying "Hello" to me!
ALL MY DATA IS GONE. Without any fault of mine! I simply did an OS update, and boot to recovery!
PLEASE HELP!
So you went 4 years without doing a backup? I think your out of luck.
First, I am pretty sure all your data is gone absent some expensive recovery.
Second, when you took the ota, you went back to stock, which is why twrp and magisk disappeared. This is actually how the system is supposed to work.
I don't know what you did in the stock recovery to cause a wipe. You should have rebooted to bootloader and reinstalled twrp from fastboot.
iElvis said:
First, I am pretty sure all your data is gone absent some expensive recovery.
Click to expand...
Click to collapse
is it possible to recover encrypted storage on an android? i have simply turned the phone off immediately on seeing the new install screen boot up.
iElvis said:
Second, when you took the ota, you went back to stock, which is why twrp and magisk disappeared. This is actually how the system is supposed to work.
Click to expand...
Click to collapse
Fair enough. I knew that.
iElvis said:
I don't know what you did in the stock recovery to cause a wipe. You should have rebooted to bootloader and reinstalled twrp from fastboot.
Click to expand...
Click to collapse
This is exactly where it's just crazy wrong. It just booted up to a recovery, with a screen saying "Decrypt" and a keyboard! NO mention of the next step being "Wiping".. ! This is just plain crazy, if that's how its designed!
94burns said:
So you went 4 years without doing a backup? I think your out of luck.
Click to expand...
Click to collapse
pretty much. was just migrating data from one phone to the next using titanium backup/restore.
How could 4 years of photos and vids be gone? The phone is only weeks old. Surely you have backed these up to a cloud or even a pc at some stage? If you habe data backup turned on, you should have all your apps ready to reinstall.
You should have booted into bootloader, flashed twrp and magisk after the update. The OTA will always resort any custom recovery to stock.
hallo dare said:
How could 4 years of photos and vids be gone? The phone is only weeks old.
Click to expand...
Click to collapse
I just kept migrating it from the previous phones to the next phones. Google photos does have backup of photos and videos. But there was so much more: SMS, call logs, whatsapp photos (the ones which were unlinked due to being moved to SD card earlier), screenshots, voice recordings, telegram images/videos, google authenticator tokens, and many apps whose data doesn't get backed up as part of android/google backup.
angadsingh said:
is it possible to recover encrypted storage on an android? i have simply turned the phone off immediately on seeing the new install screen boot up.
This is exactly where it's just crazy wrong. It just booted up to a recovery, with a screen saying "Decrypt" and a keyboard! NO mention of the next step being "Wiping".. ! This is just plain crazy, if that's how its designed!
Click to expand...
Click to collapse
I don't have answers for either question. You might have more luck posting in the OP community, or in the official firmware thread.
angadsingh said:
Hi,
My phone and all my personal data (4 years of photos, videos, and other app data) just got WIPED.
Here's how it happened:
* I was on OS 5.1.5 till yesterday. Had TWRP as my recovery and Magisk as my root method. Everything was hunky dory.
* Oxygen OS 5.1.6 hit my phone today. I downloaded the update and installed it. Before installing - it clearly stated that my phone will be unrooted by the update. I was ok with that, as I would have simply installed Magisk again from TWRP.
* After the reboot, I opened Magisk manager and saw that Magisk wasn't installed.
* So I did a reboot to recovery from the phone's reboot options (advanced reboot was ON in developer options)
* It did not boot to TWRP. Instead, I saw a stock recovery type screen (black background, OnePlus logo).
* There was a single text called "Decrypt" and a terminal type basic keyboard displayed on the screen.
* At this point I knew TWRP is gone and this would definitely be the stock recovery, asking me for my PIN, to decrypt storage.
* I entered my PIN and pressed ok. IMMEDIATELY after that the screen displayed the message - "Wiping" along with "do not turn off your device while this happens" or similar.
* I was shocked to see this, as all I had done was enter my PIN in a stock-looking recovery with the OnePlus logo.
* The phone rebooted, and lo and behold - I see the new installation screen saying "Hello" to me!
ALL MY DATA IS GONE. Without any fault of mine! I simply did an OS update, and boot to recovery!
PLEASE HELP!
Click to expand...
Click to collapse
You have a rooted device with a custom recovery so how did you install those in the first place and not loose data then? That wipes your phone doing that. It wiped again because it was being unlocked and relocked that always wipes it. Don't claim this is no fault of your own your running a modified device so yes it is your fault don't come on here and play victim it's really annoying
---------- Post added at 11:50 AM ---------- Previous post was at 11:47 AM ----------
94burns said:
So you went 4 years without doing a backup? I think your out of luck.
Click to expand...
Click to collapse
Wants to go 4 years without a backup then mod his phone and claim it's not his fault he lost data ??? what a joke
That happened to me too, but I solved it because after I flashed stock and then upgraded to 5.1.6 I installed TWRP in fastboot before booting to recovery.
angadsingh said:
I just kept migrating it from the previous phones to the next phones. Google photos does have backup of photos and videos. But there was so much more: SMS, call logs, whatsapp photos (the ones which were unlinked due to being moved to SD card earlier), screenshots, voice recordings, telegram images/videos, google authenticator tokens, and many apps whose data doesn't get backed up as part of android/google backup.
Click to expand...
Click to collapse
Surely you have those titanium backup files though still right? Just restore from that, sure you may lose a week or two but it's better than 4 years.
Sent from my ONEPLUS A6003 using Tapatalk
TechOut said:
You have a rooted device with a custom recovery so how did you install those in the first place and not loose data then? That wipes your phone doing that. It wiped again because it was being unlocked and relocked that always wipes it. Don't claim this is no fault of your own your running a modified device so yes it is your fault don't come on here and play victim it's really annoying
Click to expand...
Click to collapse
Android is supposed to wipe data only on unlocking the device. Once it's unlocked there's no reason Android should automatically wipe data.
It did not get relocked. It is still unlocked. How did you come to that conclusion?
Also, I root my device ONLY to install TitaniumBackup and Helium. I do not meddle with anything else being root (no ROMs, tweaks, etc.). Is it my fault that Android STILL doesn't have a way to backup everything without having to root your phone and install special backup apps?
How can the OS just wipe the data partition without user consent? With NO message displayed whatsoever. Just ask a password go on "Wiping.. please wait". What the hell.
geoff5093 said:
Surely you have those titanium backup files though still right? Just restore from that, sure you may lose a week or two but it's better than 4 years.
Click to expand...
Click to collapse
Yes I could recover some data from the SD card of my previous phone. Not the TB backups though.
I really need a way to (a) image the phone so that I can possibly recover/pay for recovery in the future (b) recover the data from the phone
I did a little reading. Apparently forced encryption is something that Android Oreo comes along with. All the data files are now by default encrypted (at a file level not a partition level). It is apparently encrypted with some randomly generated encryption key decided by Android, and not the PIN you have set to lock the phone. The PIN is just associated with that key. I'm pretty sure that key got deleted as well when the device was wiped (I'm assuming it must have been implemented like that as a security measure). So I have a wiped data partition with encrypted files!
NateDev said:
That happened to me too, but I solved it because after I flashed stock and then upgraded to 5.1.6 I installed TWRP in fastboot before booting to recovery.
Click to expand...
Click to collapse
You knew the data partition would get wiped otherwise? I've been rooting for years and never seen such behavior
angadsingh said:
Yes I could recover some data from the SD card of my previous phone. Not the TB backups though.
I really need a way to (a) image the phone so that I can possibly recover/pay for recovery in the future (b) recover the data from the phone
I did a little reading. Apparently forced encryption is something that Android Oreo comes along with. All the data files are now by default encrypted (at a file level not a partition level). It is apparently encrypted with some randomly generated encryption key decided by Android, and not the PIN you have set to lock the phone. The PIN is just associated with that key. I'm pretty sure that key got deleted as well when the device was wiped (I'm assuming it must have been implemented like that as a security measure). So I have a wiped data partition with encrypted files!
You knew the data partition would get wiped otherwise? I've been rooting for years and never seen such behavior
Click to expand...
Click to collapse
Take this as a lesson, always have a backup. Especially if you mod your phones
Sent from my ONEPLUS A6003 using Tapatalk
angadsingh said:
Android is supposed to wipe data only on unlocking the device. Once it's unlocked there's no reason Android should automatically wipe data.
It did not get relocked. It is still unlocked. How did you come to that conclusion?
Also, I root my device ONLY to install TitaniumBackup and Helium. I do not meddle with anything else being root (no ROMs, tweaks, etc.). Is it my fault that Android STILL doesn't have a way to backup everything without having to root your phone and install special backup apps?
How can the OS just wipe the data partition without user consent? With NO message displayed whatsoever. Just ask a password go on "Wiping.. please wait". What the hell.
Click to expand...
Click to collapse
It did have consent when you took the OTA with your modded device and it said decrypt and asked for your password it was about to wipe. Again you modded your phone and didn't keep a back up this is no one's fault but yours
Yeah I always back up my messages, photos, etc.. To a PC before any type of flash or update, I use smsbackup and have it uploaded to Google drive also titanuim backup and move the files to PC and just back ur DCIM folder. Sorry for ur luck but we all learn lessons the hard way, and no u Cannot recover, but if u have ur old phone may still have the texts on them and use oneplus switch to move them over
I guarantee this post is from a troll, nobody is dumb enough to do any or all of the idiotic things the OP claims.
Got the (important parts) of my data back. It only wiped the "data" partition - which contained internal app data and sms/calls, etc. It did not wipe the "sdcard" partition (also called "internal storage"). Found this out when I was installing TWRP again (before going through the OS welcome process) to create a dd image of my device for possibility of a future recovery. Android file transfer (thanks to TWRP's MTP support) popped up and showed all my files on the sdcard partition. Immediately backed it up.
To all those senior members who're making fun of this, thanks for all the help, really. You guys were really helpful.
angadsingh said:
Hi,
My phone and all my personal data (4 years of photos, videos, and other app data) just got WIPED.
Here's how it happened:
* I was on OS 5.1.5 till yesterday. Had TWRP as my recovery and Magisk as my root method. Everything was hunky dory.
* Oxygen OS 5.1.6 hit my phone today. I downloaded the update and installed it. Before installing - it clearly stated that my phone will be unrooted by the update. I was ok with that, as I would have simply installed Magisk again from TWRP.
* After the reboot, I opened Magisk manager and saw that Magisk wasn't installed.
* So I did a reboot to recovery from the phone's reboot options (advanced reboot was ON in developer options)
* It did not boot to TWRP. Instead, I saw a stock recovery type screen (black background, OnePlus logo).
* There was a single text called "Decrypt" and a terminal type basic keyboard displayed on the screen.
* At this point I knew TWRP is gone and this would definitely be the stock recovery, asking me for my PIN, to decrypt storage.
* I entered my PIN and pressed ok. IMMEDIATELY after that the screen displayed the message - "Wiping" along with "do not turn off your device while this happens" or similar.
* I was shocked to see this, as all I had done was enter my PIN in a stock-looking recovery with the OnePlus logo.
* The phone rebooted, and lo and behold - I see the new installation screen saying "Hello" to me!
ALL MY DATA IS GONE. Without any fault of mine! I simply did an OS update, and boot to recovery!
PLEASE HELP!
Click to expand...
Click to collapse
I think this is impossible.. First the phone didn't return to me the root message before updating like oneplus 5 and second point, if you enter the pin to decrypt your data in recovery it never do an automatic wipe i'm a bit confused on what you've really done, but for sure you did something wrong because updating system had never wiped anything
Hitman478™ said:
I think this is impossible.. First the phone didn't return to me the root message before updating like oneplus 5 and second point, if you enter the pin to decrypt your data in recovery it never do an automatic wipe i'm a bit confused on what you've really done, but for sure you did something wrong because updating system had never wiped anything
Click to expand...
Click to collapse
Well this is completely possible, I just had the same thing happened to me. It was exactly as OP described it (except it was OOS 5.1.7, and it did not even ask me to input a pin when I rebooted to recovery). Fortunately I had a backup, so it didn't impact me much but still, it is a very weird thing.
angadsingh said:
Got the (important parts) of my data back. It only wiped the "data" partition - which contained internal app data and sms/calls, etc. It did not wipe the "sdcard" partition (also called "internal storage"). Found this out when I was installing TWRP again (before going through the OS welcome process) to create a dd image of my device for possibility of a future recovery. Android file transfer (thanks to TWRP's MTP support) popped up and showed all my files on the sdcard partition. Immediately backed it up.
To all those senior members who're making fun of this, thanks for all the help, really. You guys were really helpful.
Click to expand...
Click to collapse
Thanks for being sarcastic about being helpful. Sorry we can't hold your hand and fix all your problems because your not responsible for your own actions of modding your phone and can't take the consequences when they arise. Maybe you should learn how some more things work and what can happen when you do this before you do it and don't backup your device ever
I updated to oreo but after flashing twrp I noticed that I can't use it because it's asking for decryption key.
How do I fix this? I found some post with a method to flash the rom without encryption but I'd like to keep the encryption if possible.
I think a factory reset fixed it the last time on nougat but last night my phone froze mid wipe which broke pretty much everything and took me a while to fix so I want to make sure this helps before doing it again
JimZiii said:
I updated to oreo but after flashing twrp I noticed that I can't use it because it's asking for decryption key.
How do I fix this? I found some post with a method to flash the rom without encryption but I'd like to keep the encryption if possible.
I think a factory reset fixed it the last time on nougat but last night my phone froze mid wipe which broke pretty much everything and took me a while to fix so I want to make sure this helps before doing it again
Click to expand...
Click to collapse
TWRP is not fully supported under Oreo. It can't handle the full disk encryption. I've read that it is possible to set PIN / password *before* TWRP is installed and then it would work with the pass or pin you set before. But this didn't work for me. And I think there is no point in using it. Backup / restore function don't work and there might be more functions do not work.
If it's for magisk, there is also a way to install it without TWRP and / or there is no need to have access to storage. Installer just patches the ramdisk and you're good to go in ignoring the errors.
Sent from my FRD-L09 using XDA Labs
cypher187 said:
TWRP is not fully supported under Oreo. It can't handle the full disk encryption. I've read that it is possible to set PIN / password *before* TWRP is installed and then it would work with the pass or pin you set before. But this didn't work for me. And I think there is no point in using it. Backup / restore function don't work and there might be more functions do not work.
If it's for magisk, there is also a way to install it without TWRP and / or there is no need to have access to storage. Installer just patches the ramdisk and you're good to go in ignoring the errors.
Sent from my FRD-L09 using XDA Labs
Click to expand...
Click to collapse
So what are you using instead if you want to flash something? I found some posts saying you can get twrp working with the encryption if you do a factory reset and data format in twrp, that way you should get encryption that twrp can read but I've tried this several times and my phone refuses to boot every time, it's not even boot looping, it just stays on that blue honor loading screen and with the little animation in the text so it didn't freeze. If I then try to do a factory reset in stock recovery it stops on 99%, forcing me to reboot, it then starts over and jumps to 100 and when it boots up pretty much all apps are gone, even system apps and keyboard apps so you can't type. If I try factory reset again the same thing happens, stops at 99 and so on
Now I have to recover it through erecovery.
Yea, I patched stock boot in the manager instead
JimZiii said:
So what are you using instead if you want to flash something? I found some posts saying you can get twrp working with the encryption if you do a factory reset and data format in twrp, that way you should get encryption that twrp can read but I've tried this several times and my phone refuses to boot every time, it's not even boot looping, it just stays on that blue honor loading screen and with the little animation in the text so it didn't freeze. If I then try to do a factory reset in stock recovery it stops on 99%, forcing me to reboot, it then starts over and jumps to 100 and when it boots up pretty much all apps are gone, even system apps and keyboard apps so you can't type. If I try factory reset again the same thing happens, stops at 99 and so on
Now I have to recover it through erecovery.
Yea, I patched stock boot in the manager instead
Click to expand...
Click to collapse
I didn't come in the situation to want to flash sth - except magisk. And I didn't want to try it as it gains no access to internal storage.
Boot screen takes up to 30 mins or more after formatting storage. Kernel encrypts it during this time. I cannot say if TWRP is able to read this encryption since it is hardware based. I think it is possible as TWRP should use same kernel on treble ROMs - as far as I know.
So... Just being very patient could make it - theoretically.
Let me know if it can :good:
Sent from my FRD-L09 using XDA Labs
JimZiii said:
I updated to oreo but after flashing twrp I noticed that I can't use it because it's asking for decryption key.
How do I fix this? I found some post with a method to flash the rom without encryption but I'd like to keep the encryption if possible.
I think a factory reset fixed it the last time on nougat but last night my phone froze mid wipe which broke pretty much everything and took me a while to fix so I want to make sure this helps before doing it again
Click to expand...
Click to collapse
Try removing pin/password in settings and see if it still asks for key.
ante0 said:
Try removing pin/password in settings and see if it still asks for key.
Click to expand...
Click to collapse
It does. And I tried it already right after flashing RROS system image (treble) and before setting a PIN and / or after removing PIN.
Look here https://forum.xda-developers.com/honor-8/help/internal-storage-encryption-t3452737 for background knowledge about this encryption.
Only way to get TWRP fully working on our device is to remove encryption through formatting the storage. But the kernel will encrypt every time while booting and TWRP will not be able to access storage anymore.
With the Nougat custom ROMs this was not relevant because they were using LOS kernel not the stock one. Treble ROMs are using stock kernel - which is, of course, an advantage.
And I didn't get TWRP to work *with* encryption (with entering PIN or whatsoever). I hope anybody can and tell me how to do or what I did wrong
Also I want a (safe) way to use it. Specially as I know that it's use is not supported by OpenKirin Team it should be safe before I really want to use it.
Sent from my FRD-L09 using XDA Labs
cypher187 said:
It does. And I tried it already right after flashing RROS system image (treble) and before setting a PIN and / or after removing PIN.
Look here https://forum.xda-developers.com/honor-8/help/internal-storage-encryption-t3452737 for background knowledge about this encryption.
Only way to get TWRP fully working on our device is to remove encryption through formatting the storage. But the kernel will encrypt every time while booting and TWRP will not be able to access storage anymore.
With the Nougat custom ROMs this was not relevant because they were using LOS kernel not the stock one. Treble ROMs are using stock kernel - which is, of course, an advantage.
And I didn't get TWRP to work *with* encryption (with entering PIN or whatsoever). I hope anybody can and tell me how to do or what I did wrong
Also I want a (safe) way to use it. Specially as I know that it's use is not supported by OpenKirin Team it should be safe before I really want to use it.
Sent from my FRD-L09 using XDA Labs
Click to expand...
Click to collapse
You can Format Data (removes encryption) and edit /vendor/etc/fstab.xxxx and remove the fileencryption line on /data.
I don't have an Honor 8 so I can't check it, but this is how it was done on Mate 9/10 before we got TWRP with decryption on Oreo.
Of course, flashing a new firmware will replace fstab so you'd have to edit it again/restore previously edited one.
Edit: Also, for fun, default password for decryption is "default_password", so you could try that. It most likely will do nothing. This is done automatically when you have no password/pin set.
cypher187 said:
I didn't come in the situation to want to flash sth - except magisk. And I didn't want to try it as it gains no access to internal storage.
Boot screen takes up to 30 mins or more after formatting storage. Kernel encrypts it during this time. I cannot say if TWRP is able to read this encryption since it is hardware based. I think it is possible as TWRP should use same kernel on treble ROMs - as far as I know.
So... Just being very patient could make it - theoretically.
Let me know if it can :good:
Sent from my FRD-L09 using XDA Labs
Click to expand...
Click to collapse
Oh ok, never knew it could take that long but I guess it makes sense. At one attempt I even waited 20-30min ?
I'll give it another shot when I got some time over.
But I just finished restoring everything from hisuite and changing back all my settings for the 6th time since hisuite don't save your system settings.
Do you know if it's possible to make a nand backup without twrp? Getting a complete nandroid backup would really help when you're not sure if the factory reset will help
---
JimZiii said:
Oh ok, never knew it could take that long but I guess it makes sense. At one attempt I even waited 20-30min
I'll give it another shot when I got some time over.
But I just finished restoring everything from hisuite and changing back all my settings for the 6th time since hisuite don't save your system settings.
Do you know if it's possible to make a nand backup without twrp? Getting a complete nandroid backup would really help when you're not sure if the factory reset will help
Click to expand...
Click to collapse
Unfortunately there is no way. Only with HiSuite or sth else. If your device is rooted you can use TitaniumBackup. It can provide a more complete backup of apps, app-data and settings.
Sent from my FRD-L09 using XDA Labs
Hi.
I use the fstab mod and do a full data format in TWRP. After that the data partition decrypted, but FRP locked, oem unlock grayed and I can't do set my google account. If I want to set the google account, the process is start but the screen is turn to black (navigation buttons show on the bottom of the screen) and nothing more. Some seconds later its drop me back to settings page.
TWRP installed.
Bootloader unlocked
Rooted with Magisk
FRP locked
Stock recovery not flashed back because HWMT show FRP locked
Mumtaz77 said:
Hi.
I use the fstab mod and do a full data format in TWRP. After that the data partition decrypted, but FRP locked, oem unlock grayed and I can't do set my google account. If I want to set the google account, the process is start but the screen is turn to black (navigation buttons show on the bottom of the screen) and nothing more. Some seconds later its drop me back to settings page.
TWRP installed.
Bootloader unlocked
Rooted with Magisk
FRP locked
Stock recovery not flashed back because HWMT show FRP locked
Click to expand...
Click to collapse
Install a full package via dload method. Take an 'unbrick' guide from the guides section if you need. You can use a 'FullOTA' package for your region which you can download with FirmwareFinder by TeamMT.
Sent from my FRD-L09 using XDA Labs
I removed all of the security parameters to make a backup so that, theoretically, I wouldn't run into the pin number obstacle, as my device is encrypted. Upon returning to security settings to setup my fingerprint I keep getting the message: Fingerprint Setup Cancelled Please Try Again. I've tried everything short of factory reset, or reflashing my custom ROM. At the moment, I'm restoring my Nandroid backup which I'm sure wont work, since it will take me to square one. I've found no threads on XDA concerning this, just some unintelligent threads on Verizon and T-Mobile where nobody knows anything. If anybody has found a solution to this, please help.
Edit: Just for the record, removing security parameters did not bypass the necessity to enter the decryption pin. Also, Nandroid made phone very slow and unstable. Looks as though I'm going to have to perform a clean wipe. My original question is still relevant though, as I'm not the first that this has happened to. The device became so unstable, I performed a factory reset.
Hey guys.
Got a Oneplus 6 running lastest OTA with latest TWRP installed.
Before flash this latest OTA, I was running latest open Beta, flashed by TWRP, with no problems.
Just booted on TWRP today to flash latest Beta again, but when I drawed the patterns, TWRP restarts. Tryed some more times, same thing, put the right patterns, TWRP imagem boots into it again.
Rebooted into system, but the system said wrong pattern now. Can't boot in system anymore too.
Booted in TWRP again, went to File Manager, and deleted these files inside /data/system (Guess I ****ed up even more here)
locksettings.db-wal
locksettings.db-shm
locksettings.db
Now I can boot in system, but it stay stuck on Initializing system on screen, and I can access only configuration using the status bar. Tryed to set the same pattern on security, still don`t work on TWRP decrypting, and system keeps saying Initializing.
Got pretty stuck here, don't know nothing else to try, anyone have any clue on what I can do?
When asked for the pattern in TWRP instead of trying to enter it choose the "do not decrypt /data" option. Then you can format (not wipe) /data. Obviously you'll lose everything, including on internal storage.
And also, it may happen again if you don't flash the no_verity zip. That stops the ROM re-encrypting /data. See this thread for more info.
Looks like some Security Patch downgrade stuff. You flashed an older build, encryption gets messed up because the Security Patch date is older than the one previously installed, you'll have to format your Data partition to decrypt the storage.
As said above, running decrypted will prevent those situtations
Although some may advice running decrypted to avoid situations, I won't recommend it, especially if you're using TWRP. A person with a good knowledge would be able to do what you did and remove lockscreen security, compromising your important accounts.
And: instead of a pattern, it's recommended to use a PIN (at least 8 digits) or password (at least 6 letters/digits/specialchars)
remewer said:
Although some may advice running decrypted to avoid situations, I won't recommend it, especially if you're using TWRP. A person with a good knowledge would be able to do what you did and remove lockscreen security, compromising your important accounts.
Click to expand...
Click to collapse
To be honest, altough what you said is absolutely true, finding yourself in a situation where someone steals your phone, sees he can't enter it, but happens to know how to use TWRP to remove the lockscreen security or sideload your data is pretty far fetched.
Frankly, loosing your data over a bad flash seems a bit more threatening.
Totone56 said:
To be honest, altough what you said is absolutely true, finding yourself in a situation where someone steals your phone, sees he can't enter it, but happens to know how to use TWRP to remove the lockscreen security or sideload your data is pretty far fetched.
Frankly, loosing your data over a bad flash seems a bit more threatening.
Click to expand...
Click to collapse
Not threatening if you back up those data. Which everyone should do regardless if you're going to flash a ROM or not.
remewer said:
Not threatening if you back up those data. Which everyone should do regardless if you're going to flash a ROM or not.
Click to expand...
Click to collapse
Agreed, that is what i personally do. I like being able to flash anything and potentially having to format the whole storage without any worry. Using Google Photos, Keep, Doc, ect, using Spotify and syncing every contact really makes life easier.
remewer said:
Not threatening if you back up those data. Which everyone should do regardless if you're going to flash a ROM or not.
Click to expand...
Click to collapse
Which is fine if you are only getting this issue directly after ROM flashing or at some other predictable time. But when I was getting it, my lockscreen code/pattern was initially working fine after flashing the ROM, then it would stop working at some seemingly random moment. So the only way I could reliably have any data stored was to run with /data unencrypted. Which I agree is not ideal.