yashsingh1/xdaforums huggingface dataset:
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
this twrp works on the e5 plus am going to test the rest of the files after twrp and see what happens have already made a backup

---------- Post added at 12:29 PM ---------- Previous post was at 11:40 AM ----------

so twrp boots via commands and does flash and am able to boot to recovery but i try to flash no verity or anything else it just bootloops

wont boot with your other files just twrp will boot
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] uwapalwa:
Who wants to test sim unlock for a rooted E5 play, for domestic use?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
Upload your stock kernel and i'll manually hexedit that one, not sure why it's bootlooping tho, but just upload your stock kernel.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
https://github.com/MotorolaMobilityLLC/kernel-msm/issues/156

p.s. I'm still in need of a stock recovery image.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
Whoops does anyone have $5 worth of bitcoin that they can get me this file:

https://forums.easy-firmware.com/sh...SS-8-0-0-subsidy-DEFAULT-regulatory-DEFAULT-C

kind of soft bricked the E5 haha...if not going to buy a new one on Thursday until I can get the firmware file. :) I have no way to send bitcoins to get it atm.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
All right give me a little bit and I'll get you the backup of the whole system for ya
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
23 mins till i have the backup uploaded and ill pm you link
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
The file you requested is actually what I have on my phone and is also the same as the twrp backup I gave you.....

---------- Post added at 12:56 AM ---------- Previous post was at 12:55 AM ----------

The only difference is my phone is the e5 plus from sprint

---------- Post added at 12:58 AM ---------- Previous post was at 12:56 AM ----------

Funnier thing now is I can't get the recovery to boot after I flash it only via fastboot boot I can get it to work now

---------- Post added at 01:27 AM ---------- Previous post was at 12:58 AM ----------

so i managed to edit your repacked twrp

so twrp when flashed will boot into recovery mode now on my phone

hopefully we will be able to get the e5 plus rooted
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
Just send me the boot.emmc.win file out of that backup, that's the kernel. :)

In other news I went dumb and tried to get that OTA to flash without the stock recovery and that's how I soft bricked my phone haha. Going to buy a new one at Walmart tonight until I can get the firmware from Motorola.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Salik Iqbal:
What firmware you need?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
https://drive.google.com/file/d/1N5zZrjfRxVMkcdYQHDXIfMcqJA_NWwOH/view?usp=drivesdk

Here's the link for the boot
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Starkiller2:
OMG I GOT IT TO TURN ON!

Thanks Cody!

I was sure I bricked it

---------- Post added at 11:23 PM ---------- Previous post was at 11:22 PM ----------

I can't connect to data but I'm crossing that bridge. lol. it came out of the loop
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
so i have managed to remove verity in the E5 Plus kernel myself but now the problem i have is when i try to move the fstab to vendor/ect i get /sbin/sh: adb:notfound
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
You have to mount the vender partion in recovery then use adb push.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
ok, i guess i missed that part cuz i did the adb part you have listed and then the adbpush and it told me that but i guess i missed the part where i had to mount vendor partition in twrp my bad

read through all the pages and realized you said that on page 2 or 3
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
idk whats going on i made sure the kernel doesnt have verity and mounted /vendor/vendor and moved the fstab and formated data and used magisk 16.4 and flashed it but the phone didnt boot up it just rebooted to bootloader.

so back to the drawing board unless you want to send me the hexedited file that i sent you and ill send you mine maybe im missing something in the boot.img but i swear i got it all for verity
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
Just upload me the boot.emmc.win file from that backup. It's only like 10MB I just can't download the entire 2GB update atm and don't need to just need the boot.emmc.win file. :) and I will hexedit it for you.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Gualo17:
I think [MENTION=3198335]allenjthomsen[/MENTION] had already sent you the file you requested through this link: drive.google.com/file/d/1N5zZrjfRxVMkcdYQHDXIfMcqJA_NWwOH
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
Here is noverity kernel for e5 plus.

https://androidfilehost.com/?fid=5862345805528042496
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
much appreciated idk what i was doing wrong but the kernel you edited works pefectly im rooted now and all is working
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Gualo17:
I did all the steps, but I can not boot the device, it is in bootloop. Could you pass the E5 plus stock, please?

Thank you.

---------- Post added at 07:19 PM ---------- Previous post was at 06:21 PM ----------

I need help, please.

I did the steps.

1. Install the E5 Plus DM-Verity Disabled Kernel

2. Use the adb shel command

3. use the adb push command

4. format data

5. I install magisk

But it does not happen of the bootlogo, I can enter without problems to fastboot, but I do not manage that it initiates.

Thank you.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
are you using a e5 or e5 plus and secondly did you download the correct boot maybe an accidental misclick on those files.

if you are using an e5 plus the this is what i did

i flashed the e5plus kernel

then the twrp

then adb shell command

then adb push

then i formatted data from recovery

then reboot to recovery

then install magisk

then reboot and it should boot up

---------- Post added at 01:50 PM ---------- Previous post was at 01:37 PM ----------

Easiest way to flash this is do this

1. Flash No-Verity kernel for either your E5 or E5 Plus

the command is

fastboot flash boot boot-e5plus-noverity.img

or

fastboot flash boot boot-e5-noverity

2.Flash twrp provided with command

fastboot flash recovery twrp-e5-repack.img

3 Then type from command promt that is opened from your adb folder

adb shell mount -o,rw /dev/block/platform/soc/7824900.sdhci/by-name/vendor /vendor

4.the right after that command type

adb push fstab.qcom /vendor/etc/fstab.qcom

5.then in twrp goto Wipe then Format Data and type yes

when it finishs press the home button in the bottom middle of twrp and goto reboot then select recovery

6. then flash Magisk V16 or Magisk V16.4

7. reboot and profit with root
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Starkiller2:
So I kept getting the bootloop again too. All i have to do now is get to recovery via fastboot and flash the boot image again from there. Although still no data connection. Text and calls are working though so I'm taking it as a win.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Gualo17:
[MENTION=3198335]allenjthomsen[/MENTION] and [MENTION=5337314]CodyF86[/MENTION]

https://www.dropbox.com/s/uc26sxtpjibf8w6/Failed%20root%20E5%20PLUS.docx?dl=0

I leave a word file with the steps that I have followed and the screens that appear to me, in case they manage to detect the error of what is happening and to be able to solve it.

Similarly, if it is Kernel error, I could pass the original unmodified to see if I can restart it and start all over again, please.

Thanks and regards.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Gualo17:
The issue and why its not working is because your using windows powershell you need to be using cmd promt if you right click on start goto command prompt and select administrator mode and cd to your abd directory you will be able to push the fstab to vendor/ect this is why you get stuck in a bootloop

Use cmd promt inside power shell.

But OK. I have changed it and I have only used cmd, still giving the same boot loop.

I tried flashing the boot.img that you uploaded without modifying and still giving boot loop.

I do not know what to do to get it out of the boot.

You think you could make a backup of the boot.img that worked for you and pass it to me, please.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] uwapalwa:
had to spend 28$ trying to get this file lol. i use some cherry credit crap to pay them and it had a minimum amount when toping up my account first time.

am uploading the file to mega and it should be ready in about 5 minutes.

***Update

so here is the file https://mega.nz/#!7SgxzTaC!Q0ZU9i8UOM076ta6TUmFbE8sJUbn9fw3qHLSvWjgIg4

donations are welcome :D
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Gualo17:
The boot.emmce.win is the stock boot from my device that i uploaded a few pages back.

I dont think its the phone and the e5plus noverity kernel cody posted is what i used to root my device

I have flashed that file you uploaded to be modified by CodyF86, renamed Boot.img and flash using fastboot. Keep checking "Error: Failed to load Kernel" and it does not happen of the boot.

That's why I asked for a backup made by twrp of the boot.

The system is fine, I can access it through the PC when entering recovery.

This had happened to me before, but I think it was a problem not to delete the Userdata or the Cache, this time I do not have a backup of anything.

I think that it will play Go Guarantee, the one that I do not believe that they make valid ...
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Starkiller2:
[/COLOR]
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Starkiller2:
Ignore the comment about the fstab. Apparently it did mount this time but wasn't showing that way in terminal. I seriously don't know how I get shoes on in the morning.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
So next question being is it time to build lineage is 15.1.

Me thinks so says the guy running the build environment currently
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] triggerlord:
Looks like it's about time for some S U C C.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Starkiller2:
so I got LTE back finally by borrowing from the partitions posted here, was fooling around and boost isn't registering my hotspot usage now. Not sure which thing worked though. I used the prop value Codyf86 posted, edited the pam apn to say x.boost.ispsn instead of boost.pamsn, added dun to the x.boost.ispsn. not sure what worked but I'm 35 gb in and they're clocking nothing so far.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MotoJunkie01:
That's a very interesting discovery. Thank you for detailing it. Definitely sounds promising for unlimited hotspot.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Starkiller2:
I started over, to find which step worked, it seems to have been metering right up until I edited the apns.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MotoJunkie01:
That's great to know. Much thanks for the info my friend.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MotoJunkie01:
[MENTION=5337314]CodyF86[/MENTION], would you happen to have a stock recovery image for the James? I dumped one when I first got the device and now the image is corrupt. Thanks.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MotoJunkie01:
Good news for anybody interested in custom ROMs for this device. I just ported and successfully booted LineageOS 15.1 for the James. I'll start a new thread and upload the ROM for anybody interested in testing. I'll do my best to have a thread by Friday.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Starkiller2:
Sweet, after a month of digging through the guts of stock, I need a change lol
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
im very interested to see this
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] allenjthomsen:
Is there anybody with an E5 Plus that has rooted who could by chance dump me their modem files so i can restore mine.

Prefered Sprint E5 Plus Modem Files please
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
I believe someone posted one in this thread a page or two ago, unfortunately i dont atm.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MotoJunkie01:
I got lucky over the weekend and got my hands on a factory firmware package for the James, so I was able to get a recovery.img. Here's the thread in case you need this as well. https://xdaforums.com/moto-e5/development/firmware-restoring-moto-e5-play-to-t3820053
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] avilav:
Hello

I have a rhannah (moto e5 plus). Your recovery boot but it is not able to decrypt data. I did it from fastboot to recovery without flashing it by executing "fastboot boot twrp-e5-repack.img"

Despite this I was able to extract a copy of the boot to an SD and then patch it with magisk 16.7 (version 16.0 stable fails). My phone is perfectly rooted and I also have a backup of the stock rom. Also your recovery is able to restore the partitions

My phone compilation number is OPP27.91-5, model Moto e5 Plus XT1924-5

I did it with unlocked bootloader

Thanks, and sorry for english, is automatic google translation

-------------------

Hola

Tengo un rhannah (moto e5 plus). Tu recovery boot pero no es capaz de desencriptar data. Lo hice inciar desde fastboot a recovery sin flashearlo ejecutrando "fastboot boot twrp-e5-repack.img"

Pese a ello pude extraer una copia del boot a una SD y luego parcharlo con magisk 16.7 (version 16.0 stable falla). Mi telefono quedo perfectamente rooteado y ademas tengo un backup de la rom stock. Ademas tu recovery es capaz de restaurar las particiones

My phone compilation number is OPP27.91-5, model Moto e5 Plus XT1924-5
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] jacob019:
Does anyone have root working on xt1921-5 after the OTA update (OCPS27.91-23-3) ?

I reverted to stock and took the OTA successfully, but after installing the patched kernel and installing magisk, it bootlooped; so I reverted.

The only reason I am rooting is to get free tethering. Oddly, the noprovisioning edit to /vendor/default.prop doesn't seem to take effect unless magisk is installed.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] avilav:
Patch with the last beta of magisk, stable version don`t work
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Gualo17:
Hi good day.

One question, what were the steps you took to root the device?

I have the same one, with a compilation number: OPP27.91-25

Only when trying to root it, I stay in bootlop and I have to send it to guarantee for not having a copy of the stock, but they gave me a new one.

Could you help me, please?

Now unlock the bootloader.

Thanks and regards.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] jacob019:
thanks, but I did try the latest beta

I followed the procedure in the OP. What device do you have? I have the xt1921-5 and AFAIK the latest FW is OCP27.91-23-3. First thing you should do before experimenting further is to backup all the partitions. When your bootloader is unlocked you can fastboot boot twrp.img, then adb pull all the partitions. Then you can always have something to fall back to. You need to be on OCP27.91-23 for the kernels posted to this thread to work. You may have better luck manually patching your boot partition with a hex editor like the OP, rather than flashing the provided images. I've never done it though.

If you're on the xt1921-5 then please share your boot and system partitions as you would have a newer version than everyone else. And you could downgrade to OCP27.91-23 using the partitions that [MENTION=7383447]MotoJunkie01[/MENTION] published.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Gualo17:
I have the model XT1924-5 and compilation OPP27.91-25.

I enter the twrp allowing the system to change it again for the recovery stock?

And then use the "adb backup" command?

Later I can get to use my PC, if I manage to make the backup, I get down to work to start testing and reporting as it was.

Thanks and regards.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] jacob019:
I found it helpful to refer to the g6 play rooting guide here:

https://xdaforums.com/moto-g6/how-to/guide-twrp-root-magisk-installation-t3802715

And you don't need a microsd card to backup, with twrp running you can pull partitions with adb:

adb pull /dev/block/platform/soc/7824900.sdhci/by-name/boot

adb pull /dev/block/platform/soc/7824900.sdhci/by-name/system

adb pull /dev/block/platform/soc/7824900.sdhci/by-name/recovery

...etc

or pull the entire flash image

adb pull /dev/block/mmcblk0

but I prefer to pull the partitions.

The magisk zip can patch the boot image from within TWRP. [MENTION=5972191]avilav[/MENTION] you didn't need a DM-Verity disabled kernel? I thought that was mandatory.

You have the E5 Plus, not the E5 Play. Which kernel did you flash?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Gualo17:
Thank you, I will follow the instructions to the letter.

Only in a few hours I can access my PC and inform them how it was.

Greetings.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] avilav:
with the command "fastboot boot twrp-e5-repack.img", you are only running the TWRP recovery, but the original of the phone is not overwritten, the one that is still there. Do not overwrite it.

You necessarily need a microsd card, since the recovery that is here is not able to decrypt the internal memory, so you can not access it.

If you do not have an SD, do not do it, since there is no way to go back with exactly the same firmware (there is one for rhannah but another CID). Check the backups before continuing with the tutorial.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Gualo17:
Thanks, I will backup both ways, why it is better to only flash what we are modifying, example the boot, in this case or recovery, and not have to put everything back.

I have the E5 Plus, and install the specific Kernel for that, never use the E5 Play, but I made some mistake, that even installing the Boot.img of the Stock managed to start it.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] avilav:
Magisk patches the kernel and works without problems, how does the magic? no idea.

If you want, upload the patched kernel.

Interesting thing about adb, but I do not know if that functionality works correctly in the e5 plus motorcycle. When there is no firmware to return to it is better to be conservative
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Gualo17:
I have a 16GB class 10 SD card, so there would be no problem.

I remember, that the last time I installed the twrp if I recognized the internal, even in the same PC recognizes it to be in recovery mode.

If I do open the twrp with the command "fastboot boot twrp-e5-repack.img" and I can not install the magisk, it will be in bootloop?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] avilav:
Magisk patches the kernel and works without problems, how does the magic? no idea.

If you want, upload the patched kernel.

Interesting thing about adb, but I do not know if that functionality works correctly in the e5 plus motorcycle. When there is no firmware to return to it is better to be conservative

---------- Post added at 10:35 PM ---------- Previous post was at 10:33 PM ----------

You can`t install it because this recovery is not able to decrypt the internal memory (/data) which is where magisk is installed and create the kernel backup.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] jacob019:
I think that only the data partition is encrypted, but regardless of which partitions are encrypted, you can still read, back-up, and restore the block level data without decrypting it. Your guide is good advice and a tested process is always better.

Restoring partitions is easier.

After more testing, I found that you are right. With Magisk 16.7, the manually patched kernel is no longer necessary.

---

For those of us with a rooted E5 Play who are getting update notifications, I would like to share the latest system and boot images, build OCPS27.91-23-3:

http://jacobstoner.com/OCPS27.91-23-3.zip

These are the unmodified stock partitions after taking the OTA update.

unzip on your computer and boot into bootloader and

fastboot flash boot boot

fastboot flash system system

then boot into TWRP and install Magisk-v16.7.zip

Now you are up to date. Everything seems to be working fine.

If you aren't rooted yet, then just take the OTA first and install Magisk 16.7 on the stock kernel (skip flashing the modified kernel in the OP).
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] avilav:
I have two doubts:

1.- Someone has tried to flash a GSI rom via fastboot on the phone.

2.- If I have the mobile with magisk and recovery stock, will the system find OTA? I understand that if I want to install them I must remove magisk and flash the stock kernel.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] jacob019:
1. Yes, it's normal.

2. If you restore the kernel and stock recovery (and vendor if modified), and let it encrypt your data, then you are back to stock and can take an OTA, but if anything has been modified then the OTA will fail. I posted the updated ROM so that you don't have to go to the trouble of reverting to stock to take the update. But this is only for the E5 Play.

see [MENTION=7383447]MotoJunkie01[/MENTION]'s stock thread if you want to learn more, he has great instructions, although there's no point in reflashing partitions that haven't been modified. boot, system, recovery, and vendor should be enough to restore stock.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MotoJunkie01:
Cool. I'll plug those stock images into my Android Kitchen and cook up a TWRP flashable ROM for the latest version, with which I can update my stock ROM thread. Hoping to get some free time to do that before the weekend is up. Thanks for posting those by the way.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] avilav:
I really want to flash a GSI rom in my e5 plus, but I'm worried that the backup I made in twrp only includes system, boot, and system image. I think the partition scheme can be different between models, since I do not see the partition "recovery" in the backup section. I hope that someone with enough knowledge is able to compile a recovery from 0 for both models.

Also I would like to know the opinion of someone who has flashed a GSI on a Motorola e5 james to know if I should wait for serious bugs.

There is a stock version for rhannah, but it has another CID and therefore the baseband can be different leaving me without the bands for my operator, which are not very common (AWS)

I leave the link for the Moto stock e5 plus (Rhannah) in case someone requires it

https://drive.google.com/file/d/1kW-FAfXccQMBMX3DuGJ_p2r0moDiCYtR/view
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] jacob019:
There's no harm in flashing system and boot images as long as you have backups. I would not recommend flashing the GPT or modem to another model.