How to install initrd magisk - HuskyDG/initrd-magisk GitHub Wiki

Download/Build

There are two way:

  1. Use pre-build image from release page
  2. Fork or clone this repo, and run GitHub action to build initrd-magisk.img and boot-magisk.img

Only Support Magisk Delta for now

Installation

For initrd-magisk v1.19+

In Android x86 directory will be like this:

image

  1. In Android-x86 directory, create a new folder named boot, move initrd.img to boot folder.

  2. Put initrd-magisk.img as initrd.img in Android-x86 directory

  3. Put boot-magisk.img in boot Android-x86 directory

  4. Boot into Android x86, install and open Magisk app. Enjoy ~~

For initrd-magisk v1.18

In Android x86 directory will be like this:

- ...
- boot-magisk.img ← Boot image will be loaded by initrd-magisk
- data.img or data folder ← userdata will be stored inside this
- findme
- initrd.img (initrd-magisk.img) ←initial ramdisk will be loaded by kernel
- initrd_real.img (initrd.img) ← Original initrd image will be loaded by initrd-magisk
- install.img
- kernel
- ramdisk.img ← exist if using rootfs method for Android root directory
- system.img ← Android system files are stored inside this image
- ...
  1. In Android-x86 directory, rename initrd.img to initrd_real.img and put initrd-magisk as initrd.img.

    Or put initrd-magisk.img into Android-x86 directory. Search for kernel cmdline initrd /$SOURCE_NAME/initrd.img in GRUB custom code and change it to initrd /$SOURCE_NAME/initrd-magisk.img

  2. Put boot-magisk.img into Android-x86 directory

  3. Boot into Android x86, install and open Magisk app. Enjoy ~~

Update Magisk

  • Update Magisk app and do Direct Install.

Uninstall

There way to remove Magisk from system:

  • From Magisk app: Open Magisk app and do Uninstall Magisk β†’ Complete uninstall (remove all magisk and its modules) or Restore boot image (remove magisk only).

  • Reset boot image: Remove boot-magisk.img, the next boot initrd-magisk will create new boot image.

  • Remove initrd-magisk

Important

  • rusty-magisk is the broken Magisk implementation, using initrd-magisk along with rusty-magisk will cause unexpected bugs.
  • If you update Android-x86 OTA, it might wipe out initrd.img so you might need to do again.