Skip to content

Instantly share code, notes, and snippets.

@eexit
Last active February 7, 2021 06:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eexit/e6d5fc0984e1c7f25376d3dafa819792 to your computer and use it in GitHub Desktop.
Save eexit/e6d5fc0984e1c7f25376d3dafa819792 to your computer and use it in GitHub Desktop.

Rooting Moto Z2 Play

Guide to root your device without installing a custom recovery.

Requires:

Tested on XT1710-09 ALBUS RETEU NPS26.118-9.

Initial setup

  • Boot your phone normally as new or after a factory reset
  • During the setup: enable File-Based Encryption (encryption at boot)
  • Reboot in bootloader

Backup the ROM

  • Boot with TWRP: $ fastboot boot albus_twrp.img
  • Enter your FBE password: it must work! (turn off screen and turn it back on if not responsive)
  • Tap on Read Only
  • Go in Backup menu
  • Select
    • System
    • Data
    • Boot
    • Recovery
    • EFS
    • logo
  • In Options, pick Enable compression
  • Swipe to Backup
  • Don't reboot

Pull backup

From your computer:

$ adb pull /sdcard/TWRP/BACKUPS/ .

Root the device

  • Go back in main menu
  • Go in Advanced
  • Go in ADB Sideload
  • Tick both Wipe Dalvik Cache and Wipe Cache checkboxes
  • Swipe to Start Sideload

From your computer:

$ adb sideload Magisk-v14.3\(1437\).zip
  • Reboot
  • Open Magisk Manager app
  • Enjoy!

Update Magisk

When Magisk Manager notifies you about a newer version available, install it using the Direct Install mode.
No particular process for updating Magisk Manager, update it as a normal application.

Unroot the device

  • Launch the Magisk Manager app
  • Tap Uninstall
  • Restore Stock Boot
  • Reboot

Device encryption has never been disabled so unrooting the device won't end up in a boot-loop. From now, you should be able to install an OTA update.

Bonus: Remove Bootloader Warning message.


Thanks to the XDA Community and especially thedoginthewok.

@sirkuttin
Copy link

Thanks for this guide.

I had an issue fastboot flashing twrp. I was getting an unsigned or corrupt message.

Instead after I fastboot booted into twrp, i did an adb push of the twrp img file and installed from inside of twrp.

@m0yP
Copy link

m0yP commented Mar 30, 2018

The TWRP version you suggest does not decrypt data. Tried this one and got it working. Everything else is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment