Home » Magisk » [FIX]Magisk Install Error 1 In TWRP Recovery

[FIX]Magisk Install Error 1 In TWRP Recovery

Spread the love

(Updated 7/14/17 - CURRENT: MAGISK V13.2)

How do I fix ERROR 1 when installing Magisk in TWRP?

A lot of android users have ran into this issue at some point or another, including myself. You went to flash the latest Magisk.zip and TWRP reports error 1. If you review the logs it usually will fail at backing up the boot.img before being patched by Magisk, good news is that this is a very easy fix! This method should work on ANY android version/phone. This issue comes from having Systemless SuperSu by Chainfire installed, as I have stated before Magisk and SuperSu don't play well together and it causes issues.

 

1. Flash STOCK BOOT.IMG

  1. Locate a Stock BOOT.img file for your device/rom. This can usually be found in ROM zip file or your TWRP backups.
  2. Flash your BOOT.img with either fastboot / TWRP / App.

       Fastboot method:

  1. Boot your phone into bootloader mode with adb command "adb reboot bootloader"
  2. Issue the fastboot command "fastboot flash boot boot.img"
  3. Reboot back into android "fastboot reboot"

      TWRP:

  1. Place your BOOT.img on your sdcard
  2. Reboot into TWRP recovery
  3. Tap "Install"
  4. In the bottom right corner tap "Install Image"
  5. Select your BOOT.img
  6. Select the Boot Partition, then swipe to confirm Flash

      App (Flashify):

  1. Download Flashify
  2. Install and open app
  3. Grant Root permissions
  4. Select "Boot Image" from main page
  5. Find and select your Boot.img
  6. Confirm the Flash

2. Flash the UnSU.zip and magiskuninstaller.zip

  Sometimes Magisk simply will not flash because SuperSu and or an old version of Magisk is already installed. This can be corrected by flashing the Unsu.zip to remove SuperSu and the magiskuninstaller.zip to remove any outdated versions of Magisk already installed.

Simply download the zip files from their development page and flash in your custom recovery.

 

3. Manually delete Magisk files from /data

Okay, so you have tried flashing a stock boot.img for your ROM/device, flashed all the SU uninstallers but magisk still won't install, there has to be other solutions!  It seems as if Magisk install errors are endless. This is my personal last ditch effort to get Magisk to install properly and has worked 99% of the time if everything else fails:

  • Connect your phone to your PC and open an ADB SHELL. You will need root to do this as well as the following steps. If your device isn't rooted yet then simply reboot into your custom recovery of choice to do the following commands.
  • Change directories to /data
  • Use the command "rm" to remove ALL Magisk related files in the root of /data. EXAMPLE: "rm -r magisk" "rm magisk.img" "rm magisk_debug.log"
  • reboot your phone for good measure then try installing Magisk again

 

 

I really hope all the information shared with you today will enable you to get Magisk properly installed on your device. If this helped you in any way or you want to share your methods on remedying this error then comment below!

 

 

 

 

You should now be able to Flash Magisk in TWRP without any more errors

 

 

6 thoughts on “[FIX]Magisk Install Error 1 In TWRP Recovery

  1. Yoh Toledo says:

    Hi,

    i am using your stock rom with busybox and pre rooted and I got the error 1 in twrp so i followed this guide. unfortunately, i still get the same error. i used the boot.img that came w/ the s rom.

    1. Yoh Toledo says:

      Same issue with the stock rom untouched and DraX rom, I used your autoroot to have supersu and magisk auto installed.. what is wrong?

      1. ieatgravity says:

        You only need one or the other. Do not install SuperSU and magisk at the same time. This is what causes the error 1

        1. Yoh Toledo says:

          Hi ,
          Thank you for the update. I’ll try out just flashing Magisk and hopefully it works on this one. I badly need the audio tweaks to work because the dolby I flashed, if I remove it from recent apps the audio tweak disappears.

          BTW, are you experiencing the garbage screen on any of your ROMS?
          What I mean by garbage is the one that looks like rainbow but with old analog style TV look. If you turn off and on the screen, it would disappear though.

          A user whom I shared your ROM said it happened on DraX but I never had the issue.

          Thanks!

  2. i have this error
    updating partition details…
    failed to mount ‘/oem’ (invalid argument)
    …done
    full SELinux support is present
    MTP enabled
    Installing zip file ‘/sdcrd/Magisk-v13.3.zip
    checking for MD5 file
    skipping MD5 check : no MD5 file found
    updater process ended with error
    error installing Magisk-v13.3.zip
    updating partition details
    failed to mount ‘/oem’ (invalid argument)
    …done
    what do you think went wrong and how do i fix it?

  3. HOLA. LO SOLUCIONE, MMM TIENEN QUE INSTALAR EL “TWRP”, LA ULTIMA VERSION Y A UNA NUEVA BOOT Y INSTALAN LA ZIP DE MAGISK.

Leave a Reply