9
Keep Root with Magisk with OTA updates

  1. Anurag_Shrivastav
    Eclair Sep 26, 2018

    Anurag_Shrivastav , Sep 26, 2018 :
    Updated on 12/6/2019

    I have seen multiple post about people loosing root access after the OTA.. I have jotted down the below the instructions on how to retain root access after OTA updates.

    Follow this steps... 1.Magisk Manager → Uninstall → Restore Images). Do not reboot or you will have Magisk uninstalled.
    2. Now Update the system and let it install completely. Do not press the reboot button.
    3. Now install TWRP A/B Retention Script from Magisk Manger. This module is available on Magisk (if you have twrp as custom recovery) Skip this if you do not have TWRP installed
    4. Go to (Magisk Manager → Install → Install to Inactive Slot) and install Magisk.
    5.Once Magisk installation is done, press the reboot button in Magisk Manager.

    Your phone may get into bootloop once, if that happens just restart the phone again.

    Voila now you have your OnePlus updated and You also have Magisk installed with root access
     
    Last edited: Jun 25, 2019

    #1
  2. Mr. Vandelay
    Jelly Bean Sep 26, 2018

    Mr. Vandelay , Sep 26, 2018 :
    Or just download and flash the full rom and install magisk, that's it.
     

    #2
    Icebird00 and thedarkpresence_ like this.
  3. Anurag_Shrivastav
    Eclair Sep 26, 2018

    Anurag_Shrivastav , Sep 26, 2018 :
    You would require TWRP to install magisk..
     

    #3
  4. Mr. Vandelay
    Jelly Bean Sep 26, 2018

    Mr. Vandelay , Sep 26, 2018 :
    Obviously.
     

    #4
  5. Anurag_Shrivastav
    Eclair Sep 26, 2018


    #5
  6. Mr. Vandelay
    Jelly Bean Sep 26, 2018

    Mr. Vandelay , Sep 26, 2018 :
    huh, nope you don't have to flash twrp again.

    Download the full update to the internal storage >> Reboot to Twrp >> install the rom and right away install magisk >> wipe cache and reboot. That's it.

    If you don't install magisk right after installing the update then you will loose twrp.
     

    #6
  7. Mr. Vandelay
    Jelly Bean Sep 26, 2018

    Mr. Vandelay , Sep 26, 2018 :
    Fllow this please
    https://forum.xda-developers.com/showpost.php?p=76596833&postcount=3
    by Funk Wizard
     

    #7
    EaGllE likes this.
  8. L1531558684761
    Donut Apr 25, 2019

    L1531558684761 , Apr 25, 2019 :
    After this "tutorial" my phone did get bootloop. Restarted to stock recovery and now whenever I boot up I get instantly message: "shutting down" and get back to stock recovery again :( please advice
     

    #8
  9. Artemus.
    Community Hero 2020 Apr 25, 2019

    Artemus. , Apr 25, 2019 :
    Just reflash TWRP and Magisk.
     

    #9
    Caomhin likes this.
  10. L1531558684761
    Donut Apr 25, 2019


    #10
  11. Artemus.
    Community Hero 2020 Apr 25, 2019

    Artemus. , Apr 25, 2019 :
    Yeah. The way you normally do it.
     

    #11
    Caomhin likes this.
  12. G_Joe_Sauce_xJvo
    Cupcake Apr 26, 2019

    G_Joe_Sauce_xJvo , Apr 26, 2019 :
    Ok, so we install the OTA update, and if necessary reinstall magisk with twrp (and possibly twrp again)..my main concern is in regards to unlocking the bootloader...if I've already done the unlock through Motorola on my Moto x4 and ADB will an OTA update change the bootloader status? And if so, will the same key work again?
     

    #12
  13. Artemus.
    Community Hero 2020 Apr 26, 2019

    Artemus. , Apr 26, 2019 :
    Wait, you're asking about a Motorola phone on the OP forum or are you using this as an example?
     

    #13
    Caomhin and ironass like this.
  14. ironass
    Lollipop Apr 26, 2019

    ironass , Apr 26, 2019 :
    Doesn't work on my Nokia 3210. ;)
     

    #14
    rhyd1am, Caomhin, Auristic and 2 others like this.
  15. Anurag_Shrivastav
    Eclair Jun 12, 2019


    #15
    ironass likes this.
  16. J1560613467987
    Cupcake Jun 15, 2019

    J1560613467987 , Jun 15, 2019 :
    you can install magisk it is very useful when you are compared to the SuperSU, you can stay rooted and you can get your OTA updated this www.magiskinstaller.com website will guide you through how to root your oneplus device
     

    #16
  17. Z1560786532969
    Cupcake Jun 17, 2019

    Z1560786532969 , Jun 17, 2019 :
    Greetings.
    I got an op5t and thought I could follow those steps. Unfortunatly the system updater asks me to reboot BEFORE the OTA update. But with that i'm afraid to loose root. I'd really like to keep root.

    Also is it better to hide system updater from root via magisk or doesnt IT Matter?

    Thanks in advance
     

    #17
  18. RonanDjinnTetsu
    Froyo Jun 25, 2019

    RonanDjinnTetsu , Jun 25, 2019 :
    Believe it or not twrp is an obsolete project, which 8s why you want to avoid it. Unfortunately devices without a/b partitions are left out in the dark with twrp less root. Twrp has caused so much petty issues, and is only a requisite to obsolete custom rom community.
     

    #18
  19. V1559205290194
    Cupcake Jul 21, 2019

    V1559205290194 , Jul 21, 2019 :
    My 7 Pro gets stuck in recovery after each reboot. Internal Storage is also being shown as 0 mb. So had to reflash TWRP using my PC. Then flashed TWRP installer script and then Magisk.
     

    #19
  20. Q1550713901178
    Cupcake Jul 24, 2019

    Q1550713901178 , Jul 24, 2019 :
    This is what is happening to me.
    If I go back into the other slot and reboot to recovery, I can flash TWRP (both slots), but when I flask Magisk it only flashes the slot I have been using. Magisk won't flash the slot I'm trying to apply the update to.
    Any advice/suggestions/explanations?
     

    #20
    boff_hell_Joe likes this.