How to install initrd magisk - HuskyDG/initrd-magisk GitHub Wiki
Download/Build
There are two way:
- Use pre-build image from release page
- Fork or clone this repo, and run GitHub action to build
initrd-magisk.img
andboot-magisk.img
Only Support Magisk Delta for now
Installation
For initrd-magisk v1.19+
In Android x86 directory will be like this:
-
In Android-x86 directory, create a new folder named
boot
, moveinitrd.img
toboot
folder. -
Put
initrd-magisk.img
asinitrd.img
in Android-x86 directory -
Put
boot-magisk.img
inboot
Android-x86 directory -
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
- ...
-
In Android-x86 directory, rename
initrd.img
toinitrd_real.img
and putinitrd-magisk
asinitrd.img
.Or put
initrd-magisk.img
into Android-x86 directory. Search for kernel cmdlineinitrd /$SOURCE_NAME/initrd.img
in GRUB custom code and change it toinitrd /$SOURCE_NAME/initrd-magisk.img
-
Put
boot-magisk.img
into Android-x86 directory -
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 bootinitrd-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.