For boot.img with OSIP header (e.g. ZenFone 5 A500CG)
- Grab debug version of Magisk.zip and put in this directory.
- Grab stock boot.img and put in this directory.
- Connect device to compute and turn of USB debugging.
- Execute
patch.sh
orpatch.bat
to patch boot.img. - Flash patched boot.img (magisk_patched.img) to your device
fastboot flash boot magisk_patched.img