Disclaimer: You do this at your own risk! I’ve been running my phone this way only for about an hour, this might still eat your data, make backups!
I managed to get Magisk working, here’s what you need:
-
Unlocked bootloader
-
adb & fastboot
-
Magisk app installed
-
Either the stock boot.img provided by Fairphone (check Settings → About phone → Build number for the version you need, just use the newest one if you are on a version not yet available)
-
Or, if running an OS other than stock, the
boot.img
that’s being shipped with your ROM.
Step-by-step:
-
Patch the downloaded stock boot.img with Magisk
-
Transfer / adb pull that patched boot.img to your PC
-
Reboot to fastboot
adb reboot bootloader
and temporarily boot from the patched boot.imgfastboot boot /path/to/patched_boot.img
Do not flash that boot.img!!! -
Wait for the device to boot (took a bit longer than usual)
-
Open the Magisk app (press Cancel when asked to perform Additional Setup), choose direct install and reboot
-
Have fun
I tried to directly flash a patched stock boot.img, pulled boot_a and boot_b from the phone and patched those, but never could get Wi-Fi working (despite the hint in the developer docs). This way finally worked
Performing an OTA update with Magisk installed: