Encrypted device, flashed a different rom, now i can't decrypt. - ONE Q&A, Help & Troubleshooting

So basically I encrypted my device, a week later flashed a new ROM and now I can't decrypt the device. Can anyone help me with this?

daltonhrrll said:
So basically I encrypted my device, a week later flashed a new ROM and now I can't decrypt the device. Can anyone help me with this?
Click to expand...
Click to collapse
I'm going to follow this. Had the same thing happen, as well. Ended up fully wiping and reinstalling from fresh.... I did back up my data before hand.
Good luck.

JeffDC said:
I'm going to follow this. Had the same thing happen, as well. Ended up fully wiping and reinstalling from fresh.... I did back up my data before hand.
Good luck.
Click to expand...
Click to collapse
How'd you do a full wipe ? Fastboot ?

daltonhrrll said:
So basically I encrypted my device, a week later flashed a new ROM and now I can't decrypt the device. Can anyone help me with this?
Click to expand...
Click to collapse
Had the same problem.
You should flash TWRP 3.0.2-3 TugaPower, you should then be able to decrypt your phone.

Related

TWRP encryption problem

After i wanted to install Android P, i got a bootloop. so i wanted to go to twrp but now my files are encrypted and twrp is not asking for a pin or pattern so i can't decrypt my internal storage files.
Now the biggest problem is that i just came back from a family weekend and i made a lot of pictures, witch i can't acces now, and i really want them back.
Now i can't install a new os or anything ...
Can someone please help me! i'm really despirate
(sorry for my bad english)
Try downgrading twrp , night get it to ask for pin
downgrading is never the answer. In fact, that will cause this problem to happen. Now i must ask, are you temp booting twrp or is twrp installed to phone.
I got this when I temp booted the mtp enabled twrp the other day, although it still asked for my passcode and said description was successful. When I rebooted the installed (official) twrp it all came back....
MrSteelX said:
downgrading is never the answer. In fact, that will cause this problem to happen. Now i must ask, are you temp booting twrp or is twrp installed to phone.
Click to expand...
Click to collapse
Now i am booting from temp twrp, before that i got the latest twrp installed
Bringing this back up... Did booting from temp twrp work? Ran into the same issue.
Temp boot and use the usb c to pull ur data from the device to a computer. After that you can wipe and start over. Unbricking guide available in the help section
Having the same issue. If I boot using fastboot TWRP I'm able to decrypt data. I did that and flashed stock OOS and the same TWRP version (BluSpark) that was used in the fastboot. But the folders are still encrypted. It's weird how a fastboot can decrypt it but a regular recovery boot can't. Is there any alternatives available?
I'm in the process of backing up my data before I officially bite the bullet.
spartan268 said:
Having the same issue. If I boot using fastboot TWRP I'm able to decrypt data. I did that and flashed stock OOS and the same TWRP version (BluSpark) that was used in the fastboot. But the folders are still encrypted. It's weird how a fastboot can decrypt it but a regular recovery boot can't. Is there any alternatives available?
I'm in the process of backing up my data before I officially bite the bullet.
Click to expand...
Click to collapse
Only way i know to get rid of this by removing the encryption on the data is to Format the Internal Storage !
Totone56 said:
Only way i know to get rid of this by removing the encryption on the data is to Format the Internal Storage !
Click to expand...
Click to collapse
That's what I did in the end. I just backed up my media through fastboot TWRP beforehand. Beats having to use the download tool at least
spartan268 said:
That's what I did in the end. I just backed up my media through fastboot TWRP beforehand. Beats having to use the download tool at least
Click to expand...
Click to collapse
Probably the best way indeed. I think i'm gonna start disabling forced encryption to stop these kind of problems.
Totone56 said:
Probably the best way indeed. I think i'm gonna start disabling forced encryption to stop these kind of problems.
Click to expand...
Click to collapse
How to do it? I tried with zero luck
starche_old said:
How to do it? I tried with zero luck
Click to expand...
Click to collapse
I haven't tried yet, don't know for now !

Bootloop + Encrypted Data

So I wanted to try out LOS 16. I made a full TB backup and a Nandroid backup on TWRP. I flashed Open Beta 2 for the firmware and booted. Everything was fine, but OB 2 is not my thing so I went like planned and booted into TWRP to wipe and flash LOS. This was when it went downhill: TWRP no longer prompts me for a password and all my files are encrypted.
Even so I flashed LOS and it boot just fine but all my files are no longer there.
I will try to avoid a full wipe down. It's painful af, and since i got the 6 it's the second or third time that I'm at this point. I don't get it.
At this point all i want is to decrypt my data and restore my nandroid. Does anyone know how to achieve this?
Thanks in advance
quimbexa said:
So I wanted to try out LOS 16. I made a full TB backup and a Nandroid backup on TWRP. I flashed Open Beta 2 for the firmware and booted. Everything was fine, but OB 2 is not my thing so I went like planned and booted into TWRP to wipe and flash LOS. This was when it went downhill: TWRP no longer prompts me for a password and all my files are encrypted.
Even so I flashed LOS and it boot just fine but all my files are no longer there.
I will try to avoid a full wipe down. It's painful af, and since i got the 6 it's the second or third time that I'm at this point. I don't get it.
At this point all i want is to decrypt my data and restore my nandroid. Does anyone know how to achieve this?
Thanks in advance
Click to expand...
Click to collapse
if all you did was temp boot twrp on pie, temp boot twrp can not decrypt data. You have to flash twrp to phone then reboot to twrp. Second, twrp can not restore backups of stock roms. Third, to go back to any oreo rom will require a format data to fix.
MrSteelX said:
if all you did was temp boot twrp on pie, temp boot twrp can not decrypt data. You have to flash twrp to phone then reboot to twrp. Second, twrp can not restore backups of stock roms. Third, to go back to any oreo rom will require a format data to fix.
Click to expand...
Click to collapse
I'm pretty sure temp TWRP can decrypt data. I do it all the time. Regarding the restore, I wouldn't know, haven't tried yet but I think it would work, had I been able to decrypt it. Whatever. Full wipe it is.
quimbexa said:
I'm pretty sure temp TWRP can decrypt data. I do it all the time. Regarding the restore, I wouldn't know, haven't tried yet but I think it would work, had I been able to decrypt it. Whatever. Full wipe it is.
Click to expand...
Click to collapse
I know for 100% that it can't on temp boot for pie. it is a learning experience on this phone.
MrSteelX said:
I know for 100% that it can't on temp boot for pie.
Click to expand...
Click to collapse
I'm on Oreo mate.
quimbexa said:
I'm on Oreo mate.
Click to expand...
Click to collapse
after reading your first post, you are on pie.
MrSteelX said:
after reading your first post, you are on pie.
Click to expand...
Click to collapse
The backup I made was of Oreo. And on Pie it did temp boot, but was unable to decrypt and restore. Too bad.
I restored the phone using a fastboot stock ROM, but now I get strange signal drops followed by the phone locking itself
quimbexa said:
The backup I made was of Oreo. And on Pie it did temp boot, but was unable to decrypt and restore. Too bad
Click to expand...
Click to collapse
by flashing pie, your phone is on pie UNTIL you flash oreo rom.
MrSteelX said:
by flashing pie, your phone is on pie UNTIL you flash oreo rom.
Click to expand...
Click to collapse
So your suggestion would be to flash Oreo over Pie, boot (if it managed to boot), setup a new pattern, then TWRP and decrypt from there?
https://forums.oneplus.com/threads/...vice-tree-kernel-source-for-oneplus-6.833612/ this is how to fix this mess you are in.
or you could reflash beta 2 to access your data right now.
MrSteelX said:
if all you did was temp boot twrp on pie, temp boot twrp can not decrypt data. You have to flash twrp to phone then reboot to twrp. Second, twrp can not restore backups of stock roms. Third, to go back to any oreo rom will require a format data to fix.
Click to expand...
Click to collapse
twrp can not restore backups of stock roms? that's the first time I'm reading that... do you know the reason for that?
MJFox78 said:
twrp can not restore backups of stock roms? that's the first time I'm reading that... do you know the reason for that?
Click to expand...
Click to collapse
it's because of the encryption used on oneplus6. We can make backups with twrp, it just fails on the restore part.
MrSteelX said:
it's because of the encryption used on oneplus6. We can make backups with twrp, it just fails on the restore part.
Click to expand...
Click to collapse
so if I decrypt the device restoring will work?
MJFox78 said:
so if I decrypt the device restoring will work?
Click to expand...
Click to collapse
only if backup is decrypted aswell
MrSteelX said:
only if backup is decrypted aswell
Click to expand...
Click to collapse
makes sense... thanks!
MJFox78 said:
makes sense... thanks!
Click to expand...
Click to collapse
I can get TWRP backups to work just fine on stock OOS, but I follow a weird process.
1. Store backup on something other than the phone (I got a USB OTG SD card reader/writer - I use a 128GB SD card to hold my stuff)
2. Use a fastboot rom to flash the same rom as the backup was made on. They are in this thread https://forum.xda-developers.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665
3. After flashing the fastboot rom start up the phone and go through the whole setup process (I don't know why but it doesn't work when I don't do this)
4. Install TWRP. Instructions can be found in this thread https://forum.xda-developers.com/oneplus-6/how-to/guide-how-to-install-official-twrp-t3801558 don't just boot TWRP, actually install TWRP (it might work if you just boot TWRP, I never tried it so I can't make any claims that it works)
5. Move your backup back to the phone and restore it in TWRP.
I have done this probably 100 times by now and it ALWAYS works. It is just how funky the encryption is on the OP6 that makes us go through hell to do something this simple. Try this.

Omg Official TWRP is HERE!

Maintained by Dees_Troy, This build of TWRP will (probably) only work with devices using Full Disk Encryption (FDE) and may not work with devices that have been converted to File Based Encryption (FBE). FBE support may be added at a later date.
Full details can be view by their official website https://twrp.me/xiaomi/xiaomipocophonef1.html
Or download the official TWRP app on the playstore
Merry Christmas and a Happy New Year people! Happy Flashing!
Anybody gave it a try? Is decryption working?
GoodSoul said:
Anybody gave it a try? Is decryption working?
Click to expand...
Click to collapse
Yes it's working fine
Only issue is the random freeze that lasts 15-20s every time I boot in recovery
Tried it. No SD card support... :/
Wth
dgrasley said:
Tried it. No SD card support... :/
Click to expand...
Click to collapse
Did you report it to the twrp? They might release another update
Darklouis said:
Did you report it to the twrp? They might release another update
Click to expand...
Click to collapse
Yes, I contacted them and let them know.
dgrasley said:
Yes, I contacted them and let them know.
Click to expand...
Click to collapse
Nice! That's good.
Elyth_ said:
Yes it's working fine
Only issue is the random freeze that lasts 15-20s every time I boot in recovery
Click to expand...
Click to collapse
Does that mean we don't need to format data? Getting a Poco soon and all rooting guides say you need to format data.
mjemec said:
Does that mean we don't need to format data? Getting a Poco soon and all rooting guides say you need to format data.
Click to expand...
Click to collapse
Yes, works very well, no need to format, and has sd support too.
Anyway, if it's a new phone, like mine, format as many times as you want lol. Which I did while trying out other TWRPs, and I still get them asking me for a password that was non-existent. My first time after so many phones where a TWRP was asking me for a password (which caught me offguard), and all Poco F1 TWRPs except this official one.
I have settled with this TWRP first, lost some time with the rest, my main goal was to root anyway, TWRP upgrade can come later. I do hope nandroid backup and restore is good as I have not tried it yet (just backup which went fine). Will try restore soon. I have Titanium and Migrate working anyway, and Nandroid Manager too.
hyborian said:
Yes, works very well, no need to format, and has sd support too.
Anyway, if it's a new phone, like mine, format as many times as you want lol. Which I did while trying out other TWRPs, and I still get them asking me for a password that was non-existent. My first time after so many phones where a TWRP was asking me for a password (which caught me offguard), and all Poco F1 TWRPs except this official one.
I have settled with this TWRP first, lost some time with the rest, my main goal was to root anyway, TWRP upgrade can come later. I do hope nandroid backup and restore is good as I have not tried it yet (just backup which went fine). Will try restore soon. I have Titanium and Migrate working anyway, and Nandroid Manager too.
Click to expand...
Click to collapse
Thanks for sharing ..iv'e been wating for this review..:good:
Pls report back if you restored your device with no issues
bamz1117 said:
Thanks for sharing ..iv'e been wating for this review..:good:
Pls report back if you restored your device with no issues
Click to expand...
Click to collapse
I don't know how I missed this, this one is also good. I just flashed it just to see and it's ok too.
https://forum.xda-developers.com/poco-f1/development/recovery-twrp-3-2-3-decryption-t3853004
Ok, I tried to restore the Nandroid backup from official TWRP, and this is exactly what happened to me :
https://forum.xda-developers.com/poco-f1/help/nandroid-backup-fail-t3887678
Restore gets completed, I reboot to system, it goes into fastboot mode. Tried again, same.
So I reinstalled latest MIUI ROM Global beta, which I prefer, and run Magisk again, and restored only Data partition. This worked and it rebooted into system, without me losing my data. I also didn't bother to remove my pin while taking the backup a suggested in another thread, and it's ok, no problem.
So still ok to backup, but can only restore data. Always have a copy of the ROM too in your SD Card or even internal storage to flash when needed, as well as Magisk if you use it.
As for the unofficial TWRP in my link above, restore was worse. It ended up in "extractTarFork() process ended with ERROR: 255".
hyborian said:
Ok, I tried to restore the Nandroid backup from official TWRP, and this is exactly what happened to me :
https://forum.xda-developers.com/poco-f1/help/nandroid-backup-fail-t3887678
Restore gets completed, I reboot to system, it goes into fastboot mode. Tried again, same.
So I reinstalled latest MIUI ROM Global beta, which I prefer, and run Magisk again, and restored only Data partition. This worked and it rebooted into system, without me losing my data. I also didn't bother to remove my pin while taking the backup a suggested in another thread, and it's ok, no problem.
So still ok to backup, but can only restore data. Always have a copy of the ROM too in your SD Card or even internal storage to flash when needed, as well as Magisk if you use it.
As for the unofficial TWRP in my link above, restore was worse. It ended up in "extractTarFork() process ended with ERROR: 255".
Click to expand...
Click to collapse
Thank you so much for your test .This enlightened me more , regarding the stable TWRP...
Future updates will rolled out and it will be fix soon . Also pls report this to twrp so that they will look into it.
https://github.com/TeamWin/Team-Win-Recovery-Project/issues
Guy's Nandroid will working fine, if you save the right partitions!
Use system and vendor image! Instead of system and vendor.
Don't forget data as it is.
2WildFirE said:
Guy's Nandroid will working fine, if you save the right partitions!
Use system and vendor image! Instead of system and vendor.
Don't forget data as it is.
Click to expand...
Click to collapse
Did you try it personally?
bamz1117 said:
Did you try it personally?
Click to expand...
Click to collapse
Yes many times work's fine
If anyone likes a dark themed version you can check here.
2WildFirE said:
Guy's Nandroid will working fine, if you save the right partitions!
Use system and vendor image! Instead of system and vendor.
Don't forget data as it is.
Click to expand...
Click to collapse
Yes, I just tried 2WildFirE's solution, and it works perfectly. And from this article, system image and vendor image are apparently even better than normal system/vendor.
https://twrp.me/faq/whattobackup.html
So, no more problem with Nandroid and I can use this official TWRP or the other one. I won't use a custom ROM for my Pocophone as I like MIUI, so it's just fine for me.
As for the wrong date of Nandroid, it's ok, I enter my own file name backup anyway.

T-Mobile Root

Has anyone successfully rooted their T-Mobile variant as of yet? My bootloader unlock token should be available in a couple hours, and I'm trying to decide which is the best method. I was thinking of going with patching the boot.img myself, however I can't find a full ROM zip of 9.5.5 (which I'm on now). The next choice is obviously TWRP...I'm just hesitant because of the encryption issue. Does anyone know if formatting data and then moving files back to my internal storage will allow me to decrypt, just as it did on the 6T? Thanks in advance
sabrdawg said:
Has anyone successfully rooted their T-Mobile variant as of yet? My bootloader unlock token should be available in a couple hours, and I'm trying to decide which is the best method. I was thinking of going with patching the boot.img myself, however I can't find a full ROM zip of 9.5.5 (which I'm on now). The next choice is obviously TWRP...I'm just hesitant because of the encryption issue. Does anyone know if formatting data and then moving files back to my internal storage will allow me to decrypt, just as it did on the 6T? Thanks in advance
Click to expand...
Click to collapse
Mine should be here today. And I'll tell you my plan.
I'm going to try to flash twrp and try to get the stock img files from the unmodified slot. Then I will feel safe. To do anything
Well, I did it! I unlocked my bootloader and flashed TWRP! I then formatted data, and transferred the TWRP installer and Magisk to internal storage. I flashed both, and rebooted to recovery. Both files were still there, and did not get encrypted! Now, my wifi and sound seem to be broken, but I did see something about that somewhere else...now to find it, hah!
sabrdawg said:
Well, I did it! I unlocked my bootloader and flashed TWRP! I then formatted data, and transferred the TWRP installer and Magisk to internal storage. I flashed both, and rebooted to recovery. Both files were still there, and did not get encrypted! Now, my wifi and sound seem to be broken, but I did see something about that somewhere else...now to find it, hah!
Click to expand...
Click to collapse
Did it come exactly 7 days later
twinnfamous said:
Did it come exactly 7 days later
Click to expand...
Click to collapse
Mine came 7 days later almost exactly to the minute
ScottOtis said:
Mine came 7 days later almost exactly to the minute
Click to expand...
Click to collapse
I still got an HR left then.
I'll make sure to post all img files I extract if no one else does.
It did! About 10 minutes later than the time I applied for it Now, I rebooted to recovery again, and now I don't see my files anymore I guess formatting data DIDN'T fix decryption. Now to get my sound and wifi working again...
Figured I'd try formatting data a second time. It's worked for me on the 6T in the past
I think your going to need the boot.img to restore WiFi and sound.
Xshooter726 said:
I think your going to need the boot.img to restore WiFi and sound.
Click to expand...
Click to collapse
Where can I get it for T-Mo? I'm wondering how I lost them :\
sabrdawg said:
Where can I get it for T-Mo? I'm wondering how I lost them :\
Click to expand...
Click to collapse
Go into twrp.
Did u use installer or flash twrp img
twinnfamous said:
sabrdawg said:
Where can I get it for T-Mo? I'm wondering how I lost them :
Click to expand...
Click to collapse
Go into twrp.
Did u use installer or flash twrp img
Click to expand...
Click to collapse
I flashed the img, and then installer while in TWRP, thinking I needed to do that to keep TWRP (which Iater learned I didn't as I had flashed TWRP, not just booted it).
sabrdawg said:
I flashed the img, and then installer while in TWRP, thinking I needed to do that to keep TWRP (which Iater learned I didn't as I had flashed TWRP, not just booted it).
Click to expand...
Click to collapse
I'm going to upload a boot.img give me a few. Then just flash it to both slots
Interested in this thread bc of possible decrypt solution
twinnfamous said:
I'm going to upload a boot.img give me a few. Then just flash it to both slots
Click to expand...
Click to collapse
Omg, you're a lifesaver!
sabrdawg said:
Omg, you're a lifesaver!
Click to expand...
Click to collapse
I'm real sorry my bootimg got twrped by accident. So until we get a stock.boot we only have stock system and vendor img files from twrp backup.
twinnfamous said:
I'm real sorry my bootimg got twrped by accident. So until we get a stock.boot we only have stock system and vendor img files from twrp backup.
Click to expand...
Click to collapse
Hmm...shoot. well, maybe someone will come up with something soon enough. Thx for trying, though!
twinnfamous said:
I still got an HR left then.
I'll make sure to post all img files I extract if no one else does.
Click to expand...
Click to collapse
Im going to get my unlock bin hopefully this afternoon. What is the best way to do that before messing with anything?
Try flashing this patched 9.5.5 boot.img . The boot image has to match the same version your currently on. From your screen shots it looks like your on 9.5.5 so it might be your best bet in restoring your Sound and Wifi.
https://www.dropbox.com/sh/0nnqtvfuhbavrl5/AADyGWwA2UmIi_ivbQ7MGHSsa?dl=0
Xshooter726 said:
Try flashing this patched 9.5.5 boot.img . The boot image has to match the same version your currently on. From your screen shots it looks like your on 9.5.5 so it might be your best bet in restoring your Sound and Wifi.
https://www.dropbox.com/sh/0nnqtvfuhbavrl5/AADyGWwA2UmIi_ivbQ7MGHSsa?dl=0
Click to expand...
Click to collapse
Thx! I was able to fix sound and wifi by flashing SkyDragon kernel. I appreciate your help

Flash Stock to Decrypted Device

So I don't want to screw something up. I have decrypted my device to be able to more easily test other ROMs
Using an OTG and USB stick to make things easier ,, how do I flash Stock OOS back to a decrypted system and leave it decrypted ??
Thanks for the spoon feeding!
jcrompton said:
So I don't want to screw something up. I have decrypted my device to be able to more easily test other ROMs
Using an OTG and USB stick to make things easier ,, how do I flash Stock OOS back to a decrypted system and leave it decrypted ??
Thanks for the spoon feeding!
Click to expand...
Click to collapse
Flash stock like you did your ROMs. flash that DM varity at the end. Don't restore a stock backup if you didn't make it decrypted. Once you backup stock decrypted you can restore it anytime you want.
I've always started out on stock decrypted and then back that up. Then fish my ROMs you May have to reformat again so you can do it. I'm not to sure. If it's a different security patch you May have problems
mac796 said:
Flash stock like you did your ROMs. flash that DM varity at the end. Don't restore a stock backup if you didn't make it decrypted. Once you backup stock decrypted you can restore it anytime you want.
I've always started out on stock decrypted and then back that up. Then fish my ROMs you May have to reformat again so you can do it. I'm not to sure. If it's a different security patch you May have problems
Click to expand...
Click to collapse
Thanks!
So just flash the "full stock zip" that is posted with the ota ones?
jcrompton said:
Thanks!
So just flash the "full stock zip" that is posted with the ota ones?
Click to expand...
Click to collapse
Yes full zip. I would try it without a reformat first, just a factory reset in TWRP, and if it doesn't boot, then you know you will need to do the full format in TWRP. But I don't think you will. I hope not.
mac796 said:
Yes full zip. I would try it without a reformat first, just a factory reset in TWRP, and if it doesn't boot, then you know you will need to do the full format in TWRP. But I don't think you will. I hope not.
Click to expand...
Click to collapse
Man what a pain in the butt ... I tried over and over again and found no way to maintain decryption when going back to stock. ..... my device wouldn’t boot . I formatted data several times and that didn’t help ... still wouldn’t boot.
I may give up since I was able to flash encrypted
But if you have suggestions and the exact steps you take I might try again
Thanks
jcrompton said:
Man what a pain in the butt ... I tried over and over again and found no way to maintain decryption when going back to stock. ..... my device wouldn’t boot . I formatted data several times and that didn’t help ... still wouldn’t boot.
I may give up since I was able to flash encrypted
But if you have suggestions and the exact steps you take I might try again
Thanks
Click to expand...
Click to collapse
All I did was boot TWRP go to wipe, then format data
Then flash full os ZIP ,TWRP,DM varity all at same time
Then reboot recovery flash DM varity , magisk
Reboot to system. Then I backup this one decrypted, keep a copy on a flash drive
I haven't Flashed the new 9.5.11 yet. Maybe They changed something now that we can't run decrypted I'll let you know when I update.
jcrompton said:
Man what a pain in the butt ... I tried over and over again and found no way to maintain decryption when going back to stock. ..... my device wouldn’t boot . I formatted data several times and that didn’t help ... still wouldn’t boot.
I may give up since I was able to flash encrypted
But if you have suggestions and the exact steps you take I might try again
Thanks
Click to expand...
Click to collapse
Ok I just dirty flashed 9.5.11 and kept decryption. I didn't have to reformat because I was already unencrypted, but I followed the same way I shared with u.
mac796 said:
Ok I just dirty flashed 9.5.11 and kept decryption. I didn't have to reformat because I was already unencrypted, but I followed the same way I shared with u.
Click to expand...
Click to collapse
Sorry for the slight OT
Can you run an androbench and post the results please, curious to see if decrypting affects write read performance
Can someone link DM verity please ?

Categories

Resources