How to root OxygenOS 12?

Search This thread

Swap_File

Member
Apr 12, 2016
43
32
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:
  • Like
Reactions: bacon612 and g33gz

g33gz

Member
Oct 5, 2016
25
10
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!
 
  • Like
Reactions: Swap_File

g33gz

Member
Oct 5, 2016
25
10
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!!
 
  • Like
Reactions: Swap_File

xtcislove

Senior Member
Jan 17, 2010
1,145
199
Gummersbach
OnePlus 8 Pro
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.
 
  • Like
Reactions: Swap_File

PieceKeepr

Senior Member
Jun 13, 2010
1,358
297
Florida
OnePlus 8 Pro
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.
 

shootind5nukes

Senior Member
May 23, 2010
210
141
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:

g33gz

Member
Oct 5, 2016
25
10
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
25
10
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:

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)
 
  • Like
Reactions: Swap_File

bacon612

Senior Member
Jan 9, 2012
1,400
587
Sony Xperia Z2 Tablet
OnePlus 8 Pro
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.
 
  • Like
Reactions: Callbiggq and g33gz

PieceKeepr

Senior Member
Jun 13, 2010
1,358
297
Florida
OnePlus 8 Pro
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:

bacon612

Senior Member
Jan 9, 2012
1,400
587
Sony Xperia Z2 Tablet
OnePlus 8 Pro
Not until someone can post the patched files.

@Swap_File are you still able to assist? Still can't get the tools working
Noted. Anyone out there with an IN2025 willing to try restoring images, taking the ota then patching the other slot? ;) I won't try it because I can't risk loosing my phone to fix it for hours at the moment. Otherwise I'll patiently wait for a patched boot img.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    When you uninstalled magisk, did you restore the original boot image? If the rooted boot image is set then the update will fail
    I had to install the boot.img to both partitions. Once I did that., everything worked. On c.33 rooted again. Thanks for everyone who contributes to this thread.
    1
    hey guys idk where else to ask this but will this post work for my oneplus 8?
    specifically I have the t-mobile oneplus 8
    I just unlocked the bootloader with the unlock token today
    model is: IN2017
    android version is: 12
    software version: IN2017_11_C.41

    id really like to have a rooted device again but im scared ill brick my phone XD
    If you extract the boot image from the update package IN2017_11_C.41 and patch it with magic its the same process. I dont think that you can use any image from this thread because they are for 8pro.

    Anyway, what is the reason you dont look on the non pro forum?

    1
    If you extract the boot image from the update package IN2017_11_C.41 and patch it with magic its the same process. I dont think that you can use any image from this thread because they are for 8pro.

    Anyway, what is the reason you dont look on the non pro forum?

    cause im dumb and didnt realize this was the pro section. thanks for pointing me to the right place
    1
    I don't see C35 in oxygen updater, but I'll keep an eye out. Anyone have a direct link to the zip?
    1
    Thanks for the notification, I got it from you before my phone.

    Here's patched C35:
  • 4
    No.

    Simply download the Prebuild binaries from here.


    And download the C.20 update from here.


    Use payload dumper to extract the boot image and copy it to yout device

    Install Magisk apk on your device (does not matter if it has root or not)

    patch the boot image, copy the patched image to your pc and you have a patched boot image for C.20.
    This is not as easy as you might think. The default payload dumper (and the Go version) cannot handle these incremental OTAs:


    Instead you need to use this:

    Unfortunately, this payload extractor fork is broken on windows. I had to set up a Ubuntu VM to run it.

    The entire process took the majority of my afternoon

    Attached is the extracted boot.img, both magisk patched and unpatched. Hopefully it saves others some time.
    4
    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.
    3
    Ah okay, thank you! Do you know how long it usually takes for an OTA file to come out? Or, if you could, help me through going back to OOS11, rooting it, and then updating to OOS12 and keeping root? :)

    I posted the patched boot img from latest OO12 Ota to another thread.

    Flash it via fastboot and your are good.

    3
    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
    3
    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