yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] lost101:
You could try flashing

only

the following files:

mfastboot flash partition gpt.bin

mfastboot flash boot boot.img

mfastboot flash system system.img_sparsechunk1 (CHANGE TO MATCH ACTUAL FILE)

mfastboot flash system system.img_sparsechunk2 (CHANGE TO MATCH ACTUAL FILE)

mfastboot flash system system.img_sparsechunk3 (CHANGE TO MATCH ACTUAL FILE)

mfastboot flash system system.img_sparsechunk4 (CHANGE TO MATCH ACTUAL FILE)

mfastboot erase cache

mfastboot erase userdata

mfastboot reboot​

After flashing you will still retain the XT1045 Bootloader and Radio / Modem Firmware.
[Moto G 4G Android Development] lu99ke:
so it is!! oops! sorry!

:silly:

---------- Post added at 10:16 AM ---------- Previous post was at 10:01 AM ----------

just flashed onto my EU version... all working fine...
[Moto G 4G Android Development] F4b0s:
Hello !

You lucky guy ;)

Did you kept the EU install file ??

Thanks !
[Moto G 4G Android Development] mooms:
Do you have made some tests in 4G ?

If one of you can post his build.prop

adb pull /system/build.prop

Or at least a screen showing the build numbers, that would be great :)

Also, I can see that merlinolillo is from Italy, where are you from lu99ke?

According to this site, I can see that 3G & 4G frequencies in Spain are:

So 3G is only 2100Mhz, and 4G LTE is 1800/2600Mhz

In France we have much more frequencies:

Italy too:

Only 2G frequencies are the same in most of the world (except North America).

I don't know why Motorola have made specific versions for Spain, but they must have a reason.

So be careful with this ROM, maybe some frequencies (or something else) are missing....
[Moto G 4G Android Development] moses_dx:
Please give link for that image
[Moto G 4G Android Development] bluegrass55:
Can you please explain how you managed to go back to Kitkat?

Using the fastboot method updated to the Spanish retail 5.1. Had issues so again with fastboot installed Euro retail 4.4.4 but faced other issues.

From my understanding the Bootloader needs to be downgraded for 4.4.4 to work.
[Moto G 4G Android Development] sbnnn:
Hi,i've a xt1039 with 21.11.56.peregrine_reteu.reteuall.en.EU.reteu system version,can i install the Retail UK,Retail Germany(4.4)or rather spainish version(5.1),then install lollipop?
[Moto G 4G Android Development] merlinolillo:
Yes, you can. I had the same version as you and I've installed the spanish version and a friend of mine the german version. It works like a charm.
[Moto G 4G Android Development] rodsayd:
There it is..
[Moto G 4G Android Development] lu99ke:
I had not gone to stock 5.1....

I went from stock 4.4.4 to bliss pop 5.1.... And that did not update the bootloader.... So going back to stock 4.4.4 was ok..

From what I understand it is only going to stock 5.1 that updates the bootloader and that is what causes issues trying to go back to 4.4.4

---------- Post added at 09:46 PM ---------- Previous post was at 09:37 PM ----------

I am from AUS...

Frequencies on 4G are 700,900,1800,2100,2600....

I will pull the build prop for you when I get home :)

Getting 4G ok.... Not sure which band as I am pretty sure telstra has both 700 and 2100 where I am....

Cheers
[Moto G 4G Android Development] erpampa92:
I have a problem. I motorola moto g lte. I did a factory reset, I removed the root. I did download lollipop 5.1 via ota. Once finished the download and try to install it, I get more and the screen of the recovery. What can I do?
[Moto G 4G Android Development] reef2009:
Finally Eu retail is in ota, just got the notification :cool:

Btw, it's a XT1039.
[Moto G 4G Android Development] J0kker:
I can confirm that, french xt1039 hère.
[Moto G 4G Android Development] erpampa92:
where can I download the firmware 21.31.1.peregrine_reteu.reteuall.en.EU reteu?
[Moto G 4G Android Development] reef2009:
Go to OP and download the eu retail 4.4.4 rom.

http://www.filefactory.com/file/4ll...S_4.4.4_KXB21.14-L1.56-1_cid7_CFC_1FF.xml.zip

Flash it and than update. Until now I think there isn't a full eu retail for 5.1.
[Moto G 4G Android Development] erpampa92:
So I download this version? And then upgrade to 5.1 lollipop, right?
[Moto G 4G Android Development] Gwelvin:
Got the update notification for my XT1039, downloaded and rebooted, then failed in a CWM based recovery with an error "E:failed to verify whole-file signature".

Whatever the way I exit this, it fails and reboot in loop...

Any advice ?
[Moto G 4G Android Development] martinisok:
You need stock recovery. Install stock rom from first page then it will work.
[Moto G 4G Android Development] jasond567:
Installing lollipop 5.1 on o2 mobile phone in UK, I suggest people in the uk check for software updates through the settings menu as you may be able to get it too
[Moto G 4G Android Development] rivierakid:
OTA capture XT1039 EU

Blur_Version.21.11.56.peregrine_reteu.reteuall.en.EU.zip
[Moto G 4G Android Development] lost101:
No offence intended, but this thread is about full Factory Firmware Images only. Not OTA Updates.
[Moto G 4G Android Development] Skire90:
Is there a factory firmware image available yet for reteu? When lollipop was released I flashed a retde ota zip. I would love to flash the stock reteu firmware over my current version!
[Moto G 4G Android Development] lost101:
No. When it is, there will be an announcement in this thread and links will be added to OP.
[Moto G 4G Android Development] roymar:
Yes finally the eu version is ota and it works fine:D
[Moto G 4G Android Development] vlekje:
reinstalled Rom 4.4.3 (first page) on Motorola moto 4G with unlocked bootloader and rooted according info on first page.

The phone updated OTA first to Rom 4.4.4 and few minutes later to OTA lollipop 5.1

thanks for great tutorial
[Moto G 4G Android Development] OctoberNexus:
Looks like the US XT1045 soak test is in full swing can't wait for the OTA ????
[Moto G 4G Android Development] nestul:
Why is XT1039_PEREGRINE_RETES_5.1_LPB23.13-17_cid7_CFC.xml.zip not listed in the first post? It is a full FW link, isn't it?

Thanks.
[Moto G 4G Android Development] mr.death7:
Actually the 5.1 full firmware has not been released yet. That's why.

Only a captured OTA can be found if someone put it someplace to be downloaded.
[Moto G 4G Android Development] wurstel:
Thats not true, full firmwares for xt1039 spain and xt1040 brazil are already out. I guess the first post just isnt getting updated anymore.
[Moto G 4G Android Development] martinisok:
If that's the case and this post isn't getting updated then probably best to start a new post for stock lollipop.
[Moto G 4G Android Development] mr.death7:
Do you have any (official) link to those firmwares? Are those ROM's for the retail version?

Thanks.
[Moto G 4G Android Development] wurstel:
No official links, but lost101 postet filefactory links a few pages back.

Edit: heres the post:
[Moto G 4G Android Development] stephtban:
here is full 5.1 spain retail for XT1039 (cid7)

XT1039_PEREGRINE_RETES_5.1_LPB23.13-17_cid7_CFC.xml.zip

https://mega.co.nz/#!5J02zRSQ!iO1cWjrcTwctpG2-FxyKP49TQNKnKOwqGDwZaWNwYnw
[Moto G 4G Android Development] tijuanacartel:
Managed to get my reteu peregrine on stock 5.1 by reinstalling the stock 4.4.4 rom (XT1039_RET-EU-SS_4.4.4_KXB21.14-L1.56-1_cid7_CFC_1FF.xml.zip) with instructions here: http://xdaforums.com/showthread.php?t=2542219

After rebooting into stock I added my google account, and updated motorola update. the 5.1 update was then available.
[Moto G 4G Android Development] nestul:
Well, i have installed XT1039_PEREGRINE_RETES_5.1_LPB23.13-17_cid7_CFC.xml.zip via mfastboot. I thought my bootloader would be 41.19 by now, but it appears as 41.1A. Does anyone know any considerations i should take into account regarding this bootloader version, such as downgradable or not, etc?

Thanks.

P.S: My kingston 32GB Class 10 microsd is not recognized either under this version
[Moto G 4G Android Development] mr.death7:
41.1A here too after update via OTA.

My 32GB is well recognized despite not recognized with the 4.4.4-21.14.46. I had to wait for the 4.4.4-21.14.56.

Envoyé de mon XT1039 en utilisant Tapatalk
[Moto G 4G Android Development] hacktrix2006:
Just a question to those that used my links, are they downloading fast enough. Just asking as I moved to another hoster like so hoping the downloads will be speedy now.

---------- Post added at 11:49 PM ---------- Previous post was at 11:07 PM ----------

@nestul the rule of thumb for any downgrade is to flash all files in the fastboot images apart from motoboot.img and gpt.bin. Flashing motoboot and gpt.bin will brick your device.
[Moto G 4G Android Development] lost101:
New Android 5.1 Moto G LTE firmware images available:

Title: Android 5.1 - Blur_Version.*.*.*.peregrine_reteu.reteu.en.eu (Retail Europe) (XT1039)

Filename: XT1039_PEREGRINE_RETEU_5.1_LPB23.13-17_cid7_CFC.xml.zip

[Download] [Mirror]

Title: Android 5.1 - Blur_Version.*.*.*.peregrine_retde.retde.en.de (Retail Germany) (XT1039)

Filename: XT1039_PEREGRINE_RETDE_5.1_LPB23.13-17_cid7_CFC.xml.zip

[Download] [Mirror] (Mirror by [MENTION=5694375]dc239[/MENTION])

--

Firmware images provided by Firmware Team
[Moto G 4G Android Development] wurstel:
Awesome!! Thanks a lot, do you have any plans to make optimized versions of those aswell?
[Moto G 4G Android Development] lost101:
Yes, of course.
[Moto G 4G Android Development] lost101:
[MENTION=3504676]hacktrix2006[/MENTION] - could you please mirror those two recent XT1039 firmware images?
[Moto G 4G Android Development] reef2009:
Hi guys,

Could someone post a working recovery.

After I went back to 4.4.4 and did the upgrade to 5.1.1 (XT1039). no recovery will flash/boot. I think the bootloader has changed. And I would like to flash xposed.

Kind regards!
[Moto G 4G Android Development] dc239:
Here is the official retail 5.1 germany image

https://mega.nz/#!otplECYB!FSySMjNXqNacmNUgNkUcLoIU2Pbrs-Y040LMBkQtW9w

After flash my phone won´t boot,so i thought i f*c3d up my phone,after some research i found that it´s some problem with partition table (gpt.bin),so i needed to flash the gpt.bin file from the captured ota (because i flashed captured ota).So if you flash this while you on 4.4.4 and you don´t flash any captured ota files i think that you´ll never have this problem like me

And for those like me there is the gpt.bin file from captured german 5.1 ota update

https://mega.nz/#!g5YG2bjK!b8ANPWVojshcN6jTIKhpnBqRmtsz6LKdRri87f3dbJo

Anyways i can´t get rid off the "bootloader unlocked" startup screen,does somebody have the fixed bootlogo for lollipop ?

Because if i flash the older fixed bootlogos (which worked very well for me) i now get error message like this

sending 'bootlogo' (85 KB)...

OKAY [ 0.063s]

writing 'bootlogo'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.078s
[Moto G 4G Android Development] lost101:
[MENTION=5694375]dc239[/MENTION] - the Retail Germany 5.1 Firmware Image includes the necessary gpt.bin file.
[Moto G 4G Android Development] hacktrix2006:
[MENTION=1006674]lost101[/MENTION] sure can you pm me the links please, just got up and CBA'd to search though bud.

Edit: Ret-EU link uploaded to the vps. If people could upload to something like androidfilehost like lost101 did as this wget'able directly to the vps and thus is faster.
[Moto G 4G Android Development] nestul:
http://xdaforums.com/showthread.php?t=2996266

Flash file using mfastboot. I am using twrp 2.8.3.0

Enviado desde mi XT1039 mediante Tapatalk
[Moto G 4G Android Development] dc239:
I know.....i flashed it right from the factory image and my phone stuck at the motorola logo.So i tried to enter the recovery to make a factory reset,but my phone wasn't able to enter the recovery properly,it just showed the android robot with some text (like erasing or something like that) for 2 seconds and then my phone showed only black screen,after few second it was doing the same thing,which i described......but nevermind i already fixed it
[Moto G 4G Android Development] lost101:
Don't you need to provide a direct link to the firmware image(s) - or am I missing something? Also, can you please mirror the XT1040 Retail Brazil 5.1 Firmware Image available here: http://xdaforums.com/showpost.php?p=61365158&postcount=592
[Moto G 4G Android Development] pikouchou:
Please update first page with Official Lollipop image links
[Moto G 4G Android Development] hacktrix2006:
[MENTION=1006674]lost101[/MENTION] i have only been able to get the one file you mirror'd, so will sort that link on in a bit.

However the other full images for 5.1 are not that easy to wget, however the way you did it lost101 was.

If there is a mega link how ever i will download them and then try to upload them to my server but it will take time.

Edit 2 : Downloaded all mega links, will upload to server tonight each will take about 2 hours to upload due to my slow upload speed and then i will update my links with the new links.
[Moto G 4G Android Development] DANfour20:
thanks, i was having serious problems getting the stock 4.4.4 image from the other site.

sorry for posting if we weren't supposed to but i have a problem with my moto g 4g. i unlocked bootloader and rooted my device but i wanted the ota update from motorola for lollipop which i downloaded but when it rebooted it had failed due to me being rooted i think.

so i followed a guide this one http://theunlockr.com/2013/12/06/unroot-motorola-moto-g/ to unroot (which led me to coming here looking for alternative sources for the firmwares)

i successfully flashed your GB retail 4.4.4 (after a few problems since im running xp and there guide seems to be for windows 7 or later due to opening command windows not been a feature of xp) however the ota 5.1 update failed again which is when i noticed im still rooted :( HOW DO I UNROOT THIS PHONE lol

think im going to just flash your eu peregrine 5.1 using the above guide instead.
[Moto G 4G Android Development] hacktrix2006:
[MENTION=5365370]DANfour20[/MENTION] which site was you having issues with. Hopefully not the links i supplied?

As for unrooting the device you basically reflash if your still on 4.4.4 the system partition after uninstallling root via the app. There is an option in SuperSU to unroot the device then after that you just download the correct 4.4.4 image for your device and issue the mfastboot commands to flash the system partition which will then bring the MD5 sums in check ready to flash 5.1 via the OTA update.
[Moto G 4G Android Development] martinisok:
If you've installed the stock rom then this will remove root and recovery. You won't be rooted anymore.
[Moto G 4G Android Development] DANfour20:
i did install the stock 4.4.4 gb retail rom, but phone is still rooted. it wiped all my data and apps and changed the device to moto g in about phone (it used to say xt1039)

---------- Post added at 06:38 PM ---------- Previous post was at 06:35 PM ----------

i was having issues with opening command windows on the desktop as im on windows xp (it says to shift and right click on desktop and choose open command window here or something along those lines but that is not an option on xp)

i think its because i never unrooted via the supersu app. ill try again.
[Moto G 4G Android Development] pikouchou:
Stock EU image link XT1039_PEREGRINE_RETEU_5.1_LPB23.13-17_cid7_CFC.xml.zip

https://www.androidfilehost.com/?fid=24052804347769092
[Moto G 4G Android Development] hacktrix2006:
[MENTION=3023644]pikouchou[/MENTION] already have the RET-EU version uploaded to server. [MENTION=5365370]DANfour20[/MENTION] there is no admin option in Windows XP so you just run mfastboot. Which link did you use.

Did you just flash the system parition. i.e all the spare images.

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 erase cache

that should defo make sure your unrooted.
[Moto G 4G Android Development] DANfour20:
Yes the problem was the chunks. One guide said sparsechunk1 etc and the other said sparsechunk.0 etc and they only instructed 3 sparsechunk lines where i actually had 4, i just double checked which format the stock firmware was in and it went smoothly from there Its fixed and updated to 5.1 now. Thanks
[Moto G 4G Android Development] BitingChaos:
Is there anything that I can do with a captured OTA?

XT1045, Retail US, 5.1, CID9

Blur_Version.23.21.37.peregrine_retus.retus.en.US.zip (415 MB):

https://mega.nz/#!xkQHjJAQ!9VNh3rqZPSQDnM35O6zuylTCiX5DQ3Xxg4Q-IktHe40

Freshly patched XT1045 5.1 logo.bin file (to remove "unlocked bootloader" warning):

http://xenomorph.net/data/android/xt1045/moto_g_xt1045_logo-5.1.zip
[Moto G 4G Android Development] camdecoster:
Yes. Share the wealth! I'm tired of waiting for my phone to get the OTA.
[Moto G 4G Android Development] Travisholt92:
Does this include boot loader?
[Moto G 4G Android Development] BitingChaos:
"logo.bin" and "gpt.bin" were in the OTA zip. I'm not familiar with the other files (since it's an OTA file, and not a regular system image).
[Moto G 4G Android Development] lost101:
Most OTA Updates, and especially this one; will include a patch to update Bootloader.
[Moto G 4G Android Development] Blkdrgn415:
I'm new to this and I just wanted to clarify. The instructions lists files that aren't there. Do I still follow the same method to install the firmware?
[Moto G 4G Android Development] lost101:
No, you cannot apply an OTA Update using the Fastboot Firmware Image Guide.

People, please stop posting about OTA Updates in this thread, it's confusing and off-topic.

Start a thread in 'General' if you have something to share.
[Moto G 4G Android Development] hacktrix2006:
Links Update HERE

Enjoy.

[MENTION=1006674]lost101[/MENTION] links are up made as you requested.
[Moto G 4G Android Development] BitingChaos:
How does one acquire the FULL firmware? If is not sent to the device OTA, and Motorola doesn't provide download links, where do these "stock firmware" files come from?
[Moto G 4G Android Development] cpvm:
Anyone know if I can change the cid of my phone from cid12 to cid 9.
[Moto G 4G Android Development] lost101:
Full Factory Firmware Images are created by Motorola, but not released to the public. They are intended for use only by engineers, at carrier and retail level. Please ask nothing more regarding this, lest the well runneth dry. Try to be grateful they are available at all.
[Moto G 4G Android Development] Zdog291:
Does anyone know if I could flash the recovery images from these on my x1045 on the lollipop boot loader to go back to stock recovery?
[Moto G 4G Android Development] vegas217:
Baseband Unknown

After updating the 5.1 OTA on my xt1045 the baseband is unknown. Is anybody else having this problem? I am downloading the full stock images and going to try to flash the modem to see what happens. I have already tried erase modemst1 and modemst2. That didn't work. No luck. I had this same problem after I installed CM 12.1 about a month ago. Any suggestions?
[Moto G 4G Android Development] Wyneg:
I had same problem, but I couldn´t find solution. I went back to 4.4.4.

:crying:
[Moto G 4G Android Development] sillycat98:
Ok, been waiting for the cid9 files but it has a different format than I am used to, no sparsechunks at all, just a system folder, can anyone advise how to flash this?
[Moto G 4G Android Development] C-4Nati:
Waiting for the real MVP to come through with the cid 9 XT1045 5.1 firmware file as I'm spamming software update on my phone and it will not populate for some reason.
[Moto G 4G Android Development] Travisholt92:
OTA rolls out in waves, the check for update button does nothing. Motorola pretty much sends a ping to your phone to let it knOw an update is available
[Moto G 4G Android Development] Level99:
Make sure you have the most up to date Motorola Update Services (or whatever its called) app from the Play Store. If you don't have the latest of that, you won't get the notification for the 5.1 upgrade being available.
[Moto G 4G Android Development] LluísGili:
Hi!

can I use fastboot instead of mfastboot for flashing this? If not, where can I download mfastboot from? note that I am on Linux
[Moto G 4G Android Development] Wyneg:
Yes, you can ;)
[Moto G 4G Android Development] lost101:
New Android 5.1 Moto G LTE firmware image available: (Please create a mirror if you download)

Title: Android 5.1 - Blur_Version.*.*.*.peregrine_retgb.retgb.en.gb (Retail UK) (XT1039)

Filename: XT1039_PEREGRINE_RETGB_5.1_LPB23.13-17_cid7_CFC.xml.zip

[Download]

--

Firmware images provided by Firmware Team
[Moto G 4G Android Development] hacktrix2006:
Will get that uploaded as soon as i can download it.
[Moto G 4G Android Development] mooms:
I have a question: If I update my XT1039 with the full 5.1 stock firmware, will I be able to downgrade to 4.4.4 if needed ? Bootloader downgrade is possible or not ?
[Moto G 4G Android Development] lost101:
There is no need to change the Bootloader. It's one of the few ways to destroy a Moto G, and I suggest avoiding touching it unless you have a really good reason.

Follow the Fastboot Tutorial, but

do not include

the following line:

mfastboot flash motoboot motoboot.img​

Alternatively, remain with the KitKat Bootloader and flash one of Stock Lollipop ROMs available here: http://xdaforums.com/moto-g/4g-development/rom-stock-motorola-4g-lollipop-rom-t3142816
[Moto G 4G Android Development] mooms:
The flashing method described in the OP have this line, and the KK bootloader cause flicker on LP ROMs, this was two good reasons to me.

But if trying to downgrade the bootloader can cause brick, (thanks for the info), i will try the 5.1 rom but keep the 4.4.4 bootloader, juts in case I want to revert to KK.
[Moto G 4G Android Development] lost101:
Turn screen off once to solve screen flicker. I have been using the Falcon KitKat Bootloader with a Lollipop Rom since January with no harm being caused.
[Moto G 4G Android Development] baxtex:
Is the new build 5.1.1? I just checked for update and I got it available, just wondering if I'm able to flash it with a custom recovery and unlocked bootloader?
[Moto G 4G Android Development] jmcollis:
The unlocked bootloader is fine. But not the custom recovery.

My process was coming from a KitKat stock that had been rooted. I allowed the OTA to download bit didn't agree to allowing it to install. I then rebooted to the bootloader then used fastboot to flash the system, boot and recovery partitions extracted from the last full official kk from this thread. Then rebooted back into the ROM and agreed to the update.

To be careful I had done nandroids to my sdcard of course, but they weren't needed.
[Moto G 4G Android Development] baxtex:
Okay, is it possible to then upgrade to an custom recovery again on lollipop? And what about root?
[Moto G 4G Android Development] martinisok:
Do I just install zip from recovery? And what does blur version mean? Thx.
[Moto G 4G Android Development] Wyneg:
No, via fastboot!!!
[Moto G 4G Android Development] jmcollis:
OK Yes to both.

To Root it I used the file and process from here. This installs SuperSU 2.45. You can update it to the latest 2.46 when you have sorted the Recovery stuff.

For the custom recovery I've used the TWRP 2.8.7.0 from here (Not the encryption supporting one). You can use fastboot (or mfastboot if you prefer) with a fastboot boot recoverytwrp2-8-7.img to run the TWRP before flashing it if you want to do a nandroid onto your sdcard before rooting it or touching anything (I actually did this before rooting it.) If you install TWRP from the bootloader with fastboot, always boot into the recovery first before booting into the ROM. It gives TWRP the chance to override any restoration of the original recovery if the ROM does this on boot-up. (Some factory ROMs do this - I'm not sure about the Moto ones, but it's best to be sure). If you want you can install it once you're rooted from the system with the tool Rashr or something similar. (This works, as it's what I did).

I hope this helps! :)