How to Root Custom ROMs via APatch
In this video, we will show you the steps to root your Custom ROM via APatch. There are quite a few ways through which you can root a custom ROM, with Magisk being the one that’s used by many. However, we are witnessing a slight change in recent times with many users inclining toward the likes of KernelSU and APatch. The reason for the same is the fact that many banking and payment apps are now able to easily identify a rooted device if it’s done via Magisk, whereas that is still not the case with the other two.
Talking about the other two, both of them take the Kernel approach for rooting, with the former usually requiring a custom pre-patched kernel or requiring you to patch the kernel yourself , both of which might prove to be a tad bit complicated and time-consuming. This is why going for APatch might be your best bet. And in this guide, we will be opting for just that. So without further ado, let’s get started.
- How to Root Custom ROMs via APatch IMPORTANT NOTES ROOTING STEPS
How to Root Custom ROMs via APatch

Before starting, please take a backup of all the data on your device, just to be on the safe side. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device, and data by performing the below steps.
IMPORTANT NOTES

- Nowadays, most custom ROMs already come pre-rooted via a custom kernel [you can verify the same by installing the KernelSU/KernelSU Next app]. In such cases, the APatch method will not work. Even if you still try it out, your device will end up in a bootloop, and you’ll have to either reflash the boot.img or change slots to fix the issue.
- APatch always requires boot.img. Even if your device came with Android 13 or a higher version out of the box, you’ll still have to use boot.img, instead of init_boot.img. [This is in stark contrast to Magisk, which uses init_boot for Android 13+ devices.]
ROOTING STEPS
- Download and extract the Android SDK Platform Tools on your PC.
- Then unlock the bootloader on your device [it will reset your device].
- Now download the same firmware that is currently installed on your device.
- You may then verify the same from Settings > About Phone > Build Number.
- Then extract the boot.img file from that firmware. Here’s how it can be done: Pixel: Download Factory Image and extract the ZIP. OnePlus: Download Full Firmware > Extract payload.bin via Fastboot Enhance . Xiaomi: Download Fastboot ROM > Extract TGZ and TAR via 7ZIP > Go to Images.
- Once you have got the boot.img file, transfer it to the platform tools folder.
- Now, download and install the latest version of APatch on your device.
- Then launch it and tap on the install icon at the top right [NOTE: We are using the Automatic Flashing Method as it is the easier and shorter one. If you want to try out the Manual Method, then do check out the section with the same name at the end of this guide.
- Now choose Select a Boot Image to Patch and select the stock boot.img file.
- Then tap on Set SuperKey, set your key, and hit OK. The length of Superkey should be at least 8 characters, in alphanumeric format.
- Do not use weak keys like 1234abcd. The latest version of the app might not even let you set weak keys, which is definitely a welcome move from the security point of view [ah, an unlocked device with root talking about security, the irony!].
- APatch will patch the boot.img and place it inside the Downloads folder.
- Transfer it to the platform tools folder and open Command Prompt there.
- Now enable USB Debugging on your device and connect it to PC via USB.
- Then use the below command to boot your device to the Fastboot Mode: adb reboot bootloader
- Now, if you want to temporarily test this patch file, then boot this file using the below command and then start from STEP 19 to make the root permanent: fastboot boot apatched_boot.img
- On the other hand, if you want to make the root permanent, then directly flash the patched file as follows: fastboot flash boot apatched_boot.img
- Now reboot your device to the rooted OS via the below command: fastboot reboot
- Then launch APatch and tap on SuperKey.
- Now, enter the Superkey that you had set earlier.
- You should now get the Working status under Kernel Patch.
- Finally, hit Install next to AndroidPatch and restart your device.
- Rooting via Magisk/KernelSU/APatch: Boot or Init Boot
- How to Enable Zygisk in KernelSU and APatch
- Root Android via APatch: Give SU Access | Flash Module | Install OTA
- How to Flash a Custom Kernel on Android [3 Methods]
(Cancel Reply)
Δ