Files
oam/knowledge base/magisk.md
2022-05-15 00:24:53 +02:00

941 B

Magisk

TL;DR

This procedure works for a OnePlus 5 phone.

  1. download the os' recovery-flashable zip file

  2. extract the boot.img file from the zip file

  3. open the Magisk app

  4. press the Install button on the Magisk card

  5. choose Select and Patch a File under Method

  6. select the boot image; the Magisk app will patch the image to [Internal Storage]/Download/magisk_patched_<random strings>.img

  7. copy the patched image to your computer using the file transfer mode or adb:

    adb pull /sdcard/Download/magisk_patched_<random strings>.img
    
  8. reboot the device to the bootloader (fastboot)

  9. flash the modified boot image:

    sudo fastboot flash boot path/to/modified/boot.img
    
  10. reboot to the system

Further readings