5

How to root OxygenOS 12?

 2 years ago
source link: https://forum.xda-developers.com/t/how-to-root-oxygenos-12.4421423/page-3#post-87247451
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How to root OxygenOS 12?

Swap_File

Member
Apr 12, 2016
If it works, I'll use that as a solution for now (Gotta have them updates! lol)

I posted the pre extracted global C20 and C21 boot images, with and without magisk pre-installed in previous posts.

You don't need to do it yourself unless you want to learn for the next update (or if you are in a different region).

I figure I'll keep posting the boot images whenever I extract them, it's a pain to do, and I wouldn't expect most people to want to deal with it.

Edit: For people in other regions, sorry, I don't have the files on hand. If you provide links to a full OTA, and the associated incremental OTAs, I'll gladly extract the boot.img for you. Just post the links.

Last edited: Jul 1, 2022

Reactions: bacon612 and g33gz

g33gz

Member
Oct 5, 2016
I posted the pre extracted global C20 and C21 boot images, with and without magisk pre-installed in previous posts.

You don't need to do it yourself unless you want to learn for the next update (or if you are in a different region).

I figure I'll keep posting the boot images whenever I extract them, it's a pain to do, and I wouldn't expect most people to want to deal with it.
Yeah, I'm basically attempting to do it on my end so I can learn to do it. I actually used your extracted image already to update so thank you for sharing!

Reactions: Swap_File

g33gz

Member
Oct 5, 2016
Yeah, I'm basically attempting to do it on my end so I can learn to do it. I actually used your extracted image already to update so thank you for sharing!

OK, so looks like if I use my original dumper, then use the output of that in the one you shared which supports incremental updates, it all works. I was able to have magisk patch the boot image and I was able to successfully flash without issues!

Thanks for your help!!

Reactions: Swap_File

I tried the tools you linked, but they do not help with incremental OTAs.

Global is up to C21, but only via incremental updates. No full updates for global C21 have been released.

The global C20 and C21 updates will show up if you are not rooted, when rooted I had to download the zips via Oxygen Updater in advanced mode.

You are right.

Reactions: Swap_File

PieceKeepr

Senior Member
Anyone else have issues updating to C21? Every time I try manually updating using the system update app it gets to 32% and fails. I turned off all magisk modules and restored image within magisk first.

g33gz

Member
Oct 5, 2016
Anyone else have issues updating to C21? Every time I try manually updating using the system update app it gets to 32% and fails. I turned off all magisk modules and restored image within magisk first.

You have to completely uninstall Magisk... it's a pain in the butt to update now because you'll need your PC to flash the modified boot.img

PieceKeepr

Senior Member
... you'll need your PC to flash the modified boot.img

I can boot the patched global image via ADB and then pull and patch my own US boot image right? I have an IN2025 and the global is IN2023 right?

g33gz

Member
Oct 5, 2016
I can boot the patched global image via ADB and then pull and patch my own US boot image right? I have an IN2025 and the global is IN2023 right?

Good question!

I think it'll work. I'm fairly certain I used the original boot.img that @Swap_File shared on a previous page. I also have the IN2025 and everything worked ok for me.

Reactions: PieceKeepr

You have to completely uninstall Magisk... it's a pain in the butt to update now because you'll need your PC to flash the modified boot.img

Whoa, really? Like simply restoring images and taking an ota won't work?

shootind5nukes

Senior Member
May 23, 2010
OnePlus 8 Pro C21 Global Stock and Magisk Patched boot.img is attached.

OTA-ing is becoming a pain. I cannot get magisk's built in patch after OTA to work with OnePlus's new Android 12 Updates on my OnePlus 8 Pro. The only safe way I've found to update is to uninstall magisk, update, then extract and patch a new boot.img.

Do you have a place to donate to you? I tried for 3 hours last night to unpack the incremental update and failed each time. Your post was a life saver. Could you explain how you extracted that boot.img from C.21?

EDIT: I see where you posted how to extract the c.20 and c.21. I tried that way and it crashed everytime. Ran from linux and windows with the same result.

Last edited: Jul 6, 2022

g33gz

Member
Oct 5, 2016
Whoa, really? Like simply restoring images and taking an ota won't work?

Correct, simply restoring images doesnt seem to work... I was able to get to C.16 by doing that but for C.20 and C.21 it didnt work... it seemed to update ok but then it would boot and speakers didnt work and wifi wouldnt turn on. Build version also stayed at C.16

g33gz

Member
Oct 5, 2016
Do you have a place to donate to you? I tried for 3 hours last night to unpack the incremental update and failed each time. Your post was a life saver. Could you explain how you extracted that boot.img from C.21?

EDIT: I see where you posted how to extract the c.20 and c.21. I tried that way and it crashed everytime. Ran from linux and windows with the same result.
See this post:
forum.xda-developers.com

How to root OxygenOS 12?

Hello there, I've never rooted a phone before but would love to try it with Android 12 finally coming out as stable on the OnePlus 8 Pro. So as a complete noob, can anyone walk me through it, or does anyone have a handy thread that takes me...
forum.xda-developers.com forum.xda-developers.com
I wasn't able to get that to extract the C.16 boot.img properly so I used a different payload dumper (that only works for full updates) then used the one @Swap_File linked (which works for incremental)

Reactions: Swap_File

Correct, simply restoring images doesnt seem to work... I was able to get to C.16 by doing that but for C.20 and C.21 it didnt work... it seemed to update ok but then it would boot and speakers didnt work and wifi wouldnt turn on. Build version also stayed at C.16
Thank you. I restored images, uninstalled magisk and took the full OTA (C16). It went well and then i took the incremental c21 which also went well.

I used the c21 magisk patched boot image to fastboot boot, it worked and from there i patched my own image to obtain permanent root. I'm happy. Thank you again. C21 is pretty nice. I'm getting much better battery than I was on oos 11.

Reactions: Callbiggq and g33gz

I can boot the patched global image via ADB and then pull and patch my own US boot image right? I have an IN2025 and the global is IN2023 right?

Just wanted to let you know that this worked on my IN2025

PieceKeepr

Senior Member
Just wanted to let you know that this worked on my IN2025

Thank you, that's good to know. I won't have time to mess with it until Saturday but that makes me feel better about it.

Reactions: bacon612 and g33gz

PieceKeepr

Senior Member
I'm not sure what's going on but the update fails every time. I've done everything I can think of including removing all modules and rebooting then uninstalling magisk and rebooting and then turning off developer options and rebooting. The update gets to 32% and fails. I've deleted and re-downloaded the update as well. Same result every time.

Update : I got the update to install but I ended up having to use the MSM tool to roll back and then update. Even a full reset didn't work initially.
Last edited: Jul 12, 2022
I just opened oxygen updater and it seems that a c.33 build (for IN2025) with July security patch is available. It's over 800megs. Any brave soul that's rooted going to attempt to try it?
Last edited: 2 minutes ago

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK