[GUIDE] Magisk for OxygenOS 11

Search This thread

djmcnz

Retired Recognized Developer
Oct 13, 2009
5,739
1,675
Auckland, NZ
OnePlus 8
Guys I need some help .... I used patched version of magisk when I rooted, now I want to upgrade to the next version from OS 11.0.9.9 to OS 11.0.10.10, but I don't know how to create magisk backup image because I can't find it and I don't know in which folder to put the stock boot img to get magisk to detect it. I would appreciate some help, even if there is a link to some guides ... thanks

Assuming you have fastboot installed and working you can use the 11.0.9.9 stock file in my earlier post (last page or so) and then upgrade to 11.0.10.10, then use patched 11.0.10.10 image from my post just up there ^.

My files are for the Global ROM (IN21AA) so check that you're using that first (Settings | About Phone), if not you'll need to find alternative files for your version.
 

humb13

Senior Member
Nov 24, 2016
62
12
The file patched by djmcnz didn't work but only because I'm running Magisk 23016. I refer, of course to Magisk not rooting the phone. I decided to take djmcnz's stock OS 11.0.10.10, patch it myself with the 23016 on my phone and flash. That did the trick. Everything works, root is back.

As far as I know at this point the only way to get Magisk Hide back is to return to 23001. I'm not clear as to how to do that. I'm wondering if the following instructions still work:

1. Uninstall the Magisk app and reboot. Uninstalling must be done from inside Magisk
2. Flash the stock image using fastboot and boot.
3. Install the 23001 Magisk app that you've downloaded.
4. Install patched (23001) kernel and reboot

Are these instructions still valid? Is anyone having a problem using an old version of Magisk?
 
Last edited:
  • Like
Reactions: djmcnz

djmcnz

Retired Recognized Developer
Oct 13, 2009
5,739
1,675
Auckland, NZ
OnePlus 8
The file patched by djmcnz didn't work but only because I'm running Magisk 23016. I refer, of course to Magisk not rooting the phone. I decided to take djmcnz's stock OS 11.0.10.10, patch it myself with the 23016 on my phone and flash. That did the trick. Everything works, root is back.

As far as I know at this point the only way to get Magisk Hide back is to return to 23001. I'm not clear as to how to do that. I'm wondering if the following instructions still work:

1. Uninstall the Magisk app and reboot. Uninstalling must be done from inside Magisk
2. Flash the stock image using fastboot and boot.
3. Install the 23001 Magisk app that you've downloaded.
4. Install patched (23001) kernel and reboot

Are these instructions still valid? Is anyone having a problem using an old version of Magisk?

Okay, that's interesting, thanks for posting, I'll update my earlier post. I'm intrigued though, when you flashed my patched image did the phone boot? And could the Magisk app not obtain root permission? I'm surprised you couldn't flash -> boot -> open Magisk -> upgrade.

As for downgrading to v23001, your steps seem fine, all you should need is v23001 of the kernel (to boot) and app (to install).
 

kermittos

Senior Member
Sep 17, 2013
55
8
OnePlus 8
OP8 OOS 11.0.10.10 Global w/Root (Magisk v23001) + Stock

NOTE: The patched image in this post is Magisk v23001, the last official version with MagiskHide and Magisk Repo support. This will probably not concern you even if you are running a later version of Magisk, you should be able to upgrade Magisk after installing the patched image. However, I have not tested this so proceed at your own risk. FWIW I'm still content with v23001.

NOTE #2: @humb13 has kindly confirmed that you can not use my patched kernel if you are using a later version of Magisk (than v23001). YMMV.


These files are kernel images to load (flash) over existing partitions using fastboot. If you have fastboot working you can use these files to update your ROM. These files are not the full ROM, you need that (v11.0.10.10) installed before the files below will be useful to you.

Stock Kernel: OP8_Global_11.0.10.10.Stock.img
Stock MD5: fcb39609be9d386e5362740e366ba19c

Patched (Magisk 23001) Kernel: OP8_Global_11.0.10.10.Magisk_23001.img
Patched (Magisk 23001) MD5: ea405e46b7bc9323579104fd3697109c

All tested and verified on an IN2010.

Remember, you should always test the kernel before you flash it:

Code:
test (temp): fastboot boot <kernel_name>.img
flash (perm): fastboot flash boot <kernel_name>.img

Edit: Despite what OnePlus claim in the change log they have not completely fixed the alignment in the Settings menu, nothing I can do about that sorry.

Edit 2: If you uninstall Digital Wellbeing updates (from the all apps settings list) it will fix the alignment problem.
Hello I used your OP8_Global_11.0.10.10.Magisk_23001.img to root my OP8. When next OOS OTA update comes can i safely update or should i flash stock img beforehand? I don't need root anymore.
 

k4ustu3h

Senior Member
Sep 19, 2018
97
29
22
Jabalpur
k4ustu3h.cf
Moto G5
Moto G5 Plus
Hello I used your OP8_Global_11.0.10.10.Magisk_23001.img to root my OP8. When next OOS OTA update comes can i safely update or should i flash stock img beforehand? I don't need root anymore.
You don't need to flash the stock boot image before an OTA. It will safely boot but without root access.

If someone wants to retain root access they can flash the specific patched image of the OTA after the update, or just use the Install to Inactive Slot option in Magisk before rebooting. But as you mentioned that's not the case for you.
 

djmcnz

Retired Recognized Developer
Oct 13, 2009
5,739
1,675
Auckland, NZ
OnePlus 8
Hello I used your OP8_Global_11.0.10.10.Magisk_23001.img to root my OP8. When next OOS OTA update comes can i safely update or should i flash stock img beforehand? I don't need root anymore.

You don't need to flash the stock boot image before an OTA. It will safely boot but without root access.

I'm afraid that's not correct, you can't install the OTA if you aren't using the stock boot image so yes, the stock image needs to be flashed prior to an OTA update.

@kermittos - if you no longer need root, then you can flash the stock image at any time and then OTA's will work seamlessly.
 

k4ustu3h

Senior Member
Sep 19, 2018
97
29
22
Jabalpur
k4ustu3h.cf
Moto G5
Moto G5 Plus
I'm afraid that's not correct, you can't install the OTA if you aren't using the stock boot image so yes, the stock image needs to be flashed prior to an OTA update.
But when I was still using OxygenOS and had Magisk, the OTAs installed just fine. I never flashed the stock image prior to the OTA. One thing I noticed was that the update wouldn't be incremental (around 200MB), it would be the full update (around 2GB).
The update did use to notify me through the system update, but if somehow I didn't get it I just downloaded the full update and install it through Local Upgrade.
And should there be a warning about the patched image, I just didn't get it...
 

kermittos

Senior Member
Sep 17, 2013
55
8
OnePlus 8
I'm afraid that's not correct, you can't install the OTA if you aren't using the stock boot image so yes, the stock image needs to be flashed prior to an OTA update.

@kermittos - if you no longer need root, then you can flash the stock image at any time and then OTA's will work seamlessly.
Do i need to uninstall Magisk or do anything else or simply just flash stock image and I should be able to boot back into the system without any data loss?
 

djmcnz

Retired Recognized Developer
Oct 13, 2009
5,739
1,675
Auckland, NZ
OnePlus 8
But when I was still using OxygenOS and had Magisk, the OTAs installed just fine. I never flashed the stock image prior to the OTA. One thing I noticed was that the update wouldn't be incremental (around 200MB), it would be the full update (around 2GB).
The update did use to notify me through the system update, but if somehow I didn't get it I just downloaded the full update and install it through Local Upgrade.
And should there be a warning about the patched image, I just didn't get it...

That sounds like historical experience. From (at least) Android 11, the OP OTA process verifies you have the stock kernel installed before upgrading and there's no way around that. You need to have the stock kernel installed and then boot from the patched kernel to complete the OTA and re-root.

Do i need to uninstall Magisk or do anything else or simply just flash stock image and I should be able to boot back into the system without any data loss?

No need to remove Magisk (although it will stop working so there's not much point in keeping it). Just flash the correct stock image, boot and you're be away laughing, no data loss.
 

teraßyte

Senior Member
Mar 16, 2014
100
43
36
Hmm, I am on version 11.0.10.10.IN21BA but I don't see it listed in the first post.

@pp085ster If I eventually get the upgrade to 11.0.11.11.IN21BA can I use your files even if they end with AA instead of BA?


EDIT: Nevermind, after a quick search I see AA is the suffix for the global version while BA for the european one.
 

cjvzla

Senior Member
Apr 25, 2011
329
28
OnePlus 8
Oxygen OS 11.0.11.11.IN21AA with updated security patch to 2022.02

Stock and (Magisk 23001) patched boot files. Good luck!

Sorry @djmcnz but I stole your spotlight (and file naming convention) this time around ;) feel free to host the files on your server and add to OP or whatever you want to do with them.

Cheers!
Hello, I have stock OP8 with bootloader unlocked and latest OOS 11 (security patch to 2022.02) everything else stock, I've never installed custom roms or kernels, with those boot files you posted, can I just flash twrp and magisk via fastboot and have root on stock OOS?
 

djmcnz

Retired Recognized Developer
Oct 13, 2009
5,739
1,675
Auckland, NZ
OnePlus 8
Hello, I have stock OP8 with bootloader unlocked and latest OOS 11 (security patch to 2022.02) everything else stock, I've never installed custom roms or kernels, with those boot files you posted, can I just flash twrp and magisk via fastboot and have root on stock OOS?
If you have fastboot working on your computer you can simply flash the patched boot image for your ROM and install the Magisk app then you'll be rooted. No need to install TWRP for that.
 

cjvzla

Senior Member
Apr 25, 2011
329
28
OnePlus 8
If you have fastboot working on your computer you can simply flash the patched boot image for your ROM and install the Magisk app then you'll be rooted. No need to install TWRP for that.
Thanks for the reply!, Yeah I mentioned TWRP since I intend to flash Roms eventually but I'll just start with root for now. I do have fastboot working on the PC, but it's been a while since I flashed stuff on Android, do I get the patched boot image on the same folder as fastboot.exe and flash with the phone in fastboot mode, then go to install magisk right ? Thanks.
 

djmcnz

Retired Recognized Developer
Oct 13, 2009
5,739
1,675
Auckland, NZ
OnePlus 8
Thanks for the reply!, Yeah I mentioned TWRP since I intend to flash Roms eventually but I'll just start with root for now. I do have fastboot working on the PC, but it's been a while since I flashed stuff on Android, do I get the patched boot image on the same folder as fastboot.exe and flash with the phone in fastboot mode, then go to install magisk right ? Thanks.

Yes, that's correct, you may want to test it first, before flashing it, just to be sure you get the expected result.

To test it, in fastboot mode:

Code:
fastboot boot <patched_file>.img
fastboot reboot

Then install the Magisk app and test that you have root.

To permanently flash it:

Code:
fastboot flash boot <patched_file>.img
fastboot reboot
 

cjvzla

Senior Member
Apr 25, 2011
329
28
OnePlus 8
Yes, that's correct, you may want to test it first, before flashing it, just to be sure you get the expected result.

To test it, in fastboot mode:

Code:
fastboot boot <patched_file>.img
fastboot reboot

Then install the Magisk app and test that you have root.

To permanently flash it:

Code:
fastboot flash boot <patched_file>.img
fastboot reboot
Thanks, was also looking for the code to type. Really appreciate it .
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7

    Instructions

    - Download the magisk_patched.img
    - Reboot your device in bootloader-fastboot mode
    - Flash the patched_boot.img in the boot partition:
    Code:
    fastboot flash boot boot.img
    replace "boot.img" with the magisk_patched.img path

    However, it is recommended to test the boot image by temporarily booting it first instead of flashing it:
    Code:
    fastboot boot boot.img

    - Reboot the device
    - Install Magisk Manager

    Links

    Magisk

    Beta


    Open Beta 1



    Open Beta 2


    Open Beta 3


    Open Beta 10


    Open Beta 12


    Stable


    11.0.0


    11.0.1.1


    11.0.3.3


    11.0.4.4


    11.0.5.5


    11.0.6.6



    11.0.7.7



    11.0.8.8



    11.0.9.9



    Repository:
    https://github.com/k4ustu3h/instantnoodle-boot-images
    5
    OP8 OOS 11.0.9.9 Global w/Root (Magisk) + Stock

    EDIT 25/10: Magisk v23010 has been released and a lot has changed (including the removal of MagiskHide and the official Magisk repo). I do NOT recommend upgrading to this version of Magisk at this time. It will be best to wait for some days/weeks to pass to observe how this new version works in the wild. I will not be releasing a patched kernel for Magisk v23010 at this time.

    Please update to the latest (recommended) version of Magisk (23001 at the time of this post) and reboot before you download the OTA.

    These files are kernel images to load (flash) over existing partitions using fastboot. If you have fastboot working you can use these files to update your ROM. These files are not the full ROM, you need that (v11.0.9.9) installed before the files below will be useful to you.

    Stock Kernel: OP8_Global_11.0.9.9.Stock.img
    Stock MD5: 74d0cbdac7d3dd977e0aacdcc9369b07

    Patched (Magisk 23001) Kernel: OP8_Global_11.0.9.9.Magisk_23001.img
    Patched (Magisk 23001) MD5: 85b13e35d5348853e06d634a557b7530

    All tested and verified on an IN2010.

    Remember, you should always test the kernel before you flash it:

    Code:
    test (temp): fastboot boot <kernel_name>.img
    flash (perm): fastboot flash boot <kernel_name>.img
    5
    FYI... Op8 GLOBAL ONLY 11.0.2.2 patched boot image. Merry Christmas.

    Op8 11.0.2.2
    5
    OP8 OOS 11.0.10.10 Global w/Root (Magisk v23001) + Stock

    NOTE: The patched image in this post is Magisk v23001, the last official version with MagiskHide and Magisk Repo support. This will probably not concern you even if you are running a later version of Magisk, you should be able to upgrade Magisk after installing the patched image. However, I have not tested this so proceed at your own risk. FWIW I'm still content with v23001.

    NOTE #2: @humb13 has kindly confirmed that you can not use my patched kernel if you are using a later version of Magisk (than v23001). YMMV.


    These files are kernel images to load (flash) over existing partitions using fastboot. If you have fastboot working you can use these files to update your ROM. These files are not the full ROM, you need that (v11.0.10.10) installed before the files below will be useful to you.

    Stock Kernel: OP8_Global_11.0.10.10.Stock.img
    Stock MD5: fcb39609be9d386e5362740e366ba19c

    Patched (Magisk 23001) Kernel: OP8_Global_11.0.10.10.Magisk_23001.img
    Patched (Magisk 23001) MD5: ea405e46b7bc9323579104fd3697109c

    All tested and verified on an IN2010.

    Remember, you should always test the kernel before you flash it:

    Code:
    test (temp): fastboot boot <kernel_name>.img
    flash (perm): fastboot flash boot <kernel_name>.img

    Edit: Despite what OnePlus claim in the change log they have not completely fixed the alignment in the Settings menu, nothing I can do about that sorry.

    Edit 2: If you uninstall Digital Wellbeing updates (from the all apps settings list) it will fix the alignment problem.
    4
    OP8 OOS 11.0.8.8 Global w/Root (Magisk) + Stock

    Please update to the latest version of Magisk (23001 at the time of this post) and reboot before you download the OTA.

    These files are kernel images to load (flash) over existing partitions using fastboot. If you have fastboot working you can use these files to update your ROM. These files are not the full ROM, you need that (v11.0.8.8) installed before the files below will be useful to you.

    Stock Kernel: OP8_Global_11.0.8.8.Stock.img
    Stock MD5: 513cf4592ab9bb1bbe5fe396bacc4776

    Patched (Magisk 23001) Kernel: OP8_Global_11.0.8.8.Magisk_23001.img
    Patched (Magisk 23001) MD5: d241e7cfdf2eed689f08095dd102dd28

    All tested and verified on an IN2010.

    Remember, you should always test the kernel before you flash it:

    Code:
    test (temp): fastboot boot <kernel_name>.img
    flash (perm): fastboot flash boot <kernel_name>.img