yashsingh1/xdaforums huggingface dataset:
[OnePlus 11] r1pp3d2:
so the new update for cph2451 wont install even if i restore images. is there an OTA zip i can flash with twrp?
[OnePlus 11] MrSteelX:
What twrp. There is no fully working twrp for op11.

Also, if you used konabess that make changes to venderboot.img which must undo to install the update.
[OnePlus 11] r1pp3d2:
well it works just fine on mine.
[OnePlus 11] MrSteelX:
Have you tried a backup and restore with twrp?
[OnePlus 11] r1pp3d2:
actually have not, since i made a backup with another tool, but i will try it.
[OnePlus 11] r1pp3d2:
It works fine, even flashed magisk zip just fine. I got it from unofficial twrp site.
[OnePlus 11] boontje3:
do you have a link for that twrp site ?
[OnePlus 11] r1pp3d2:
here
[OnePlus 11] boontje3:
thank you verry much for it
[OnePlus 11] g96818:
DO NOT INSTALL TWRP!

GOOD LUCK UPDATING IF YOU INSTALL TWRP.
[OnePlus 11] daleloco:
Hi, new oneplus 11 owner here. Coming from a oneplus 9P. I've read the whole thread, just to be sure I would ask if I can update the phone to the lastest update available and then unlock bootloader and root. I think it's the easiest way, isn't it?
[OnePlus 11] Keinta15:
Yes, that's what I did without issues
[OnePlus 11] halloweenm925:
i got "R/W" on (oneplus 11 A13.1 2451 -EX01- ) with proof! Working on the details now. It seems i'm the 1st person to do so on ONEPLUS 11. ex... i copied my internal downloads folder to /system. as seen in photo below
[OnePlus 11] halloweenm925:
wrong post
[OnePlus 11] kherio:
Hi there

Somebody tried with CPH 2449 ? I'd like to root my brand new device ;)

Thx in advance
[OnePlus 11] kherio:
I have installed the thre apps from the first msg and the laptop does not recognize the device... :((
[OnePlus 11] MrSteelX:
Issue is with pc. Install proper driver. Adb uses one driver. Fastboot uses a different driver.
[OnePlus 11] g96818:
you cam follow he same process.
[OnePlus 11] kherio:
Where did you get a functional twrp for OP11 ?
[OnePlus 11] kherio:
I'm stucked on the bootloader mode. It doesn't boot.

It gets the Orange state but nothing else.

I tried fastboot flash boot gki(form page4) and nothing

I also tried fastboot flash boot boot_a.img and nothing.

It doesn't boot... any clues=?

thx in advance

BTW its a CPH 2449
[OnePlus 11] kherio:
Im sorry but is there any instructions to flash stock rom? I downloaded the stock from

Stock Firmware Collection for OnePlus 11

Official Links for OnePlus 11 >> OTA updates: ColorOS 13.0.0 A.05 China: Download ColorOS 13.0.0 A.08 China: Download ColorOS 13.0.0 A.09 China: Download ColorOS 13.0.0 A.10 China: Download OxygenOS 13.0.0 A.07 IND: Download Oxygen OS...

xdaforums.com
[OnePlus 11] kherio:
Update: I'm using fastboot. The device appears when running fatboot command...

But when I execute some commands I gte some errors:

C:\>fastboot flash vendor vendor.img

target reported max download size of 805306368 bytes

Invalid sparse file format at header magic

sending sparse 'vendor' 1/2 (786428 KB)...

OKAY [ 18.448s]

writing 'vendor' 1/2...

FAILED (remote: Partition not found)

finished. total time: 18.481s

C:\>fastboot flash abl abl.img

target reported max download size of 805306368 bytes

sending 'abl' (216 KB)...

OKAY [ 0.005s]

writing 'abl'...

FAILED (remote: Flashing is not allowed for Critical Partitions.

)

finished. total time: 0.054s

C:\> fastboot boot boot.img

downloading 'boot.img'...

OKAY [ 1.170s]

booting...

FAILED (remote: Failed to load/authenticate boot image: Load Error)

finished. total time: 1.204s

...

....

Any clue? I appreciate any help
[OnePlus 11] halloweenm925:
You can't flash critical partitions in fastboot.

You have to be in fastbootd by ....

Fastboot reboot fastboot

It will look like recovery but select language the it will say fastbootd

Then once your in fastbootd then you can flash those imgs without a problem
[OnePlus 11] kherio:
c:\>fastboot reboot fastboot

fastboot: usage: unknown reboot target fastboot

Using fastbootEnhanced and selecting reboot in fastbootd it reboots but in fastboot, not in fastbootd.

If I try to flash payload.bin from FastbootEnhanced I get:
[OnePlus 11] halloweenm925:
Ignore those partitions then flash in regular fastboot mode. The reflash payload in fastbootd mode. To flash the critical partitions! But make sure ignore partitions is checked each time you flash the payload. Then you won't get that error!
[OnePlus 11] kherio:
I flashed payload.bin 2 times with the ignore partitions checked and no luck. :(

Now I cannot enter into bootloader mode.... is there any magic keys trick to enter into that mode?

Thx
[OnePlus 11] Thereplierbro:
I am desiring to update to the newest June patch. When I went to uninstall magisk and restore images I get this error.

I followed this guide to the letter. So what do I do now to update?
[OnePlus 11] ChrisFeiveel84:
Vol down and power
[OnePlus 11] MrSteelX:
You must flash back stock not rooted init boot img to update.
[OnePlus 11] Thereplierbro:
So there is not a "No PC" option? Would have to flash that, then boot and restore? Then re root again? Just confused since original steps said we could restore then update and flash to inactive
[OnePlus 11] ChrisFeiveel84:
In this tut is used magisk stock and you use magsik delta
[OnePlus 11] Thereplierbro:
I'm pretty sure he gave both options citing "Magisk doesn't work so you'll either need to use canary or Delta (which he did)"

Regardless just seems like a quick oversight on his end. So from now on I'll have to do this method. All I needed to know.

Am worried about the init.D causing boot loops. Is this a non issue?
[OnePlus 11] surajpai524:
No PC method works fine. The thing you have to see is, will Magisk create backup of init_boot.img. if it doesn't create try again.. Even then it didn't create backup, then you can't do it. But Magisk Canary works fine. Not sure about delta.
[OnePlus 11] g96818:
what oversight? Did you read the following section that says OTA UPDATES?
[OnePlus 11] g96818:
you are using the WRONG Magisk!

Can't help you.
[OnePlus 11] m0han:
'Phase 2: Installing drivers' has only 'Step 1'? And, what's for Windows 7 x86 (32-bit) users? What to install in place of 'Windows+11+Fastboot+Drivers-+droidwin.zip'? I searched for 'Windows 7', but couldn't find anything relevant.

Any workaround for CPH2447 users to get GPay working?
[OnePlus 11] g96818:
update your computer. install safetynetfix to get gpay working
[OnePlus 11] surajpai524:
Try those Win 11 drivers... Normally it's backwards compatible.
[OnePlus 11] Jhollis:
I just did the latest OTA update through Oxygen Updater/Local Upgrade, however it still shows that I have an update available through the system updater. Root seems to work fine and Oxygen Updater says I'm running the latest version.

Is this normal or did I mess something up during the process?
[OnePlus 11] g96818:
just ignore it. happens sometimes. Your phone probably downloaded the update separately
[OnePlus 11] Thereplierbro:
Silly me, doing what the guide said.
[OnePlus 11] Thereplierbro:
So there has to be some kind of command I give Delta to create the backup?

I'm sorry I'm just used to normal Magisk working so I'm struggling with this idea in my head
[OnePlus 11] Philly@52:
I'm not sure if it helps you much at this point, but you can use normal Magisk as well. I've been on 26.1 for a while now.
[OnePlus 11] g96818:
Yes, SILLY YOU for using someone else's version of magisk and not following the link I provided.
[OnePlus 11] Thereplierbro:
My guy, you literally said you used Delta. Since there was no link to that I had to Google it and find it. Which delta did you use??
[OnePlus 11] g96818:
Pretty sure that's a link right there. Not my fault the name got changed to debug since someone else is making a branch version and also calling it delta.
[OnePlus 11] mzahs:
I have followed the steps, as instructed. Phone reboots after fastboot kernel image step but KSU shows not installed and there is no option to toggle to magisk. My understanding is not to flash kernel image but just boot, per instructions? What am I doing wrong here?
[OnePlus 11] surajpai524:
What's your kernel version? And Device model number? And OOS version?
[OnePlus 11] mzahs:
Thank you for the questions, I was booting into the wrong kernel image because I was going by the kernel version shown in KSU app. Phone is rooted and magisk installed now.
[OnePlus 11] lgv20v30:
Hi, I following the instructions ( I installed Magisk Canary ) and have root working on top of the latest 2023/6 CPH2451_13.1.0.580 (EX01). Kernel is 5.15.74. But every time I entered Magisk and got this message "Your device needs reflash Magisk to work properly". lease reinstall Magisk within app, recovery mode cannot get correct device info."

Right now I just choose "cancel" in this message box. Since root is already working and I don't know if running another "direct install" inside of Magisk app will brick the phone. So far the only thing is not working is that magisk 's denylist feature lost the setting (for google play service) right after reboot.

Does anyone have similar experience ? Any suggestion is welcome. Thanks.

BTW, I ran all OTA ( A08 -> A10 -> A22 -> 580 (EX01) on a new system before start the rooting steps (unlock boot loader etc).
[OnePlus 11] surajpai524:
I got this message few times. No issues. Just let it do its job. If you booted KernelSU and then did Direct Install to install Magisk, then there will be a backup of init_boot.img. so there won't be any issue.
[OnePlus 11] appileh:
Guys i have an update-> last time i did this, i lost my root, it restarted it fooled me. They changed some words like download/Extraction etc. What is the correct process? thanks
[OnePlus 11] surajpai524:
It started long back.. the words were changed when OOS 12 -> OOS 13.

Correct procedure:-

Magisk -> Uninstall -> Restore Images

OTA -> Click Download

After Download wait for it to complete extraction and verification.

When it says Install, goto Magisk click Install -> Inactive after OTA.

Then don't reboot in MAGISK

Now go back to OTA and click Install.

Note: To install Magisk in another slot, open it as a floating window. Sometimes if you go out of OTA screen after verification, it asks again to download. Happens only some times.
[OnePlus 11] deechte:
Are you sure of this order? After downloading, the new boot image isn't installed yet, right? So Magisk is patching the old image and setting that ready in the inactive slot, right?
[OnePlus 11] surajpai524:
Yes. I have done more than 10 OTA updates including by OnePlus 9 Pro.

But Magisk Patch should happen after Download, Extracting and Verification. After verification is completed only then patch the firmware.
[OnePlus 11] deechte:
OK, thank you. And what about if I would download the update through Oxygen Updater?

[edit] able to answer my own question now. After downloading the update package from Oxygen Updater app, opening the file for local installation triggers the same steps of extracting and verifying as the OTA.
[OnePlus 11] appileh:
Thanks will execute this now
[OnePlus 11] appileh:
I have now the installation button visible. It downloaded the OTA but I didnt do anything with Magisk. Do you have any solution for that? Or Install/reboot and then start rooting my phone again..?
[OnePlus 11] surajpai524:
If extraction and verification is completed, even then Uninstall Magisk -> Restore Images. Then Install to Another Slot. Then Click Install.
[OnePlus 11] appileh:
Is there an option to select another slot?

Edit: Install to Inactive slot? And then hit install (on OP itself) for reboot?
[OnePlus 11] appileh:
Succeeded thanks for your time.
[OnePlus 11] egandt:
I'm stuck at step 3 booting the kernel, the only match I can find is, from 0.6.6, I tried also from 0.6.2, and same issue.

android13-5.15.74_2023-01-boot.img.gz
android13-5.15.74_2023-02-boot.img.gz

This will not boot the phone is hung at the oneplus symbol and then "Fast Boot", the phone will not boot, I have to do Vol+ and power to force it to shutdown. Gave it 10 minutes without it booting. No kernel I see on this page starts with "ksu-"

-----------------

Also tried extracting boot.img from the OTA patching then booting with

"fastboot boot magisk...", at least this booted, but did not include root, so any stucl. I've never seen a magisk patched boot.img not include root. So now I'm confused, as this should work teh same as it does on a oneplus 9 pro or 7 pro ro any other oneplus, but I'm getting blocked at every turn.

-----

SOLVED: android13-5.15.74_2023-02-boot.img.gz works if I ungzip it first, however android13-5.15.74_2023-01-boot.img.gz never worked.
[OnePlus 11] m0han:
See OP Phase 4: Rooting, Step 4:

Extract

the .img file
[OnePlus 11] chocolote4444:
Correct me if I'm wrong but doesn't this give you both Magisk and KenelSU? What if I only want kernelSU installed so I can hide my root?

Also I'm stuck with the OTA update process. I try restoring the image in Magisk and Magisk app says there's no stock img to be restored? Anyone else having the same issue?
[OnePlus 11] surajpai524:
Nope. You just boot with KSU img. On reboot, you lose KSU and only Magisk remains.

Flash stock boot.img and stock init_boot.img to both slot and repeat the steps again. Don't flash Magisk patched img using fastboot. Do direct install on first boot with KSU which takes backup of init_boot.
[OnePlus 11] btflyrose:
I'm not sure if this will help anyone or not. Originally, I did my rooting with Delta via the Delta site, but following this post's instructions.

(And this might all be just a coincidence, but it may not be. Maybe it'll help others, though.)

I was having issues with the CPH2451_13.1.0.590(EX01) update installing even after restoring images, so returned to this post to see if I possibly missed anything.

I clicked on the OP's Magisk link, and after I uninstalled the Delta version I had, installed the KSU image again, and reinstalled with OP's Magisk link. Even then, though, I still was having update issues. I was just about to just reflash stock everything, do update, and start over.

Well, I clicked on my Play Store to just see what updates I had waiting so I could do a full backup before reflashing. I just clicked update all.

After the Google Partner finished (I just reinstalled oxygen updater yesterday, so it wasn't that being installed that did it), immediately, I received a notification that my system update was installing.

I'm not sure what either one has to do with the other, but thought that the info was possibly some others might need as well. It may be something, or it may be nothing, but I didn't think it'd hurt to share the information.
[OnePlus 11] omernart:
Unfortunately the phone I wanted was 2451 or Global 2449.

I was able to find PHB110
[OnePlus 11] altwu:
thanks @g96818 for the guide! i upgraded from a oneplus 7 pro to an 11 and the process went smoothly. my phone came with oxygen os version CPH2451_11_A.09 and i was able to set the pin/password on the first try, so no relocking and unlocking.

i did run into an issue where i had to install magisk twice. the first time, i did a direct install like the guide said. after rebooting, when i went into magisk, i got the message saying that it needed to be flashed again. i did and then everything seems to be ok. when i went into magisk again, no more message about needing reflashing and my apps that need root work.

i did make one goof though. initially, i couldn't find the canary or debug builds of magisk. they're not that obvious to see. so i installed the stable version. i checked /data and there's no backup of the stock boot images. is that because i'm using the stable version? maybe the install 2x thing was because of the stable version too? anyway, i have a notification to upgrade to A.10 but since i don't have the stock boot images, i can't follow the instructions to do an upgrade and keep root. what are my options for upgrading and rooting? if i need to go the kernelsu route, that's fine with me.
[OnePlus 11] g96818:
try this:

1. uninstall magisk stable.

2. install magisk debug

3. download the attached init_boot.img and patch it in magisk

4. you should now have a backup folder so check if you have a backup folder

btw, the attached boot file was provided by another member earlier in this thread. i just happened to save it.
[OnePlus 11] altwu:
thanks for the quick reply! i tried patching the boot image you provided, with "select and patch a file" but no backup folder was created in /data. maybe it's because patching a file creates a new patched file and doesn't touch the original, so a backup isn't needed?
[OnePlus 11] g96818:
I guess it's different on this phone. Magisk is supposed to create a backup if you manually patch the boot.

You're going to need to flash that init_boot.img to the init_boot partition. It'll remove root. You can't update otherwise.

Don't flash to boot, flash to init_boot
[OnePlus 11] surajpai524:
I think Magisk takes backup not when you patch but during direct install. It happens during first root when you have stock boot.img or after OTA when you reinstall Magisk before reboot. You need root access to write to /data partition directly. And I see nearly 8 Magisk backups which is equal or near to number of updates or direct flashes I have performed.
[OnePlus 11] g96818:
No, magisk makes a backup when you patch a file regardless of root status, at least that how it works on some other devices I've rooted. The program already has system write access without root.
[OnePlus 11] surajpai524:
Nope. That's not possible. Going through the source code you can find backup is done using run_migrations() function. That is called only when you install Magisk using Direct install. You can check util_functions.sh for more info on backup and when it's called.
[OnePlus 11] g96818:
I'm telling you it does create the backup when you patch a boot. It's been validated on the Nord n30.
[OnePlus 11] altwu:
regardless of when the backup happens, the a09 init boot image helped. i was able to take the ota and keep root. i upgraded from CPH2451_11_A.09 to CPH2451_11_A.10 to CPH2451_13.1.0.501 to CPH2451_13.1.0.590. i have 4 magisk backup directories under /data; 1 for each update.

i did a binary file compare and my a9 init_boot image is the same as the one provided here and here.

my a10 boot image is the same as the one provided here.

attached are the stock unpatched init_boot images for 13.1.0.501 and 13.1.0.590.
[OnePlus 11] ashawanz:
Hey guys I have bootlooped after installing a stable patched magisk init_boot over my boot slot. I edl downgraded to 11_A.06 and recovery and fastboot work but i cant boot into oxygenOS.
[OnePlus 11] g96818:
You flashed the wrong partition.

you were specifically told do not flash.

unbrick yourself with this post https://xdaforums.com/t/op11-edl-do...ce-to-oxygenos-coloros.4607995/#post-88781119
[OnePlus 11] altwu:
with safetynet-fix v2.4.0-MOD_2.0, my phone passed the safetynet basic integrity check but failed the cts profile match check. i reverted to v2.4.0-MOD_1.3 and both checks passed.

https://github.com/displax/safetynet-fix/releases
[OnePlus 11] 2015Ducatimulti:
these are stock images that have not been patched correct?

edit: I flashed the file and it worked to get me back to stock!
[OnePlus 11] altwu:
yes, they are stock unpatched init_boot images.

i'm glad that they worked for you!
[OnePlus 11] SparkyKitty:
There any updated info since there is now the unofficial TWRP for OP11?
[OnePlus 11] g96818:
do whatever you want, just don't come back here to ask how to update if you install TWRP.
[OnePlus 11] appileh:
Guys it pisses me off. I received a notification where it says 'Install' but when i push this it will reboot after right?
[OnePlus 11] appileh:
Sir you helped me before, can you give me some information how i have to execute this operation without losing root..
[OnePlus 11] surajpai524:
Goto Settings -> System Update -> Download and Install.

While it's downloading goto Magisk and click Uninstall -> Restore Images.

Then make Magisk into Floating Window.

Goto System Updates. Wait for Download, Extraction and Verification.

When it says Install now, enlarge Magisk Floating window. Not fully open. Click Install -> Install in another slot. After installation, exit from Magisk. Now click Install now in System Updates.
[OnePlus 11] appileh:
Im now @ this screen, for 2 days: it says install now (No exctration or verification)
[OnePlus 11] m0han:
Some screenshots that I hope helps.
[OnePlus 11] appileh:
Thanks, im always in the last step. The device never shows me the 'Download' button lol.
[OnePlus 11] appileh:
I did this and problem solved. Still scary to lose root or getting a bootloop.
[OnePlus 11] dazoe:
Yeah, scary. That's why I've been ignoring the system updates.
[OnePlus 11] Philly@52:
I've been just trying to wait until Oxygen Updater has the new updates. That way I can just download the update and use the local update method without the weird all in one "download and install". Especially since cph2451 only gets incremental updates.
[OnePlus 11] arsalturtle891:
So I ended up rebooting in MAGISK. Now, every time I unlock the device, it reboots. How can I fix this?
[OnePlus 11] surajpai524:
Seeing the issue first time. Maybe boot in safe mode once and then reboot to disable all Magisk modules and see if it solves issue. If it solves or not, uninstall Magisk and re-root the device.
[OnePlus 11] arsalturtle891:
So I was able to resolve it. After I unlock the phone, I have a few seconds before it reboots. So in those few seconds, I quickly opened magisk and hit uninstall. The phone rebooted and viola, the phone did not crash anymore.

My only problem now is that when I follow these same steps (Im on android 14 now), booting the kernelsu image takes me to recovery every single time instead of the lockscreen. So, I restart the phone and it takes me to the stock boot rather than the kernelsu one. Therefore, I effectively cannot root the phone
[OnePlus 11] surajpai524:
Are you booting the correct version of KSU?

You can still root using Magisk Patched init boot img file. But might have issues in OTA without backup to restore images in Magisk.

One way is to root using Magisk Patched init boot. Then use dd to overwrite init_boot with stock init_boot using root and then goto Magisk and click Direct install. Don't reboot till you Direct install Magisk after using dd command. This way it creates backups and it's an indirect way or long way to Kernel SU method. You should know which slot the phone is booting from and write to that partition, init_boot_a or init_boot_b. You can do the same using apps like Partitions Backup. It's Untested, advanced and risky. So be carefull if you want to try.
[OnePlus 11] arsalturtle891:
Thank you for the feedback. I am using the correct version of kernelsu. The method you provided does seem risky and I do not want to go that far. However, these are the two unsuccessful methods I tried after removing root so my phone does not bootloop:

INFO:

Version Number: CPH2451_14.0.0.80(EX01)

Kernel Version: 5.15.94

I tried the following:

1.

Extracting payload.bin file from full OTA and extracting the boot.img file. I patched it with magisk and then used fatboot boot. However, upon entering Magisk (tried both Canary and Alpha), it does not give me an option for direct istall.

2.

Using the kernelsu .img file, I used fastboot flash. However, instead of booting into the system, the phone boots into recovery mode, effectively taking the phone out of the temporary root state. So, once I exit recovery and boot into system and open magisk, I am back to square one.

Any suggestions would be appreciated.
[OnePlus 11] surajpai524:
In method 1, patching boot.img is useless. New Android 13 based phones boot using init_boot.img. boot.img is GKI based kernel. So you should patch init_boot.img in Magisk.

Also method 1 is fastboot flash Magisk_flashed_init_boot.img

Method 2 is fastboot boot ksu_boot.img
[OnePlus 11] arsalturtle891:
In case I flash the patched init_boot.img and bootloop my phone, I can get out of this by flashing the stock init_boot.img right? I wouldn't need any other files to do this right?