yashsingh1/xdaforums huggingface dataset:
[E 2015 General] MotoJunkie01:
Gotcha. Have you seen this flashable version of s.12? It comes rooted, deodexed, debloated and with an insecure boot image.

http://xdaforums.com/moto-e-2015/development/rom-boost-moto-e-2015-lte-stock-5-1-t3363686

---------- Post added at 07:11 AM ---------- Previous post was at 07:08 AM ----------

Likewise, here is a TWRP flashable build of s.11, also rooted, debloated and deodexed.

http://xdaforums.com/moto-e-2015/development/boost-moto-e-2015-lte-stock-5-1-lpi23-t3262875 [MENTION=5787964]SuperR.[/MENTION] done an outstanding job with the original soak test ROMs for the Moto E LTE 2015 and stayed on board with support all the way to the last build.

By the way, let me know if you need any stock firmware builds. I have all stock firmware for the xt1526, in both TWRP flashable .zips and complete fastboot flashable packages. Likewise, I have the respective partition updater .zips for each build.
[E 2015 General] DanHutchins:
Actually I have never seen that one. I went back to complete stock and unrooted. I gave the phone to my 4 year old to use for games and figured if it wasn't rooted he couldn't mess anything up to bad. He also had an old moto g that I never used and never unrooted and have had to reinstall rom a number of times because somehow he wipes it.
[E 2015 General] MotoJunkie01:
Yeah, the ol' Moto's are great phones for the kids too. Haha. I've used one or two myself for the exact same purposes.
[E 2015 General] DanHutchins:
That's for sure. Damn things are rugged as hell. Been dropped to many times to count and not even a scratch. Now I'm thinking about going back to it since straight talk finally added the Boost version to its byop offer.
[E 2015 General] MotoJunkie01:
Yeah I saw where they had done that. But, I also just saw a day or two ago where both Walmart and BestBuy are no longer going to be carrying the Boost xt1526. They have all been pulled from the shelves here where I live. So if you run across any, better grab a couple. Yeah, like you said, definitely rugged and durable.
[E 2015 General] DanHutchins:
Haven't had them here for a long time haven't seen them at Walmart since about 3 months after I bought mine when it first came out.
[E 2015 General] MotoJunkie01:
There's a huge reason for that too. PM me sometime and I'll give you the whole scoop on that.
[E 2015 General] floppytechie:
I tried following this guide and i successfully flashed the stock firmwares after coming from CM13. but now the sim slots dont work and i cant connect to any cell signal nor is my sim card settings shown in the settings menu. i want to add that I am from India and had purchased the phone from there. Can anyone please help? :(
[E 2015 General] jask74:
in xt1521 there is no sparsechunk 5 and no partition 'customise'

please resolve the issue
[E 2015 General] DanHutchins:
What issue? No one knows what issues your having.
[E 2015 General] TruBlaze:
Are there instructions for TWRP?

EDIT: Nevermind.
[E 2015 General] DanHutchins:
What kind of instructions? Flashing it or using it?
[E 2015 General] thomasck:
Hi all!

Guys, my father, somehow, bricked his Moto E2 - Surnia.

I'm trying steps of the 1st post.

Drivers are installed, device is correctly recognized in Windows Device Manager.

RSD Lite does not list the device. Also, I tried another USB Cable. Dunno what else I could do.

When I input 1st line, I get,

"C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot oem fb_mode_set

...

FAILED (remote failure)

finished. total time: 56.771s"

All files, such whole rom file, and extracted files are onde the folder mentioned above.

Any tips?

Bootloader screen says;
[E 2015 General] Sher1234:
I think it's because your bootloader is locked
[E 2015 General] thomasck:
That's the question. I cant boot-up the system, so, I cant unlock de boot-loader. I think is bricked forever.
[E 2015 General] Sher1234:
Then try to go to service center
[E 2015 General] thomasck:
It's on the way.. Thanks for you all!:laugh:
[E 2015 General] DanHutchins:
You can unlock the bootloader by fastboot. Install minimal adb and fastboot then plug device into PC while in bootloader then just hold shift + right click anywhere and type in fastboot get OEM unlock data copy the string of numbers and letters it should be about 5 lines. Yes you need all of this. Then paste to a sticky note on PC remove the word bootloader from the beginning of each line then make the 5 lines into 1 continuous line with no spaces then copy that and paste to the Motorola bootloader unlock site and get unlock code. Then back to PC open cmd the same way I said above and type fastboot OEM unlock. After unlock you must paste the unlock code. Should look like this with your own unlock code. fastboot oem unlock VHC6635J7RRLKTE335UD then hot enter.
[E 2015 General] thomasck:
I've tried that my friend, but no luck, cause the option is not enabled on the Android System. There's a box to check, like "Allow OEM Unlock" (or something like that). And, as I can't boot up the mobile, I can't enable that option. Even like this, I've tried this procedure but did not work. :(
[E 2015 General] Xtrone:
mine says cannot load the bootloader.img. Please help if anyone knows how to solve that
[E 2015 General] MotoJunkie01:
I'll try and help but I'll need more info. Please start from the beginning on what you are trying to do, and provide your model number, carrier, etc.
[E 2015 General] SoNic67:
I have a Sprint/VirginMobile XT1526 - at some point it has received an OTA with Boost firmware with system "25.11.26.surnia_boost.Boost.en.US sprint", baseband modem "M8916_2020610.17.03.21.26R SURNIA_SPRINT_CUST" and build number "LPI23.29-18-S.12".

I have looked at the usual place for the stock firmwares at https://firmware.center/firmware/Motorola/Moto E (2nd gen-2015)/Stock/XT1526/ but I see that the highest it goes for 5.1.1 is to -S.11.

Q1. Is there another place with the latest? Or I would have to install -S.11 and wait for the OTA again?

Q2. In the restore sequence posted here, I see this line:

"mfastboot oem config carrier vzw"

I guess that's needed just for the Verizon version (XT1528)?
[E 2015 General] Xtrone:
Thnx for considering my request buddy but I got the job done . I didn't have a file named bootloader.img instead I had boot.img so I just changed that ........ And it worked!??
[E 2015 General] MotoJunkie01:
Hey glad you got it figured out. Nothing like good old trial and error. :svetius:
[E 2015 General] :
hello, i have an otus xt1506, and it started failing in cellular signal until it stopped completely.

i want to put the stock firmware on it, to see if it works, and also because i want to sell it. Right now, it is with the bootloader unlocked, and in version 51.09 (i hope that represents the bootloader version). i wanted som help with what to do, which firmware 5.0.2 or 5.1 ?
[E 2015 General] kumaranwade:
Now i m using stock rom 6.0 on my xt1521 indian version bootloader says rom status:modified. How can i make that Official which is in previous state!!
[E 2015 General] rybshik:
Restoring (flashing) stock recovery img

Hello,

I unlocked Boot-loader and flashed Squid's TWRP 'twrp-surnia-3.0.2-r5.img' to my XT1527_SURNIA using the ADB command

fastboot flash recovery twrp-surnia-3.0.2-r5.img

and it works fine.

I have not modified the ROM. Now I want to restore stock recovery. So I guess I can do it with the same command

fastboot flash recovery recovery.img

So I need stock 'recovery.img' file

I have downloaded firmware 'XT1527_SURNIA_RETCA_6.0_MPI24.65-39_cid14_subsidy-DEFAULT_CFC.xml.zip' and it contains file 'recovery.img' of size 31.9Mb. Can I flash it to restore stock recovery?

I am a bit surprised that the firmware's 'recovery.img' has size 31.9Mb while 'twrp-surnia-3.0.2-r5.img' is only 7.24Mb

Just in case, here is my hardware information:

I also have a related question: If I ever need to backup a new device's (original, stock) recovery partition and create 'recovery.img' for later restore, how do I proceed?

What is the difference between CMD '

m

fastboot' and CMD 'fastboot' ?
[E 2015 General] MotoJunkie01:
mfastboot is a command set specifically for Motorola devices. Very similar to fastboot but with specifications geared toward Moto devices only. If you want to extract a recovery.img from your stock ROM there a any number of ways to do it. If you ate rooted with SuperSU, download Flashfire by [MENTION=631273]Chainfire[/MENTION] and simply backup your recovery partition (or any partition) using the option for Fastboot flashable backup. The app will dump (copy) your recovery partition as recovery.img.

As to your other question, yes, the recovery.img extracted from the stock firmware you mentioned will restore your recovery to stock.

Just to clarify, using fastboot versus mfastboot will work on Motorola devices as well. However, mfastboot is preferred when flashing the larger system spareschunk files.
[E 2015 General] Sanjeevi Mariappan:
Thanks.But when I completed and rebooted system,it gets stuck in boot loop.Even I reboot agin,it stays in the loop. Any fix for it????

Mine is Moto E2(2015)4G LTE Surnia_ model: XT1521
[E 2015 General] m4clac:
I've got a problem with my E - it's a XT1524 version. Was running 6.0 via OTA and unlocked the bootloader to install LineageOS. Something has gone awry and I can't get past boot animated even after trying to revert to stock.

In the fastboot menu my baseband reads as 'unknown' and the device status is 'Unlocked' 'Status Code 3'

Any tips?

It's a backup phone I was just wanting to test a custom rom on so it's no a huge loss but I would like to try and correct it.

Cheers

Malc
[E 2015 General] m4clac:
Never mind....was running an older version of TWRP. Updated to current and all is well.
[E 2015 General] jerryasher:
I am trying to restore a stock boost image from CyanogenMod 13.

Problem, I don't recall what version of Android (5, 5.1, etc) it was running, and the newest images seem to require repartitioning.

How do I figure out if the partitions need repartitioning, and is it dangerous to run the repartitioning zip twice? Or to repartition a system that has already been partitioned?
[E 2015 General] MotoJunkie01:
I'm assuming you have the xt1526 Boost Mobile variant. It is not dangerous to flash a partition updater more than once. But once updated, there is no downgrading the partitions to an earlier version. The same goes for the bootloader. The Android OS itself can be downgraded, just omit bootloader.img and gpt.bin from your queue of firmware files being flashed via fastboot.

As far as determining whether a partition update is necessary, I do recall that during the "life" of the various Lollipop builds for the Boost xt1526, the partitions were updated upon each build release. This is a chronological list of Android Lollipop builds released by Boost Mobile for the xt1526:

Lollipop 5.0.2 [LXI22.50-14.8]

Lollipop 5.1 [LPI23.72-18-S.1]

Lollipop 5.1 [LPI23.72-18-S.2]

Lollipop 5.1 [LPI23.72-18-S.8]

Lollipop 5.1 [LPI23.72-18-S.11]

Lollipop 5.1 [LPI23.72-18-S.12]

To play it safe, when flashing a stock firmware package, always flash the included gpt.bin partition updater.
[E 2015 General] jerryasher:
Thanks, that is very helpful to know!

FWIW, yes, I have a boot variant, and I only want to downgrade long enough to perform a PRL update so I can get my phone working again, then I'll reflash either CM13 or LineageOS 14.1.
[E 2015 General] MotoJunkie01:
"Downgrading" stock firmware refers to flashing an earlier version of stock than the version of stock that was last installed on the device. If you know the last stock build number, you can either flash it again or go with a higher version.
[E 2015 General] jerryasher:
Unfortunately I don't. I had thought I had made a nandroid copy of it, but, ... I can't find it.

Speaking of nandroid and repartitioning... Will a nandroid backup re-repartition storage, or will a nandroid backup fail if various partitions are too small?
[E 2015 General] MotoJunkie01:
Your safest bet (virtually no risk if flashed correctly) is to install the final build of the Stock Boost Android 5 1 firmware package (LPI23.72-18-S.12) with minimal adb & fastboot, taking note to flash gpt.mbn (partition table updater) first.
[E 2015 General] xpmule:
I see 6.0_MPI24.71-4 is out !

I see another topic where a guy posted he got an OTA update and i already got one too before i seen his topic.

He is from Belgium with the XT1524 and i am from Canada with the XT1527.

We both have the same update rolled out.

I have asked before and never got an answer.. how do the guys uploading the stock firmware packages make them ?

I always use those as my base for stuff.

So for.. no package exists online for the new version, i looked hard.

I captured the OTA and could probably merge it into the previous stock firmware package..

But i would wan tot know how they did it properly etc.

We all seem to use them and no one will say HOW they are made.

They do NOT come from the manufacturer LOL

This is a little more meaningful because my Moto E 2015 has not had update in a looooooong time.

And the update includes a lot of major security fixes etc.

So it would wise for all of us to get this update ASAP !

One thing i think we could do is flash our phone stock with the previous build full firmware package then apply the OTA after the fact.. as long as the OTA does not check for a modified bootloader i think.

Also if using a custom Kernel like Squid's i am willing to bet we will have a conflict.

It's quite likely the OTA will over write parts of his Kernel install.

Firmware ?

Yeah..

No one knows WHO made them or how and we don't even check the hash's on them when trading them ROFL

so hey, uhmmm.. can a guy get a little information over here or what ? hahahha
[E 2015 General] likith008:
gpt.bin preflash validation failed!!!

i was on a custom rom now trying to revert back to the stock rom ofXT1521_SURNIA_RETASIA_DS_6.0_MPI24.65-39_cid7_subsidy-DEFAULT_CFC.xml in indian variant unlockled bootloader and i had no problem excpet this issue in cmd

mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)..
OKAY [ 0.007s]
writing 'partition'...
(bootloader) Preflash validatation failed
FAILED (remote failure)
finished. total time: 0.357s

i rather ignored hoping some luck but the phone got stuck in bootloop as expected!!:(

2)i also tried install the TWRP over this and tried erasing the whole data inorder to flash the custom rom atleast but as i slide to flash TWRP just restarts all of a sudden.. tried multiple times no luck :(

3)adb sideload doestn work either for installing custom roms :(

4)lastly tried installing CMW recovery but that just refuses to open at the first place!!!:(

all the partitions are format ready as i already tried via the TWRP....

just not understading what are the odds of this whole thing:(

Thanks in advance
[E 2015 General] moto e2 3g:
Which software should i use to flash stock firmware Rsd lite OR Firmware flasher.

Or should i just enter all the commands one by one.
[E 2015 General] Btrusa:
Enter them all 1 by 1 via fastboot.
[E 2015 General] Tmobilefan906:
Are xt1528 able to be reverted from 5.1 to 5.0?

---------- Post added at 02:09 AM ---------- Previous post was at 02:05 AM ----------

How did u flash that since the bootloader is locked?
[E 2015 General] venu chinna:
how to relock bootloader of moto e2

can anyone tell me how to relock bootloader of moto e2?
[E 2015 General] MotoJunkie01:
https://xdaforums.com/showthread.php?t=3489110

Are you relocking to try & reinstate warranty?
[E 2015 General] heyDante:
What are the steps in Ubuntu?

I don't have Windows.
[E 2015 General] SuperPcStudio:
Fully Working........................................... .............................

Thx guys ......................

You juast saved me from my parents!

I have tried to install cm14 and it stucked on bootloop!

I tried every single os such as Mokee, Lineage OS but none of them worked!

You have just saved me!:):):):)
[E 2015 General] shubhi_D:
Its saying "preflash validation failed", what to do? My bootloader is locked
[E 2015 General] MotoJunkie01:
You may flash official signed firmware packages with a locked bootlloader, so long as the package is the same build currently on your device, or a newer build. To the best of my recollections, downgrading isn't permitted with a locked bootloader. Did you attempt to flash an older build?
[E 2015 General] overthc:
Hi, where are the stock firmware lin to download?
[E 2015 General] shubhi_D:
Here you go

https://firmware.center/firmware/Motorola/Moto E (2nd gen-2015)/Stock/XT1506/

---------- Post added at 04:35 PM ---------- Previous post was at 04:34 PM ----------

I just ignored those messages and it worked :)
[E 2015 General] MotoJunkie01:
Glad it worked for you.
[E 2015 General] overthc:
Thaks, but my phone came with 6.0 from Sprint, and Sprint 6.0 isn´t on this list.
[E 2015 General] shubhi_D:
I guess your phone is 4g, is it? The link I shared is for 3G model sorry I don't know about stock rom for your model
[E 2015 General] overthc:
Yes it is 4G, thanks anyway.
[E 2015 General] MotoJunkie01:
The xt1526 -- like all other domestic Moto E LTE devices - never received an update to 5.1.1 or 6.0. The most current software version for the Sprint xt1526 is Android 5.1 {LPI23.29-18-S.12}. I have that particular firmware package if you need it.
[E 2015 General] overthc:
I have a Prepaid Sprint Variant XT1526 which had Android 6.0 Stock, but time after I flashed Lineage OS.

This picture shows the creen of the fastboot mode when it had 6.0. Also shows that it came with the bootloader opened. :cool:

You must read: https://xdaforums.com/moto-e-2015/cdma-development/stock-xt1521-gsm-xt1526-cdma-t3342789
[E 2015 General] MotoJunkie01:
Odd indeed. I checked our manifests to be certain (I work at Motorola/Lenovo); Motorola did not release any 5.1.1 or 6.0 stock firmware for the Sprint variant of the xt1526. The firmware manifest for the Sprint xt1526 indicates that the final build for that model is Android 5.1 (LPI23.29-18-S.12). According to your Baseband Version, your radio firmware is from Android 5.1.

Correction....being perplexed by your device, I dug deeper into your device info. Your Baseband is in fact from a stock 6.0 ROM ....a Canadian Stock 6.0 ROM for the Telus/Rogers xt1527. You have the wrong modem on your phone.

If you want to flash the correct modem & radio firmware to your device, here is a link to the files you need. This is the most current Baseband Version for the Sprint xt1526 -- M8916_2020610.17.03.21.26R

https://drive.google.com/folderview?id=0B7-zQU1VihD3VHM0cnhCN0JjVkk
[E 2015 General] resol341:
---------- Post added at 06:36 AM ---------- Previous post was at 06:34 AM ----------

[/COLOR]

Do you happen to have the full firmware for this (sprint) version? All I could find was for boostmobile. I flashed and it won't boot (stuck at the unlocked bootloader screen). Thank you very much!
[E 2015 General] MotoJunkie01:
The Boost Mobile firmware is correct. Virgin & Boost Mobile both used the exact same firmware on the xt1526 models. Did you update your partitions prior to flashing the firmware?
[E 2015 General] resol341:
I could not get the gpt.bin to flash. It always give a remote failure error (with unlocked bootloader). However, I was able to boot 5.0.2 version apparently without flashing the gpt.bin or bootloader. I am now upgrading to the lastest through OTA.

Thanks for your reply!
[E 2015 General] t-shock:
Hi

My XT1524 had received the latest December patch. I did want to install LOS 14.1 and thus I unlocked the bootloader. But I want to return the latest stock. I couldn't find the latest one. Only the February one. As a result, I'm not able to install it completely and if I flash only the system and the boot.img, I get an update notification (which I'm scared to install because it may brick my device, or it is my idea????)

Anyhow, where I can find the latest and "greatest" stock firmware for my XT1524

Thanks
[E 2015 General] ENRIQUEMM:
Use this script

https://xdaforums.com/moto-e-2015/general/eng-moto-e-stock-firmware-flasher-t3348202

And the correct firmware

http://www.filefactory.com/folder/752fdb49361c7f62/?sort=filename&order=ASC&show=100&page=2
[E 2015 General] bibinini:
Just did this to restore my semi-bricked VZW XT1528

I kept failing until I realized that the OP post only had me flashing 5 sparsechunks and the firmware I downloaded had 6. Keep that in mind, guys.
[E 2015 General] voshchronos:
Thank you so much for this! Wouldn't have realised this by myself haha.
[E 2015 General] chrono_s3rge:
link to stock rom is down

My phone model is otus 3G retail mexico. Any chance to get a new link?.
[E 2015 General] Badrikesh:
I have XT1521. Where can I get the firmware or whole system zip file with December 2016 patch.

My device is in the latest December 2016 patch update but it has a problem with the bootloader that everytime I experience when turning on and powering off the device.

I tried to flash the older firmware with Android 6.0 feb 2016 update but ended up with lot of errors.

Can someone provide me December 2016 update firmware?
[E 2015 General] monto2k2:
How could the instructions not include the fact that you need to factory reset your device before going back to stock ROM. In my XT1524 running Lineage I got back to the stock 6.0 ROM without factory reset first and now it does not allow me to login to the phone saying "Please sign in using one of the owners accounts for this device". I have tried three of the accounts I had last in Lineage OS, but none of them are getting accepted. I am not sure if something messed up with the last account used during the flash and why it is not accepting the ones used (none of the account's password has been changed so 72 hours colling off does not apply). It looks like 5.x ROMs may not give this problem, but I had trouble flasing 5.x ROM resulting in bootloop. Any idea's how the FRC security can be bypassed so that I can use my phone again?
[E 2015 General] Primalmudcat:
try root junkies "reaper"frp software
[E 2015 General] MotoJunkie01:
If you have access to another xt1524, one that is not FRP restricted, make a dump of the /frp partition from that device in img format, then, using fastboot mode, flash the dumped image to your frp locked device.

Another way is simply to install LineageOS or some other custom ROM, but don't flash GApps. Go through setup and initialization, then install GApps. Sign in when prompted upon reboot. Reboot to recovery after signing in and perform a factory data reset. Now, install the stock ROM of your choosing. If you receive an FRP prompt to sign in, the credentials you used to sign in on your custom ROM w/GApps should now work.
[E 2015 General] OSTUNG:
My bootloader is locked, it is not possible to enable OEM unlock because i have a soft brick,

when a try to flash any official stock

this message is displayed:

writing 'partition'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.341s

Is there anything to do to unlock the bootloader without the OEM unlock, or a trick to flash flash stock successful?
[E 2015 General] ALASTOR1111:
Always get this error when flashing gpt.bin: FAILED (remote failure)

Why?
[E 2015 General] vishnurevula:
Does this enables volte on my phone
[E 2015 General] mauriciognr:
Heres a little video a made about how to flash roms with the firmware flasher, is in spanish.

[YOUTUBE]UxLpec0PGNA[/YOUTUBE]
[E 2015 General] adluna:
How to select Firmware version

I've been looking through all the possible firmware downloads for my Moto E 2nd gen, XT1527. I have found several that might work, but they have different CID# as in this example:

XT1527_SURNIA_ATT_5.1_LPIS23.29-18.9-6_cid1_subsidy-ATT_CFC.xml.zip

There is no mention of "cid" in my settings, so I am confused about which version of the firmware I should use in case I need to restore it back to stock. Can someone here help a newbie with this?

This is a screenshot of my settings:

https://xdaforums.com/picture.php?albumid=14743&pictureid=57023