Skip to content

Instantly share code, notes, and snippets.

@eexit
Last active February 7, 2021 06:35
Show Gist options
  • Select an option

  • Save eexit/e6d5fc0984e1c7f25376d3dafa819792 to your computer and use it in GitHub Desktop.

Select an option

Save eexit/e6d5fc0984e1c7f25376d3dafa819792 to your computer and use it in GitHub Desktop.

Revisions

  1. eexit revised this gist Nov 29, 2017. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions Rooting Moto Z2 Play.md
    Original file line number Diff line number Diff line change
    @@ -56,6 +56,12 @@ From your computer:
    - Open <q>Magisk Manager</q> app
    - Enjoy!

    ## Update Magisk

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


    ## Unroot the device

    - Launch the <q>Magisk Manager</q> app
  2. eexit revised this gist Nov 17, 2017. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion Rooting Moto Z2 Play.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,6 @@ Tested on `XT1710-09 ALBUS RETEU NPS26.118-9`.

    - 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)
    - <q>Swipe to Unlock</q>
    - Tap on <q>Read Only</q>
    - Go in <q>Backup</q> menu
    - Select
  3. eexit revised this gist Nov 17, 2017. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions Rooting Moto Z2 Play.md
    Original file line number Diff line number Diff line change
    @@ -19,8 +19,7 @@ Tested on `XT1710-09 ALBUS RETEU NPS26.118-9`.
    ## 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
    - Enter your FBE password: it must work! (turn off screen and turn it back on if not responsive)
    - <q>Swipe to Unlock</q>
    - Tap on <q>Read Only</q>
    - Go in <q>Backup</q> menu
  4. eexit revised this gist Nov 17, 2017. 1 changed file with 33 additions and 25 deletions.
    58 changes: 33 additions & 25 deletions Rooting Moto Z2 Play.md
    Original file line number Diff line number Diff line change
    @@ -6,24 +6,23 @@ Requires:

    - Unlocked device
    - [TWRP](https://androidfilehost.com/?fid=673368273298983327)
    - [Magisk](https://forum.xda-developers.com/showpost.php?p=73305223&postcount=22)
    - [DM Verify & Encryption Disabler 5.x](https://androidfilebox.com/miscellaneous/dm-verity-and-forced-encryption-disabler/)
    - [Magisk v14.1+](https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589)

    Tested on `XT1710-09 ALBUS RETEU NPS26.74-38`.
    Tested on `XT1710-09 ALBUS RETEU NPS26.118-9`.

    ## Backup Stock ROM
    ## 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

    - Do a Factory Reset
    - Boot with TWRP: `$ fastboot boot albus_twrp.img`
    - Hit <q>Cancel</q> if encryption password is asked
    - When screen shows <q>Swipe to modify</q>, turn off screen and turn it back on if not responsive
    - Enter your FBE password: it must work!
    - Turn off screen and turn it back on if not responsive
    - <q>Swipe to Unlock</q>
    - Tap on <q>Read Only</q>

    If you were asked for encryption password and hit <q>Cancel</q>:
    - Go to <q>Wipe</q> menu
    - Wipe the device and especially `Data` so the volume is mounted as non-encrypted

    - Go in <q>Backup</q> menu
    - Select
    - `System`
    @@ -32,33 +31,42 @@ If you were asked for encryption password and hit <q>Cancel</q>:
    - `Recovery`
    - `EFS`
    - `logo`
    - In <q>Options</q>, pick `Enable compression`
    - In <q>Options</q>, pick <q>Enable compression</q>
    - <q>Swipe to Backup</q>
    - Stay in recovery once done
    - Don't reboot

    ## Copy backup
    ## Pull backup

    From your computer:

    $ adb pull /sdcard/TWRP/BACKUPS/ .

    ## Push ZIP files
    ## Root the device

    - Go back in main menu
    - Go in <q>Advanced</q>
    - Go in <q>ADB Sideload</q>
    - Tick both <q>Wipe Dalvik Cache</q> and <q>Wipe Cache</q> checkboxes
    - <q>Swipe to Start Sideload</q>

    From your computer:

    $ adb push ./Magisk-vXXX.zip /sdcard/
    $ adb push ./no-verity-opt-encrypt-5.1.zip /sdcard/

    ## Root the device
    $ adb sideload Magisk-v14.3\(1437\).zip


    Still from the recovery:
    - Reboot
    - Open <q>Magisk Manager</q> app
    - Enjoy!

    ## Unroot the device

    - Go to <q>Install</q> menu
    - Install the ZIP files
    - Clear Dalvik Cache
    - Launch the <q>Magisk Manager</q> app
    - Tap <q>Uninstall</q>
    - <q>Restore Stock Boot</q>
    - Reboot

    All set, your Moto Z2 device is rooted.
    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](https://forum.xda-developers.com/showpost.php?p=67031810&postcount=5).

  5. eexit revised this gist Oct 19, 2017. 1 changed file with 21 additions and 17 deletions.
    38 changes: 21 additions & 17 deletions Rooting Moto Z2 Play.md
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,29 @@
    # Rooting Moto Z2 Play

    Guide to root your device without installing a custom recovery.

    Requires:

    - Unlocked device
    - [TWRP 3.1.1.0](https://forum.xda-developers.com/z2-play/development/twrp-3-1-1-0-moto-g5-plus-albus-t3622593)
    - [Magisk-v13.3](https://forum.xda-developers.com/showpost.php?p=73305223&postcount=22)
    - [TWRP](https://androidfilehost.com/?fid=673368273298983327)
    - [Magisk](https://forum.xda-developers.com/showpost.php?p=73305223&postcount=22)
    - [DM Verify & Encryption Disabler 5.x](https://androidfilebox.com/miscellaneous/dm-verity-and-forced-encryption-disabler/)

    Tested on `XT1710-09 ALBUS RETEU NPS26.74-38`.

    ## Backup Stock ROM

    - Do a Factory Reset
    - Boot with TWRP: `$ fastboot boot twrp_3.1.1-0_albus.img`
    - If encryption password is asked, hit `Cancel`
    - When screen shows <q>Swipe to modify</q>, turn off screen and turn it back on
    - Boot with TWRP: `$ fastboot boot albus_twrp.img`
    - Hit <q>Cancel</q> if encryption password is asked
    - When screen shows <q>Swipe to modify</q>, turn off screen and turn it back on if not responsive
    - <q>Swipe to Unlock</q>
    - Tap on <q>Read Only</q>

    If you were asked for encryption password and hit <q>Cancel</q>:
    - Go to <q>Wipe</q> menu
    - Wipe the device and especially `Data` so the volume is mounted as non-encrypted

    - Go in <q>Backup</q> menu
    - Select
    - `System`
    @@ -28,36 +36,32 @@ Tested on `XT1710-09 ALBUS RETEU NPS26.74-38`.
    - <q>Swipe to Backup</q>
    - Stay in recovery once done

    If the `sdcard` volume is not mounted (the Backup will fail), go back and do a `Wipe` (just slide) then try again.

    ## Copy backup

    From your computer:

    $ adb pull /sdcard/TWRP/BACKUPS/ .

    ## Push Magisk
    ## Push ZIP files

    From your computer:

    $ adb push ./Magisk-v13.3_mod_with\(96f8efc\)updater.zip /sdcard/
    $ adb push ./Magisk-vXXX.zip /sdcard/
    $ adb push ./no-verity-opt-encrypt-5.1.zip /sdcard/

    ## Root the device

    - Reboot in bootloader: `$ adb reboot bootloader`
    - Flash TWRP: `$ fastboot flash recovery twrp_3.1.1-0_albus.img`
    - Start the recovery using the volume buttons + start button
    - Turn screen off and on (bug needs to be fixed)
    - <q>Swipe to Unlock</q>
    - <q>Swipe to modify</q>
    Still from the recovery:

    - Go to <q>Install</q> menu
    - Look for `Magisk-v13.3_mod_with(96f8efc)updater.zip` in `/sdcard`
    - Install the zip
    - Install the ZIP files
    - Clear Dalvik Cache
    - Reboot

    All set, your Moto Z2 device is rooted.

    Bonus: [Remove Bootloader Warning message](https://forum.xda-developers.com/showpost.php?p=67031810&postcount=5).

    ---

    Thanks to the XDA Community and especially thedoginthewok.
  6. eexit revised this gist Oct 18, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions Rooting Moto Z2 Play.md
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,7 @@ Tested on `XT1710-09 ALBUS RETEU NPS26.74-38`.

    - Do a Factory Reset
    - Boot with TWRP: `$ fastboot boot twrp_3.1.1-0_albus.img`
    - If encryption password is asked, hit `Cancel`
    - When screen shows <q>Swipe to modify</q>, turn off screen and turn it back on
    - <q>Swipe to Unlock</q>
    - Tap on <q>Read Only</q>
    @@ -27,6 +28,8 @@ Tested on `XT1710-09 ALBUS RETEU NPS26.74-38`.
    - <q>Swipe to Backup</q>
    - Stay in recovery once done

    If the `sdcard` volume is not mounted (the Backup will fail), go back and do a `Wipe` (just slide) then try again.

    ## Copy backup

    From your computer:
  7. eexit revised this gist Sep 7, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Rooting Moto Z2 Play.md
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,7 @@ Requires:
    - [TWRP 3.1.1.0](https://forum.xda-developers.com/z2-play/development/twrp-3-1-1-0-moto-g5-plus-albus-t3622593)
    - [Magisk-v13.3](https://forum.xda-developers.com/showpost.php?p=73305223&postcount=22)

    Tested on `XT1710-09 ALBUS RETEU NPS26.74-38`.

    ## Backup Stock ROM

  8. eexit revised this gist Sep 7, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Rooting Moto Z2 Play.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ Requires:
    - Tap on <q>Read Only</q>
    - Go in <q>Backup</q> menu
    - Select
    - `System Image`
    - `System`
    - `Data`
    - `Boot`
    - `Recovery`
  9. eexit created this gist Aug 7, 2017.
    59 changes: 59 additions & 0 deletions Rooting Moto Z2 Play.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,59 @@
    # Rooting Moto Z2 Play

    Requires:

    - Unlocked device
    - [TWRP 3.1.1.0](https://forum.xda-developers.com/z2-play/development/twrp-3-1-1-0-moto-g5-plus-albus-t3622593)
    - [Magisk-v13.3](https://forum.xda-developers.com/showpost.php?p=73305223&postcount=22)


    ## Backup Stock ROM

    - Do a Factory Reset
    - Boot with TWRP: `$ fastboot boot twrp_3.1.1-0_albus.img`
    - When screen shows <q>Swipe to modify</q>, turn off screen and turn it back on
    - <q>Swipe to Unlock</q>
    - Tap on <q>Read Only</q>
    - Go in <q>Backup</q> menu
    - Select
    - `System Image`
    - `Data`
    - `Boot`
    - `Recovery`
    - `EFS`
    - `logo`
    - In <q>Options</q>, pick `Enable compression`
    - <q>Swipe to Backup</q>
    - Stay in recovery once done

    ## Copy backup

    From your computer:

    $ adb pull /sdcard/TWRP/BACKUPS/ .

    ## Push Magisk

    From your computer:

    $ adb push ./Magisk-v13.3_mod_with\(96f8efc\)updater.zip /sdcard/

    ## Root the device

    - Reboot in bootloader: `$ adb reboot bootloader`
    - Flash TWRP: `$ fastboot flash recovery twrp_3.1.1-0_albus.img`
    - Start the recovery using the volume buttons + start button
    - Turn screen off and on (bug needs to be fixed)
    - <q>Swipe to Unlock</q>
    - <q>Swipe to modify</q>
    - Go to <q>Install</q> menu
    - Look for `Magisk-v13.3_mod_with(96f8efc)updater.zip` in `/sdcard`
    - Install the zip
    - Clear Dalvik Cache
    - Reboot

    All set, your Moto Z2 device is rooted.

    ---

    Thanks to the XDA Community and especially thedoginthewok.