User Tools

Site Tools


android:oneplus:lineageos-magisk

This is an old revision of the document!


Reinstall Magisk on LineageOS


Installation options

After installation of new LineageOS release Magisk and root access are removed. This page describes few options reinstall Magisk.

On Magisk's webpage https://topjohnwu.github.io/Magisk/install.html two different options are presented:

  • If Magisk is still installed, it is strongly recommended to upgrade directly via the Magisk app using its “Direct Install” method. If this does not work, follow one of the following options.
  • Installation via patching boot.img. See: https://topjohnwu.github.io/Magisk/install.html
  • Installation zipped apk via custom recovery

Via Custom Recovery

This method worked for me (April 19th, 2025), but is not recommended on Magiks webpage: “Installing using custom recoveries is only possible if your device has boot ramdisk. Installing Magisk through custom recoveries on modern devices is no longer recommended. If you face any issues, please use the Patch Image method.”

  1. Download the Magisk APK
  2. Rename the .apk file extension to .zip, for example: Magisk-v24.0.apk → Magisk-v24.0.zip.
  3. Flash the zip just like any other ordinary flashable zip.
  adb -d reboot sideload
  adb -d sideload /path/to/zip
  1. click Advanced, then Reboot to Recovery, then when your device reboots
  2. Reboot and check whether the Magisk app is installed. If it isn’t installed automatically, manually install the APK.
  3. Launch the Magisk app; it will show a dialog asking for reinstallation. Do the reinstallation directly within the app and reboot (if you are using MTK devices that lock the boot partition after boot, please patch the boot image and flash it by custom recovery or fastboot).
android/oneplus/lineageos-magisk.1745133531.txt.gz · Last modified: by oscar