yashsingh1/xdaforums huggingface dataset:
[OnePlus 11] treetolber:
So I need to flash stock A.07 boot, relock boot so that I can flash the A.09 OTA, then proceed to unlock and root again.

**UPDATE**

It looks like the A.09 OTA is finally installing through the system update. I don't know what I did other than lock, unlock, lock, unlock several times then after finally rebooting a fresh boot I got into recovery mode where I wiped all data and factory reset. Then I was able to download and install the A.09 OTA, even WITH a unlocked bootloader. Next step is to root.
[OnePlus 11] flynmoose:
Anyone successfully take A10 and extract their boot.img and init_boot.img? I got a new phone and wasn't thinking. Allowed the OTA incremental to install (before I had rooted so no issue there) but of course now I can't extract from SHELL since I don't have SU.
[OnePlus 11] MrSteelX:
Use kernelsu to temp root phone.
[OnePlus 11] r1pp3d2:
My kernelsu says working, but it wont let me pull the images. I goofed and patched other slot and rebooted too early.
[OnePlus 11] flynmoose:
If you are in need of the NA init_boot - see here. I just used it and then followed instructions for "Bootloader already unlocked" on page 1 and it worked without issue. Rooted A10 NA.

https://xdaforums.com/t/guide-magisk-unlock-root-keep-root-oos-13-a-10.4571171/post-88503369 @r1pp3d2

@scottlam1 - thanks again!
[OnePlus 11] azsl1326:
If I try to flash the incremental OTA it fails. If I uninstall Delta Magisk it automatically reboots. Is there a step I am missing so that I don't have the phone reboot after uninstalling Magisk or is this the expected behavior? Ideally, I would like to uninstall Magisk, flash the incremental OTA, and then reinstall Magisk. As it stands now, I have to go through the whole process, which includes getting temp root as listed in the OP.

TLDR; What's the best way to flash an incremental OTA?

Thanks!!!
[OnePlus 11] scottlam1:
I just restore images and ota works flawlessly then install to inactive slot ota will fail if you changed another partition like put in a custom recovery
[OnePlus 11] azsl1326:
Thanks for the reply. Sorry, can you clarify what you mean by you restore images?

Thanks!
[OnePlus 11] scottlam1:
In magisk the restore images option
[OnePlus 11] MrSteelX:
Just pointing out that he is using Delta Magisk which is different from magisk
[OnePlus 11] scottlam1:
Ok I have never used delta magisk don't know it's formatting
[OnePlus 11] azsl1326:
Where is restore images in Magisk and what does it do? Thanks for the help!
[OnePlus 11] surajpai524:
The Magisk Restore image option can be accessed by clicking Uninstall Magisk. This option with reflash the stock init_boot or boot img depending on what is in the backup. This option will unroot your phone after you reboot but retains root till you reboot. Also since stock init_boot or boot img is reflashed, OTA updates will not fail since signatures match.
[OnePlus 11] random0munky:
Does anyone have the stock A.09 boot and init_boot images. I accidentally borked my slot A. Rom CPH2451
[OnePlus 11] azsl1326:
Thanks! That worked even using Delta Magisk. My mistake last time was I didn't restore images and immediately uninstalled which rebooted. This way was super easy. I now have the latest incremental OTA and retained root.

Thanks!
[OnePlus 11] ahasae:
I resolved
[OnePlus 11] g96818:
Sorry. i don't have the phone anymore so i can't give you the images. after you get it working, don't flash anything to this phone. it doesn't work that way and you will end up bricking. just follow the guide to root and update.
[OnePlus 11] H4X0R46:
I just updated to the new build. How the hell does this phone go from A.10 to 13.1.0.501(EX01)??? Tf is this naming scheme? LOL is this right or did my phone do something weird? OnePlus is odd.
[OnePlus 11] Philly@52:
I noticed in the Oxygen Updater it's called "CPH2451_11_A.22"

Seems like the same thing but i saw the same weird long name from the System Update too.

I haven't updated yet myself, as im trying to extract the payload info (namely the init_boot.img before updating)
[OnePlus 11] H4X0R46:
Yeah that caught me off guard too! A.22 sounds so much simpler haha also, you can update your phone and then extract it using a terminal emulator BEFORE you root the inactive slot.

Example, if you're in slot a and updated slot b?

Su (enter)

dd if=/dev/block/by-name/init_boot_b of=/sdcard/Documents/init_boot.img (enter)

This command would extract init_boot from your b slot and save it to your Documents folder, swap letters if it's A slot. THEN root your inactive slot 👍
[OnePlus 11] juancarlos5:
It's much easier with Partitions Backup app
[OnePlus 11] Philly@52:
Is this the one by Wanam? I was just looking around on apkmirror since i couldnt find a github or anything. I know we cant directly link to stuff like that but i was just curious.
[OnePlus 11] Philly@52:
Yeah, Im rooted right now on A.10 and will upgrade soon when i have time to troubleshoot in case of any mishaps. Last time I updated from .09 to .10 i attempted the:

1. Uninstall Magisk --> Restore Images (didnt reboot)

2. Install update (didnt reboot)

3. Return to Magisk and install to inactive slot then rebooted

I ended up in a bit of a bootloop with this though, luckily it eventually booted and i had just lost root but the update was successful. I was able to get the A.10 init_boot.img and just patched it -- flashed it and was back up and running.

So im hestitant to just run the update until i have some time to troubleshoot if need be.
[OnePlus 11] H4X0R46:
Had no idea this existed 😮 Thanks for that heads up, I'm always doing things the hard way lol
[OnePlus 11] juancarlos5:
Here

And the Post in XDA

https://xdaforums.com/t/app-root-partitions-backup-restore.3003599/
[OnePlus 11] Philly@52:
Good deal, I saw this post and figured it was the same. Thanks
[OnePlus 11] surajpai524:
I do this method every OTA. And it works. But the only change is after flashing Magisk in step 3, I reboot using System Updater and not Magisk.
[OnePlus 11] Philly@52:
Someone (may have been you) mentioned this to me the other day in another thread. I was unaware they were different Reboot's but I will give it a try this time around.
[OnePlus 11] juancarlos5:
How do different reboots change?

I always reset it from Magisk, even on my OP8pro always use Magisk without problem
[OnePlus 11] surajpai524:
Even I'm not sure. But I also read it in some post on xda. Maybe there is a step or flag set to complete upgrade or trigger something on next reboot after OTA extraction and verification.
[OnePlus 11] nirogu325:
I've updated using the Magisk reboot after installing to the other slot so many times and it has never failed on many devices (N5X, OP6, OP9 and now OP11).

It could have been because you never had an image to restore to begin with. In order to have a Magisk backup image I suggest (following is explained in Step #4 in this thread's original post) unrooting by restoring the stock init_boot, booting KernelSU, granting root to Magisk with the KernelSU app and then doing a Direct Install with Magisk.
[OnePlus 11] H4X0R46:
Weird how some people are really having issues. This method has worked for me with every update.
[OnePlus 11] Philly@52:
I had no issues with the method on my 7pro. I used a custom rom on my 9pro so that was a while different method
[OnePlus 11] Philly@52:
So I removed root - did step 4 - direct installed Magisk and thats all well and good.

Now im still on A.10 so I uninstalled Magisk/Restored Images. Downloaded/Installed the System Update -- > Installed Magisk to inactive slot --> Returned to System Update and clicked Reboot now but then it goes through more install steps and tells me "There was an issue preparing to restart. Please try again later."

Edit: Ahhh sweet - now it's bootlooping
[OnePlus 11] surajpai524:
Are you sure if there is a backup boot img when you restore images?
[OnePlus 11] nirogu325:
I'd say something else we don't know is going on with his device's other slot. I'd suggest paying for MSM to fix his partitions and start over.
[OnePlus 11] scottlam1:
New stock init_boot for rev 22 firmware
[OnePlus 11] nirogu325:
Incomplete information. What firmware is that? Is it 13.1.0.501(EX01)? What device region?
[OnePlus 11] scottlam1:
Yes and us variant 2451
[OnePlus 11] nirogu325:
How did you extract it? KernelSU, a tool or...?
[OnePlus 11] scottlam1:
Have to be already rooted to backup I use termux to pull after restoring images from magisk then direct install the image back in I pull after a successful reboot from ota
[OnePlus 11] dazoe:
I'm currently rooted on A.11 I had used the other root method and received the A.22 update. I manually restored the original A.11 init_boot (might have messed this part up, not sure) and attempted to apply the OTA update.

Apply update (dont' reboot)

Magisk install to other slot, allowed magisk to reboot

got stuck in a boot loop. after a while I was attempting to get into fast boot when it booted back into A.11 (unrooted)

used KSU to get root back and had magisk do direct install.

I'm worried about trying again. Since I did a magisk direct install it should be able to restore images so maybe it will work correctly this time.

Is there a way to make a full backup of the current rom to be able to restore it from fastboot?
[OnePlus 11] Philly@52:
I had a similar issues to this when I updated from 9 to 10. I bootlooped for a bit and eventually It booted up and I was still on 9 without root. So at that point I just updated to 10 then re-rooted.
[OnePlus 11] ahasae:
I think you rebooted from magisk, you should reboot from the updater
[OnePlus 11] Philly@52:
Did you end up doing the OTA yet? I'm still on A.10 as I haven't had the time to troubleshoot should there be an issue when I try to do it.
[OnePlus 11] access9:
Is that why?! I've had that issue and had no idea it would have made a difference. Thanks!
[OnePlus 11] ahasae:
@everyone

To update from A10 to A22 and root

Go fastbootD and flash stock init boot A10

Boot

Update

Reboot again

Reboot to fast boot

Boot from the right kernelSU boot img

Allow magisk root access form kernelSU app

And flash Magisk

Reboot and you good

END
[OnePlus 11] random0munky:
Do you happen to have both slots of boot.img for a.09 still? The provided older versions of boot.img didn't work for me.
[OnePlus 11] ahasae:
What is your current OS, you need the running OS boot img
[OnePlus 11] random0munky:
Android 13

Oxygen OS CPH2451_11_A.09
[OnePlus 11] ahasae:
Unfortunately I have only a10 and a22
[OnePlus 11] ahasae:
Thread 'US unlocked CPH2451OxygenOS Boot and init boot' https://xdaforums.com/t/us-unlocked-cph2451oxygenos-boot-and-init-boot.4584371/
[OnePlus 11] random0munky:
If it isn't too much trouble, what would be the steps to reflash everything back to stock and lock the bootloader.

What I understand is to get my hands on CPH2451-A.06 stock rom, but I'm having a hard time finding what commands I do to flash it.

Just need a dependable phone at this point. Thank you
[OnePlus 11] Philly@52:
I think I have a. 09 stock init on my PC. I will check soon
[OnePlus 11] Philly@52:
Here, this thread has some of the stock init_img's including A.09

https://xdaforums.com/t/closed-guide-magisk-unlock-root-keep-root-oos-13-a-10.4571171/
[OnePlus 11] random0munky:
Thank you but I'm looking for boot.img not init_boot.img.
[OnePlus 11] Philly@52:
Go to page 4. There is a link for the stock A09 boot.img That is the same copy that I had downloaded mine from
[OnePlus 11] random0munky:
Awesome! I'll try that and see if that solves my boot loop issue on slot a
[OnePlus 11] random0munky:
I took a look at page 4 of this thread and was unable to locate the A.09 boot.img file share that you mentioned.

I did find the A.09 boot.img and init_boot.img here on Page 2 by Steve00007:

https://xdaforums.com/t/closed-guide-magisk-unlock-root-keep-root-oos-13-a-10.4571171/post-88387051

Rebooted into fastboot

Set current-slot to a

Rebooted into fastboot again

fastboot flash boot boot.img

fastboot flash init_boot init_boot.img

fastboot reboot

The phone is still bootlooping. Can't get passed the 1+ logo screen.
[OnePlus 11] Philly@52:
Hopefully this takes you directly to the post from MrSteelX where he linked the boot.img

https://xdaforums.com/t/closed-guide-magisk-unlock-root-keep-root-oos-13-a-10.4571171/post-88428409
[OnePlus 11] g96818:
You flashed the wrong version. those are not for this phone. that's why you are bootlooping

Try flash the boot @Philly@52 linked to and this init_boot https://xdaforums.com/t/closed-guide-magisk-unlock-root-keep-root-oos-13-a-10.4571171/post-88389617
[OnePlus 11] random0munky:
I went ahead and tried flashing the boot.img for A.09 as well as the init_boot.img that @Philly@52 linked above. Still unfortunately boot looping. Feeling a full stock image reflash is in order. Though haven't come across a guide that outlines the steps to flash all.
[OnePlus 11] dmarden:
Pardon me if I am missing anything... I tried to read and search. I am unlocked. Trying to root. I can boot those KernelSU android13 files (I tried android13-5.15.78_2022-05-boot.img.gz and android13-5.15.41_2022-05-boot.img.gz). But the KernelSU app still doesn't pick up any root access to grant Magisk so that it can directly install.

I just got the OnePlus 11 (NA version) and it is fully updated. Should I be booting something else for the temp root?

Edit: Nevermind. It wanted android13-5.15.74_2022-05-boot.img.gz specifically I guess.
[OnePlus 11] asheroto:
Releases · tiann/KernelSU

A Kernel based root solution for Android. Contribute to tiann/KernelSU development by creating an account on GitHub.

github.com

Yeah so just to clarify, you have to install KernelSU's APK first to get the type of kernel you need, then browse their releases for the associated Kernel image. Then boot to that.

For example, KernelSU shows my kernel is 5.15.41 -android 13-8 so I found that (I just pressed Ctrl+F and searched for 5.15.41). You may have to expand the "assets" with the arrow next to it.

you just need the .img.gz and extract that with 7-Zip/WinRAR. Then you'll get the boot.img file which you can do

adb boot boot.img

with.
[OnePlus 11] asheroto:
Well crap. I missed that part and had already rooted my phone, then locked the phone back. That caused problems since it wouldn't boot the rooted boot image. Couldn't boot at all. So I changed the active slot to the other slot, then I couldn't boot at all, no fastboot, no recovery, only EDL mode. Had to perform MSM recovery.

Working now, but for a few hours I was worried!

It might helps others if you add another red warning that says DON'T SKIP THIS PART!!! or something at the top of the rooting section that says CHECK TO MAKE SURE YOU CAN SET A PASSWORD/PIN BEFORE CONTINUING haha although maybe it would only help me -1 day ago.
[OnePlus 11] g96818:
yup
[OnePlus 11] g96818:
I already have a warning in red
[OnePlus 11] dustindavidson900:
CPH2451_13.1.0.501(EX01)

Hey just trying to make sure I'm on the latest update. System OTA check doesn't work? I don't have anything related to OTA disabled. Oxygen updater also says the update is not installed even though I did the update. So here are some screenshots. Am I on the latest version?
[OnePlus 11] ablak44:
does the guide also apply to the 2449 EU version?
[OnePlus 11] MrSteelX:
Root permissions guide for OP11 EU (2449) & backup partition "Persist.img"

You do everything you do according to this guide only at your own responsibility. There were a lot of contradictory and various complications during the process of rooting the new OnePlus 11 model. The process described below was performed on my...

xdaforums.com
[OnePlus 11] asheroto:
deleted
[OnePlus 11] asheroto:
FYI to fix Netflix, I was able to get it working with these modules:

https://xdaforums.com/t/netflix-not-running-on-rooted-device.4555365/page-3#post-88546001

Might be available on the regular Magisk modules listing, but since I'm using a debug version I had to install manually. Hope this helps someone else!
[OnePlus 11] GilliganBMT:
Thank you! This was indeed the only way to get up to the latest version without bootloops.
[OnePlus 11] Aka9413:
Gpay works fine you just need to use safetynet mod 2.4.0
[OnePlus 11] g96818:
That's good to know. I had a bunch of other more important apps, including wallet, that didn't work with 2.4.0 and gpay is pretty useless to me.
[OnePlus 11] scottlam1:
I'm stuck on installing kernelsu I only see zip files no apk
[OnePlus 11] ChrisFeiveel84:
you have to install magisk

and why you use not magisk for rootimg ??
[OnePlus 11] scottlam1:
Ok so when I install with magisk now what is being converted to actual boot image or init_boot I already backed up a and b of both boot and init boot but want to know what to flack back Incase of problem
[OnePlus 11] ChrisFeiveel84:
on the op11 you use the init_boot for rooting

Since I myself only use the EU version (in which there are whole ROM packets) I flash the whole ROM via fastbootd if something goes wrong, assuming I can still get into fastbootd
[OnePlus 11] jeffsga88:
For the US version, it is not recommended to root this way. That's the whole point in this guide. The US doesn't get full updates packages, if you root by flashing init_boot.img, you will not be able to update when updates come out unless they happen to release a full update which doesn't happen much for the US region.
[OnePlus 11] g96818:
Click the “view more”

It’s a long list about 2/3 down
[OnePlus 11] g96818:
It’s part of the process
[OnePlus 11] g96818:
It patches init_boot
[OnePlus 11] H4X0R46:
Is there a way to dump an incremental update? Can't you just get the stock init_boot.img from any incremental in theory or is that not how that works?
[OnePlus 11] ChrisFeiveel84:
Inrcemantal is only patches (patched the old oos version to the new version )
[OnePlus 11] H4X0R46:
So they don't actually contain boot and init_boot images?
[OnePlus 11] jfsat:
Great guide, it totally worked for me yesterday. And then today I found out that they've revised my trade-in value to $0. So I think I'm gonna have to join you and send this thing back. OnePlus has become everything I hate.
[OnePlus 11] g96818:
Right? That trade in is the only thing that made the phone a no brainer. I’m still waiting for them to give me the return shipping label
[OnePlus 11] jfsat:
Check your junk mail, that's where mine was.
[OnePlus 11] JPower123:
Can you tell me what the reason was for the no value? I'm also trading in my phone and am worried lol
[OnePlus 11] jfsat:
I traded in my old OnePlus 3T, which only held a $10 value (but came with a bonus $200 for ANY trade in). I figured with a $10 value, they'd strip it down for valuable metals, and throw the rest away, so I left it rooted, on a custom ROM. I should've tried to MSM it back to a stock OnePlus ROM. Foolishness on my part really. But honestly, if someone IS going to use that phone in the future, they're better off with the ROM I had on it. Newer Android version and security patch.
[OnePlus 11] g96818:
Mine had a dead pixel, not even big enough for standard warranty claim and I was rejected.

I didn’t see it there either 😩
[OnePlus 11] g96818:
Make sure you unroot, lock the bootloader, and toggle the oem unlock switch before sending it back. They will also inspect before refunding
[OnePlus 11] dustindavidson900:
This works as well

1. Download Update with Oxygen Updater

2. Restore Images in Magisk (DO NOT REBOOT)

3. Use Local Upgrade to install update (DO NOT REBOOT)

4. Install to Inactive Slot in Magisk (DO NOT REBOOT WITH MAGISK)

5. Use Local Upgrade to reboot
[OnePlus 11] asheroto:
Did you have to patch the boot files Magisk twice initially? I think that's why some are having to flash the init_boot, because when you initially patch with Magisk, it says there is an error/warning, so you have to patch again.

Just checking, hopefully it's working without having to flash it! Haven't tried it yet.
[OnePlus 11] dustindavidson900:
No. Everything worked without incident. I've used this same method for both updates now. When I initially rooted I patched the stock img with magisk and flashed it with fastboot. I've been using the method described above to update since then.

Always check to make sure magisk did indeed create a backup of your stock img. If not you'll have to do the KernelSU method. The main thing to remember is to reboot in the stock Software Update app or the Local Upgrade app. Do not use Magisk, the Power Button, or any other app to reboot.
[OnePlus 11] asheroto:
Ah good advice! Thanks.
[OnePlus 11] De_Haos:
Aaaaaaaaaaaaand lost L1 when unlocking bootloder.
[OnePlus 11] javcarbe:
Hi everyone I got my phone month ago I followed this

[CLOSED] [GUIDE] [Magisk] [Unlock / ROOT / Keep Root] OOS 13-A.10​

The tread is closed now, I want update to new 13.1 giving errors any help attached some of my screens
[OnePlus 11] De_Haos:
What kind of update error? Screenshot that part as well.
[OnePlus 11] javcarbe:
Can't make the update show error, installation problem said
[OnePlus 11] surajpai524:
Flash stock init_boot img using fastboot and then update.
[OnePlus 11] asheroto:
https://xdaforums.com/t/netflix-not-running-on-rooted-device.4555365/page-3
[OnePlus 11] juancarlos5:
New update
[OnePlus 11] Arevalosk:
OxygenOS 13.1.0.501_init_boot:

CPH2451 Init_Boot (AA) / Aún no disponible I NEED THIS PLEASE!!!
[OnePlus 11] Arevalosk:
te da error failed al actualizar?? creo que necesitamos el init boot! me ayudas con eso tengo la misma version
[OnePlus 11] Philly@52:
Just wanted to chime in here and mention this method worked for me as well when the normal OTA method wasn't working. I think it was because after I would do the "install to inactive" in Magisk, then return to the System Update to reboot, it would still attempt to perform some install steps and then it would always throw an error for me.
[OnePlus 11] deechte:
I'm new to OP11, this used to be easier with OP7TPro. I now have it rooted with Magisk.

Does this method work for CPH2449 (EU version) too?

What exactly needs to be done at this step:
[OnePlus 11] Philly@52:
I have a CPH2451 myself so I couldn't tell you that it 100% should work but I believe it will.

Step 2 to "Restore images in Magisk" means to click the "Uninstall Magisk" button on the main page in Magisk, then select "Restore Images".

You can check if Magisk has stored a backup image with a Root browser of your choice by going to the /data folder and seeing if you have a magisk_backup folder with a boot.img file in it
[OnePlus 11] deechte:
Thanks a lot for your explanation. I also cannot imagine any reason why the different regions' devices would differ on this aspect.

I have a /data/magisk_backup_dabdfb5cfc307cf2ac1dcaf4beff3eef063402f0 folder with a boot.img.gz file in it. It's only 1.83MB big though, which seems small considering the normal boot.img is 200MB-ish. Is yours the same?
[OnePlus 11] Philly@52:
Yeah, mine is only 1.9MB. I don't see why the region would make a difference either but I know with the CPH2451 we really only get incremental updates as opposed to "Full".
[OnePlus 11] juancarlos5:
U need Oplocalupdate APK but use that steps
[OnePlus 11] scottlam1:
Is that the newest init boot usually I dump and upload it for us but if thats it I don't have to
[OnePlus 11] surajpai524:
Guys .. it's not backing boot.img . It's backing up init_boot.img. This is same for all phones which comes pre-installed with Android 13.
[OnePlus 11] deechte:
So a backup file called boot.img.gz is actually a backup of init_boot.img? Or should there be a init_boot.img.gz in the backup folder?
[OnePlus 11] vnod:
thats init boot backup .if you extract it you get 8mb boot img which is init boot size.. normal boot img is like 200mb
[OnePlus 11] surajpai524:
Magisk decides what needs to be backed up be it init_boot or boot. But the name will always be boot.img atleast as of Magisk 26.2
[OnePlus 11] deechte:
There's a 8MB boot.img inside indeed. I have patched a boot.img and vendor_boot.img first (following a wrong tutorial) and an init_boot.img at last. Does Magisk only keep a backup of the last file in patched?
[OnePlus 11] vnod:
yeah think so,.. if there was backup you would have seen under /data .. if u want all stock img of cph2451 13.1.0.501 i can give you
[OnePlus 11] deechte:
Thanks. No need for that at the moment. Moreover, I'm on CPH2449.