-
Notifications
You must be signed in to change notification settings - Fork 128
Home
Takeda-senpai edited this page Jun 29, 2022
·
36 revisions
Welcome to the initrd-magisk wiki!
initrd-magisk supports Magisk v22+
-
initrd-magisk
provides boot image support for Android x86 so you can just update any Magisk version from Magisk app.
- You can also manually patch
boot-magisk.img
in Android x86 directory.
Almost Android-x86 projects come with root. Please remove built-in root, Read here
No, you can't.
It's used for storing Magisk binaries after patching boot image with Magisk and will be loaded by initrd-magisk. It is not used by Android-x86 by anyway.
Boot your Android x86 with FIXFS=1
or SAFEMODE=1
flag. initrd-magisk will disable all magisk modules. After that you can manage your modules in Magisk app.
Magisk is always activated in /dev/<random_string>
to avoid built-in rusty magisk in Android x86 build breaking the standard of Magisk
-
initrd-magisk
provides the way to access your Android x86 though$(magisk --path)/.magisk/mirror/android
MAGISKTMP=$(magisk --path)
OROOT=$MAGISKTMP/.magisk/mirror/android
[ ! -e "$OROOT" ] && { echo "! Please use lastest initrd-magisk"; exit 1; }
BOOTIMAGE=$OROOT/boot-magisk.img
# you can use:
# BOOTIMAGE=/dev/block/by-name/boot
KERNEL=$OROOT/kernel
ANDROID_SYSTEM=$OROOT/system.sfs
[ ! -e "$ANDROID_SYSTEM" ] && ANDROID_SYSTEM=$OROOT/system.img
[ ! -e "$ANDROID_SYSTEM" ] && ANDROID_SYSTEM=$OROOT/system
ANDROID_DATA=$OROOT/data
[ ! -e "$ANDROID_DATA" ] && ANDROID_DATA=$OROOT/data.img
[ ! -e "$ANDROID_DATA" ] && ANDROID_DATA=/dev/block/by-name/data
This is ROM or kernel issue or might be unfixable.