yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] TheFixItMan:
Open the folder you have your adb, mfastboot and firmware files

Hold shift and right click within some empty space within the folder window (not on any icon)

Select open a command prompt here

Type in the commands as per op (or copy/paste)
[Moto G 4G Android Development] tooter1:
Here is what it says when I push power button to boot the phone.
[Moto G 4G Android Development] hacktrix2006:
[MENTION=1006674]lost101[/MENTION] wouldn't this need an unlocked bootloader like, hence the remote failed and Preflash validation failed errors.

Just an idea seems the user has a Status Code of 0 like.
[Moto G 4G Android Development] TheFixItMan:
You are getting this error because you haven't unlocked your bootloader - please unlock your bootloader via the Motorola website and the lock status 0 will change and you can flash the same or updated boot loader & firmware
[Moto G 4G Android Development] tooter1:
I guess I'll have to send it to Motorola then, cause this one is not unlockable. :banghead:
[Moto G 4G Android Development] lost101:
Unlocking Bootloader is not a requirement. You have to consider who is actually supposed to be flashing these firmware images. The images are for carrier / shop engineers to flash on units before being sold to customers.

Having said that, unlocking the bootloader is sometimes one way to resolve the 'preflash validation' error.

[MENTION=3039886]tooter1[/MENTION] - When you have a Cricket Lollipop Firmware Image, that should flash without error.
[Moto G 4G Android Development] tooter1:
If only they would release it for this model.
[Moto G 4G Android Development] Wyneg:
In motorola Forums:

"I have some good news ! a lot of brazilians moto g 4g users are receiving android 5.1 lollipop and its not soak test ! really want to share some pics with you guys but i think it's forbidden isn't it ?"

In google+:

https://plus.google.com/100655771754531139026/posts/6mvSFpMzjBC

Is soak or real OTA? What do you think?
[Moto G 4G Android Development] dc239:
It' still soak test...
[Moto G 4G Android Development] UnquietPeasant:
Updated 5/26/2015: All users on Retail BR (21.31.1.peregrine_retbr.retbr.en.BR retbr and 21.11.56.peregrine_retbr.retbr.en.BR retbr) can download and install Android 5.1.
[Moto G 4G Android Development] kykemejia:
Where can download this?
[Moto G 4G Android Development] PatrickDziura:
I'm using the final brazilian 5.1 and it's fine. xD I think that it's better than CM12.1, but the performance it's a little better on CM12.1 (not the RAM management, this is better on official)
[Moto G 4G Android Development] Wyneg:
Hi!

Do you updated via OTA or captured zip?

Thanks ;)
[Moto G 4G Android Development] PatrickDziura:
Captured zip, but some people are updating by OTA to 5.1, but it's the same version.
[Moto G 4G Android Development] Wyneg:
Have you a link of captured zip? Is it blur version (I saw few days ago a zip of that, but I can not install it as update)?
[Moto G 4G Android Development] PatrickDziura:
I don't have a link xD

I'm on the job and here Facebook or MEGA is blocked.

And I update through the original recovery, as a update.

And I think that only with the version 21.11.56 it'll work, I flashed stock 4.4.3 from Brazil (the same as here in XDA), then updated via OTA to 4.4.4 and then updated to 5.1
[Moto G 4G Android Development] Wyneg:
Aaaah, ok ;) I installed retail Brazil ota from XDA too, but I'm in Chile xD

Thanks!
[Moto G 4G Android Development] kykemejia:
Beware if you think downgrade, the risk of bricked is latent.

I bricked my device and not can restore.
[Moto G 4G Android Development] necktru:
Youre right, I cant downgrade from CM12.1 to KK, mi phone only boots in fastboot and recovery but I cant install any rom, stock or custom, looking for help

Enviado desde mi iPad utilizando Tapatalk
[Moto G 4G Android Development] lans_98:
Pffff :v just install CM11 , when you downgrade to 4.4.3 flash "gpt.bin" from a 4.4.4 firmware for don't incompatibility with bootloader and it will not break your phone.

And thats all.
[Moto G 4G Android Development] necktru:
I cant, TWRP or CWM recovery doesn't recognize any partition, if I try to flash any rom, fails at : E: Cant mount /data (and system and cache), by the other side if I try to flash through mfastboot, I only get a boot image, nothing seems to work, I think my partitions are corrupted, mfastboot don't let me flash any gpt.bin file, always send error, and because of that, I can't flash neither stock and custom roms

My only hope is a 5.1 official rom to flash throught mfastboot, I still wait.

:confused::(
[Moto G 4G Android Development] UncolourTV:
I was able to downgrade from CM12.1 to Stock 4.4.3 without any problems. I think as long as people follow the mfastboot procedure on the first post of this threat (as i did), everything will be alright. Now I just waiting for que ota.
[Moto G 4G Android Development] primewell:
Irrelevant post by me, sorry guys!
[Moto G 4G Android Development] necktru:
Some news about the 5.1 Rom for the xt1040?? I need the zip file complete to flash through mfastboot. Not the update file that is in another thread.
[Moto G 4G Android Development] UnquietPeasant:
Heads Up Display was added in the official XT1040 5.1 update
[Moto G 4G Android Development] moses_dx:
Is it needed to be converted to Brazilian prior applying the ota? I have 1040 terminal
[Moto G 4G Android Development] necktru:
Yes, its needed

Enviado desde mi iPad utilizando Tapatalk
[Moto G 4G Android Development] UnquietPeasant:
Updated 5/29/2015: Select users on Retail BR (21.31.1.peregrine_retbr_eu.retbr.en.BR retbr) can download and install Android 5.1.

This is the XT1039 brazilian version IIRC
[Moto G 4G Android Development] primewell:
Updated 6/1/2015: Select users on Retail Germany (21.11.56.peregrine_retde.retdeall.en.DE) can download and install Android 5.1.

Updated 6/2/2015: Select users on O2 GB(21.11.56.peregrine_o2gb.o2gball.en.GB) and Tesco GB (21.11.56.peregrine_tescogb.tescogball.en.GB) can download and install Android 5.1.

Guys, it's becoming real!
[Moto G 4G Android Development] me_is_rushin:
I don't think it's much of a stretch to say there is a good chance we will get 5.1 sometime this month.
[Moto G 4G Android Development] primewell:
I hope so... I'm just praying someone is capturing the GER rom, as I switched to EUR via flash and am stuck there... wanna go back and receive L-GER straightaway (as my XT1039 is actually GER and not EUR) :P
[Moto G 4G Android Development] hacktrix2006:
[MENTION=5131679]primewell[/MENTION] have a look at my links to see if its the right firmware and then use mfastboot to restore back to get version http://xdaforums.com/showthread.php?p=59853312 so long as your currently on 4.4.4 now.
[Moto G 4G Android Development] ebol94:
When will it be posted here? It's been a week since I installed Brazilian version and it's awesome.
[Moto G 4G Android Development] Danymat:
Guy's who have already installed official lollipop,

Can you say me how is the battery, and the ram?

? :)
[Moto G 4G Android Development] TheFixItMan:
Iv been using it for about 4 months now - UK XT1039 and the battery is fine and will last all day with normal use (not heavy gaming obviously)

Ram is fine - free ram fluctuates between 250-350mb with system taking up about 350mb of ram

No problems with multi tasking - chrome lags a bit but that's more to do with the app itself rather than not enough ram in my opinion
[Moto G 4G Android Development] bejunk:
I wanted to do this by next week... Im too German, so i justr need to switch back to stock 4.4 german retail & wait for update. just 1 question is there a thread how to mirror the fw from my phone ito a file you guys can use?? i never did this & have no idea how to:confused: or simply like "adb pull /system" ... xD?

i need some clarification. Im on a custom ROM based CM12.1 now. before i was on stock 4.4. Now i want go back to 4.4 stock to get the official LP update. I heard downgrading our device can be little risky... So, can i just installl stock 4.4 using your guide without bricking my device? Thanks in advance btw my model is XT1039
[Moto G 4G Android Development] hacktrix2006:
[MENTION=5257316]bejunk[/MENTION] your save to just go back to stock as you still have the 4.4.4 boot loader. Its only after you have updated to lp stock and it updates the bootloader where downgrading can brick the device if not careful.
[Moto G 4G Android Development] bejunk:
Ok thank you very much then! I think i still have the KK BL (41.13) as i never updated it. Like said i will upate my mobile next week to mirror that german retail... thanks man! (out of 8 tday, tomorrow i will do)
[Moto G 4G Android Development] primewell:
Problem is I had to flash stock after I softbricked. Was in an urge and the provided links for KK GER stock were too slow, so I downloaded the EUR version (with the "-1" at the end). When I wanted to reflash the GER version 2 days later (over the EUR version), fastboot gave out an error while flashing gpt.bin, saying that versions didn't match and thus no flash could be done. Or is that irrelevant and I simply have to flash system.img_sparsechunk.0, etc? Would everything except for gpt.bin from GER stock be enough to be a valid GER stock user (and thus enable me to download L)?

Otherwise I'll simply wait for someone to upload the GER captured image of L and flash it over my current EUR stock KK.

XT1039 here btw
[Moto G 4G Android Development] hacktrix2006:
Flash using the following

mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata <Don't use if you want to keep your data>
mfastboot reboot

That will then get you back to Stock GER firmware.

Then when you update the LP it will then correct itself hopefully, if not when the 5.1 full images are out you'll be hopefully able to then sort the problem with gpt partition.
[Moto G 4G Android Development] razlack:
Quick question and I think the answer is yes but....

I have rooted my Tesco GB XT1039 but remained on the Stock Rom using TWRP.

My phone will likely show me an OTA soon, but I wont be able to install it.

I'm guessing all I have to do is mfastboot flash recovery recovery.img to restore the original recovery?

Then I should be able to OTA?

Is this likely to cause any issues?
[Moto G 4G Android Development] hacktrix2006:
You'll need to do first a full unroot and then flash the following partitions.

mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3

Reason for having to reflash your system partition is that the new Lollipop from what i understand does a checksum at block level so if the system partition is changed in any way the OTA when it comes out will more then likely fail.

However if your only installing TWRP to root you could always boot CF-Auto-Root-peregrine-peregrineretgb-xt1039.img via the use of

mfastboot boot CF-Auto-Root-peregrine-peregrineretgb-xt1039.img (you can just shorten the file name to root.img)

And this will then root the phone whilst keeping the stock recovery in place.
[Moto G 4G Android Development] moses_dx:
Anyone already got 5.1 in 1040? If so, please share complete image
[Moto G 4G Android Development] razlack:
Thanks for the info. I have had an HTC phone in the past and been happy to play with it rooting etc, but I'm always worried with this one that I'll flash something that will brick it. Can you point me in right direction for instructions on un rooting? I know it's probably here somewhere but I can't find it

Cheers
[Moto G 4G Android Development] hacktrix2006:
Simple unrooting is to mfastboot flash them partitions that will unroot it for you bud if your using SuperSU there is a full unroot option in the settings.
[Moto G 4G Android Development] razlack:
Cool. Cheers for this. I will give it a try when the update rolls out. Does this wipe any of the apps and settings on my phone?
[Moto G 4G Android Development] hacktrix2006:
If you don't erase user data partition you should be fine
[Moto G 4G Android Development] necktru:
Second this

I need the complete xml.zip

Enviado desde mi iPad utilizando Tapatalk
[Moto G 4G Android Development] primewell:
Update 6/8/2015: Select users on Retail Spain (21.31.1.peregrine_retes.retesall.en.EU) can download and install Android 5.1.

Please remember to capture the image, guys :)
[Moto G 4G Android Development] gartzen:
I'm not a select user :crying:
[Moto G 4G Android Development] Ketcchup:
Damn, I don't know how to downgrade to stock 4.4
[Moto G 4G Android Development] hacktrix2006:
[MENTION=5275490]Ketcchup[/MENTION], have you flashed a custom rom? or did you flash Motorola's 5.1 Android ?

If your on a custom rom and never upgraded to Android 5.x then its a simple case of getting the latest 4.4.4 full image for your phone and flashing it as per OP instructions if you have upgraded to 5.x then you flash everything other then the gpt.bin and motoboot.img.
[Moto G 4G Android Development] Ketcchup:
I have CM12.1

Gonna do it, hoping I'm one of the lucky owners
[Moto G 4G Android Development] necktru:
Be careful, bricks for downgrading everywhere
[Moto G 4G Android Development] hacktrix2006:
If said user has merely flashed TWRP and then CM12.1 whilst still on the KitKat boot loader that can with 4.4.4 then its just a restore to stock. If said user upgraded to lollipop then flashed twrp and cm12.1 then so long as motoboot.img and the gpt.bin aren't flashed to the device no brick will happen.
[Moto G 4G Android Development] TheFixItMan:
Here is the official lollipop 5.1 kernel & recovery images & modem file from my XT1039 23.21.17.peregrine.retgb.retgball.en.GB.retgb if someone like [MENTION=4802051]Somcom3X[/MENTION] wants to mod them

XT1039 Lollipop Modem
[Moto G 4G Android Development] hacktrix2006:
Sweet so retgb has been officially released then?
[Moto G 4G Android Development] TheFixItMan:
Nope except some o2 & Tesco customers - Iv had the retail version for about 4months (I'm sure you can work out why) but as they are being rolled out now might as well post it

I'm sure they will officially release it soon - oh and before you ask Iv only got an old ota zip - I didn't save the two builds that followed otas
[Moto G 4G Android Development] thunderstorm654:
Has anyone got the GB or Tesco image in full yet?
[Moto G 4G Android Development] Darius_AWS:
I'd like to extract my firmware for you but I don't know how to proceed...
[Moto G 4G Android Development] Danymat:
I'm wayting lp for xt1039 in france, where do you see the deploy status ?

Envoyé de mon XT1039 en utilisant Tapatalk
[Moto G 4G Android Development] Ketcchup:
I wasn't choosen for Spain one, reflashed CM12.1 and i'm considering sticking as i'm happy

How is the procedure to flash from CM12.1 , same as 4.4?
[Moto G 4G Android Development] Bad_Calzoncillos:
Hi guys, I just got 5.1 OTA in my XT1039 retail spain. Gonna upload and update here as soon as possible!

UPDATE: So here is the link https://www.androidfilehost.com/?fid=24052804347759015

I truly don't know how to flash it to the device, but perhaps some other more knowledgeable member of XDA can guide us. Cheers for 5.1!
[Moto G 4G Android Development] TheFixItMan:
If you are currently on

21.11.56.peregrine_tescogb.tescogball.en.GB

Check system update - you should be to get it as of now

Also all o2 and ee in UK but not retail as of yet (unless you are me lol)
[Moto G 4G Android Development] anything-but:
https://mega.co.nz/#!yghwkQIK!uo45-T5RtbNj2e4XVpOOGEbRvSxeLCtWH1PoYNkQUTI

That's the file from my /cache folder (Tesco GB) , filename show's as previous version but filesize matches the OTA ( Watched it dl). Also did a re-wipe from stock and downloaded everything to check and came out the same.

....If it turns out to be the correct file,can someone re-host it as i think my mega acc might get spammed a bit, so i`ll give it till morning then i`ll remove the link. :)
[Moto G 4G Android Development] russtyd:
These both look like zips which can be flashed from recovery, is that correct (before I make the mistake of trying!)? I'm guessing the phone will then need re-rooting again and custom recovery re-applying (or will custom recovery remain)?
[Moto G 4G Android Development] Olstyle:
I got the update message on my German retail phone but the internet crashed during download so I had to cancel. Now looking for updates it says there aren't any :( . Ideas anyone?
[Moto G 4G Android Development] pseudoheld:
Same for me. Got the message then it told my didn't have enough free space. Freed up the space and when I now search for updates it says I'm up to date...

Any idea how to force a proper recheck?
[Moto G 4G Android Development] dog121:
what about 21.31.1peregrine_retgb.retgball.en.GB eegb

is this now available for download????
[Moto G 4G Android Development] razlack:
The latest Tesco GB zip is KXB21.14-L1.46. My Moto G 4g currently shows KXB21.14-L1.56 is installed.

I need to flash the following to be able to get the OTA.

mfastboot flash recovery recovery.img

mfastboot flash system system.img_sparsechunk.0

mfastboot flash system system.img_sparsechunk.1

mfastboot flash system system.img_sparsechunk.2

mfastboot flash system system.img_sparsechunk.3

Will this cause a problem?
[Moto G 4G Android Development] hacktrix2006:
It shouldn't case and issue however if you was to flash boot.img system.img's plus the recovery.img then when you've full booted you should get the ota to goto L1.56 then after that the ota to go to 5.1 just don't flash motoboot.img and gpt.bin and all should be fine.
[Moto G 4G Android Development] razlack:
Cheers, just curious, what is the motoboot part for anyway?

I think boot.img is the kernel
[Moto G 4G Android Development] hacktrix2006:
Motoboot.img is the bootloader bud. When you downgrade say from 5.1 to 4.4.4 you don't flash that file and gpt.bin else it bricks ya phone so by getting into the habit of not flashing them files you'll be safe everytime.

Motoboot.img = bootloader

Gpt.bin = partition layout
[Moto G 4G Android Development] tonibm19:
I have it :D

Just received spanish OTA

Phone is working smooth and RAM manegement seems good.

I recommend you to update. The wait has been long but the rom is good.
[Moto G 4G Android Development] Danymat:
Can you screenshot your RAM please :)

Envoyé de mon peregrine en utilisant Tapatalk
[Moto G 4G Android Development] razlack:
In lollipop now. Any guides on rooting?
[Moto G 4G Android Development] dog121:
Cf auto root check the development thread...
[Moto G 4G Android Development] TRuth14:
Nice ! Is this working ? Do i have to flash in recovery like usual based on the first post ? I Just want confirmation before I brick my device:p
[Moto G 4G Android Development] tonibm19:
Ram

Background: whatsapp, spotify with music playing, instagram and a bunch of other apps.

After 9 hours of use (2,5h screen)

57% battery
[Moto G 4G Android Development] johnjtaylor:
Folks,

I have just captured the UK OTA - the file is called Blur_Version.21.11.56.peregrine_tescogb.tescogball.en.GB.zip and is 414MB in size. If someone tells me where, I am happy to upload it. I tried to install it, but since I have replaced the stock recovery it fails. If anyone can turn it into a flashable zip I will be most pleased!

JT
[Moto G 4G Android Development] moses_dx:
Stil no complete Image?
[Moto G 4G Android Development] cpvm:
And still nothing to my xt1045..

Enviado desde mi XT1045 mediante Tapatalk
[Moto G 4G Android Development] bedalus:
You could use google drive or dropbox.

Can you post a photo of the error message when you attempt to flash the zip?

EDIT:

Just found someone else already uploaded it.
[Moto G 4G Android Development] Olstyle:
Still don't know how to force a retry, but today I got the message again without doing anything. It now updated fine.
[Moto G 4G Android Development] thunderstorm654:
Yes stick it in Google drive if you can :) happy to give it a go.
[Moto G 4G Android Development] camellion:
German Retail OTA File

I use a German Retail Version of XT1039 with Stock ROM 4.4.4 unlocked bootloader and rooted. I recived the Update Message for 5.1 and saved the File. In my case the update failed because of an error with install-recovery-sh has unexpected contents. You can find the

OTA File to 5.1 attached. I try to reflash the stock ROM, recovery before updating OTA File again.
[Moto G 4G Android Development] zbzdoncorleone:
I had that same error, it comes from rooting. Look in the mentioned path (etc?), there should be a file called install-recovery-original.sh. Rename that to install-recovery.sh and it should work - did for me!

Gesendet von meinem XT1039 mit Tapatalk
[Moto G 4G Android Development] camellion:
Thx that works. Now I have got the update to 5.1
[Moto G 4G Android Development] dc239:
Can u upload The 5.1 ota somewhere else than on the uploaded ? Because it's really slow and the download can't even start
[Moto G 4G Android Development] lost101:
New 4.4.4 Moto G LTE firmware images available:

Title: Android 4.4.4 - Blur_Version.*.*.*.peregrine_umts.Retail.en.GB (Retail UK) (XT1039)

Filename: (Moto_G_LTE_XT1039)_RET-GB-SS_4.4.4_KXB21.14-L1.46_cid7_CFC_1FF.xml.zip

[Download]

Title: Android 4.4.4 - Blur_Version.*.*.*.peregrine_umts.Retail.en.ES (Retail Spain?) (XT1039)

Filename: (Moto_G_LTE_XT1039)_RET-ES-SS_4.4.4_KXB21.14-L1.46_cid7_CFC_1FF.xml.zip

[Download]

Title: Android 4.4.4 - Blur_Version.*.*.*.peregrine_utms.TescoSL.en.GB (Tesco UK) (XT1039)

Filename: (Moto_G_LTE_XT1039)_TESCO-GB_4.4.4_KXB21.14-L1.46_cid7_CFC_1FF.xml.zip

[Download]

--

Firmware images provided by Firmware Team, post your appreciation and requests here:

http://www.firmware-team.com/forumdisplay.php?f=14​
[Moto G 4G Android Development] Somcom3X:
It's as if they hate the xt1045
[Moto G 4G Android Development] lost101:
Try making a request on the firmware-team forum.
[Moto G 4G Android Development] NWKENT:
Yeh..I agree..seems as thow the XT1045 is forgotten..they (the firmware page) haven't even posted even the JB FXZ..Gee..I adore this device, own two of them..

:(

Here >> http://sbf.droid-developers.org/phone.php?device=35

Sent from my 4.4.3_21.23.4

(Unlocked) XT1045 Moto G 4G LTE #2

http://waynekent.com/page6.html

"Praise Jah" YOU people.!
[Moto G 4G Android Development] eteles:
Seems that they only like the xt1039... They hate the xt1040 too!!
[Moto G 4G Android Development] lost101:
It's more likely a case of the firmware for that model not being available, or that no-one has requested it.
[Moto G 4G Android Development] Somcom3X:
Sorry, was talking about motorola not the firmware-team. There is no 4.4.4 drop on it, only 4.4.3 whereas all oft he others have 4.4.4
[Moto G 4G Android Development] eteles:
XT1040 does not...
[Moto G 4G Android Development] hacktrix2006:
The (Moto_G_LTE_XT1039)_RET-GB-SS_4.4.4_KXB21.14-L1.46_cid7_CFC_1FF.xml.zip link is showing up as (Moto_G_LTE_XT1039)_RET-EU-SS_4.4.4_KXB21.14-L1.46_cid7_CFC_1FF.xml.zip on Filefactory

Not sure if thats a typo or not though.
[Moto G 4G Android Development] lost101:
Sorry, my fault. Fixed now.
[Moto G 4G Android Development] hacktrix2006:
Its no ones fault mate. Mistakes do happen.
[Moto G 4G Android Development] NWKENT:
Sorry..I misunderstood.. Motorola has their hands full with all new releases..but..as mentioned before..4.4.3 isn't posted to the firmware page..I do believe there is an "Official" release of 4.4.3

But..either way..the XT1045 deserves more..lol

Sent from my 4.4.3_21.23.4

(Unlocked) XT1045 Moto G 4G LTE #2

http://waynekent.com/page6.html

"Praise Jah" YOU people.!
[Moto G 4G Android Development] vpnair:
OP Updated. Thanks [MENTION=1006674]lost101[/MENTION]
[Moto G 4G Android Development] Somcom3X:
Of course when I complain the update drops :/

4.4.4 here eh.