-
Notifications
You must be signed in to change notification settings - Fork 5.4k
magiskboot
TheWildJames edited this page Sep 2, 2026
·
1 revision
Use the official magiskboot build — works on Android and Linux.
See Installation for prerequisites, supported versions, and risks.
- Get your device's stock
boot.img. - Download the AnyKernel3 ZIP for your kernel version from Releases.
- Unpack the ZIP and get the
Imagefile (the KernelSU kernel).
Android — via adb + libmagiskboot.so
Folder structure on device (/data/local/tmp/):
/data/local/tmp/
├── magiskboot
├── boot.img
└── Image
- Download latest Magisk from GitHub Releases.
- Rename
Magisk-*(version).apktoMagisk-*.zipand unzip. - Push
libmagiskboot.soto device:
adb push Magisk-*/lib/arm64-v8a/libmagiskboot.so /data/local/tmp/magiskboot- Push
boot.imgandImage:
adb push boot.img /data/local/tmp/
adb push Image /data/local/tmp/- Make executable:
adb shell
cd /data/local/tmp/
chmod +x magiskboot- Unpack:
./magiskboot unpack boot.img- Replace kernel:
mv -f Image kernel- Repack:
./magiskboot repack boot.img- Test:
fastboot boot new-boot.img - Flash:
fastboot flash boot new-boot.img
Linux — official magiskboot
Folder structure on PC:
.
├── magiskboot
├── boot.img
└── Image
- Prepare
boot.imgandImageon PC. - Make executable:
chmod +x magiskboot - Unpack:
./magiskboot unpack boot.img - Replace:
mv -f Image kernel - Repack:
./magiskboot repack boot.img - Test:
fastboot boot new-boot.img - Flash:
fastboot flash boot new-boot.img