yashsingh1/xdaforums huggingface dataset:
[Motorola Edge 40 Pro  / Moto X40 (China)] MrIndieJ:
Yes, also have the XT2301-1. I'm just going to wait and see if I get updates, because I have run into no issues with the build other than the message given by the RSA tool.
[Motorola Edge 40 Pro  / Moto X40 (China)] MrIndieJ:
VERY helpful, will try this if I cannot recieve the next OTA!
[OnePlus 12] JEANRIVERA:
steps

1. unroot open magisk and use the option to restore image

if this worked for you skip to step 4 if not follow bellow:

OR if your Magisk does not have stock img to restore you can do this:

(if magisk can't restore your original init_boot.img flash xxx stock init_boot.img (link provided below) in fastbootd, just like you installed Magisk patched Init_boot.img originally)

or in booted android before unroot you can do the following:

rename the CPH2583_xxx_stock_init_boot.img to init_boot.img and transfer to the root of your internal memory in the device

then:

this command to flash stock init_boot to slot a

dd if=/sdcard/init_boot.img of=/dev/block/sde32

And this command to flash stock init_boot to slot b

dd if=/sdcard/init_boot.img of=/dev/block/sde66

2. reboot

3. Also be aware that you will need to restore recovery.img if you have a custom recovery like TWRP or PBRP installed, I will try to attach all version of stock recovery.img bellow.

4. use local updater link below must install the apk provided since NA does not allows local install option

View attachment 6102335

5. select incremental OTA (link below)

View attachment 6102337

6. allow some time for extraction and install, at the end will ask you to install this will perform a reboot.

7. after reboot should be updated.

8. optional flash Magisk and/or TWRP again or any other root method of your desire

Local Updater V2

CPH2583_604_stock_init_boot.img 604

604 Full OTA

610 Incremental OTA

604 to 802 incremental OTA

610 to 802 incremental OTA

810 Incremental OTA

CPH2583_610_Stock_init_boot.img 610

CPH2583_802_stock_init_boot.img 802

CPH2583_802_stock_init_boot.img 810

CPH2583_802_Stock_recovery.img
[OnePlus 12] easyrider77:
So I'm curious, where I'm magisk is this located. I don't see anything about restoring anything, maybe I'm just missing it.
[OnePlus 12] TheUndermind:
Won't let me launch the software updater app after step 5. Tried re-installing but fails with conflicting install package.
[OnePlus 12] JEANRIVERA:
do you have NA device? CPH2583? because that updater app seems to be newer than stock updater, it will not install if the on your system is newer
[OnePlus 12] JEANRIVERA:
View attachment 6102339
[OnePlus 12] JEANRIVERA:
I don't know how did you get that version, but that it is not the stock NA version on 604
[OnePlus 12] TheUndermind:
Sure do
[OnePlus 12] JEANRIVERA:
Try this, press the menu button on top right corner, and uninstall updates
[OnePlus 12] JEANRIVERA:
Ok, I might have uploaded the wrong version of local updater, try this one
[OnePlus 12] TheUndermind:
Hey! That worked! Thanks.
[OnePlus 12] TheUndermind:
Spoke too soon, When I put the incremental in to extract it fails with "Extraction failed"
[OnePlus 12] JEANRIVERA:
Did you installed full OTA first? Then reboot? And then 610 incremental? Without doing anything else in between
[OnePlus 12] TheUndermind:
Yeah, I was about to post that It worked after I started from the beginning
[OnePlus 12] JEANRIVERA:
I'm sorry but it's a little confusing, did it worked in the end? Or not?
[OnePlus 12] TheUndermind:
Yes it did, thanks for all your help!
[OnePlus 12] JEANRIVERA:
by the way, you can hit the thanks button in the OP if you like it and think it was helpful
[OnePlus 12] lloydsw:
If you don't have 'restore images' in Magisk, do this first. I've used it successfully on both OP11 & OP12.

[Android 14] Root with init_boot and still have Magisk Restore Images option

The purpose of this guide is to give you the Magisk Restore Images option. As many of you know KernelSu does not work for the OnePlus 11 with Android 14. When you use the init_boot method to root you lose the Magisk Restore Images option and...

xdaforums.com
[OnePlus 12] JEANRIVERA:
OP updated with more information how to restore stock init_boot.img for those that just flashed patched init_boot.img without a magisk making a proper backup to restore
[OnePlus 12] Philly@52:
Also, If you're not sure if you have a stock backup or not i believe you can check with a root browser.

Should have something in your /Data titled "magisk_backup_yadyadyada" (not the exact text)
[OnePlus 12] Mr.NightMan:
hi XDAs,

If I unroot my device ( uninstall magisk) and do incremental update, do my device reset to factory setting and my data erased or I can keep them in the phone?
[OnePlus 12] JEANRIVERA:
Unrooting will not wipe your device, only locking and unlocking bootloader does that, and that it's not required in this guide
[OnePlus 12] z0mghii:
Anyway to do this without losing root?
[OnePlus 12] parcou:
Reading all this today for the first time from beginning to end, even with all the changes for a newbie, is confusing. Thx OP for the post I may wait out the full OTA if one does come and use Oxygen Updater as I did to get to .604
[OnePlus 12] JEANRIVERA:
Unfortunately, not with incremental updates
[OnePlus 12] camparks:
The directions in this thread are not actually doing an incremental update via the system, they are describing how to do a OTA from a downloaded file and doesn't address Magisk not having a backup boot image to restore. For incremental updates downloaded via the OS, you use the system installer; for installation from downloaded packages, you use the app installer.

If you want to do true incremental updates via the system installer when Magisk has no backup boot image, see directions here, though admittingly they assume you have some prior experience with root and don't have the most detailed steps concerning Magisk. I may update later.
[OnePlus 12] MastXX:
Can Some plz help me with my oneplus 12 NA it's showing "

The current image (boot/recovery) have been destroyed"​
[OnePlus 12] JEANRIVERA:
Do you have telegram? If you do send me a DM here with your telegram ID for help
[OnePlus 12] MastXX:
yes .. how do i send you a message on telegarm
[OnePlus 12] JEANRIVERA:
send me a private message here on xda https://xdaforums.com/conversations/add?to=JEANRIVERA with your telegram ID
[OnePlus 12] iamrance.asa:
Incremental updates are a pain on the NA rom. I updated mine to 14.0.0.802 last night. I restored the init_boot (I use KSU) then booted. Downloaded and Install option in the default updater (failed to install) >.> opened the System Update apk that you can find in other threads about adding local install to our variant. It extracted and installed fine. Then I reflashed the modified init_boot from 604 since unpacking the incremental, the init_boot was a 0kb placeholder. Root was lost for the installation process but it's back like before (basic and device integrity passing).

The System Update apk just failed to extract at 20% when I had root
[OnePlus 12] RussianBear:
struggling here on NA going from 610 to 802 myself. i've restored images to stock in magisk but both local and system fail (system fails right away, local fails on 21.5% extraction). event tried rebooting to unrooted state and both fail also. i may reflash the stock init_boot from full 604 OTA and try again, but this stuff is super frustrating, unless it's a user error that i am too dumb to spot lol
[OnePlus 12] iamrance.asa:
I flashed the one I downloaded from Oxygen Updater with the apk in the install section (the System Update apk from other variants with local install enabled). It worked when I had the init_boot reflashed but it had failed when I had root installed before that.

Kind of regret the update for aesthetic reasons. I had a systemless Lawnchair module that broke with this update. It was nice because it had the pixel style recents (the part that broke) and I'm not a big fan of the updated vertical sound/brightness sliders in notification center
[OnePlus 12] Philly@52:
When you restore images does your device have a backup img to grab? You should be able to check with any kind of Root file browser at the /Data directory. Should have something there with magisk_backup
[OnePlus 12] RussianBear:
were you updating from 604? oxy doesn't have 610-802 update yet, so using the zip from here: https://xdaforums.com/t/oneplus-12-...xygen-os-builds.4657465/page-16#post-89547508 Some other folks updated from the link just fine, so no clue why mine fails. I will try and reflash the stock 604 boot now and see if that does anything.
[OnePlus 12] Philly@52:
The update broke some stuff on my device as well. I *think* somehow in Google May security patch, they did SOMETHING to prevent me from downgrading apps past a certain point. I used to be running a really old version of the Google Phone Dialer that i could still have the Call Screen feature but now i cannot downgrade. Even after trying to do a pm uninstall on the dialer, it still gives me a FAILURE_DEVICE_VERSION_DOWNGRADE when i attempt to adb install the version that i want to use.
[OnePlus 12] iamrance.asa:
No it doesn't. Thus why I had to reflash the init_boot

Oxygen Updater does. You just have to change it to incremental instead of stable. That's where I pulled the 802 version from. That post didn't have 610 or 802 when I looked. Only 604 for NA variant (CPH2583)

I haven't looked at dialer. I don't have a downgraded version, though. I use GappsMod for Call Screening/Recording
[OnePlus 12] Philly@52:
I was also using GAppsmod but the actual call screen doesnt work anymore because I cannot downgrade the app low enough to get it working again. I had to use an old one like around version 100, lowest i can get now is 130(which is basically current) and the Call Screen stopped working because of it.

Previously i had the Zygisk deny which would prevent the play store from telling you an app needs an update. After the update though, i noticed the Dialer app was 124.. so it updated somehow and now i cant go back

Essentially the call screen would "screen a call" but the voice wouldn't say anything, the caller would just heard silence.
[OnePlus 12] iamrance.asa:
There is a couple downgrade modules you can get. Maybe try them. I know Lsposed has some because I use them on a different device for some apk mods I do
[OnePlus 12] wolfu11:
This is good to know. I use GAPPS mod also but on 604. My phone version is 130 but call screening works. I think I'll just sit tight on 604 because call screen is a deal breaker. Thanks for the heads up 👍
[OnePlus 12] Philly@52:
Yeah, i just did some testing and the lowest i can get for the Dialer version is 124. Trying to get the gappsmod to work on 124, and the Call Screen won't show up
[OnePlus 12] Philly@52:
Interesting, I have LSposed but i didn't know about any additions to let you downgrade. I would typically just uninstall a system app via termux or adb and then install via adb its just not working now for some reason. Even after uninstalling, somehow its still telling me it detects a newer version of an uninstalled app.
[OnePlus 12] Philly@52:
Beautiful man! Thanks for that! I was able to get it working again with the LetMeDowngrade

@wolfu11 So yeah, if you wanna upgrade and be able to keep it working you can use the LSposed LetMeDowngrade and roll back to which ever version works.
[OnePlus 12] Philly@52:
Hmm interesting - when i rebooted my phone though, the App version went back up to 124

I've also noticed that Facebook app keeps reappearing every time i reboot my device regardless of how i try to uninstall it.

@iamrance.asa @wolfu11
[OnePlus 12] snowwolf725:
The OTA(602->802) modified 48 partitions.

If you got error message during OTA progress, you need restore these partitions to stock image.

The partitions most likely to be modified include the following:

boot (Apatch/KernelSU), init_boot(Magisk/KernelSU), recovery(TWRP/PBRP), dbto(Modify 120 fps), vbmeta (root)

You can extract these partitions from rollback pack which contain full OTA of 610 NA.

Payload dumpder

[Windows] Payload Dumper GUI - dump boot.img and other img files from payload.bin.

Hello there. Was bored and decided to make a gui that dumps Payload.bin file for easy flashing. Tested on Lineage OS 18 Payload.bin Result: Credits: Based on vm03 payload_dumper script. Github: Payload_dumper.py...

xdaforums.com

CPH2583 rollback package (610)

http://oxygenos.oneplus.net/9331_sign_CPH2583_11_A_OTA_0660_all_xl5ubJ_10100001.zip

Android 15 System Updater Apk (for local installing new full OTAs)

http://oxygenos.oneplus.net/OTA-localUpdate-Oplus_key0522.apk

OxygenOS CPH2583_14.0.0.802(EX01) (Incremental OTA 610->802)

https://android.googleapis.com/packages/ota-api/package/3e49a73c6732a62d86b81240d4c3f3695733aeaf.zip
[OnePlus 12] TheUndermind:
Tried it, verify fails around 21%
[OnePlus 12] RussianBear:
You will need to flash a stock boot.img from whatever version you're on. I've posted the steps in this thread.
[OnePlus 12] kcajjones:
I don't understand how to do this at all. People mention flashing the .610 patched init_boot.img after updating. Aren't you then on an older version (.610 vs .802)?

The instructions on the first post say about entering commands. How? Where? Via Fastboot? Terminal emulator on the phone?

Has no one managed to get a .802 init_boot.img stock and patched image yet?
[OnePlus 12] freeza:
I flashed 5 stock partitions with kernel flasher without rebooting:

Boot

Init_boot

Recovery

Vbmeta

Dtbo

Then used the local updater app posted in this thread to install the update from 610-802 and before hitting "install" , backed up those same partitions on the inactive slot and patched with root then hit install. Worked perfectly.
[OnePlus 12] Superguy:
Is it easier to go to the EU version and just flash the whole update? Any disadvantages from going to EU from NA?
[OnePlus 12] iamrance.asa:
Thanks for this thorough breakdown. I'm guessing this is why I received an error when trying to OTA it with the official updater. I ended up just using the Android 15 system updater apk and flashing it that way which worked with init_boot restored.

I noticed when I unpacked with payload dumper go before this, a number of partitions were 0kb. Does using the regular payload dumper get you a usable init_boot from the 802 firmware ? I was under the impression it was unusable since it is an incremental package but it could have been user error on my part
[OnePlus 12] RussianBear:
Depends on what payload extractor you're using. The one wolf linked works with incremental otas, but most do not and you get 0kb images. 802's initboot was smaller than a meg, so not a full image.
[OnePlus 12] TheUndermind:
I dont get it, Im on 610 CPH2583. I've tried

All the above methods

Downloading different sources of the 610>802

Dumping different payload with 3 different payload dumpers and flashing different partitions

The two different local updater APKs in this thread

Switched from PC to my Laptop to get a fresh start (Idk, maybe a driver issue??)

It doesn't even load to 21% anymore it just says EXTRACTION FAILED: File reading error or Verification failed

Feels like I'm about to have an aneurysm because I've put 8 hours into this over 2 days
[OnePlus 12] RussianBear:
What partitions did you modify before? Verification fail happens when you try and use the wrong update package (604-802 in this case). You can try and flash 610 update (via local update) again to restore your partitions to 100% stock and then try 802.
[OnePlus 12] camparks:
Take a stock 610 init_boot image and try the method I linked back in post #26.
[OnePlus 12] TheUndermind:
The 610 rollback

Boot

Init_boot

Recovery

Vbmeta

Dtbo

Tried that like 4 times
[OnePlus 12] RussianBear:
And you're completely unrooted when you're executing the update? That's just strange.
[OnePlus 12] TheUndermind:
Yeah, I must have rooted/unrooted 8 times. Only thing I haven't done is Uninstall all my modules, Just disabled them. You think that'll do it?
[OnePlus 12] RussianBear:
LOL only one way to find out. there's gotta be something still modified that's tripping it up
[OnePlus 12] r1pp3d2:
dont lock the bootloader and update to 802. it wont let you unlock the bootloader again.

edit- i was using the wrong version of fastboot ha
[OnePlus 12] TheUndermind:
Umm, so... I managed to get the 610>802 update working by flashing the 5 partitions with Kernel Flasher to stock.

Then I used Lucky Patcher to install Oneplus System update version 1.0.0-S-DP(811) as a system app. (Ill link it below)

Then I just loaded the 610>802 update in the System Update app and *boom* it went through

Magisk> Install to inactive slot

(All without restarting)

Can someone else confirm this method? Cause It seemed way too easy to have worked.

Oneplus System update version 1.0.0-S-DP(811):

OPLocalUpdate_For_Android12_13.apk | by Xi Jing Pooh for /e/OS supported models

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com
[OnePlus 12] geminium:
Weird. In my case it was super easy. I downloaded the OTA from one of the links posted in update thread (OTA downloaded with Oxygen updater was giving me verification fail error). Then used the steps suggested by @RussianBear in that same post.

I'm now on 802 (from 610).

Basically, you're going back and forth between Magisk and Software Update utilities:

- download OTA

- restore image in Magisk

- don't reboot

- use Software Update app to extract

- don't reboot

- flash to inactive in Magisk (after OTA)

- don't reboot

- tap on install in the Software Update app

_phone will reboot
[OnePlus 12] RussianBear:
glad you got it sorted. yup, should be *that* easy lol i'm using some sort of local update app called "software update" - probably older than the one you have. i'll try yours next update we get (who knows how much of a cluster that one will be...).
[OnePlus 12] cubandanger05:
I followed these steps exactly and somehow lost root.

I've attempted in numerous ways to extract the init_boot.img from the incremental update I downloaded using Fastboot Enhance and continue to get the error message "An error has occurred. Multiple dst in one operation", so i can't even regain root until someone uploads the stock init_boot.img or a patched one.

Are you able to extract and upload a copy?
[OnePlus 12] cubandanger05:
Thank you sir.

I flashed in fastboot (after patching) however, it's sending me in a bootloop. The only way out is to flash the 602 stock one

Now, the strangest ish just happened. So i flashed the stock 602 back, which got me booted up on the most recen incremental update (802 North America), and i figured i tried flashing the patched 602 init_boot for fun, and somehow Magisk took me through the steps of directly installing and now i have root????
[OnePlus 12] r1pp3d2:
i just patched that with magisk before i used it. maybe try changing it to .img. im very sorry that happened.
[OnePlus 12] cubandanger05:
Oh, it was already patched. I thought i was the stock, so i patched again, not sure if that was the issue.
[OnePlus 12] r1pp3d2:
no no, i just only used it to patch with magisk then flashed it.

never flashed it by itself
[OnePlus 12] cubandanger05:
Still bootlooping, it's 3 am here, need to sleep and try again in the morning lol
[OnePlus 12] cubandanger05:
Turns out it was a darn module causing the bootloop issues. Im good now.
[OnePlus 12] Philly@52:
Those peaky magisk modules. Font Manager is typically the culprit for me. Every update it causes issues
[OnePlus 12] cubandanger05:
Mine was flagsecurepatcher by jh-c.

I'm still not sure why when I updated initially I lost root.
[OnePlus 12] passionicon:
Hi I'm trying to use your listed steps. But I'm on kernelsu and want to try.

1 question;

Step 2, which image did you restore in magisk? Stock 610 init boot?

If that's it, then i can flash stock 610 with kernel flasher.
[OnePlus 12] TheUndermind:
Just open Magisk> Uninstall Magisk> Restore Images

Edit: Sorry, my brain fell out, you don't have magisk.

It restores:

Boot

Init_boot

Recovery

Vbmeta

Dtbo
[OnePlus 12] passionicon:
I don't have magisk. I have kernel su
[OnePlus 12] passionicon:
Wow. If i extract all 4 from stock 610 except recovery. Will it be ok?
[OnePlus 12] TheUndermind:
Absolutely, That's exactly what I did.
[OnePlus 12] passionicon:
Did you flash stock recovery too or custom recovery with the other 4?
[OnePlus 12] TheUndermind:
Stock
[OnePlus 12] passionicon:
Thanks will try
[OnePlus 12] passionicon:
you pulled all images from incremental payload? Can't see full payload. Don't remember if 610 full was released
[OnePlus 12] TheUndermind:
Rollback image:

http://oxygenos.oneplus.net/9331_sign_CPH2583_11_A_OTA_0660_all_xl5ubJ_10100001.zip
[OnePlus 12] wacko37:
Thankyou so much for this step by step guide and thanks to all others that continue to make this all possible.

I also had an issue with step 2, restoring image in Magisk. So as mention here I used KernelFlasher to flash the stock init.boot.img and followed this guide to allow Magisk to restore Images

After that I've taken my new TWRP backup to match the current update and restored just to be sure to be sure.

THIS IS WHY I CONTINUE TO ROOT!!!
[OnePlus 12] passionicon:
All done. Easy peasy. Thanks.

I usually do my "full" OTA twice because of the other slot, just in case. Do i need to do twice for incremental too? If so, can i get rollback 802 zip?
[OnePlus 12] TheUndermind:
Just wait till full 802 comes out, I dont think there's a 802 rollback. Just out of curiosity, which software updater apk did you use?
[OnePlus 12] passionicon:
That OTAlocalupdate apk for a14 from the index thread
[OnePlus 12] passionicon:
The 802 update for all regions broke circle to search mod though 😞
[OnePlus 12] alandman:
Bro, thank you so much for providing this file. I managed to root the device.

Curious, how did u extract it? As was mentioned in this thread, I've attempted in numerous ways to extract the init_boot.img from the incremental update I downloaded using Fastboot Enhance and continued to get the error message "An error has occurred. Multiple dst in one operation".
[OnePlus 12] snowwolf725:
Bro, you can't extract init_boot.img from Incremental OTA zip.

You only can extract it from full OTA zip.

If you are looking for stock init_boot.img, you can visit following link:

656 MB folder on MEGA

82 files and 10 subfolders

mega.nz

In addition 802 NA init_boot.img is there

How to install incremental update on a rooted NA CPH2583 **Updated

steps 1. unroot open magisk and use the option to restore image if this worked for you skip to step 4 if not follow bellow: OR if your Magisk does not have stock img to restore you can do this: (if magisk can't restore your original...

xdaforums.com
[OnePlus 12] alandman:
Thanks!

I gave not seen the full OTA 802 NA anywhere, yet someone managed to extract the stock init_boot.img for it. I am trying to understand how it was done.

I am asking because after downloading the 802 NA init_boot.img linked in the link u provided, I was able to patch it will magisk, flash and root.

I just don't understand how the stock init_boot.img was extracted given there's no full OTA for 802 NA.

Thank you!!!
[OnePlus 12] snowwolf725:
You can dump stock init_boot.img via TWRP backup feature.

Besides, if you rooted your device with APatch (Which patch boot partition, so it don't modify init_boot partition), you can using dd command(or root app) to dump stock init_boot.img without full OTA.
[OnePlus 12] Arnav2015:
Okay i think i messed up. according to oxygen updater i am on CPH2583_14.0.0.802(EX01).

The last full OTA was 604 i think since Oxygen updater only lets me download that. i can see the 810 incremental update too. But i accidentally uninstalled magisk fully (did not restore images). Now i can't update to 810 using the updater (says installation failed) and even the local update apk says "Extraction failed". Any help? do i need to factory reset and root again????? :(
[OnePlus 12] JEANRIVERA:
do you have a custom recovery? if you do you also need to restore recovery.img before doing incremental OTA