Step-by-Step explanation of the Root procedure found in @CodyF86 TWRP and Root thread for the Moto E5 Play
Because there are some entry-level users out there, I wanted to break down the steps for those of us who might not have as much experience in working with phones.
12/02/18 - THREAD UPDATE!
PLEASE READ BEFORE CONTINUING
Procedure should be safe for all E5 devices.
DO NOT FLASH ANY NO-VERITY KERNELS LISTED IN XDA
Expand for details...
This guide was originally written for James specific devices.
HOWEVER.. many have asked if this will work on their specific devices, and after answering questions and doing some brief research, I am convinced that this procedure SHOULD BE safe for ALL Moto E5 devices.
BEWARE.. The TWRP port provided for this procedure is not fully ported for the E5. I have confirmed flashing zip or image files, and making/restoring backups of boot, system and data are successful with James. These basic features of TWRP will work on all E5 phones, BUT this TWRP build will cause your phone to be identified as a PERRY device when checked by ROMs or flashable zips that do assert checks on the device name or id.
- ADB and Fastboot installed on PC
- Motorola USB Drivers installed for your device
- TWRP and fstab files from E5 Play Root / Recovery thread.
- Latest Magisk
- Unlocking your bootloader is not for the faint of heart. Unlocking your device and installing your own software might cause the device to stop working, disable important features and functionality, and even make the device unsafe to the point of causing you harm. Neither Motorola, nor your wireless carrier or retailer from whom you purchased the device, will be responsible for such damage, so please do not unlock or load any software unless you know what you are doing.
- You have only yourself to blame. Unless you have a Developer Edition device, once you get the unlock code, your device is no longer covered by the Motorola warranty; in other words, please don't blame us if things go wrong, even if they appear unrelated to unlocking the bootloader.
- The law still applies. You still need to operate your device in compliance with all applicable laws, rules and regulations prescribed by the FCC, and any other governmental agency for that matter. Your wireless carrier may prohibit unlocked devices from operating on their network.
Steps from Stock Device
1 - Unlock Bootloader
- Enable Developer Options on your Device (Settings -> About Device -> Software -> Tap Build No. until Dev. Options are enabled.
- Enable USB Debugging under Developer Options.
- Enable OEM Unlock under Dev Options
- Follow the Motorola Bootloader Unlock Prodecure on Motorola's Customer Support Portal
2 - Flash TWRP
- This process will overwrite your recovery partition. It is wise to make a complete nandroid backup of your device prior to performing any of the steps below.
- Download Magisk zip package, TWRP 3.2.1 E5 Play and fstab.qcom files from the E5 Play Root Recovery thread.
- Put these 3 files in your adb/fastboot directory on your pc
- With your phone on and booted to android, connect to your PC using your USB cable.
- Open Command Prompt and cd to your ADB/Fastboot directory
- run "adb devices" to make sure your device is connected to adb (you will need to approve the initial connection on your device)
- manually copy twrp_james.img to your phone's external sd card or
adb push twrp_james.img /sdcard/
- run "adb reboot bootloader" to reboot to fastboot mode
- boot directly to TWRP with
fastboot boot twrp_james.img
- make a full backup and store the backup on your phone's external sd card or transfer to your PC.
- in TWRP, Reboot->Reboot Bootloader
- When back in fastboot mode, flash TWRP to your recovery partition.
fastboot flash recovery twrp_james.img fastboot reboot recovery
- your phone should reboot to TWRP now on your recovery partition.
3 - Disable Force-Encryption and Root device with Magisk
- while in TWRP, run the following in your ADB terminal
adb shell mount -o,rw /dev/block/bootdevice/by-name/vendor /vendor adb push fstab.qcom /vendor/etc/fstab.qcom
- from TWRP menu: Wipe-> Format Data
- copy magisk zip to newly formatted data partition
adb push Magisk-v17.2.zip /sdcard/
- From TWRP, Install Magisk zip
You now are rooted and have TWRP on your Recovery partition. After rebooting to Android, make sure you install the latest Magisk Manager first thing.