yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 Questions & Answers] Sieth:
So I wiped the whole device. Adb sideloaded the new rom. Working flawless.

Now installed Magisk 14.0 and device stuck at boot with blue light.

So the rooting is to blame... (In my case...)

So I adbd again the rom.zip and got it working again. But no root for now

Update: flashed Magisk beta v14.6 (1468) and now ist's working.
[OnePlus 5 Questions & Answers] Michael1200:
RIP our data.. :/ atleast starting with a super clean device now. lesson learned ^^
[OnePlus 5 Questions & Answers] Hilmesh:
Hi all.

i was in the same boat as all of you. screwed up somewhere and then lost everything and did a side load. but now the problem is whenever i boot with twrp it still keeps showing my internal storage as 0. so am not able to root it. how do i go about solving this?

---------- Post added at 07:54 PM ---------- Previous post was at 07:54 PM ----------

How did you flash magisk beta? in my case twrp says that my internal storage is 0
[OnePlus 5 Questions & Answers] Sieth:
What I did was format not wipe.

ADB sideload rom.zip

Install latest beta from magisk.

So now I have a clean device with working root
[OnePlus 5 Questions & Answers] Michael1200:
Nice, data lost as in my case but clean device is great too atleast. ^^
[OnePlus 5 Questions & Answers] Bigred065:
f***, same happenned to me. I did a back-up with twrp before but i left it in my internal memory.

I do have a month old back up on my laptop. How can i push this over to the phone? Can i restore a backup from bootloader ??

I gotta try everything to save my data, too many important things for work on there. I was too ****ing eager to get oreo
[OnePlus 5 Questions & Answers] dunjamon:
I've done the exact same thing. Problem now is that TWRP isn't seeing anything on the phone, there is nothing there. So I can't root with Magisk or install custom recovery.

Edit...had to use blu_spark twrp instead
[OnePlus 5 Questions & Answers] Michael1200:
Not much chance to get back the data if you can't boot into android at all. You can wipe everything completely and then copy your old backup to your internal storage which will work again once wiped/decrypted. I haven't found a solution to save the data without wiping, I tried different twrp versions like the normal one or blu_spark but none asked to decrypt data and in my internal storage my files were left all encrypted with those weird long file names.
[OnePlus 5 Questions & Answers] SPyxOff:
Are you trying to say that all my data is lost even tho I know decryption key? All I did was update to Android O and I had backup and TWRP is showing that my internal storage is full but the files are all encrypted it wont ask me for decryption key. What can I do
[OnePlus 5 Questions & Answers] Michael1200:
Exactly. That's the weird problem. If I'm right we had to **** up something badly so that TWRP doesn't even know that our internal storage is encrypted and displaying the (encrypted) files just how they are. The problem in my case was that I couldn't even copy the encrypted files from internal storage to my PC or moving files from my PC to my device. The whole partition was just locked, I couldn't do anything on it, neither adb push or whatever else. Tried different TWRP versions but none asked me to decrypt.

I think the mistake is that if you install a new OS version which is somehow not backward/dirty flash compatible (like in my case the new oreo update) your pin/pattern will get deleted and because of that TWRP does not ask you to decrypt as the ROM is telling that you don't have a password set up! But the problem is when you install a new ROM, it wipes /sdcard so the data is lost if you don't find a way to somehow decrypt your internal storage. :/

Really bad to know you can't do anything at all even tho you know your decryption key - I hope someone finds a solution. I for myself wiped because I don't have so much time to look for a solution.
[OnePlus 5 Questions & Answers] SPyxOff:
[IMG="****!"]https://scontent-vie1-1.xx.fbcdn.net/v/t35.0-12/s2048x2048/26037856_10210658398727486_1339656086_o.jpg?oh=6f02fc8c96c668b64de49fdc92ae32e0&oe=5A428FCA[/IMG]
[OnePlus 5 Questions & Answers] Michael1200:
Just wipe it like I did. I don't think it's worth the hassle (if you don't have super super important pics or so on it). I didn't get such a message tho - but this looks like there's really no way to decrypt that sh*t. :/
[OnePlus 5 Questions & Answers] SPyxOff:
Stupid ****ing **** sake, this is absolutely horrible! I had a lot of family photos there and I also had a backup on my internal storage from TWRP. I can't believe this is actually happening!
[OnePlus 5 Questions & Answers] Michael1200:
I'm just wondering why this thread gets so many responses suddenly. Thought I'm a lost soul with this problem and noone can help me - but looks like many people have this problem. Having something to do with the oreo release and everybody trying to just flash it while encrypted?
[OnePlus 5 Questions & Answers] Michael1200:
Yeah I also had a lot of photos and such things on - I didn't actually even want to wipe it as I didn't give up hope first. But it wiped automatically (unknownly) after I installed a new ROM as I thought I might be able to decrypt it if I set up my old PIN on a new rom - not knowing that flashing a new ROM apparently rewrites/wipes internal /sdcard. -.-

The funny thing is I also had a TWRP backup on internal storage - which now is/was encrypted and doesn't help in any way. Oh man, how did this **** happen.
[OnePlus 5 Questions & Answers] Michael1200:
Can you boot into a working ROM? If yes, there's a good chance to get back data as if you set up the PIN/pattern again it will ask you decrypt. Only works if your current ROM is able to boot tho - not like in my case where I bricked my device and had to flash a new ROM which eventually wiped my internal /sdcard directory. :(
[OnePlus 5 Questions & Answers] Bigred065:
Only hope i have is to use the USB mount on TWRP to restore my old back up on it and try to restore it through that. Thing is i don't have any USB-C drive.
[OnePlus 5 Questions & Answers] slovenec88:
Same thing happened to me. OMG. I am searching web for a solution, will post if I find anything but now it looks really bad.
[OnePlus 5 Questions & Answers] Michael1200:
I hope someone finds solution - for me it's tol late now anyway but enjoying my clean device on oreo xxx nolimits ROM working fantastic.
[OnePlus 5 Questions & Answers] Nomelas:
same issue here as well.... ffs
[OnePlus 5 Questions & Answers] axti92:
i had the same issue and the same solution --> deleted everything :(
[OnePlus 5 Questions & Answers] Joecascio2000:
What a colossal mess up this update has been. Not a single rom will load even after wiping literally everything. It seems like encryption is stuck on my device and nothing will wipe it. So roms don't install. TWRP won't ask for the password.

Edit (solution): flash stock recovery, boot into stock recovery, wipe everything, reboot fastboot, flash Blu recovery, install as usual.

It seems that only the stock recovery truly wipes everything.
[OnePlus 5 Questions & Answers] Hilmesh:
my mistake i think was when i did the Oreo update using TWRP which caused the same mess. Before this i had always used the stock recovery to do any ROM updates.
[OnePlus 5 Questions & Answers] Michael1200:
I think the problem is just the encryption which must not be enabled before updating as oreo apparently requires a decrypted device.

Either way - I'll stay decrypted for the rest of my life or atleast make an external backup before doing any major rom updates.
[OnePlus 5 Questions & Answers] Vastarakki:
Official Oreo update failed for me too. Just circling balls of death...

I was in stock rom and recovery, never installed another in this phone.

Even stock recovery shoved encrypted folder names when I tried to "Update from internal" or whatever that selection was.

I ended installing blu_spark twrp and formatting data, wipe was not enough, wiped system and cache too.

Downloaded full oreo update and blu_spark kernel and installed those from blu_spark twrp, working now.

I always have all my data in cloud services so only harm was lost time fiddling with device and now it's clean install.
[OnePlus 5 Questions & Answers] HDash:
Let's just hope we receive a TWRP which can decrypt our data, flashing through sideload is a pain.

Also, Magisk v14.0 as well as SuperSU gives me black screen with white led forcing me to re-flash the ROM but Magisk beta v14.6 works perfectly fine.
[OnePlus 5 Questions & Answers] Michael1200:
doesn't look like it's a problem of twrp tho, has to do something with oreo itself.
[OnePlus 5 Questions & Answers] HDash:
Maybe the Oreo update changed how the ROM handles data encryption, this change needs to be adjusted with the TWRP for decryption.

Also, the data partion showed as 0MB in TWRP.
[OnePlus 5 Questions & Answers] Michael1200:
Could be solvable in this way too of course, just strange why they changed the way how it encrypts data as it always stayed the same. Mine showed 19 GB before wiping though.
[OnePlus 5 Questions & Answers] HDash:
Yeah, they didn't even mention anything about the changes made to the encryption system.
[OnePlus 5 Questions & Answers] Michael1200:
Exactly! No one got warned and now many people have this problem. Biggest issue is that most of us have a TWRP backup in internal storage which does not help in any way as this sh** is also encrypted. :/
[OnePlus 5 Questions & Answers] HDash:
The damage has already been done to most of us here in this thread. Had to format all of my data to get my phone working.
[OnePlus 5 Questions & Answers] Hilmesh:
Hi. it was a real pain though. i lost everything. and most important was my Children's photos :(. how did you do the decryption part?
[OnePlus 5 Questions & Answers] Michael1200:
I just completely wiped everything in TWRP - data, cache, davlik, system & internal storage and then clean installed the xXx nolimits Oreo ROM which works amazing. If you wipe everything completely you are decrypted.
[OnePlus 5 Questions & Answers] Hilmesh:
i too wiped everything through the Blue Spark TWRP. but then i installed the official OREO update for OP5. and my phone shows as encrypted. Also when i booted with TWRP it asked me for my PIN to decrypt the device.
[OnePlus 5 Questions & Answers] Michael1200:
try to flash no-verity. although we should be fine once oreo is running and twrp asking for password.
[OnePlus 5 Questions & Answers] khalisz:
Hi and merry christmas.

You've to install Hydrogen OS and then install OP5 Oreo.

I had the same issue yesterday.

I used this software :

http://www.**********.com/unbrick-oneplus-5-using-the-official-unbrick-tool/

PM me with your email, I'll send you the link. That will unbrick your OP5. But not your data :/

Also my Google Account doesn't sms me anymore to grant access.

Then I have to wait Google Support to solve this issue. :/
[OnePlus 5 Questions & Answers] torwag:
Same here:

Used blue-TWRP and oxygenOS.... by accident triggered a OTA update. Since then its stucked.

Still do not give up on the data

What I noticed so far:

Being in TWRP,

adb shell twrp decrypt <pin> fails without any useful error message

I can see all the encrypted data stored on /dev/sda13 which is mounted on both /data and /sdcard

I guess all I need is a way to call the decryption manually.

Furthermore, trying to boot regular, ends up in the boot screen forever, no shell or adb access. However, after reboot, twrp is replaced by the stock recovery

As other mentioned already, stock recovery also shows the data encrypted.

I read that I have to flag somehow that the phone is encrypted.

Looking into default.prop, there is no flag for encryption. However, it also states that I want to boot Omni Rom... might be a TWRP thing.

Someone stated that the new ROM (which seems to be not corrected installed) did switch off encryption and hence TWRP does not try to decrypt the partitions. There need to be a way to tell TWRP to decrypt it...
[OnePlus 5 Questions & Answers] Michael1200:
Yep, that's how far we've come till now. Oreo had to mess up something with the encryption so our recoveries don't know the system is encrypted. But no one knows a solution for this issue yet. Looks like the only chance to decrypt is an update from TWRP.
[OnePlus 5 Questions & Answers] khalisz:
I gave the solution, see my post. ;)

That unbricked my OP5.

---------- Post added at 02:21 PM ---------- Previous post was at 02:19 PM ----------
[OnePlus 5 Questions & Answers] Michael1200:
It's not about unbricking - I wouldn't have cared flashing a new ROM, apps are reinstallable! It's about internal storage which was encrypted and it doesn't look like there's a solution at this point to decrypt the data again yet.
[OnePlus 5 Questions & Answers] khalisz:
Be careful, make a backup of all your data.

Print a Google code to access your account when you go to install Oreo.

I am blocked, Google who usually sends an SMS, does not offer me. Only the authenticatorator or the security code. : /

*

I'm waiting for Google to do the right thing.
[OnePlus 5 Questions & Answers] Michael1200:
GL dude. All working for me now atleast - ofcourse personal data lost and not recoverable now. But didn't have a lot personal photos and such and WhatsApp recovered most of it anyway. Google SMS code working flawless for me...
[OnePlus 5 Questions & Answers] baptisteba:
This helped me a lot : https://www.androidexplained.com/oneplus-5-unbrick-return-stock/

I'm now in Oreo without problems (but i lost all my data in first OTA update)
[OnePlus 5 Questions & Answers] Michael1200:
Yeah. You basically can't do something wrong with absolutely clean flashing oreo anyway. The major problem and the reason why I made this thread is that the data is encrypte and apparently lost without the possibility to decrypt it till now yet.
[OnePlus 5 Questions & Answers] Bigred065:
If i did a backup with TWRP when my phone was decrypted, is the backup folder encrypted for future use ? i have a month old backup that i had transfered to my laptop, i just need a USB-C adapter to connect to my phone under TWRP and do that restore. Hopefully this will put back the encryption which TWRP would detect and allow me to restore the internal backup.

Gotta wait 'til the 26. Gotta hold on to this small thread of hope.
[OnePlus 5 Questions & Answers] Michael1200:
What do you mean exactly? If you did a backup with TWRP, TWRP saves the backup in internal storage, which is encrypted. If you ****ed up the oreo update like we in this thread did, there's till now no way to decrypt the data again ...

If your backup is in internal storage --> lost. If you have an external backup, you can just wipe the complete phone to decrypt it and then simply restore it in TWRP if you wiped internal storage so you have access to it from your computer.
[OnePlus 5 Questions & Answers] gpolydoros:
Same thing happened to me yesterday after flashing Oreo + Magisk 14.6 - never ending boot animation. The phone was unlocked and on the latest stable OOS with Magisk. In my case I couldn't even mount the data partition to wipe it. I ended up erasing userdata via fastboot and then using a modified TWRP found on the OP forums to flash Oreo and Magisk. Lost almost a day restoring everything manually, since the only backup I had was on the phone's internal storage... Lesson learned.

EDIT: in case it helps anyone, here's the modified TWRP I used. This one can decrypt your data partition if you're on Oreo (although I've only tested it after having wiped my internal storage):

https://mega.nz/#!5EZDRDLI!8h588DoJbY6xdmsbWVCDZ7Y1x42ZK4TrC65l0bsyHBo
[OnePlus 5 Questions & Answers] Michael1200:
You were lucky that you were decrypted and didn't loose all data on internal storage like most of us in this thread did. ^^
[OnePlus 5 Questions & Answers] azeem40:
So you are unable to view your storage at all? Did you try adb sideload or adb push?
[OnePlus 5 Questions & Answers] ybanks87:
Before i try this one . Did you tried and work well ??
[OnePlus 5 Questions & Answers] Michael1200:
Just try it. It can't grt any worse if your internal storage is encrypted anyway. ;)
[OnePlus 5 Questions & Answers] ybanks87:
Ok thanks you i'll wait :(
[OnePlus 5 Questions & Answers] gpolydoros:
I tried it, yes, in fact I used it to reflash Oreo and then Magisk. Then I booted to Oreo, did the initial setup of the phone (including setting up a PIN for encryption), then used this TWRP again to flash a Magisk module. At that point, it recognized my data partition, asked for the PIN and successfully decrypted it. It really works as it should, as far as I can tell. If only I had found it before deciding to give up and format everything. :(

P.S. You don't even need to flash it: just put it under the same folder as fastboot on your PC, then boot OP5 to fastboot mode and type "fastboot boot twrp.img" on your computer to boot it once and see if it works for you. If it doesn't, you can just reboot to recovery and it will return to your previous TWRP. ;) I can't recall where I found it, but it has the OnePlus logo and says "modified by xXx", if that helps.
[OnePlus 5 Questions & Answers] ybanks87:
Yes that's right . I will try later . Thanks
[OnePlus 5 Questions & Answers] torwag:
@ gpolydoros:

It seems to be just an old TWRP image. I can't find anything special on this. The problem is that in most cases here, all the partitions are encrypted. Even trying to flash something else will just create a big mess, as right now the partitions contain data in encrypted form. Thus, people completely format all partitions and start from scratch with a real blank phone.... with the side-effect that all data is lost.

What we need is a TWRP (or any other recovery image) which allows us to decrypt the partitions and mount them. If we can achieve this, we simply can copy down the important data... format the entire phone and start from scratch.

What I do not get, why does TWRP not enable us to decrypt the partitions. I can see them, I can mount them in encrypted form. Under Linux it would be a one line command to decrypt them and remount the decrypted partition. However, I looked around and could not find any command to do this "by hand" under TWRP.

How does TWRP decrypt the partitions usually?

Why does twrp decrypt <pin> fail?

Is there any mount-flags one could/need to set to trigger decryption during mount?

Could someone with a working encryption/decryption please post the content of /etc/fstab and the output of the mount command under TWRP

I read that build.prop should contain a flag for encryption. Can someone give some feedback on this?

I really take this now as a challenge... ;)

---------- Post added at 08:38 AM ---------- Previous post was at 07:43 AM ----------

Things looking more grim :(

In /tmp/recovery.log one can find

I:operation_start: 'TWRP CLI Command'
Attempting to decrypt data partition via command line.
get_crypt_ftr_info crypto key location: ''
Unexpected value for crypto key location
Error getting crypt footer and key
Failed to decrypt data.

after calling

twrp decrypt <pin>

it seems the key location which contains the real key for the data is gone or not accessible

if I read the docs right. The data is encrypted by an Android own file-based encryption method, which uses a large key, which is saved somewhere...

Thus, it is not as easy as asking to decrypt by the user pin

see:

https://source.android.com/security/encryption/file-based
[OnePlus 5 Questions & Answers] torwag:
https://xdaforums.com/oneplus-5/how-to/guide-restore-data-stuck-bootloop-n-o-t3724515/page2

This thread describes how to decrypt your data and save it before nuking your phone.

You have to follow the description word by word. However, I use blu_TWRP which was installed for me already as recovery system.

Most important:

DO NOT REALLY NOT REBOOT INTO THE SYSTEM AFTER REFLASHING as otherwise your "old" keys for your "old" encrypted data might be replaced... follow the howto in the link
[OnePlus 5 Questions & Answers] tommy92tc:
Same here, bootloop yesterday... (unlocked, twrp, magisk, xposed)

But I managed to recover, I used otg, used usb stick with 4.5.15, in twrp I saw everything scrabbled (encrypted) but I can flash zip from usb.

Dirty flash of 4.5.15 over the bootlooped 5.0, now is everything fine, no data loss at all.

But I don't know how to dirty flash Oreo now :/
[OnePlus 5 Questions & Answers] Bigred065:
Hey Torwag, does this work only with phones that get stuck into bootloop or also the phones that don't boot at all ?
[OnePlus 5 Questions & Answers] Bigred065:
adb sideload won't work for me. I tried to adb push but it doesn't see the device.

Do the other people with no bootloop, just the blue led lighting up have ADB not working for them??
[OnePlus 5 Questions & Answers] azeem40:
This should work for both situations, but I'd wait for him to respond to be sure.
[OnePlus 5 Questions & Answers] YanEiOnP:
Hi all,

Was in the same boat...

Flashing Oreo via TWRP after having 4.5.15+Magisk14.0 caused me a black screen with LED.

After wiping everything I sideloaded Oreo again and now I have it working although no root...

Problem is TWRP won't stay, and it keeps going back to stock recovery so I have to flash it through fastboot each time I want to use it. Also, TWRP isn't asking for my pattern so it's still encrypted and I can't mount /data therefore can't flash Magisk again.

Anyone got a way to make twrp work so I can install Magisk(15.0) without wiping everything again?
[OnePlus 5 Questions & Answers] null0seven:
Oos 5.0 rewrites recovery on every boot or reboot.

I think you need to Format Data again.

It's Mandatory to Format Data if you come from Nugat to Oreo ! Otherwise will not work!
[OnePlus 5 Questions & Answers] YanEiOnP:
I already formatted everything and setup my phone again on OOS5.0. Problem is I don't have root and twrp can't decrypt my storage to flash Magisk.

Should I try to sideload Magisk? Or is there a recovery that can decrypt my storage on OOS5.0? Had no problem with that running 4.5.15....

I'm trying to avoid formatting/wiping again
[OnePlus 5 Questions & Answers] gpolydoros:
This one worked for me: https://mega.nz/#!5EZDRDLI!8h588DoJbY6xdmsbWVCDZ7Y1x42ZK4TrC65l0bsyHBo

Make sure you flash Magisk 14.3+. I'd recommend 14.6 actually, that's what I used and I've had no problems so far.
[OnePlus 5 Questions & Answers] hadiyalkishan:
hello sir..what is the name of this twrp ?

blue spark or ibe ?
[OnePlus 5 Questions & Answers] null0seven:
I think it's chinese twrp by xXx
[OnePlus 5 Questions & Answers] torwag:
Hi,

my phone was stucked at the boot screen.

Recovery was replaced by stock recovery.

Side loading TWRP via fastboot allowed me to see my paritions encrypted. Flashing the old ROM and directly boot into recovery again, allowed me to enter the PIN as it worked before. After that it took a few seconds and the partitions were decrypted. After that I copied the important data over to my PC via adb pull

If you you are stuck somewhere else, try to boot into the bootloader to use fastboot to load a TWRP ROM. For me it was not needed to use the Chinese TWRP ROM. The latest Blu_TWRP worked well.
[OnePlus 5 Questions & Answers] YanEiOnP:
thx ! It was able to decrypt the storage and I managed to flash magisk .

All working well now, on Android Oreo and with Magisk V15.0 installed! too bad I had to format my phone to get there :'D
[OnePlus 5 Questions & Answers] gpolydoros:
Indeed, it was referred to as the "Chinese TWRP" on the OnePlus forum and it says "modified by xXx" when booting. It was the only one that worked for me, and I tried a quite a few, including the latest 3.2.1-0.
[OnePlus 5 Questions & Answers] mcescoli:
Installed the chinese twrp by xxx but.....

How did you get the data decrypted?

I installed the Chinese twrp by xXx but i cant figure out how to do it. Doesn't prompt me to decrypt.
[OnePlus 5 Questions & Answers] null0seven:
Twrp blu spark 8.61 made by eng stk it's a custom twrp 3.2.1.0
[OnePlus 5 Questions & Answers] YanEiOnP:
It asked me for my pattern.

Note that I was already running OOS5.0 and just needed to flash magisk.