[Moto E5 Guides, News, & Discussion] avilav:
/* *** Disclaimer

* I am not responsible for bricked devices, dead SD cards, thermonuclear war,

* or you getting fired because the alarm app failed. Please do some research

* if you have any concerns about features included in this ROM/KERNEL

* before flashing it! YOU are choosing to make these modifications, and if

* you point your finger at me for messing up your device, I will laugh at you.

* BOOM! goes the dynamite

*/

I have a Moto E5 plus XT1924-5 (rhannah) in my possession. It is the only device in which this guide has been tested. I should serve for the rest of the rhannah and others moto e5 without problems.

My cust LATAM and the compilation version is OPP27.91-25. Do not make the fast route if you do not have exactly the same device with that same compilation number or if you do not know exactly what you are doing.

The guide is divided into parts. First how to backup everything. Then how to root with magisk (for that there is fast and slow way)

What do you need.

- 1 Moto e5 Plus

- 1 Micro Sd card (minimum 4gb)

- Usb Cable

- Adb and fastboot drivers installed

-. Read the complete guide before to understand what they are doing (5 minutes, no bricks)

- 1 Brain.

- Comprehensive reading

FIRST STAGE (COMMON). BACKUP OF EVERYTHING.

Our phone have its own TWRP, works relatively well, except that it does not allow decrypting and therefore mounting the data partition and internal storage.

The steps.

1.- You open the bootloader. Look at any guide to open bootloader in Motorola, it has not science and is common for all motorala phones

2.- Download the Moto e5 play (james) TWRP (https://xdaforums.com/moto-e5/development/recovery-twrp-moto-e-5-play-james-t3796323)

3.- We put the phone in fastboot. For this, we activate the USB debugging and with the connected phone we write in a CMD "adb reboot-bootloader"

4.- In fastboot we write in our CMD "fastboot boot twrp_james.img". This will start our phone in TWRP without permanently flashing the recovery (for no reason to flash it)

5.- The recovery will take something to start and it will ask us for our key to decrypt data. We need to press cancel as the recovery will fail even with the correct key. DONT MOUNT SYSTEM WITH RW PERMISSION

6.- Go to the backup section, we choose as our destination SD and we backup

ALL except data and cache.

7.- Restart the cell phone and we put our backup in one or more safe place (the misfortunes happen)

With this we already have a backup of boot and system so we will not have problems if we make mistakes later

SECOND STAGE (THE DIFFICULT ROUTE) Patching our own boot.img for magisk

1.- In android we download and install he last magisk manager APK (available in my google drive account https://drive.google.com/open?id=1XD7Q7NXmchTNsSJ-oqt2TOXO8osroVJp)

2.- We open it, we go to setting and in "Update Channel" we activate the beta channel of updates (THE DEVICE WILL ENTER IN BOOTLOOP WITHOUT WITHOUT THIS STEP)

3.- In the main screen of magisk we are going to install, we accept to install the version of magisk 16.7 or superior (by no reason a lower one) and we go to "Patch boot image file", we select the file boot.emmc.win of our backup and We wait for you to patch our boot. (sdcard/TWRP/ Backups /ZL5223F3V8 / DATE /)

4.- Magisk will generate a patched boot in /internalstorage/MagiskManager/patched_boot.img

5.- Copy patched_boot.img to our computer, put the phone in fastboot mode and flash the patched_boot.img with the command fastboot flash boot patched_boot.img, and later restart the phone.

Ready!. Magisk perfectly installed our phone. In my case, safety.net passes without problems.

Second stage. (The easy way). SAFE ONLY in the variants indicated

0- Open bootloader

1.- Make the backups (iam not responsable of this)

2.- put the phone in fastboot mode

3.- Flash my boot.img patched for magisk "fastboot flash boot patched_boot.img"

Moto e5 plus XT1924-5 OPP27.91-25

https://drive.google.com/file/d/1XHtV1rI1cDPQCAw8otuBRxeSzNBzKWQn/view?usp=sharing

Moto e5 plus XT-1924-8 (Thanks Arslan_Rulex)

http://www.mediafire.com/file/zu9mefxd397nr1f/patched_boot.img/file

Moto e5 plus XT1924-7 (MetroPCS) (Thanks theUsualSuspexx)

https://drive.google.com/open?id=1UzP5NEBLD3_ex_zU2EoijVFs1uiGBEMI

Backups TWRP

Moto e5 plus rhannah xt1924-5 (OPP27.91-25.) Include twrp backup of rooted boot partition with system partition, and untouched boot partition (separated)

https://drive.google.com/open?id=1Vu0CvgBc0QeSxWOLyRgcMykvJ9ckgQy_

I hope you send yours, since there is only one fastboot image for this phone.