Root method checker
Answer the questions and get the image to patch and the command to flash it. The logic follows Magisk's installation guide and the rules Magisk's own installer uses to pick an image. It runs in your browser on your answers; it doesn't read your phone.
Last updated 7 sourcesHow we check pages
Your phone
Result
Choose your answers above.
How to answer each question
1. Samsung
Samsung phones are patched and flashed differently (a whole AP firmware file, flashed in Download mode), so they get their own result. Check Settings → About phone if you are not sure.
2. Ramdisk
Install the Magisk app on the phone; it doesn't need root to show this. The home screen lists Ramdisk: Yes or No. Magisk's script answers Yes for every A/B phone, and No for older non-A/B phones that use the legacy system-as-root layout, which have no ramdisk in boot.
Where to find Ramdisk
- Ramdisk: Yes means your boot image has a ramdisk: patch
init_boot.imgorboot.img. No means patchrecovery.imginstead. - Before you install, the Magisk card says Not Installed. That's expected; the app works without root.
3. init_boot.img in the firmware
Look inside the firmware package for the exact build you run (where to get it: getting the stock image):
- Folder of
.imgfiles (fastboot ROMs, Pixel factory images after unzipping the innerimage-*.zip): look forinit_boot.img. - OTA zip with
payload.bin: list the partitions withpayload-dumper-go -l payload.bin. - Samsung
APtar:tar -tf AP_*.tar.md5listsinit_boot.img.lz4if it is there.
AOSP moved the ramdisk into init_boot for phones launching with Android 13. Phones upgraded to Android 13 or later keep their original layout. The Android versions page lists what each version changed.
4. Kernel version
Magisk's installer only uses init_boot when the kernel is newer than Android 12 GKI: some phones have an init_boot partition but still run an Android 12 kernel. Run adb shell uname -r (or see Settings → About phone → Android version → Kernel version on many phones). A release such as 5.10.x-android12-... or anything 5.4 and older means boot.img; 5.15.x-android13-... or 6.1.x-android14-... means init_boot.img.
The rules
The rules the checker follows
- YesPatch the
APtar; tick Recovery Mode if Ramdisk is No - NoRamdisk in the Magisk app?
- NoPatch
recovery.imgwith Recovery Mode ticked - YesFirmware contains
init_boot.img?- NoPatch
boot.img(vendor_boot.imgon a few devices) - YesKernel is Android 12 GKI or older?
- YesPatch
boot.img - NoPatch
init_boot.img
- Yes
- No
- No
find_boot_image and check_boot_ramdisk scripts. The kernel rule is the is_gt_gki_13 check in Magisk's source.| If… | Patch | Flash with |
|---|---|---|
| Samsung Galaxy | The firmware's AP_*.tar.md5 (tick "Recovery Mode" if Ramdisk is No) | Download mode, together with BL, CP and CSC (see the Samsung guide) |
| Ramdisk: No | recovery.img, with "Recovery Mode" ticked | fastboot flash recovery … |
Firmware has init_boot.img and a kernel newer than Android 12 GKI | init_boot.img | fastboot flash init_boot … |
No init_boot.img, or an Android 12 GKI or older kernel | boot.img | fastboot flash boot … |
Ramdisk lives in vendor_boot (a few devices) | vendor_boot.img | fastboot flash vendor_boot … |
Questions people ask
My firmware has both boot.img and init_boot.img. Which one?
That is normal for phones that launched with Android 13 or later: boot holds the kernel and init_boot holds the ramdisk (AOSP). Patch init_boot.img, unless the kernel is Android 12 GKI or older (question 4).
What happens if I patch the wrong image?
Usually the flash works but Magisk never starts and the app shows Not Installed (v31.1) or Installed: N/A (v30.7), or the phone doesn't boot. Flash the stock image back to the same partition and patch the right one. See bootloop after flashing.
The app says Ramdisk: No on my Xiaomi
Magisk's guide notes that some Xiaomi devices accept a boot ramdisk even when the app says No, and the only way to know is to try. Patch boot.img first and keep the stock image ready to flash back.
How do I know my phone uses vendor_boot?
The Magisk app can't tell you; it only applies to a few devices, and their community guides say so. If boot.img has no ramdisk but your device's guide points to vendor_boot, patch that (Magisk v30.3 and later).
Does the Samsung result apply on One UI 8?
No. One UI 8 removed the bootloader unlock option, and US and Canada models can't be unlocked at all, so Magisk can't be installed. See the Samsung guide.
Does A/B matter for the choice?
Only for the Ramdisk answer: Magisk treats every A/B phone as having a boot ramdisk, so the recovery method never applies. When you flash, fastboot writes the active slot. See A/B slots.
Sources
This page is written from the sources below. If anything here disagrees with them, the upstream source is correct.
- Magisk installation guide (topjohnwu)
- util_functions.sh: find_boot_image and the init_boot kernel check (Magisk source)
- app_functions.sh: Ramdisk and A/B detection, restore_imgs (Magisk source)
- Generic boot partition and init_boot (Android Open Source Project)
- Implement A/B updates: slot suffixes and fastboot variables (Android Open Source Project)
- payload-dumper-go README (ssut)
- Magisk changelog (topjohnwu)
Found a mistake or something out of date? Tell us and we will check it against the source and fix the page. Confirmed corrections are listed in the corrections log.
Report a problem with this page