yashsingh1/xdaforums huggingface dataset:
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MotoJunkie01:
You can get full root by using Magisk Manager to patch a boot image from a stock firmware package for your device. After it is patched, you can flash it using fastboot.

It's not going to be at all possible to attain root and install TWRP without using a PC. Temp root is unheard of on Android Oreo.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] LovetheROOT-S3:
Ok. I'm new to the Moto scene, I was very intrigued by how I had to unlock the bootloader. Very different from Sammy's and LGs. I appreciate the info and advice.

Any future endeavors for more custom ROMs?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MotoJunkie01:
The hurricane disasters in NC have me so busy with work, I barely have the extra time to maintain my current firmware and stock ROM threads. Because the Moto E5 series is fully supported by Project Treble, custom ROMs are not a terribly difficult task. It probably will not be be long before we start seeing some regularly maintained custom goodness for the E5 series.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] chrisvrose:
Will the Moto e5 plus kernel provided here be compatible with XT1924-3 variant of the phone?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] mcrollin420:
xt1924-8

So i have root on e5 plus xt1924-8 (sprint variant ) with magisk here is my problem i am not sure if i am still encrypted (to get root i used [ROOT] Moto E5 Plus (Rhannah) Backup and Magisk.) or if i need to flash the verity disabled kernel still . i do not have twrp installed only booted from it once to create backup should i flash twrp . My ultimate goal is to have a custom oreo or a stock with no sprint any suggestions?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
The No-Verity Kernels disable bootloader verification messages. They dont have anything to do with Encryption. What you need to do to disable force-encryption is to adb push an edited fstab.qcom file to the device before you ever boot to the OS. If you have booted to android without pushing that file then odds are your device is encrypted and youll have to format data to remove encryption.

---------- Post added at 02:42 PM ---------- Previous post was at 02:39 PM ----------

[MENTION=7383447]MotoJunkie01[/MENTION] So I started messing around trying to create some packages for the XT1921-3, but discovered that the James TWRP linked in this thread causes the device to be read as a "perry" device which I believe is one of the moto e4's.

You know of any good instructions for porting TWRP? I know you have a lot going on and I'd be happy to take a crack at making a build specifically for James.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] mcrollin420:
I haven't modded since the defy so i am a bit rusty at this stuff what would be the cmd line for flashing the no verity i may have done it incorrectly as i think i flashed that to the boot partition thankfully i did a backup was able to restore also can i push fstab using pc and adb instead of twrp

---------- Post added at 10:44 AM ---------- Previous post was at 10:27 AM ----------

ok i cannot figure out how to get the commands working in twrp do i go to terminal and where should the fstab file be placed
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
Just want to make sure before you continue that you are using a James device right?

If so, go to first post of this thread with the root instructions and you will see the part where you adb push the file.

You should reboot to TWRP first, then make sure your phone is detected by adb on your pc. Then push the provided fstab.qcom file to the directory shown in that post
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] mcrollin420:
the device im using is the xt1924-8 moto e 5 plus

i was not quite understand the inital post
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
Ok. Actually, it seems that your device is either going to be Hannah, RHannah or AHannah. It's not a james device.

You can try using the James fstab.qcom file at your own risk, but I cannot guarantee it will work the way it's supposed to. I am not sure if there is an fstab file out there for the Hannah variant, and I also dont know if the ROMs provided in the hannah root thread disable encryption or not. You might want to ask them over there, as I'm only familiar with working on James devices.

It also looks like we have not yet acquired the factory firmware package for the 1924-8. So you definitely want to make a full backup. I would recommend making a nandroid backup in addition to any TWRP backups you make.

if you understand the risks and want to proceed with testing the fstab.qcom encryption fix, here is what you do.

Copy the fstab.qcom file linked in the first post of this thread to your adb/fastboot directory on your pc

make necessary backups

make sure USB debugging is enabled and your PC connection is approved for debugging

reboot to TWRP

connect phone to PC via USB.

in adb terminal, run

adb devices

make sure a device is listed

run the following commands one at a time

adb shell mount -o,rw /dev/block/bootdevice/by-name/vendor /vendor
adb push fstab.qcom /vendor/etc/fstab.qcom

wipe->format data (this will erase your user data i.e. photos, downloads, etc and remove encryption)

flash magisk

reboot to system and if all goes well you will have force-encryption disabled and your phone will boot.

if the fstab.qcom file is not compatible with your hannah device, then you may experience bootloops or hanging on the boot logo.

if your phone hangs on the boot logo, do not let it sit there for more than ~5 minutes or it could fry your device. hold vol-down+power to reboot to fastboot mode. from there you can use your vol-up/down buttons to select recovery mode and reboot to TWRP to restore your backup.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] mcrollin420:
it is hannah and the fstab did work wiped data partition proceeded to boot device did not encrypt files as it did before at wipe now twrp not asking for encrypt password still do not have twrp installed just booting from it so it seems the force encryption is gone. coincidentally i have a cricket e5 (1921-2) what do you think the chances are of placing a backup from the 1921 installing it to the 1924 they are so similar even by numbers lol yes no maybe lol
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
awesome, glad to hear that file worked!

I wouldnt use the 1921-2 backups. It would probably be safer to just use the factory retail firmware for the XT1924-4 or XT1924-5, but using firmware for any other device may end up breaking your wifi/data/bluetooth or other hardware.

If you have root, you could use adb shell to make some images of your individual partitions using dd as long as you have enough space on your internal storage.

you would want to make backup images of these partitions

dsp (adspso.bin)

aboot (bootloader.img)

recovery (recovery.img)

logo (logo.bin)

boot (boot.img)

modem (NON-HLOS.bin)

fsg (fsg.mbn)

system (system.img)

oem (oem.img)

vendor (vendor.img)

With phone booted to OS

adb shell
su (approve SU request for shell)
dd if=/dev/block/bootdevice/by-name/(partition-name) of=/sdcard/(partition-name).(extension)

then transfer those images to your pc or an external sd card. to restore them you should be able to flash them using fastboot flash (partition-name) (partition-name).(extension) or put them on your phones /sdcard/ and reverse the dd process

dd if=/sdcard/(partition-name).(extension) /dev/block/bootdevice/by-name/(partition-name)

example to restore

dd if=/sdcard/adspso.bin of=/dev/block/bootdevice/by-name/dsp
dd if=/sdcard/recovery.img of=/dev/block/bootdevice/by-name/recovery
dd if=/sdcard/bootloader.img of=/dev/block/bootdevice/by-name/aboot
etc...
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Q9Nap:
First off, thanks for all the work you've done for this device!

I'm trying to patch my boot image as my device came with a build I haven't seen a fastboot file for yet; OPP27.91-121.

I've extracted the boot image and edited the boot.img-dtb with a hex editor to change "wait,verify" to "wait", copied the file/s back and rebuilt, but the device won''t boot.

Would you mind giving a little more detail on the patching process?

Thanks again :good:
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
Don't extract the kernel. Hexedit the entire boot.img and put blank spaces in place of ,verify or whatever...and it will boot.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
Sorry guys not dead. I'll catch up when I get home from work.

A new / 2rd OTA is out, but I couldn't get it to work like I did with the 1st one. I think they fixed their script and check for bootloader lock now, so waiting for the firmware file to make it to the mirrors.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Aeorsyn:
i have a hannah running RR, decrypted, and for giggles i wanted to see if restoring to stock would work properly. everything flashes except gpt.bin, if i use all stock images, including boot and bootloader, during bootup the phone will sit at the motorola screen with no animations forever, i dont know maybe i was impaitent? feel like ive wated atleast 5 min, if i flash the noverity boot.img and push the fstab, phone will boot up to the motorola logo again, but this time with animations, the "hello moto" then screen switches to some metro logo, but then goes back to the moto logo, sortof like a bootloop only the loop doesn't reboot the phone, just stuck on animations.

not sure why gpt wont flash or if thats whats causing it, after i do all the stock flashing the phone does re-encrypt it self after attempted boot

wow, i got it to work somehow, i flashed only a few things, and didn't do anything in order lol, first i flashed system image with magisks, then i flashed sparsechunks 0-4, then bootloader, then oem and vendor, literally all i did fastboot reboot, and wow.

after you do this, you might lose the ability to root in the future with the 2 methods available, for some reason, and also you will want to go back and reflash everything to get your modem working properly
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Q9Nap:
Worked like a charm, thanks! I found that "forceencrypt" can be hex edited to "encryptable" in the raw vendor image as well.

You can use ota link generator and imgpatchtools, both by [MENTION=6298645]erfanoabdi[/MENTION], to download OTAs and patch existing partitions. [MENTION=7346927]NZedPred[/MENTION] made a fairly thorough tutorial on how to make flashable fastboot files from both fastboot files and ota updates; just needs minor tweaking to apply to moto e5 play, given the different methods to remove verity and encryption.

ota link generator:

https://xdaforums.com/moto-z/development/tool-motorola-ota-link-generator-tool-t3537039

imgpatchtools:

https://xdaforums.com/android/software-hacking/dev-img-patch-tools-sdat2img-ota-zips-t3640308

flashable fastboot tutorial:

https://xdaforums.com/g5-plus/how-to/guide-creating-twrp-flashbale-stock-roms-t3804776
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Aeorsyn:
flashable twrp for hannah https://github.com/TwrpBuilderTests/android_device_motorola_hannah/releases

works

note : have not actually flashed anything with it.

:)

reportedly does not function properly.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] beedoe420:
I have a Moto e5 play with no root how can I get it rooted what's the best way with out pc
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Starkiller2:
I found another way to get unlimited on my g6 play. is it still ok to post that here? not sure of the rules anymore.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
PM it to me; I'm curious.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] I am dumb:
I'm sorry if this isn't the correct place for it but does anyone have a factory image for XT1921-1? I have bricked my device.

Edit: or just boot.img
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Mikeischris:
Rooting moto e5 plus soft bricked my device and cant get anything to flash now?? Any ideas?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] wihzard:
Find out what variant you have and look to see if the stock rom is available for that variant. Then try to get your phone to boot to the bootloader, it still should be able to. Follow the instructions in the recovery thread and this time (if you hadn't already) make a TWRP backup. If you did just try fastbooting twrp recovery and restore that backup.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Mikeischris:
Sorry i should have gave that info. Its moto e5 plus xt1924-7 metro wireless. Ocps.27-91-51-1. I cant seem to find the stock firmware anywhere. I did try to flash xt1924-7 ocps.27-91-46-, and ocps..27-91-51-4-3 neither worked. When i originally tried to follow the method decribed in this thead, no verity wouldnt flash without a corrupt or ubsigned error. I ended up stuck on moto logo screen. But i could boot to bootloader and recovery. So like i said i couldnt find the exact rom so i used the closest one i could find. I got device to boot, but couldnt use the sevice i could connect to wifi however. But i could find the devices imei. It was unknown. If i tried #*06# i got continuous beep and phone app stopped error. I tried a different firmware and this is how it ended up in this state. I get unable to boot and right to the boot loader. Oh and i get bad key. When i boot to recovery i can boot to twrp. But i can disable data encryption so twrp cant mount and isnt much help. Please, any advice would be greatly appreciated, and thank you for your responce,
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] wihzard:
If I understand this correctly you have the MetroPCS version and you've tried flashing other firmwares? If so you'll have to look around on here to see if someone made a twrp backup of that variant. I have the Boost Mobile XT 1924-8 so I can't help you there.

If you do manage to find a twrp backup you can try to get into the bootloader and boot into twrp (fastboot boot twrp_james.img) from there do a wipe (system, cache, data) and recover that backup. You might also try flashing a TMobile firmware if you can find it since MetroPCS is under TMobile. Long shot but my Boost Mobile version is actually just a Sprint version and when unactivated it shows up as such.

FYI, I personally didn't flash TWRP or no-verity kernel. The steps I followed for getting root on 2 Boost Mobile E5 Pluses was:

Unlock bootloader

Download twrp_james.img

Fastboot boot twrp_james.img

Do backup to microsd card

Reboot phone and install magisk manager apk

Use magisk manager to patch emmc boot from twrp backup

Copy patched_boot to PC and reboot phone to bootloader

Flash patched_boot via fastboot
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Mikeischris:
To answer you question, it was a metro varient but different security update. It was a downgrade. I only did it out of desperation. And yes im an idiot..lol. I i can get into twrp recovery so i feel like if i can disable encryption i can fix this. But im stuck. Am i correct to assume this?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] plscotland:
jusr so people know there also the Moto E5 Play XT1920 -15 [ PETTYL ] the one with 1Gb of ram And Go ediditon Oreo and the above Moto E5 Play Dm-verity disabled kernerl and twrp dosent work on it
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Mikeischris:
I cant seem to get this to work

In command prompt I get a error message that refers to the 19th character in the command. Ive tried it several different ways via TWRP terminal, suck as: with and without "adb shell" with and without the command to mount, and without adb shell and mount. In other words right into [ -o,rw ] ……. and so on. Im sure I'm making this a lot harder then it really is, but Im still learning, and this is all part of the whole humbling experience. Any advice you could lend would be greatly apprietiated. Thanks For Your Time!!!

---------- Post added at 09:47 PM ---------- Previous post was at 09:43 PM ----------

I forgot to mention, the device is moto e5 plus xt1924-7 metro Ive already boot looped it twice since I got it [November 1st]
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Leuf:
Hey i have the moto e5 cruise can i get help on rooting thank you
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] AesopRock127:
check this out.

https://xdaforums.com/moto-e5/how-to/guide-root-twrp-moto-e5-play-explained-t3856182

This is basically a breakdown of this post with instructions and without the noverity kernel instructions, Should shed some light on your situation and if you look all the way to the end in one of my posts i say how to boot or flash the boot img in case that is something you are having issues with as well.

And if adb is giving you an issue you can copy and paste the code so its not a spelling error on your part.

Best of luck friend and happy turkey day
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] :
Okay Im a bit confused. I have a Metro pcs Moto e5 play. Do I flash the no verify kernel or skip it? I've read the thread and others multiple times. I want to make sure before I mess up my phone and have no phone. Lol. Any words of wisdom would be extremely appreciated. Thanks for your time.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
DO NOT flash the no verity kernel. It's not necessary. Magisk will disable DM-Verity on your device. You DO need to push the fstab.qcom file though.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] :
That's exactly what I thought! Awesome!! Much appreciated!:)
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] anoukaimee:
Thanks. Maybe it'd be a good idea to add that to your OP? Didn't read every page (yeah, that's on me) and now I'm in a boot loop :(
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
this is not my OP M8. my post is the one AesopRock posted above. ;)
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] anoukaimee:
Oh sorry--just grumpy cuz it got messed up :) . Wasn't a biggie, thank god I did a nandroid. Ppl are so good about updating info on the OP, but the one time I don't read all the posts....
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Tomspector:
Metropcs e5 play xt1921-3 rooted want twrp recovery.

I had my phone rooted at one click root.

They left the stock recovery on the phone.

I want twrp recovery.

Phone specifications.

Build number OCP27.91-51-4

SKU= XT1921-3

Carrier= Metropcs

Rooted with magisk 17.1

Magisk manager 6.0.1

Stock recovery.

Bootloader was unlocked.

My two ?s are how to put twrp recovery the correct way on my phone and how to tell if my bootloader is still unlocked?

They did reset my phone after magisk was put on, why i was wondering if my bootloader is still unlocked.

The phone works perfect just want to be able to back it up in twrp.

Thanks

Tom J
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Float952000:
Does this root method work for the E5 Cruise from Cricket?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
Aside from needing a version of TWRP that's compatible for your model phone it should be the same for all E5's

I wouldn't try using the one for the E5 Play
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Float952000:
So that's a no until there's a version of TWRP for this model of device, then? Alright, Thanks for the response.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
I don't want to say that it's a flat out no. If you don't mind a little work you can look for the different E5 TWRP builds and test them after you unlock your bootloader.

just boot from the individual twrp image files VIA "fastboot boot twrp_x.img" and try to make a backup
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Float952000:
Is there a method to even unlock the bootloader for this variant of the device? Because to my knowledge, The Cruise doesn't support bootloader unlocking from the motorola site.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
I wouldn't know. best bet is to run through their process which will let you know
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Float952000:
Just did a quick search and it's sadly not supported. Thanks for the speedy replies, anyway. Appreciated.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] GripKrieger:
Do you have a non-verity kernel for XT1944-3? please (single sim variant) (nora)
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Sands207:
I have the Boost Mobile variant of the e5 play. should i be ok if i follow this process??
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
You don't need a No-Verity kernel to disable DM-Verity. If you install Magisk it will disable it for you. Whatever you do, DONT install any no-verity kernels you see that aren't listed for your exact model. If will soft brick you.

It's pretty likely that the boost variant is the XT1921-5 (sprint) which is james, so yes. Just dont flash the no-verity kernel whatever you do. You might want to follow this tutorial
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Lord_Worm:
Hey guys, first of all, you can't root without a PC, at least not any way that I'd trust. Secondly, the E5 cruise aka play definitely has a few quirks. At least the T-Mobile variant. I have flashed this phone so many times it's not even funny. I have destroyed it lol. I've wrecked the file system and software. I've lost my imei and my persist quite a few times... I've flashed custom, I've flashed stock, I've flashed my own backups, as well as others. I've always managed to bring this one back from the dead. Call it luck, call it faith healing, call it persistence haha! Call it what you will. I have backups for anyone who needs them, rooted and stock ... As well as custom. I've been super busy with work, and working on a solo project... So you might have to be patient for me to respond.

Anyway, if ye ask, ye shall receive, but I don't always get on the forums these days. I will make it a point to be more active, but I can hook up a drive link to the stock, root, and RR remix img's I have. It's enough to get you up and running. Pm me, and I'm putting the folder together as we speak. weakNPCdotcom's guide is outstanding, concise, and almost fool proof. I would suggest familiarizing yourselves with the OP, following weakNPC's post exactly as it's written. Easy breezy cover girl kinda easy. Lol. Now, to find a stable, official, Pie build for any of my 3 Moto's... James, Potter, Beckham ?

---------- Post added at 02:44 AM ---------- Previous post was at 02:34 AM ----------

It actually does. Just put in the code and you'll get it in your email box. I had mine unlocked after having it for about 2 hours. I'm trying to figure out if it will ever be possible to unlock the AMZ bootloaders for other Moto's.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Sands207:
Thank you I appreciate the help, and after i posted this i discovered that James is the codename of my phone. Ive been working with Samsungs for several years and now I'm back working with motos.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] sean777!:
Same question does it work with cricket