yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 Guides, News, & Discussion] siiie:
Can't install Magisk after updating to 9.0.5

I'm getting "Unsupported/Unknown image format" when trying to install Magisk (tried 3 diff versions - 19, 18, 17)

When trying to install Magisk via recovery, i'am getting bootlooped

I didn't backed up my old boot.img (from 9.0.4), can someone please link me a working boot.img

Also, i did tried to extract from previous version 9.0.4 (that I had installed before the upgrade)

Both boot.img versions (9.0.4 & 9.0.5) gained the same result - "Unsupported/Unknown image format"

* TWRP: TWRP_3.3.0-Pie-1.1_siankatabg_OP5-T

* I had 19.1 on 9.0.4 - Uninstalled it before flashing 9.0.5 and tried reinstall it

* Phone is encrypted, that's why i'm using xXx-No-Verity-Treble_v3 (flashed it after any boot.img change)
[OnePlus 5 Guides, News, & Discussion] imakul8:
This is what you call a thorough thread. I've had my OP5 for 2 months now and finally rooted it..twrp backed up and efs backuped. I can do no wrong now. ;):good:

Edit: How to donate?
[OnePlus 5 Guides, News, & Discussion] imakul8:
I'm using Blu_Spark Twrp. With the decrypt option offered can I just enter my password and backup and restore without disabling fingerprints, etc or must I still disable it before backing up to avoid issues?
[OnePlus 5 Guides, News, & Discussion] strongst:
It's highly recommended to remove it before backup, otherwise you need to remove the files with TWRPs file manager if your recovered backup won't unlock.
[OnePlus 5 Guides, News, & Discussion] imakul8:
Thank you. Will do.
[OnePlus 5 Guides, News, & Discussion] Rajeshrajkhaju:
Hello hai bro anybody tell me

1)IAM FIRST TIME TRYING TO ROOT MY ONEPLUS 5

2)IAM RUNNING LATEST LATEST OSS 9.0.6 STABLE

---------- Post added at 03:10 AM ---------- Previous post was at 03:06 AM ----------

Hello hai bro anybody tell me

1)IAM FIRST TIME TRYING TO ROOT MY ONEPLUS 5

2)IAM RUNNING LATEST LATEST OSS 9.0.6 STABLE:angel:
[OnePlus 5 Guides, News, & Discussion] strongst:
And what is your question?
[OnePlus 5 Guides, News, & Discussion] gokul1980:
Will i be able to reconfigure my official email id post rooting?

Hi,

I was thinking of going ahead and rooting my device and installing a custom OS. Though i am familiar with the overall process stated here in this thread, i still have a query and i request you experts to guide me.

I have configured my official email id on my device that is running a stock OS. In case i root my phone (without going ahead and installing a custom ROM) & stay encrypted, will i still be able to reconfigure my official email id. By the way, i use the "Boxer" client to configure this email.

Appreciate any advice that you guys may have for me.

Thanks,

Gokul
[OnePlus 5 Guides, News, & Discussion] strongst:
Which tld has the mail address?
[OnePlus 5 Guides, News, & Discussion] gokul1980:
Sorry, i did not get the question. Could you please elaborate?
[OnePlus 5 Guides, News, & Discussion] strongst:
Top level domain of the email address. I don't understand what you mean with official email ID.
[OnePlus 5 Guides, News, & Discussion] shreyas1701:
Aweseome

I had lost touch about rooting and oem unlock.

This tutorial had simple steps. Did the entire thing within 25mins on my op5 :D:D:D
[OnePlus 5 Guides, News, & Discussion] Trolske:
Upgrade from OOS 5.1.1 to 9.0.0

What are the steps to jump from OOS 5.1.1 (rooted) to 9.0.0 (rooted)?

I read I first need to update to 5.4.1 for the treble support, but how about afterwards?

My current guess would be:

1. remove encryption

2. back up

3. flash 5.4.1

4. flash TWRP & Magisk

5. flash 9.0.0

6. flash TWRP & Magisk

Thanks in advance!
[OnePlus 5 Guides, News, & Discussion] strongst:
Nope, much easier:

Clean flash 5.1.4 then take ota update(or dirty flash full zip) 9.0.8

Then you can install twrp and magisk again.

These are the steps as an overview if you're familiar with the stuff.
[OnePlus 5 Guides, News, & Discussion] Trolske:
Nice, thanks a lot!

Does the OTA work because I'm not reflashing TWRP/Magisk between versions, therefore i'm not rooted?
[OnePlus 5 Guides, News, & Discussion] strongst:
Exactly, that's why ota is working: stock recovery, no root.

Hence you should flash twrp from fastboot after, 9.0.8 and then magisk if you want to choose this way :good:
[OnePlus 5 Guides, News, & Discussion] DylanTheVillian:
everytime i try to relock my bootloader my phone refuses to boot back into oos. it will perform the relock then wipe data then it boots back to a the oneplus bootsplash and then to a black screen with a white led lit... nothing else happens..

can someone let me know what i need to do to correct this?
[OnePlus 5 Guides, News, & Discussion] strongst:
Did you format internal storage prior this? Please give more information about rom, mods, encryption status of internal storage etc.
[OnePlus 5 Guides, News, & Discussion] DylanTheVillian:
I tried clean format and just booting to the bootloader after I've been using it, same result. Stock latest OOS, not rooted, I am encrypted. I even installed OOS 9.0.7 and I got the same result there too...
[OnePlus 5 Guides, News, & Discussion] strongst:
Ok, I recommend to flash(dirty from stock recovery by local installation) 9.0.8 again. Then reboot to the os, go to factory reset and start factory reset. Then reboot to bootloader and try locking again.

If this did also not help, there's an unbrick guide(msm tool) which will write all partitions new.
[OnePlus 5 Guides, News, & Discussion] hsg120:
I've done a ton of googling and haven't found an answer to this. Hoping someone can help :good:

I'm trying to remove forced encryption on a custom ROM. Whenever I flash a dm-verity disabler zip via TWRP, I get the error, "Updater process ended with Error: 1. Error installing zip file."

The relevant part of the TWRP log says, "/tmp/updater[63]: .: config.sh: No such file or directory. Updater process ended with ERROR: 1"

What am I doing wrong?
[OnePlus 5 Guides, News, & Discussion] shadowstep:
Try using a different no-verity zip. I recommend the xXx-No-Verity-4.0.zip downloadable from here. Additionally, I hope you know that just flashing the zip over an existing installation will NOT remove encryption. You will have to format your data for it.
[OnePlus 5 Guides, News, & Discussion] hsg120:
Woohoo!! That worked! It's weird because I tried one other no verity zip (I forget which one, specifically) and it didn't work either. But the one that you linked me to did the trick. I am now unencrypted :victory:

Thank you so much for your help!
[OnePlus 5 Guides, News, & Discussion] hadiyalkishan:
Hello help me

Recently i moved from beta 35 to stable..

Successfully flashed 9.0.8 with msmdownload tool and flash file.

After moving in stable my device is hanging lot and display is blinking and display showing like pixels.

After i flashed with 9.0.5 stable and moved to last beta 35 version still same problem facing.

Device is non rooted and bootloader is relocked

Plz help me..

[youtube]eZ7JsaeDtN8[/youtube]
[OnePlus 5 Guides, News, & Discussion] udayachendur:
Can someone explain about decrypting the phone. How does it affect or benifit us?

Keeping the device encrypted renders TWRP un-openable when we have set up screen lock. Is there any work around about it?
[OnePlus 5 Guides, News, & Discussion] strongst:
You just need to enter your pin within twrp, then it's decrypted/accessible.

Read here how to access your encrypted storage https://xdaforums.com/oneplus-5/how-to/oneplus-5-unlock-bootloader-flash-twrp-t3624877/post72748930
[OnePlus 5 Guides, News, & Discussion] lharolds:
OnePlus 5 twrp not working after update to OxygenOS 9.0.9

Hi all,

Hope someone can help.

My OnePlus 5 was rooted with Magisk, after having first installed TWRP. The bootloader is unlocked, obviously.

A few days ago I was prompted to update the ROM to 9.0.9 but even though it said it would unroot the device, I figured I could just re-root it. Not the case.

Whenever I try to root it by flashing TWRP 3.3.1.0 in fastboot with adb, it says it was successful but after a reboot to recovery it still has the default recovery.

Any suggestions? Any help is appreciated :)
[OnePlus 5 Guides, News, & Discussion] imakul8:
After you flashed Twrp did you manually enter Twrp and flash Magisk? If you don't flash Magisk immediately after and reboot you won't be able to enter Twrp.
[OnePlus 5 Guides, News, & Discussion] lharolds:
I cannot enter TWRP at all. I only get the stock recovery. Despite adb install of twrp saying it was successful, this is not actually the case.

Any ideas?
[OnePlus 5 Guides, News, & Discussion] strongst:
What says the log when installing magisk like you were asked before?
[OnePlus 5 Guides, News, & Discussion] lharolds:
After updating to OxygenOS 9.0.9 I cannot enter TWRP to install Magisk. This is exactly my problem. I cannot install TWRP anymore. Even in fastboot with adb installing twrp (3.3.1.0) it say this was installed successfully, but then going into recovery is stock recovery.

I can only enter stock recovery and if I attempt to install Magisk (v.20) it will only say "Installation failed".
[OnePlus 5 Guides, News, & Discussion] strongst:
Please try magisk 19.3. Magisk 20 can cause issues on pie.

When magisk installation fails to install, the custom recovery will be replaced by stock recovery upon the next reboot.

If it won't work: So please list YOUR personal steps and files along with log files.
[OnePlus 5 Guides, News, & Discussion] lharolds:
I have now finally managed to install TWRP recovery. Took a while, but finally.

However, whenever I install the Magisk zip via TWRP (tried with versions 20.1, 20, 19.3 or 19.1), after installation and reboot it will say "shutting down" just before I can enter my pattern and then it will boot into recovery. Only a backup restore will work from there.

Any suggestions?
[OnePlus 5 Guides, News, & Discussion] lharolds:
Update: I finally managed to get everything to work. This only after a complete wipe and reinstalling the stock rom (OxygenOS 9.0.9) and starting from there.

Then TWRP 3.3.1.0 and then Magisk 20.1. All is working now.

I suspect that my update from 9.0.8 with Magisk to 9.0.9 was too much to bear, since any further attempt to install Magisk was met with boot loops.
[OnePlus 5 Guides, News, & Discussion] iiptv:
Mod edit - Translation by https://translate.google.com/ added:

Thanks

***************

شكرا
[OnePlus 5 Guides, News, & Discussion] Akshay Badak:
What are the advantages/disadvantages of staying encrypted/decrypting?

---------- Post added at 04:18 PM ---------- Previous post was at 04:07 PM ----------

What are advantages/disadvantages of staying encrypted/decrypting?
[OnePlus 5 Guides, News, & Discussion] strongst:
It's a security risk you should be aware of.
[OnePlus 5 Guides, News, & Discussion] Akshay Badak:
[MENTION=613506]strongst[/MENTION] that's not i understand much, can you please explain from user's point of view, or just tell what should i do? Stay encrypted or decryt?

---------- Post added at 05:45 AM ---------- Previous post was at 05:45 AM ----------

[/COLOR [MENTION=613506]strongst[/MENTION] that's not i understand much, can you please explain from user's point of view, or just tell what should i do? Stay encrypted or decryt?
[OnePlus 5 Guides, News, & Discussion] strongst:
I cant tell you what you should do.

Example: If you don't encrypt your storage and you lost your phone, it's easy to access the files just by booting to recovery and copy them(and many more ways).
[OnePlus 5 Guides, News, & Discussion] RMarques:
Guys, I've searched but couldn't find any sort of guide that help me doing the following to my OP5 6/64:

Relock bootloader

Unroot

Reencrypt

Install the latest stable Pie with the stock recovery

The main goal is to have it as stock as possible in order to sell it, since I'm rolling with an OP6 8/128 now.

If anyone have had any previous experience doing the steps above and can direct me towards a guide, I'd appreciate it a lot!
[OnePlus 5 Guides, News, & Discussion] strongst:
Hmm, I already linked you to the post/discussion about this: https://xdaforums.com/oneplus-5/how-to/oneplus-5-unlock-bootloader-flash-twrp-t3624877/post80133795
[OnePlus 5 Guides, News, & Discussion] RMarques:
[MENTION=1461709]STRONGEST[/MENTION] Thanks again bud.

Yeah, it's a 3 posts conversation, the main goal isn't clear and [MENTION=7292524]Dilant[/MENTION]heVillain hasn't posted any follow up.

I thought that maybe there was a specific thread talking about it somewhere...but it seems that there isn't.

I was willing to find a straight forward relock bootloader, format everything reencrypting it and installing the latest stable OOS with stock recovery available sort of solution...would the msm tool you just mention allow me to do it?
[OnePlus 5 Guides, News, & Discussion] strongst:
Yes, msm tool will do it for you, or just as I explained by flashing stock rom etc. :)
[OnePlus 5 Guides, News, & Discussion] gaja22:
Hello,

How to lock bootloader please ?

Regards.

---------- Post added at 08:16 PM ---------- Previous post was at 08:16 PM ----------

Hello,

How to lock bootloader please ?

Regards.
[OnePlus 5 Guides, News, & Discussion] jordirpz:
Fastboot oem lock
[OnePlus 5 Guides, News, & Discussion] Chaphasilor:
Hi, I tried flashing a new ROM today but it didn't work :/

Now I can't get my device to boot with any ROM, flashing crDroid will cause the phone to only boot into recovery, same with Pixel Experience. With the latest OOS beta and with my latest nandroid backup from stable OOS Pie, I just get a black screen with a light blue notification led.

Any ideas how I can get it up and running again, no matter with ROM or android version?
[OnePlus 5 Guides, News, & Discussion] Obfuscation501:
I am looking at buying a Oneplus 5 and rooting it. This would be the first phone I’ve rooted. Can all Oneplus 5s be rooted or is there something I should check for?
[OnePlus 5 Guides, News, & Discussion] 350Rocket:
Yes they all can. No carrier versions, they're all the same.
[OnePlus 5 Guides, News, & Discussion] Obfuscation501:
Awesome! Thank you! After buying a Pixel 2 that couldn’t be rooted I’m a bit wary
[OnePlus 5 Guides, News, & Discussion] farzii:
hey all,

i m on latest beta. flashed codeworx twrp. installed latest magisk 20.4 without booting into phone. magisk says not installed. also no carrier.

pls suggest.

TIA
[OnePlus 5 Guides, News, & Discussion] djrion:
Wait, what is your end goal for rooting?
[OnePlus 5 Guides, News, & Discussion] n3kf:
Just got a oneplus 5 to try. Have lots of experience with nexus 7s, nexus 5, 5x, and pixels with unlocking bootloader, installing twrp, rooting, magisk, etc. Anyway, I'd like to root the oneplus 5. It's on the latest Android 10, Oxygen OS. After doing OEM unlock in developer options, I know I can fastboot and oem unlock which will wipe the device. When I looked at the latest TWRP it warns that the device uses DM_Verity to secure the device and if you flash TWRP the device won't boot anymore. At this point I am ok staying on the latest o2 OS until I figure out what ROM looks best for me,but would like to root it. Can I do that, or if I flash TWRP, must I use another ROM to get around dm_verity? I've searched and can't find a consistent answer. Last thing I want to do is brick it. Thanks.
[OnePlus 5 Guides, News, & Discussion] navinmholkar:
What i do is on latest oos 10 i unlocked bootloader and flash latest bluespark recovery and then magisk. I didn't format data. All works good.

---------- Post added at 01:43 PM ---------- Previous post was at 01:42 PM ----------

.What i do is on latest oos 10 i unlocked bootloader and flash latest bluespark recovery and then magisk. I didn't format data. All works good
[OnePlus 5 Guides, News, & Discussion] mizzatt:
hi, getting infinite boot with animation. Am able to get into TWRP and have tried doing factory reset, which has been suggested but i'm still getting infinite boot with animation once i've completed this. any further suggestions? thanks.
[OnePlus 5 Guides, News, & Discussion] BadAp9le:
Same question here. Is this Recovery? No need disable DM_Verity?

Steps: Unlock > Flash TWRP > Flash Magisk

Are this steps correct?
[OnePlus 5 Guides, News, & Discussion] navinmholkar:
You can use latest official twrp or orange fox recovery. They both support android 11. All other steps are same.
[OnePlus 5 Guides, News, & Discussion] BadAp9le:
Thank you for reply me! So, no need concern DM_Verity problem？just follow steps in the 1st page?

Its my first time to do this, I'm scared XD.

I found offical 3.5.0 TWRP suffixed with 9.0 but my device is A10 is that okay?
[OnePlus 5 Guides, News, & Discussion] navinmholkar:
dm verity need if you want to stay decrypted. I would suggest stay encrypted.offical twrp works regardless of android version. Use that recovery and follow steps. If you want to try different rom i would suggest resurrection remix.
[OnePlus 5 Guides, News, & Discussion] BadAp9le:
I understand, thanks for your patience.
[OnePlus 5 Guides, News, & Discussion] BadAp9le:
Last question: installing Magisk won't affect DM_Verity too?
[OnePlus 5 Guides, News, & Discussion] navinmholkar:
No it didn't.
[OnePlus 5 Guides, News, & Discussion] BadAp9le:
Successfully rooted, thank you again.
[OnePlus 5 Guides, News, & Discussion] navinmholkar:
Welcome in rooting world. Happy flahing..
[OnePlus 5 Guides, News, & Discussion] DzieX:
Can anyone help me? In my case there is no way to see my device on list when I type "fastboot devices" but "adb devices" works. I've installed OnePlus USB drivers and other I found but with no result. Also tried disabling windows defender and cheked on different PC.

Found solution here https://android.stackexchange.com/a/106468/341770
[OnePlus 5 Guides, News, & Discussion] DzieX:
<solved>
[OnePlus 5 Guides, News, & Discussion] toxstoxs:
Hi. I'm getting mad trying to root my OP5 with UNOFFICIAL LineageOS 18. Unlocked Bootloader + Factory reset... Injected TWRP 3.4.0.0 , Flash LOS18 + Gapps + Magisk 21.4 then Reboot . Lunched the image patching for the LOS18 boot.img file... back to Fastboot status and flash the patched boot.img. Reboot but.. no Root...

Tryed to flash Android-11-SuperUser-Jays-Mod-ProtoDeVNan0-Mar22.zip gave me SU App on Android but it seems to just do nothing. No SU prompt... Someone can help? regards

P.S. I've noticed that after reboot a TRUST notification came up saying that the system has been signed with public Keys. No idea what is means.. but...
[OnePlus 5 Guides, News, & Discussion] flashr94:
Has anybody rooted the OP5 on Android 10 yet? I'd like to do it, but it didn't work since the 10 update.
[OnePlus 5 Guides, News, & Discussion] Krazy129234:
Krazy229234 my root canal I thought this might be a bit difficult but I had no idea that almost every word would send me spinning off into space. There is no way I could ever do this on my own. I had no clue how confuzeing it would be to me. Humbling.

Thank you.
[OnePlus 5 Guides, News, & Discussion] Chris57601:
Hello everybody,

I have a problem : I followed the guide step by step but after flashing Magisk (22.1), swipe cache and restart the phone ... stuck on boot. I know it could it be long but .... more than an houre ? Someone can help me please ?
[OnePlus 5 Guides, News, & Discussion] Chaphasilor:
Can you get into fastboot mode? Hold the power button until the phone turns off, then hold Vol+ while turning the phone back on, I believe...
[OnePlus 5 Guides, News, & Discussion] thomanski:
I'm having trouble getting root to work as well. Bought a used OnePlus 5 (OxygenOS 10.0.1), followed the excellent instructions on this post to unlock the bootloader, install TWRP and Magisk (following the "for users who want to remain encrypted" instructions) but with Magisk installed it just never finishes booting. Have even let it run for a whole night but still didn't get past the startup animation of two white circles moving around a red circle.

Then tried with the more recent Magisk versions, first 22.1, then 23 and that still failed, moved to a newer version of TWRP as well (twrp-3.5.2_9-0-cheeseburger_dumpling.img), sadly to no avail. I'm able to uninstall Magisk via TWRP by renaming the Magisk file to uninstall though, so have always been able to get back into Android, just without root.

Then I factory-reset from within Android (which kept the bootloader unlocked) and this time installed Magisk following the official instructions, i.e. installed Magisk from within Android (via permitting Chrome-downloaded apks), downloaded the OnePlus 10.0.1 Stock ROM from the official site, unzipped it, found to my delight that the boot.img was directly contained (i.e. not needing payload_dumper.zip), and followed through with the steps as described there. Unfortunately, the subsequent reboot never finished either.

I haven't seen instructions to wipe the cache here (at least when staying encrypted) and not in the Magisk instructions but in some places got the impression that's a common and potentially helpful thing to do, so I wiped the cache (from within the stock recovery), restarted the phone but it's still booting forever.

So I had to give up again, uninstall Magisk via a "fastboot boot twrp-3.5.2_9-0-cheeseburger_dumpling.img" and then installing the Magisk 23 version renamed to uninstall. During the uninstall I got a warning message that there was no backup of the patched boot.img. It boots successfully though, but, of course, still without root.

To be clear, I don't desperately need to root this stock rom, I intend to experiment with a de-googled LineageOS but just wanted to go through these motions and get some confidence and experience with the whole process and also wanted to perform the EFS backup that's suggested here before risking destroying that bit. Any advice much appreciated.
[OnePlus 5 Guides, News, & Discussion] Clues:
Same here. TWRP installs, stays, but after installing Magisk, it boots to fastboot. From there I can reboot with the recovery option to TWRP.

Issue started when Viper wouldn't load the drivers. When removing one version of Viper, it did not actually remove. Then I had 2 when Magisk blew out. Nothing worked so for, manual removal and unSU and tried several different versions. It will boot with the old zip flash Magisk, but it doesn't actually root.
[OnePlus 5 Guides, News, & Discussion] thomanski:
Thanks for the reply, Clues. You could try Root Oneplus 5&5T running Oxygen OS 10 based on Android 10 (YouTube) as comments there seem to indicate those instructions work.

I for my part had soft-bricked my phone by installing two different versions of Magisk at the same time (I was tired) and uninstalling them both. On the next restart all I got was a black screen and a white LED (top left) which I was able to fix with the instructions given here, i.e.

- booted into TWRP, doing a full wipe of Cache, Data, Internal and System

- copied an OTA zip on it, I chose 9.0.11 to see if I could root that, or actually I think it was 9.0.3 that I used

- rebooted TWRP, mounted system, went to Install and proceeded with that OTA

With the phone thus unbricked, I was then able to root as per the instructions in this thread and perform the EFS backup.

I will stay under OOS 9 for a while as I've moved WhatsApp over to that phone and will see if I can extract my WhatsApp history from there. But once that's done I'll give the YouTube instructions on rooting OOS 10 on the OP5 a chance and will report back on here. If you get to try that earlier, please do let us know if it worked out.
[OnePlus 5 Guides, News, & Discussion] Clues:
This is the process I followed already, except I have not factory reset.
[OnePlus 5 Guides, News, & Discussion] Clues:
Magisk 20.4 is working for me. I just realized it had the options on the left side... when I tried it before, it did not show the options on the bottom so I figured it failed.

Flashed

twrp-3.5.2_9-0-cheeseburger_dumpling.img

OxygenOS TWRP Retainer v1.2 (Signed).zip

unSU (2019-03-10) (Signed).zip

Magisk-v20.4(20400).zip

Installed

Magisk-22.1(22100).apk

Not updating just yet.
[OnePlus 5 Guides, News, & Discussion] 1158pm:
I was able to fastboot into TWRP:

but when i reboot, the standard recovery boot returns. I tried to install the no-verify-opt-encrypt but:

errors as well as anything i install. Any ideas?