

If your device has boot ramdisk, get a copy of the boot.img (or init_boot.img if exists). If you are using a Samsung device that is launched with Android 9.0 or higher, you can now jump to its own section.

Fortunately, as far as we know, only some Xiaomi devices are known to have this property, so most people can simply ignore this piece of information.) There is no way to detect this, so the only way to know for sure is to actually try. In this case, you will have to follow the instructions as if your device’s boot partition does include ramdisk. (Unfortunately, there are exceptions as some devices’ bootloader accepts ramdisk even if it shouldn’t. If your device does not have boot ramdisk, read the Magisk in Recovery section before continuing. The result of Ramdisk determines whether your device has ramdisk in the boot partition. Your device’s bootloader has to be unlockedĭownload and install the latest Magisk app.If you plan to also install custom kernels, install it after Magisk.This tutorial assumes you understand how to use adb and fastboot.The following tutorial is only for the initial installation. If you already have Magisk installed, it is strongly recommended to upgrade directly via the Magisk app using its “Direct Install” method.
