TWRP Not Able To Decrypt Data - OnePlus 6T Questions & Answers

As the title says, TWRP is unable to decrypt data. It doesn't even ask me for my passcode anymore.
This started yesterday after I flashed a ROM and it bootlooped, and I ended up having to format my entire data partition including internal storage because I couldn't get it to boot etc, and I to fastboot flash all the stock images.
Anyway, I was wondering if anyone else has had the same problem, or if anyone might know a potential fix. I can still adb sideload zips, but I have no access to my internal storage whatsoever, so I can't even make Nandroid backups.
Regards

What version of twrp are u using or did u use cause I have twrp on my 6T and I had none of those issues and ijusdidit a few days ago..there's a fajita-3.2.3-28 what I used..you'll have to use the msm download tool to get back to stock..just do a search for it..it's popular..anyways I had previously put mine in abootloop about month ago and I used that tool and it erased everything and put me back to 9.0.11 I believe..

smiles19 said:
What version of twrp are u using or did u use cause I have twrp on my 6T and I had none of those issues and ijusdidit a few days ago..there's a fajita-3.2.3-28 what I used..you'll have to use the msm download tool to get back to stock..just do a search for it..it's popular..anyways I had previously put mine in abootloop about month ago and I used that tool and it erased everything and put me back to 9.0.11 I believe..
Click to expand...
Click to collapse
I actually got it fixed. I tried flashing the unofficial fajita-3.2.3-28 and was able to decrypt my data partition (after I had already formatted it, much to my dismay) but then it forced me into a bootloop for some odd reason. In the end, I just installed the latest official build of TWRP and it can both decrypt data and doesn't bootloop me. So yay.

Nice

Related

help needed to recover encrypted data off the phone

Here is a quick review of what happened:
The phone was running well on Lineageos 14.1, encrypted with a pattern, with TWRP 3.1.1 as recovery. I’ve then been notified of an LOS update to 15.1 Oreo and got excited. Booted in recovery, entered my pattern to decrypt, took a full TWRP backup, flashed Oreo modem and firmware and dirty flashed (I know, bad idea) the LOS 15.1 zip.
It got stuck at boot logo. Even if I didn't have high expectations for it to work I just thought I would try the lazy way to see and use my fresh backup to restore in case of failure like I always did successfully since my Nexus One.
This time was different because as I rebooted in TWRP to restore, it didn't ask for my pattern. You guessed it, the data partition is encrypted, no access to my backup or anything on the external storage. I can mount data and see the weird encrypted file names but that's it. I tried different version of TWRP, but it never ask the pattern. Even the terminal command 'twrp decrypt *******' doesn’t work.
I then tried to wipe data and flash LOS 14.1 again but it gets stuck saying that android has no access to data partition because it’s encrypted and that I need to format. I pulled out my sim card and started to use my old oneplus one while waiting for the new version of TWRP 3.2.1.1 with the feb security patch support thinking it might then be able to decrypt but no luck still.
I can go without the phone for a while, I’ll buy another one if I have to because there is some precious data on that phone and I can’t make my mind that the data is there, I know the encryption key but I have no access to it. There must be a way, I just don’t have enough knowledge about how this encryption thing is working.
Any help would be appreciated, Thank you
jpitou said:
Here is a quick review of what happened:
The phone was running well on Lineageos 14.1, encrypted with a pattern, with TWRP 3.1.1 as recovery. I’ve then been notified of an LOS update to 15.1 Oreo and got excited. Booted in recovery, entered my pattern to decrypt, took a full TWRP backup, flashed Oreo modem and firmware and dirty flashed (I know, bad idea) the LOS 15.1 zip.
It got stuck at boot logo. Even if I didn't have high expectations for it to work I just thought I would try the lazy way to see and use my fresh backup to restore in case of failure like I always did successfully since my Nexus One.
This time was different because as I rebooted in TWRP to restore, it didn't ask for my pattern. You guessed it, the data partition is encrypted, no access to my backup or anything on the external storage. I can mount data and see the weird encrypted file names but that's it. I tried different version of TWRP, but it never ask the pattern. Even the terminal command 'twrp decrypt *******' doesn’t work.
I then tried to wipe data and flash LOS 14.1 again but it gets stuck saying that android has no access to data partition because it’s encrypted and that I need to format. I pulled out my sim card and started to use my old oneplus one while waiting for the new version of TWRP 3.2.1.1 with the feb security patch support thinking it might then be able to decrypt but no luck still.
I can go without the phone for a while, I’ll buy another one if I have to because there is some precious data on that phone and I can’t make my mind that the data is there, I know the encryption key but I have no access to it. There must be a way, I just don’t have enough knowledge about how this encryption thing is working.
Any help would be appreciated, Thank you
Click to expand...
Click to collapse
Try flash codeworkx TWRP ...
it should decrypt your data partition ...
https://downloads.sourceforge.net/project/cheeseburgerdumplings/15.1/cheeseburger/recovery/twrp-3.2.1-0-20180309-codeworkx-cheeseburger.img?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fcheeseburgerdumplings%2Ffiles%2F15.1%2Fcheeseburger%2Frecovery%2F&ts=1521806282&use_mirror=netix
PS-DEV said:
Try flash codeworkx TWRP ...
it should decrypt your data partition ...
https://downloads.sourceforge.net/project/cheeseburgerdumplings/15.1/cheeseburger/recovery/twrp-3.2.1-0-20180309-codeworkx-cheeseburger.img?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fcheeseburgerdumplings%2Ffiles%2F15.1%2Fcheeseburger%2Frecovery%2F&ts=1521806282&use_mirror=netix
Click to expand...
Click to collapse
I had tried it when it came out and I just tried it again. No difference!! It looks like twrp doesn't even see that my phone is encrypted. I've read a lot and tried many different things and I'm out of idea. All of the people I've seen with this problem have given up so they could get their phone back and running by formatting the partition, losing their data. This option is not one for me. I'd rather buy a new phone hoping for an eventual possible solution. I know the data is there, and I know the pattern key...... I mean, there's got to be a way......

No OS, can boot into twrp and fast boot, all folders encrypted, tried side loading OS

Tried sideloading OS zip but got a cannot read error in powershell, please help.
Not much can be done now. I have had this issue twice where I lost GBs of Data. Try MSM tool to recover your phone, worked for me as latest as two days back.
Check this
https://forum.xda-developers.com/oneplus-6t/how-to/tool-6t-msmdownloadtool-v4-0-oos-9-0-5-t3867448
I had this happen to me a while back. I had lost TWRP also though but was able to fastboot into it, so needed a PC. I too had the issue of the internal storage being encrypted so couldn't flash the full OTA ROM from my internal storage. Luckily I had an OTG cable adapter and a pendrive on hand. I copied the OTA and TWRP zips from my PC to that and flashed them from USB after booting into TWRP from fastboot. I've never used the MSMTool but managed to get my phone back up and running using this method. From my experience, you need to let the ROM boot fully to the point where you have entered your pin. Once you get past that, your internal storage should be able to decrypt in TWRP if you reboot into TWRP after that.
Hope this helps.

[Help] Stuck in fast boot- boot loader after restoring twrp backup?

[Solved (look at bottom of post)]
so, hopfully this is in the right place.
Following the procedure I've done on my nexus 6p many times over; I created a TWRP backup on my 6t then tried restoring the backup I made with twrp and when it finished I pressed reboot to system. The device then only booted into twrp. I saw it was on the "a" partition and I knew I was previously on the b partition so I manually switch partitions and now I'm stuck in fastboot boatloader I have tried flashing a temp twrp.img but im getting an error "FAILED (remote: 'Failed to load/authenticate boot image: Load Error')" in fastboot
After that I switched active partition in fast boot and got into twrp but my data appears to be encrypted and after restoring sys,data,efs,vendor (skipping boot as it holds the recovery now) I only have fast boot in both a/b partitions. I'm going to try to fast boot twerp then install twerp permanently and see if i can get a wotking twrp if not then ill have to get a factory image to get back to stock but was hoping to get some data off but whatever..
I'm kind of new to this a/b partition setup. any help is appreciated.
Edit: for future reference All I was doing was trying to restore a backup? how do I restore a backup on an a/b partition system? As far as I know I did it right...
1) remove lockscreen pin ect..
2) backup boot,sys,ven,data
When restoring
1) mount partitions
2) select restore backup and restore all .....
What am I missing?
____
Solved:
twrp for 6t is borked when it comes to backing up/ restoring...
The version in question: twrp-installer-fajita-3.2.3-1.zip
I restored my 6t to stock with msmdownloadtool and reinstalled twrp then made a test backup. After restoring it I was left in a twrp bootloap and encrypted data partition.
I don't think you should ever need to manually switch slots.
If you are on slot A, and flash an update, it will install to slot B. When you restart your phone, it will automatically switch to B for you.
Also, you shouldn't be flashing the TWRP.img, but booting it instead.
You could try starting fresh with the msmdownloadtool which is found in these forums.
fireeyeeian said:
[Solved (look at bottom of post)]
so, hopfully this is in the right place.
Following the procedure I've done on my nexus 6p many times over; I created a TWRP backup on my 6t then tried restoring the backup I made with twrp and when it finished I pressed reboot to system. The device then only booted into twrp. I saw it was on the "a" partition and I knew I was previously on the b partition so I manually switch partitions and now I'm stuck in fastboot boatloader I have tried flashing a temp twrp.img but im getting an error "FAILED (remote: 'Failed to load/authenticate boot image: Load Error')" in fastboot
After that I switched active partition in fast boot and got into twrp but my data appears to be encrypted and after restoring sys,data,efs,vendor (skipping boot as it holds the recovery now) I only have fast boot in both a/b partitions. I'm going to try to fast boot twerp then install twerp permanently and see if i can get a wotking twrp if not then ill have to get a factory image to get back to stock but was hoping to get some data off but whatever..
I'm kind of new to this a/b partition setup. any help is appreciated.
Edit: for future reference All I was doing was trying to restore a backup? how do I restore a backup on an a/b partition system? As far as I know I did it right...
1) remove lockscreen pin ect..
2) backup boot,sys,ven,data
When restoring
1) mount partitions
2) select restore backup and restore all .....
What am I missing?
____
Solved:
twrp for 6t is borked when it comes to backing up/ restoring...
The version in question: twrp-installer-fajita-3.2.3-1.zip
I restored my 6t to stock with msmdownloadtool and reinstalled twrp then made a test backup. After restoring it I was left in a twrp bootloap and encrypted data partition.
Click to expand...
Click to collapse
I'm currently stuck in TWRP with encrypted data after restoring a backup. I didn't know you couldn't restore backups on this phones. That sucks. I guess I'm going to have to start over now. That really really sucks.
imucarmen said:
I'm currently stuck in TWRP with encrypted data after restoring a backup. I didn't know you couldn't restore backups on this phones. That sucks. I guess I'm going to have to start over now. That really really sucks.
Click to expand...
Click to collapse
Yup, I felt the same.. it's a huge bummer especially when you get it all set up and perfect. Use msm to fix it if you can't use twrp. Hopefully twrp gets fixed soon (I'm really surprised I can't find more people who have noticed this or even twrp team talking about it) for now Im waiting for proof it works on the op6t. I even tried to use Chainfire's flashfire to make a backup and.. no it doesn't work.
fireeyeeian said:
Yup, I felt the same.. it's a huge bummer especially when you get it all set up and perfect. Use msm to fix it if you can't use twrp. Hopefully twrp gets fixed soon (I'm really surprised I can't find more people who have noticed this or even twrp team talking about it) for now Im waiting for proof it works on the op6t. I even tried to use Chainfire's flashfire to make a backup and.. no it doesn't work.
Click to expand...
Click to collapse
I think I just hard bricked my phone. https://forum.xda-developers.com/oneplus-6t/help/bricked-phone-t3914413
imucarmen said:
I think I just hard bricked my phone. https://forum.xda-developers.com/oneplus-6t/help/bricked-phone-t3914413
Click to expand...
Click to collapse
Use Msm download tool:
https://www.google.com/amp/s/forum....-msmdownloadtool-v4-0-oos-9-0-5-t3867448/amp/
I think that's the right post but make sure it matches your device. I used msmdownloadtool around 6 time just testing twrp and only had one hiccup where Msm wasn't detecting my one plus 6t but I eventually got it working.
use the other twrp unofficial but problem you had with would be fixed with big file system fat32 can't do it right
ecompton59 said:
use the other twrp unofficial but problem you had with would be fixed with big file system fat32 can't do it right
Click to expand...
Click to collapse
Could you post a link to it and are you sure? I used the unofficial version so which one are you talking about? I'd really not like to have to re-setup my daily driver from scratch.
https://forum.xda-developers.com/on...overy-unofficial-twrp-touch-recovery-t3861482 your using early version of twrp the black one is made by same guy download unofficial twrp.zip not twrp.img reboot recovery flash twrp.zip then magisk it may work if not then format data (erases phone) then twrp,magisk reboot recovery to see if it stuck I flash magisk again when it starts up go to magisk thread get the manager 18.1 don't insall it
ecompton59 said:
https://forum.xda-developers.com/on...overy-unofficial-twrp-touch-recovery-t3861482 your using early version of twrp the black one is made by same guy download unofficial twrp.zip not twrp.img reboot recovery flash twrp.zip then magisk it may work if not then format data (erases phone) then twrp,magisk reboot recovery to see if it stuck I flash magisk again when it starts up go to magisk thread get the manager 18.1 don't insall it
Click to expand...
Click to collapse
Which one? I've tried the 3.2.3.28 last and restoring didn't work. Should I try the most recent installer in the list? And can you confirm that backup&restoring works on the one plus 6t? Also is there anyway to backup my phone without twrp before I try this? I'd really would not like to have to use msm again?
sorry that didn't help format data then flash twrp then magisk should boot without msm
---------- Post added at 01:06 PM ---------- Previous post was at 12:52 PM ----------
i had to use extfat format on htc 8gb backup to get it to work maybe devs will fix that
Has there been an improvement on twrp for the 6t yet? Just curious if I can rely on a backup is there any updates?

AOSP back to OOS

Short story short, I was running 9.0.17 on a converted 6T. I decided to try something new. I found TreskMOD and followed the instructions to get it up and running. I'm missing some of the features of OOS so I want to go back. I tried the full OTA zip in TWRP. Flashed on both slots, wiped, formatted data and still booted back up to TreskMOD. I know I can use the MSM tool but my PC is out of commission right now so TWRP is all I have to rely on right now. What do you guys recommend?
You need to wipe internal storage also when moving back from AOSP to OOS. If you don't have access to a PC, you will need a pendrive or similar to flash the required files as you will lose all your data on the phone. When I install I wipe the phone completely and make sure OOS is flashed to both slots. I would recommend doing a backup before proceeding.
crashnova said:
Short story short, I was running 9.0.17 on a converted 6T. I decided to try something new. I found TreskMOD and followed the instructions to get it up and running. I'm missing some of the features of OOS so I want to go back. I tried the full OTA zip in TWRP. Flashed on both slots, wiped, formatted data and still booted back up to TreskMOD. I know I can use the MSM tool but my PC is out of commission right now so TWRP is all I have to rely on right now. What do you guys recommend?
Click to expand...
Click to collapse
https://forum.xda-developers.com/oneplus-6t/how-to/rom-stock-fastboot-roms-oneplus-6t-t3862516
Maybe try this? These are all stock OOS ROMs zipped specifically for fastboot. Maybe try flashing the OOS Versi n of your choice via fastboot instead.

[HELP] Data encrypted unable to decrypt with TWRP

My device bootlooped after new update, it seemed fine, i update it normally last week and it worked fine. today i did a TWRP backup of all of the partitions and then rebooted and it went into bootloop. I was able to flash all the partitions again with the flash-all-partitions.bat and got it out of fastboot. Now i can boot TWRP with an .img again.
The problem is that my data is all encrypted, like it mounts but its all in ramdom folders with ramdom names, and TWRP is not asking for the code to decrypt it. I dont know how to decrypt the data. How can i decrypt it? ( i know the code as it was my password).
Thank you
I would say format data and re-flash rom via twrp, that should remove encryption (but you loose all of your data) and you should be able to normally boot.
marahlad said:
I would say format data and re-flash rom via twrp, that should remove encryption (but you loose all of your data) and you should be able to normally boot.
Click to expand...
Click to collapse
yes but the problem is im trying to preserve data, it was pretty sudden i need to acces my 2fa backups and other important files, thats why i havent formatted everything and reflashed. bc im trying to look for solutions whre i can decrypt my data and get the important stuff out of there.

Categories

Resources