[OnePlus 12] nathandrake:
I have been looking for a tutorial to install KernelSU or Apatch for the OnePlus 12, not finding clear instructions or not to leave my device unusable; I set out to do it myself and leave you this tutorial which was the one that worked for me, I will try to make it as clear as possible so that there are no doubts.

PREVIOUS STEPS:

- Remove all passwords and fingerprint before upgrading

- In Developers Settings > OEM unlocked activated and usb settings too

- Download platform tools or any adb which has fastboot

* UNLOCK BOOTLOADER TUTORIAL:

How to Unlock Bootloader on OnePlus 12/12R/Ace 3 [Video]

In this comprehensive guide, we will show you the detailed steps to unlock the bootloader on your OnePlus 12/12R/Ace 3.

droidwin.com

STEPS:

1. Download the ROM of the version you currently have (in my case is cph2581_14.0.0.610 ex01 with kernel 6.1.57 android 14), once downloaded, extract the rom and extract the “boot.img”.

1.1 - More Detailed/Another Option: Another option is downloading from Play Store or GitHub “Oxygen Updater” to download the full rom, transfer the rom from the phone to the pc > extract it.

Once extracted > use “fastbootenhance” > “payload dumper” > select “payload.bin”> check "Allow Incremental" > extract “boot.img”.

Once we have the boot.img, we connect our phone to PC and transfer it to our phone.

2. Download Apatch Manager, select “install”, select the boot.img that we extracted with fastbootenhance, put an 8-digit key (the one you want with numbers and letters) and select “patch” or “start”.

3. Save the modified boot with Apatch Manager which will have a name like “apatch_patched_xxxx_x.xx.xx.x_fmmb.img”, move that file to your PC in the folder where you have ADB installed, either platformtools or any other folder you use and rename it as “boot.img”.

4. Connect your phone to the PC and use the following commands in the folder where you have ADB:

* first, we will put our device in fastboot mode

adb reboot bootloader

* Once in bootloader mode, we put the following (with this command we will verify that our device is displayed correctly):

fastboot devices

* Then we send the modified boot.img to the device with the following command (This command is to test if APatch can work without problems before patch boot definitively) :

fastboot boot boot.img

Once the device is booted, we enter Apatch Manager and enter the key/password we created in step 2.

If it starts correctly, we can patch the boot without any problem.

5. To permanently patch our device, we do almost the same as in the previous step:

adb reboot bootloader

fastboot devices

Then we send the modified boot.img to the device with the following command:

fastboot flash boot boot.img

fastboot reboot

Once we verify that our root with Apatch is ready, I recommend doing a factory reset of the device, just to rule out any problems, do not forget to reinstall Apatch Manager and put your password and ready.

With this we will have root on our device, without TWRP and ready to take advantage of it.

Note about OTA:

Regarding the updates by OTA, as soon as it is available I will update this tutorial to see how to do it without losing APatch.

View attachment 6110530 View attachment 6110531

UPDATE # 2

OTA Updates with APatch (but losing magisk modules)

Fortunately, a few hours after this post came out, OnePlus released an update (CPH2581_14.0.0.802 - EX01), so I'm going to take advantage of it to explain how to update with APatch.

History: The first time I tried it I did something wrong and although the root was kept, all the modules I had were removed, :/ so let's do it the best way for you.

1. Download full OTA from Oxygen Update (You can select Full Ota in settings > Update Method>Select "Stable (Full)"). So the only change is you spend more time to download the package.

Differences between Full OTA and Incremental OTA is the size (without considering the technical aspects).

Example:

Full OTA = 6.5GB

Incremental OTA= 850 MB

View attachment 6119821

1.1 Optional: Save the OTA file on your PC only for precaution or if something bad happened.

2. Go to Apatch Manager and disable or remove “AndroidPatch” (at the moment that you disable AndroidPatch, all Magisk modules will be deleted and the LSPosed modules will keep in the devices, so no problem with LSPosed)

3. Install the OTA normally with the updater; IMPORTANT: Do not restart the device.

4. When it has been updated and asks to reboot, go to Apatch Manager again and select the icon of a phone with a down arrow, it will open installation options and select “Install in an inactive slot (After OTA)”, even if it asks you to reboot, do not do it.

5. Go back to the OTA updater and hit reboot, then the device will be updated and Apatch still alive but without Magisk/KSU modules.

6. Just to make sure, in APatch Manager, go to the phone and arrow icon, select "patch and install" to patch the update boot and reboot, that would be it.

View attachment 6119829 View attachment 6119830 View attachment 6119831

Explanatory note:

This was the way that worked for me the first time I tried to update it, please, in case it doesn't work let me know and in the next OTA update that comes out (because this is my main device) I will update the post with another method I find or if you know a better way to keep Apatch with its modules intact let us know.