-
Notifications
You must be signed in to change notification settings - Fork 128
Home
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
SELinux is very bad, it can lead to serious security issues. SELinux Permissive will cause some Magisk traces to be more easily detected. An example when SELinux is Permissive, any apps can switch to u:r:magisk:s0
context to verify magisk, Enforcing normally prevent apps from switching context. Currently Android-x86 is using SELinux because developers do not address this problem yet. You can prevent magisk traces from being detected by using Hidden Permissive.
No, you can't. Android-x86 is counted as emulator. Google does not allow Safetynet passed on emulators
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 conflict if user install Android x86 build that come with rusty-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
Magisk and Zygisk will not work if SELinux is disabled. Please do not turn off SELinux and use SELinux Permissive.