yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 Guides, News, & Discussion] Eng91:
Just tried now, I uninstalled the drivers and leave installing it self and is still in "sending recovery"
[OnePlus 5 Guides, News, & Discussion] ph1dft:
May be remove all adb drivers, connect phone with debugging on. Windows connects a drive with adb drivers for your phone.
[OnePlus 5 Guides, News, & Discussion] Eng91:
Nope, Windows couldn't find a driver :(
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
I hope you have renamed the twrp image as per the command I see it has to be recovery.img for it to work and it has to be in the same directory.
[OnePlus 5 Guides, News, & Discussion] Eng91:
Yes, sure, I renamed to "recovery", and now I've tried to reinstall the drivers from the OS but still same error message: "FAILED (remote: Requested download size is more than max allowed)
[OnePlus 5 Guides, News, & Discussion] Lavarock:
Hi, I have some new questions.

What is the purpose of decrypt data on the phone?

I Will use your tutorial twomorrow. But where is the file "Platform tools" ?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Might be a windows 10 issue, are you using V56 twrp

Try a different machine maybe?

Thats where you install the drivers generally just install adb and fastboot systemwide form the link I've provided
[OnePlus 5 Guides, News, & Discussion] ph1dft:
I had the same error.

Removed the old OP3 drivers, installed the OP5 drivers, rebooted and than it worked.
[OnePlus 5 Guides, News, & Discussion] Eng91:
Tried, I remove the previous driver of the OP3 and installed the drivers from technobuzz.net, rebooted and nothing.

I've tried on Win7 machine, tried to download 3.1.1 stable, V46 and V58 :crying:
[OnePlus 5 Guides, News, & Discussion] ph1dft:
Very strange... Maybe different USB cable... Different computer...
[OnePlus 5 Guides, News, & Discussion] f1refly:
Ive tried on debian and on gentoo, both not working. Maybe its an issue with the system update?
[OnePlus 5 Guides, News, & Discussion] _MartyMan_:
Yes, follow the guides on the forum :good:
[OnePlus 5 Guides, News, & Discussion] Eng91:
I think so, first thing I've done was updating to 4.5.2 :crying:
[OnePlus 5 Guides, News, & Discussion] néonaloj:
So you have succesfully decrypted the OP5??? Could you please post a screenshot? Thanks!
[OnePlus 5 Guides, News, & Discussion] _MartyMan_:
The theme is Ozone with Scarlet accent color btw
[OnePlus 5 Guides, News, & Discussion] shujin51:
My device is not recognized by my pc even though I changed it to data transfer. USB debugging is on so I don't know what the problem is :/ It should install the driver on its own right?
[OnePlus 5 Guides, News, & Discussion] néonaloj:
That's great, you're the first one I do know to succesfull decrypt the OP5!

Could you please remind the exact process you did for? Thanks again!

---------- Post added at 19:57 ---------- Previous post was at 19:56 ----------

It should NOT install the drivers on its own, you have to install them!
[OnePlus 5 Guides, News, & Discussion] _MartyMan_:
Wiped everything (except Internal Storage) Flashed ExperienceOS 2.0, then flashed the "no-verity-opt-encrypt-5.1" ZIP file, then Wipe > Format Data > Reboot System. I also have the stock kernel.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
From the TWRP thread, SU seams to handle decryption and Magisk cant, i have not tested personally but you can try.

Follow OP and use SU instead of Magisk if you havent already, else use the method advised on the post above.
[OnePlus 5 Guides, News, & Discussion] néonaloj:
That's really intresting! So you had to flash ExperienceOs in order to decrypt... OOS must have "something" that blocks the decrypting process! A track to follow...

I did the same process on OOS without success, shall have a look at the ExperienceOs thread now.

Thanks again!
[OnePlus 5 Guides, News, & Discussion] _MartyMan_:
Your welcome! ;) Btw you could try the same with OOS, in worst case it won't decrypt, you can try again
[OnePlus 5 Guides, News, & Discussion] néonaloj:
Another track to follow! I'll try when I've a bit time (have to copy a lot of stuff to pc now..). Thanks for all what you do [MENTION=6143932]Funk Wizard[/MENTION]!

---------- Post added at 20:20 ---------- Previous post was at 20:18 ----------

I already tried! Many times... With no luck on OOS..

I'll follow your both advices and try again.
[OnePlus 5 Guides, News, & Discussion] Eng91:
Everyone that has successfully done the twrp installation can tell me if they already have the last OTA upgrade (4.5.2)?
[OnePlus 5 Guides, News, & Discussion] _MartyMan_:
I upgraded to 4.5.2 when i was full stock - no worries now ;)
[OnePlus 5 Guides, News, & Discussion] néonaloj:
Oneplus now will see you're root and warn you you will loose it. It then will load a full package and flash it through TWRP. But the stock recovery will be back.

Personally, I have flashed the full zip through TWRP + Magisk. Done.
[OnePlus 5 Guides, News, & Discussion] _MartyMan_:
Okay, let me know if it worked or not. Good luck! :fingers-crossed:
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Please follow the below for OS upgrade:

https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003
[OnePlus 5 Guides, News, & Discussion] Ry2mkk:
I'm trying to return to full stock: would anyone be able to clarify that this process would be the best route to take ?>

Flash stock recovery - sideload the Stock Zip ? via ADB
[OnePlus 5 Guides, News, & Discussion] 0r32:
Is this message normal after unlocking the bootloader and decrypting the phone?
[OnePlus 5 Guides, News, & Discussion] Ry2mkk:
Yes :good:
[OnePlus 5 Guides, News, & Discussion] Eng91:
I mean that I'm not able to install twrp because I think there's a bug on the last OOS
[OnePlus 5 Guides, News, & Discussion] dansou901:
So, for now I give up on decryption. As installing ExperienceOS is not an option for me (I need Magisk without SuperSU) I can't use that (I also want to stay on stock for the time being). Also, if I flash SuperSU after decrypting and reboot, internal storage doesn't work at all - it's simply not accessible. So for now I'll live with an encrypted device and Magisk until there is a better option.
[OnePlus 5 Guides, News, & Discussion] M1K__:
Easiest & Safest way is to contact OnePlus support have have them remote in to use their tools to full reset the phone
[OnePlus 5 Guides, News, & Discussion] 3dawg:
What steps did you take if you don't mind me asking?

I am getting the unusable internal storage problem now and I'd like to just use the phone encrypted with Magisk.
[OnePlus 5 Guides, News, & Discussion] Ry2mkk:
Sorted it now , Back to stock with locked Boot loader, no silly warnings!

#relief !

out of interest - do you know if they are offering support for the Op5 Yet in terms of software via support ?
[OnePlus 5 Guides, News, & Discussion] dansou901:
That's quite easy... Reboot to TWRP, if the storage is working there, copy over the Full OOS zip, wipe everything without internal storage, install OOS, then go to wipe -> format data. After that, your device should boot up with usable storage. If that still doesn't work, use the reset to stock option in OOS settings.

If storage doesn't work in TWRP either, flash twrp-cheeseburger-59 version and use an usb media mounted via OTG to install OOS.
[OnePlus 5 Guides, News, & Discussion] DaSoul:
with an unlocked bootloader and root, is an OTA update possible or is the root than overwritten?
[OnePlus 5 Guides, News, & Discussion] Nomelas:
will unlocking the bootloader make that warning message appear when you boot the phone? and is there a way to remove it completely if it does?
[OnePlus 5 Guides, News, & Discussion] Xennet:
Deleted.
[OnePlus 5 Guides, News, & Discussion] dansou901:
That's nice of you, I'll try that in a few days, it's getting late now and I need a usable phone tomorrow...
[OnePlus 5 Guides, News, & Discussion] 3dawg:
Does not work. I get the no OS installed error then when booting the phone is still encrypted.

What a hassle it is to decrypt this phone! This was so much easier on the op3. Why does the storage become unusable on op5? I just want stock + magisk + decrypted. Or at this point I would settle for encrypted! Does anyone know a surefire way of doing this?
[OnePlus 5 Guides, News, & Discussion] c_86:
Go to recovery

Factory reset via wipe>format data>yes

Transfer 4.8.2 onto internal storage

Flash that

Flash magisk

Wipe caches

Profit
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Incoming 4.5.3 !!
[OnePlus 5 Guides, News, & Discussion] DaSoul:
Is it possible to OTA update on an bootloader unlocked and rooted phone?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Unlocked bootloader yes but rooted device no has to be full zip only

We have integrated system updates in such a way that it will itself detect root and will download full zip instead of just OTA
[OnePlus 5 Guides, News, & Discussion] dansou901:
I never tried if it is the same with Magisk and enabled Magisk Hide... Will it apply just the incremental OTA then? Should be the case, right?
[OnePlus 5 Guides, News, & Discussion] DaSoul:
sorry but just to clarify, so i actually can do the OTA, but it will download full zip instead of just the update?

Or will it install the full zip and i have to root again?

Wasn't 100% clear.

Thanks a lot for fast replies and your help!
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Won't work, if rooted you need to flash the full zip always, you can follow my update thread for instructions
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
You have to flash it manually, when rooted

Download the full zip

Reboot to TWRP

Wipe dalvik and cache

Flash full zip

Flash Magisk

Reboot system

Flashing full zip would unroot so you have to flash Magisk or SuperSU everytime.
[OnePlus 5 Guides, News, & Discussion] DaSoul:
But it won't wipe the phone everytime like a factory reset? Or do i have to setup everything again?

Would you suggest to do it or wait and rather do it few times per year?
[OnePlus 5 Guides, News, & Discussion] laupuy:
Hi,

wipe cache and dalvik is a dirty flash for update without data lost ;)
[OnePlus 5 Guides, News, & Discussion] DaSoul:
so the suggestions would be to not do it?

Guuuuuuys please be specific =)

ok than i guess i rather setup my phone from scratch like 2-3 times a year than flashing "dirty"(?) and maybe losing/damaging something?!
[OnePlus 5 Guides, News, & Discussion] laupuy:
You can do the update by wiping cache and dalvik : no data loss, it's safe.

If you wipe data/factory reset: all data/settings/app will be lost it's for clean flash or if you come from another rom
[OnePlus 5 Guides, News, & Discussion] DaSoul:
Thank you! =)
[OnePlus 5 Guides, News, & Discussion] tristaoeast:
Would be interesting if you described how you did it ;)
[OnePlus 5 Guides, News, & Discussion] laupuy:
Hi,

take a look here: https://forums.oneplus.net/threads/...-3-3t-and-go-back-completely-to-stock.456232/

it's for OP3 but the principle is the same

;)
[OnePlus 5 Guides, News, & Discussion] 3dawg:
How is this different to every other method? I've tried these same steps many times.

I still don't have access to my internal storage. Does anyone know how to fix that issue?

FIX: Go to terminal in twrp and run the following command "restorecon -FR /data/media/"

I don't understand why I have to do this but it works. Does anyone know why this is happening?
[OnePlus 5 Guides, News, & Discussion] Lavarock:
Now that 4.5.3 is out, is this always working? Will apply this tutorial in some hours
[OnePlus 5 Guides, News, & Discussion] eikaramba:
i flashed 4.5.3, basically the same. no change in the tutorial. but for everyone how has problems with play store not downloading, no access to internal storage. the tip from 3dawg helped me too

"restorecon -FR /data/media/" in terminal in twrp
[OnePlus 5 Guides, News, & Discussion] dansou901:
Looks like selinux issues... Decrypting seems to change the special access rights verified by selinux, so that the system doesn't have permission anymore to access internal storage. The command restorecon fixes selinux permissions, - F is to force and -R to do it recursively.
[OnePlus 5 Guides, News, & Discussion] néonaloj:
[MENTION=6143932]Funk Wizard[/MENTION], a bit out of topic, sorry, but because of all my attempts to decrypt my phone...

I finally gave up, after trying all and everything, and now that my phone is configured, I do have a problem with Titanium Backup : as I couldn't find the file on my PC, I tried to uninstall the app and re-install. Now I only have FCs. Here is the log : https://pastebin.com/mK0ZhA4X

Only if you've time, I do know you're so busy to help others ;)

Thanks!
[OnePlus 5 Guides, News, & Discussion] dansou901:
What happens if you do a clean flash of Oxygen OS and install Titanium Backup from Play Store then? Worked at least for me...
[OnePlus 5 Guides, News, & Discussion] TwinAdk:
Take a look at Magisk, does it work as expected? The last thing happening is Magisk processing a root request..
[OnePlus 5 Guides, News, & Discussion] Nomelas:
this guide is not clear on one part. Am I able to flash the dm-verity zip, get root and still stay encrypted? or do I have to give up encryption?

also, will OTA overwrite recovery & do i need to reflash dm-verify zip each time I update??
[OnePlus 5 Guides, News, & Discussion] néonaloj:
I didn't tried a clean flash yet, has to be done...

I saw in the log that something was wrong with the su command. I tried uninstall Magisk, dirty flash of the rom + Supersu, with no luck, still FC of titanium

.. But thank for your reply !
[OnePlus 5 Guides, News, & Discussion] uraveragedude1:
I'm thinking for when I get my OP5 in two days, I want to unlock the bootloader almost as soon as I get it to get that out of the way. I plan on flashing ROMs and getting TWRP later on, I just want to unlock the bootloader for now. Can I still get OTA incremental updates with an unlocked bootloader?
[OnePlus 5 Guides, News, & Discussion] tristaoeast:
Yes, that's what I'm doing, I only have the bootloader unlocked and am installing the OTAs as soon as they arrive
[OnePlus 5 Guides, News, & Discussion] onirikon:
Yes with unlocked and unrooted device you can continue to install directly OTA, is what I did, I'm waiting the first wave of updates to stabilize before rooting.
[OnePlus 5 Guides, News, & Discussion] uraveragedude1:
Okay, thanks. I'm waiting for ROMs like DU to come before I get TWRP and flash anything.
[OnePlus 5 Guides, News, & Discussion] Giansi:
Thank you very much [MENTION=6143932]Funk Wizard[/MENTION] for this useful guide.

I succesfully unlocked bootloader and installed TWRP.

But I wasn't able to decrypt.

I did exactly this:

For Users who want to Decrypt Data have to Flash DM Verity Zip and Format Data

The latest DM verity zip to flash is the 5.1 correct?

After reeboting to system, in setting > security the last option it says that my OP5 is still encrypted.

Is that messagge wrong, and in the reality it's decrypted, or not?

Thanks anyway
[OnePlus 5 Guides, News, & Discussion] néonaloj:
As far as I know, only a few people have succesfully decrypted the OP5 yet (@MartyMan for instance). I tried many ways (this guide, also "fastboot format userdata"), but with no luck...

Thanks for trying, I think we have to find a workaround for that...
[OnePlus 5 Guides, News, & Discussion] xXx:
If you decrypt your device you will definetly not be able anymore to use Magisk root. Only SuperSu will work.

Anyway, if this doesn't matter for you just flash the latest v5.1 no verity zip. After that you have Format your data partition. That's it but all your data as well as sdcard content will be deleted. So make sure you backup first.

DON'T restore a backup of your encrypted data partition as rhis will destroy your decrypted setup.
[OnePlus 5 Guides, News, & Discussion] #sharath:
If i unlock bootloader only and don't install root and custom recovery, i can still install OTAs right?
[OnePlus 5 Guides, News, & Discussion] Eng91:
You can anyway install root and custom recovery, thereafter manually download full OTA ROM and install it from recovery ;)
[OnePlus 5 Guides, News, & Discussion] #sharath:
I don't wanna do that, thats why i specifically asked about it.

So can i install OTA fine?
[OnePlus 5 Guides, News, & Discussion] laupuy:
Hi,

Yes.

You just need stock recovery without root for OTA's updates

;)
[OnePlus 5 Guides, News, & Discussion] néonaloj:
So I tried again (because of the following problem), and did not get the phone to be decrypted... I don't know why it's working for you guys, for me it does not.

My data were lost, but the phone is still encrypted.

So, to be more accurate, I couldn't find the folder of TB, only a file (see screenshot). So I tried to create the folder, with no luck, TB did not happen to have acces to it (I managed to write the right way!).

So I tried to unistall/re-install as I said, with no luck.

Today, before trying to decrypt the phone, I wanted to make a backup of my SMS. But the app "SMS Backup & Restore" refuses to open too!

Here is a new log, when trying simultaneously the two apps, if someone could have a look, I would really appreciate! Thanks.

https://pastebin.com/D1Y7ZZYB
[OnePlus 5 Guides, News, & Discussion] xXx:
you most probably experience a sdcard permission issue.

https://xdaforums.com/oneplus-5/dev...-optimized-t3627121/post72830365#post72830365
[OnePlus 5 Guides, News, & Discussion] néonaloj:
Thanks for your reply!

But, when I read, I don't have the same issue! : "[...] File Save Error. Like In Chrome, Download Failed Saying "Missing SD Card", Cam Took Pics But They Vanished From Gallery, No Downloads From Play Store. It Was Like The Storage Has Been Converted To Read Only."

Because I CAN download a file through Chrome, my pics are saved correctly, I CAN download apps from Playstore etc...

Should I flash the fix anyway?

Thanks again!

Edit : did you look at the log?
[OnePlus 5 Guides, News, & Discussion] xXx:
it doesn't hurt to flash the fix. Several users had issues with sdcard storage and fixed it with that.

Try it and if still have the same issue and TitaniumBackup is really just a file on our sdcard you need to delete this otherwise Titanium can't create a folder with that name.

Also make sure Titanium really got root access and check under settings>apps if Titanium got all necessary permissions assigned.
[OnePlus 5 Guides, News, & Discussion] néonaloj:
I deleted the file, and tried a backup with TB in purpose to create it, but it did not. So I create it myself, and wrote the right way in TB. It failed again. So I tried to uninstall, and re-install, since then, only FCs... The same happens with "SMS Backup & Restore". These are the only apps wich don't work properly...

Edit : as for the su rights, TB doesn't even appears in Magisk manager!

Anyway, shall try your fix. Thanks!
[OnePlus 5 Guides, News, & Discussion] xXx:
Titanium will not even start without root. Make sure the app will get root. Try to re-flash Magisk
[OnePlus 5 Guides, News, & Discussion] néonaloj:
I did try.

I also tried to unistall Magisk manager, dirty flash the rom and install SuperSU. No more luck...

In the log, I do see something in the red lines talking about the file "/data/user/0" that seems to be looked for by TB (??), but this file is empty in my phone... maybe a track ti follow?

PS : I didn't try the fix yet, shall do it now.

Edit: I flashed the fix, without any luck, TB and SMS restore & backup still FCs...
[OnePlus 5 Guides, News, & Discussion] Jarod_:
Hi,

Thanks for this good thread :)

I read the thread but I'm still not sure about a couple of things:

1) If I root my device, then I'll keep receiving OTA alerts from OnePlus, however I must not click to download the update, but I have to go to http://downloads.oneplus.net/ to download it and flash it using TWRP ?

2) If I flash an update from OnePlus (see previous 1), then no need to wipe or re-root: my system will be updated and no need to reinstall everything, and the root will still there?

Thanks for your expertise !
[OnePlus 5 Guides, News, & Discussion] néonaloj:
If you flash the (full zip!) update through TWRP, you need to flash Magisk or su again, as it does unroot the rom. That's it.

You can download the zip file (full zip) through the OTA as OP5 will be recognized as rooted. You can even let it flash it by itself, but the recovery stock will be back.

So, beter thing to do is to flash full zip update + magisk or Su.
[OnePlus 5 Guides, News, & Discussion] laupuy:
Hi,

1- Yes, OTA is for stock recovery without root

2- for update with twrp: wipe cache and dalvik (no data loss), flash rom, flash root*, reboot (* cause flashing stock rom will lose root)

take a look here: https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003

;)
[OnePlus 5 Guides, News, & Discussion] kbocek:
And by flash root, you mean flash supersu, right? I'm currently on 3.5.2 but will flash 3.5.3 shortly. I'm seeing Oxygen replace recovery with stock. Is this all we need to keep TWRP?
[OnePlus 5 Guides, News, & Discussion] laupuy:
- supersu (2.82 or 2.82 sr1) or magisk (v13), the one you want.

- OOS replace the twrp when you wipe system (at least for me), no risk by simple wipe cache&dalvik, but don't forget root (it will also cause twrp lost).
[OnePlus 5 Guides, News, & Discussion] kbocek:
I'm confused by your answer. So I've replaced TWRP through "Fastboot Flash Recovery". I've copied over the 3.5.3 image. My plan is to flash 3.5.3 then immediately flash SuperSU without rebooting. Will this maintain TWRP?
[OnePlus 5 Guides, News, & Discussion] néonaloj:
Yes! ;)
[OnePlus 5 Guides, News, & Discussion] laupuy:
It happened to me once.

Clean dirty flash rom (wipe cache, dalvik and system)+supersu, reboot and I lost the root, I restart in twrp to flash su and I realize that I no longer have twrp but the stock recovery!

But Stop OT and we should go here: https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003 ;)
[OnePlus 5 Guides, News, & Discussion] néonaloj:
Well, so to get rid of both problems, the decryption and Titanium Backup' issue, I decided to try one more time to decrypt my phone. I flashed the no encrypt zip and formated data in TWRP. And .... I'm still encrypted!!

My phone seems to definetly refuse to be decrypted, don't know why...

One issue I had to face, that I never had to before, is the unusuable /data problem! I could solve it thanks to this reply :

Thanks for that!

Now, about my Titanium Backup (and SMS backup & restore) issue, I can now use Titanium Backup as intended. BUT, I still have the problem that the TB's folder is NOT recognized by the PC! PC only sees a file named Titanium Backup... Into the phone, via a file explorer, I Can see the folder. (I have to copy the data of my backup folder on PC to another folder I created on the phone; then transfer again from that folder to the TB one.. It's a pity..)

I'm pretty sure that IF I uninstall Titanium Backup and re-install it, it'll FC again!

But yes, it seems that I have to live with that and an encrypted phone.

Are there still others people who cannot decrypt the OP5?

Thanks to all and to [MENTION=1030560]xXx[/MENTION]!!
[OnePlus 5 Guides, News, & Discussion] kbocek:
That did indeed work. I have rebooted, shut-down and tried multiple ways to get into Recovery. TWRP persists! Many thanks.
[OnePlus 5 Guides, News, & Discussion] dsjiffry:
Could someone share the stock values for virtual memory and low memory killer???

Some screenshots from kernel auditor would be great.
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
I noticed the OP doesn't mention anything about having any OnePlus drivers, just adb and fastboot. Is that all we need, or are OnePlus drivers needed as well?

Thanks in advance!