yashsingh1/xdaforums huggingface dataset:
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] WARNOD:
unable to get boot loader unlocked ??

Hello i am new to this site but not new to rooting firmware etc i have the boost ver moto e5 James i have followed all instructions to the T but can not get the Motorola unlock web site to give me unlock key for this dam phone unbelievable as i have been reading all kinds of folks have been able 2 do so with this model phone (product variant: James XT1921-5 16GB P3 - CPU MSW8920- BASE BAND M8920_11.54.11.41R JAMES_NA-CA-CUST .Can any one please explain what is going on here i went to boot loader unlock web site copied and pasted my string just like it said to do so but it all ways comes back with Boot-loader not able to be unlocked which frankly i find to be bull S#$#@ for the simple fact all these post are about unlocking this specific boot loader and installing TWRP which is what i want to do with this phone i just bought please any info or help would be greatly appreciated tremendously Warnod
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] bubba1601:
Not ALL E5 variants can be unlocked, as there are some variants that are bootloader locked by the carrier, not by Motorola - Im sure someone else will be able to explain that better than I can.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] skullkid383:
Yo u mind if I upload a guide referring to urs I built a twrp for Hannah and want to refer to here for force encryption fix with fstab

link to Hannah twrp

https://xdaforums.com/moto-e5/development/twrp-hannah-tested-xt1924-9-t3875406
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Project89Odin:
When using this guide for the Hannah (e5 plus) the kernel flashing goes well. mounting command fails, no such folder/directory. And the push command works. After formatting data I can now see internal and move files to and from device in twrp, but when booting it hangs on moto screen. When I flash back to stock patched kernel for magisk it give me a "decryption unsuccessful" screen and asks me to reset endlessly. Any help pls?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] skullkid383:
Do u have a backup made if so restore I got idea for fstab
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
It sounds like you missed the format data step which clears any existing encryption.

I keep trying to tell everybody not to use this patched kernel, it causes boot loop/hang issues. You don't need it anyway, Magisk will patch the boot image and remove dm-verity

But yeah, you need to format data in twrp and that will fix the encryption issue
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Tomspector:
Re

I can just flash twrp_james ?

Anything else that i have to do after the flash?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] :
I rooted like this: Unlocked bootloader using directions on Motorola site, fastboot flashed twrp, made backup in twrp and put it on laptop, formatted data in twrp then i rebooted recovery and went to Android dude laying out with the "!" by him so I fastbooted twrp again and flashed 17.2 magisk zip and it installed fine.

Afterwards I updated magisk 17.2 via magisk manager to v18.0 . I used recommended install and magisk manager installed the new .img worked perfectly.

This I did a few times because on 1st few attempts magisk didn't flashed correct in twrp and shot out some red letters and sorry I can't recall what it said (was dead and been working ALOT!) but I know it didn't work on 1&2 attempt but last time it was a success. Could have been my magisk zip was corrupt because I pulled cord out when I transferred over to laptop from my phone too fast.

So im rooted and encrypted now and I saw someone else say this on james but ------ my "Unlock bootloader" in developer option settings in phone is back and not how it was when I unlocked and I had to select it again to allow unlocking.. WTH?? O_o

Question: Can I just unzip fsatb.qcom.zip and move it to override in etc/fstab.qcom and reboot and it will then unencrypt or no? I mean isn't that same as pushing it via adb?

Thanks for yallz time and thanks Lord Worm for answering some questions I had on pm. I appreciate you bro. Cheers everyone. Glad to be rooted again. I can't stand apps that are preinstalled on our phones. :D

(Edit)

Some of my apps are crashing.. Checking permissions on them after I edit this post rn. I'll return to report if it fixes my crashing apps or what I discover when im off work later tonight. ✌️

Update: So after I had initially rooted I left out the fstab.qcom so I was encryted but I was able to use root explorer and override the current fstab.qcom with the one in the op then I rebooted..

During my system app removal yesterday I think I gutted something I shouldn't have. I couldn't get passed the Google email setup. I grabbed my nand from laptop wiped data system and cache and restored backup then flashed magisk 17.2 again and im ? now. Does that sound like something a crazy person would do?? Hahaha. I'm a bit Rusty. Been out the loop a while. I used to breathe Android. I'm back! Cheers. :cowboy:

.

This was on my Moto E5 play Metro pcs (XT1921-3)
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Xorcist211:
heres my dilema folks i got the moto e5 hannah variat from metropcs. Bootloader unlocked, twrp installed and decrypted but when i try to flash any roms i get these errors. these r just some:

C:\Users\chris\Desktop\platform-tools>fastboot flash system RR-O-v6.2.1-20181214-kuntao-Final.zip

target reported max download size of 535822336 bytes

Invalid sparse file format at header magic

error: write_sparse_skip_chunk: don't care size 14285122 is not a multiple of the block size 4096

sending sparse 'system' 1/2 (523260 KB)...

error: write_sparse_skip_chunk: don't care size 14285122 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 14285122 is not a multiple of the block size 4096

OKAY [ 18.148s]

writing 'system' 1/2...

(bootloader) Invalid sparse image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 18.148s

C:\Users\chris\Desktop\platform-tools>fastboot flash boot PixelExperienceP-arm64-aonly.img

target reported max download size of 535822336 bytes

sending sparse 'boot' 1/5 (523260 KB)...

OKAY [ 21.578s]

writing 'boot' 1/5...

(bootloader) Image size exeeded partition limits

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 21.606s

C:\Users\chris\Desktop\platform-tools>fastboot flash system PixelExperienceP-arm64-aonly.img

target reported max download size of 535822336 bytes

sending sparse 'system' 1/5 (523260 KB)...

OKAY [ 21.475s]

writing 'system' 1/5...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 21.521s

im probably using a wrong partion when flashing but ive tried everything and this is all i get an open script boot loop in twrp
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] bubba1601:
High

Oh dear.

Have you read any of the instructions on how to flash GSIs?

You should flash lineage os 15.1 first as some ROM don't flash over stock.

You are trying trying to flash resurrection remix for the Lenovo P2 (Kuntao)

why?

that won't work on your Moto E5 (hanna)

You are also trying to flash a zip in fastboot.

You can't flash a "zip" in fastboot!

You have to extract the zip first and flash the extracted "system.img" in fastboot - not the zip!

I also noticed When you tried to flash pixel experience, you typed "fastboot flash boot" that's wrong.

Check your fastboot commands....
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] michael_0394:
How do I enter fastboot on the E5?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] bubba1601:
Turn off device.

Press power and vol down at same time.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] kensalter:
I have a moto e5 cruise from cricket. Version OCP27.91-32 I would like to root this phone and get hotspot. Can someone post instructions? I could not find a TWRP for this phone.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
Im not sure if an exact TWRP port has been made for the E5. But if you follow this thread it should still work for you using the james twrp
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] kensalter:
Thanks for that! Now I have to figure out how to unlock the little bastige. I just got the phone today, and cricket says they won't unlock until after 6 months, even though I have been a customer for several years. Any suggestions?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
Most of the time unlocking with your carrier means you are unlocking the sim to be used with other carriers. You can still unlock the bootloader for rooting, and that thread walks you through that.

Im not sure how to get through a carrier lock. I've never unlocked a retail phone sim from it's carrier
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] kensalter:
In this case, even though I selected "oem unlock" under the dev menu, it is still locked:

fastboot boot twrp_james.img

downloading 'boot.img'...

OKAY [ 0.501s]

booting...

(bootloader) permission denied!

FAILED (remote failure)

finished. total time: 0.505s
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
After enabling OEM Unlock, you need to unlock the bootloader by following the procedure on the Motorola site. There is a link in the op of the thread I linked you to

https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] kensalter:
Unfortunately, and sorry I didn't mention this already, I did go to that site and put in my unlock code, and the site told me my phone was not eligible for unlocking.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
Ah, well yeah that probably would have saved some time on both our parts. BTW that just means it's not eligible at this time. There is still hope as i'm sure it will become eligible. I dont know why it wouldnt.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] bubba1601:
It's mentioned on other threads that some cricket and Verizon devices are completely ineligible for bootloader unlocking and that's added by the carrier, not by Motorola.

It (allegedly) occurred on the Moto E, E 2nd gen, E third gen and the 4th gen, and now the 5th gen, and those devices are still ineligible to be bootloader unlocked over a year after purchase.

Edit, I see it happens on cricket on other devices from other OEMs too, not just Motorola's.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] skullkid383:
I tried following this guide but gets stuck in logo boot loop after I flash a magisk patched boot img
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] wilbigdaddy2000:
I get this error trying to decrypt:

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

At line:1 char:21

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

+ ~

Missing argument in parameter list.

+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecor

dException

+ FullyQualifiedErrorId : MissingArgument

Please someone help.

---------- Post added at 12:46 AM ---------- Previous post was at 12:34 AM ----------

I have the same phone as u and I was wondering if you could help me decrypt my phone. I keep getting this error:

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

At line:1 char:21

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

+ ~

Missing argument in parameter list.

+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecor

dException

+ FullyQualifiedErrorId : MissingArgument

Any advice is truly appreciated.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] SiberianLeopard:
Does this work on the T-Mobile E5 Play?

---------- Post added at 01:13 AM ---------- Previous post was at 12:19 AM ----------

Alright [MENTION=5337314]CodyF86[/MENTION] I am getting a boot loop because of your poor and oversimplified instructions

---------- Post added at 01:22 AM ---------- Previous post was at 01:13 AM ----------

ha

no it doesn't

get stuck in boot loop after first t-mobile screen
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
That's because you flashed a boost / sprint kernel. This was all done before t-mobile even came out with the phone. If you send me the t-mobile kernel I can hex edit it for you.

And the answer is no it doesn't. Should have waited till I responded to flash it.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] SiberianLeopard:
Actually the no-verity kernel is working on my T-Mobile variant with Bootlegger flashed over Lineage.

The T-Mobile kernel can be extracted from any of these ROMS:

https://mirrors.lolinet.com/firmware/moto/james/official/TMO/

In addition, calling, 4G, Hotspot, all working. Camera is a bit strange at times but works for the most part.

Don't know what I did as I followed the instructions as best as I could (because they are extremely lacking in detail). Was gonna stay on Stock but Bootlegger GDI flashed over L15.1 is running great.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] nerdzrule69:
Is there a way...

Is their anyway to reunlock the bootloader after locking it with this boot image?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] kufleisch:
Hello,

thank you for your work!

I tried flashing your twrp-image on a XT1920-16 and got the attached message and it won't boot into twrp.

"fastboot boot twrp.img" brings me to a twrp but with nonresponding touch-screen and a mouse arrow.

can you please help? Thank you.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] bubba1601:
XT1920-16 is PETTYL version correct?

You need to flash the PETTYL version, the james version doesn't work on PETTYL........
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] kufleisch:
Ah... My Fault. Thank you very much.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] skullkid383:
Is ur device pettyl
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] lealmc:
se aplica no moto e5 play
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Tater23:
I want to jailbreak my Motorola for any service
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] bubba1601:
Deleted
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] LenovoTech:
"Jailbreaking" refers to a system level modification performed on devices running on Apple's iOS, very similar to unlocking the bootloader (OEM unlocking) on Android devices. It sounds as though you are wanting to "network unlock" your Moto device to work on "any service," which may or may not be possible. In any event, this thread discusses rooting and installing custom recovery on the Moto e5 Play. You are encouraged to ask your question on the dedicated Q & A forum for whichever Moto device/variant you own. This is a general ask-any-question thread for the Moto E5. https://xdaforums.com/moto-e5/help/help-thread-question-noob-friendly-2018-t3781027
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MetalGearWolf:
Has anyone tried rooting Motoe5 Cruise yet? There's built in apps I'm sick of having on.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] ireneromero160:
How to root ?

How do I root and will it mess up my phone ?

---------- Post added at 12:52 AM ---------- Previous post was at 12:40 AM ----------

How does root work will I loose my information on my phone or will it miss my phone up ?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] mrtinymikey:
Could someone help me with the OEM unlock???

The Moto site says it's not unlockable???
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] bubba1601:
If that's what it says, that's what it means.

Some devices on some carriers in the US are NOT unlockable because the carriers have made the device that way, not Motorola/lenovo

As far as I know there's no workaround..

Sorry.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] grey45:
I'm new at unlocking my bootloader as well rooting to Using a PC. I'm stuck and I just started to learn programing code etc can someone please help me in simple English step by step how to do this I got a Moto e5 play (James) by Metro PCS.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] krzee:
I also get a bootloop. I followed the directions in OP carefully twice.

I have XT1921-3 t-mobile variant. I am running XT1921-3_JAMES_TMO_8.0.0_OCP27.91-150_cid21.zip firmware.

Here is the boot.img from that firmware, when I flash it I break free from the bootloop.

http://www.ircpimps.org/boot_xt1921-3.img

Thank you for any help
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] uncleguvnor:
Need help
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] skullkid383:
What ya need

---------- Post added at 02:46 PM ---------- Previous post was at 02:45 PM ----------

Easy make ur own patched boot img with magisk both preserved boxes unchecked when u make it pm me if u need help
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] krzee:
I just needed the instructions here:

https://xdaforums.com/moto-e5/how-to/guide-root-twrp-moto-e5-play-explained-t3856182
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Give me a break:
Would you please make ma a guide......

I'm still (I've only ever rooted 6 phones; 1 on android 2.2, 3 on android 2.3, another on android 4.2, and the last, on android 6.0) fairly new to the "rooting" world, and don't want to mess this up, and I understand things have gotten quite a bit trickier, with rooting, lately. Also, to boot, you lost me in a sandstorm, by step 3; I've no idea how to do that.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] AeonFlux1603:
The latest official stock firmware for the xt1921-5 Moto E5 Play has been released. This is OCPS27.91-140-6 for Boost Mobile Virgin Mobile and Sprint subscribers, with February 1, 2019 security patches. https://mirrors.lolinet.com/firmware/moto/james/official/Sprint/
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] Ole Bob:
How do you "Check the backups" to know they are valid? :confused:

---------- Post added at 07:19 PM ---------- Previous post was at 07:05 PM ----------

An exuberant neighbor gushed about the "Truly Unlimited" Moto e5 from Walmart. After sitting out the "latest and greatest" scramble for a few years, and tuning out the 'noise' I decided it was time to "experiment" because they gave "14 days Return" on the phone (and the false promise of no data cap)…

After reading many threads over several days, I'm left with lots of Noob type questions:

Is the Moto E5 (NOT the "play" or the "plus", just "e5") what everyone keeps calling the "James" ???

Is there software that performs the unlock ? Or just the online Moto procedure if you are "approved" to be unlocked? what gets you "approved" ???

Amazon currently has the "international version", UNLOCKED, for only $20 More with no carrier. That seems it might be worthy just for a REALLY clean version with no carrier bloat or Hotspot 'Control'…?

My target, (and what will actually make a new phone ?????? for me), is "truly unlimited" instead of capped, throttled fraud, on a clean, simple, Rooted-Unrootable phone with no 10gig hotspot cap. Is that asking too much? Am I on the right track ???

I have the unlocked "international version" in my amazon cart and will order it instantly after receiving some wisdom that it's a good idea, and I can patiently wait to change ANYTHING and disallow any OTA updates until any images anyone needs are posted…

Please advise…
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] triggerlord:
Hey, I remember you. (I had a different username then.)

I've been debating between this phone and the G6 play but boost decided for me when the G6 went out of stock. Because who knows when boost will actually get more in stock. Lol. Hope to see some custom roms for this device.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MotoJunkie01:
Yeah me too. I'm thinking a port of LineageOS 15.1 could be fairly easy, due to so many of these recent Moto decides having similar chipsets and fstab configs. I'm playing around with a couple things using a Python based Android kitchen, so wish me luck. BTW, what was your old username?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CurbThePain:
I'm getting 255 twrp errors when trying to install anything. Is this the 64 bit version of twrp?
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
You can't really install things with TWRP unless you've also removed forceencrypt from /data since TWRP can't mount /data if its encrypted.. If you follow the OP it has the commands to do that. All of these devices still run 32-bit even tho the SoC supports 64-bit I believe.

Also feel free to post / make anything. Just glad I was able to root it. I had lineage ready to compile but the build system is really finicky since 15.1 and there are a few silly issues that needed to be resolved. I may work on it more this weekend.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
Another tiny issue is the lineage kernel build system. I compiled the LA.UM.6.6 kernel from code auora and put the james .dts files from a kernel they had already released the source from that had the james dtb stuff in it anyway and I could get it to boot (after manually attaching the DTBs), but wifi cell and battery stats didnt work. Would help if they release the actual source (with the DTS files) on their github even tho the branch they are using is the Code Auora LA.UM.6.6 tag.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MotoJunkie01:
I have a fully functional stock Android 8.0.0 Oreo ROM compiled for this device. [MENTION=5337314]CodyF86[/MENTION] I have used your boot.img and I have unpacked it, set it to an insecured boot image with init.d support. I've also patched SELinux policy for deodexing in the future. The disabled dm-verity and other original patches and mods you done on the kernel are untouched. Of course, I do want your permission and approval before uploading the ROM. I will give you due credit in the OP of course if you are ok with me including it in the ROM zip. I'll try and upload it and post a link this evening.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
Of course go for it. :) Where / how did you set ro.secure to 0 if that's what you mean? Been trying to do that to make it easier to pull the binary blobs with ./extract-utils.sh if that's what you mean by insecure. :)

I tried changed it in default.prop, but it still boots ro.secure 1 like it's set by the init binary.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CurbThePain:
Great work. Can't wait to see it.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] MotoJunkie01:
I unpacked the boot image with a Python kitchen which has a feature to set secure in the default.prop from 1 to 0. It also has options to disable dm-verity, which you had already done. I had to go into work this morning. Was supposed to have the day off, but I have some down time so I'm going to work on uploading the ROM and writing a thread.

Update, ok I am uploading now, although internet upload speeds are a bit slow in this metal building. The ROM.zip size is pretty much exactly 1GB. I need a favor from one of you guys -- I need for somebody to pull the /oem partition from the e5 Play and upload it. I debloated my device by stripping down the /oem partition, but without making a backup first. I would like to have a copy of the /oem partition just for backup purposes. Soon as this ROM upload finishes I'll post a link here and write an official OP later today. But if somebody could pull an /oem partition for me and upload it, I'd truly be grateful.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
ro.secure is still 1 even after setting it to 0 in the default.prop...although the default.prop is stored on the /vendor partition on this phone. getprop ro.secure still comes back as 1 when i tried it i mean... :(
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CurbThePain:
I can attempt to upload my oem partition. I'll update this comment with a link to the upload.

Edit: Here is the link.
[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] CodyF86:
Added instructions for wifi / unlimited tethering to OP.