yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] meekrawb:
It is about time! Maybe they heard your complaints.

:)
[Moto G 4G Android Development] eteles:
Still no update for xt1040...
[Moto G 4G Android Development] Somcom3X:
That was the first thing my instincts told me to do.

http://d-h.st/dEK

My update ran fine in TWRP, no stock recovery required.
[Moto G 4G Android Development] eteles:
How can I grab the xt1040 update? I've seen people on the net saying it's been released since 08/22
[Moto G 4G Android Development] Somcom3X:
You have to be on a previous version and download the update. When it's finished downloading, don't install and use a root explorer to copy the zip from /cache to sdcard.
[Moto G 4G Android Development] qwert940:
Do these firmwares include radio(modem) firmware? If so we could try to install EU version over US(from XT1039 to XT1045) and in other way as well to change LTE bands the phone uses. The same fact is used with standard Moto G in this thread(http://xdaforums.com/showthread.php?t=2649763). Can we do it for 4G?
[Moto G 4G Android Development] mici01:
Cool, that there is finally a zip of German Retail available.

But is there already a Custom Recovery for Peregrine on Lollipop or can I just flash the old Recovery's which are intended for Kitkat?
[Moto G 4G Android Development] zbzdoncorleone:
I used TWRP 2.8.3.0 from here. Works aside from a little flickering, which does not influence the functions:

http://xdaforums.com/moto-g/4g-development/collection-somcom3xs-experimental-corner-t2996266
[Moto G 4G Android Development] camellion:
here OTA 5.1 German Retail XT1039 Deposit Files Mirror
[Moto G 4G Android Development] thunderstorm654:
Can anyone upload the GB or tesco one please? :)
[Moto G 4G Android Development] mici01:
Somebody already did the Tesco one (retail GB isn't out yet):
[Moto G 4G Android Development] bullbutch:
Can I use the german OTA 5.1 on my EU retail x1039 ?
[Moto G 4G Android Development] merlinolillo:
+1
[Moto G 4G Android Development] agusaon:
I truly don't know. My guess would be that it can only be flashed through stock recovery. But I don't know. Perhaps someone else can tell us how to flash the OTA.
[Moto G 4G Android Development] lu99ke:
I tried to flash it through stock recovery and it aborts as the package looks for the German FW fingerprint and does not find it.

Not sure if it will work through custom recovery like TWRP.

---------- Post added at 07:57 PM ---------- Previous post was at 07:53 PM ----------

To flash an OTA through stock recovery, save the file somewhere on your device.

Enter bootloader ( turn device off, then hold power and volume down buttons for a couple of seconds and release )

select recovery

when you see andy on his back, hold down volume up and down buttons for a few secs and then press power once ( whilst still holding the volumes buttons down )

then select apply update via sd card

off you go..
[Moto G 4G Android Development] lost101:
New Android 5.1 Moto G LTE firmware image available:

Title: Android 5.1- Blur_Version.*.*.*.peregrine_retbr.retbr.en.br (Retail Brazil) (XT1040)

Filename: XT1040_PEREGRINE_RETBR_5.1_LPB23.13-8_cid12_CFC.xml.zip

[Download] [Mirror]

--

Firmware images provided by Firmware Team
[Moto G 4G Android Development] Wyneg:
Thanks! Can you upload this file in others mirrors, please? Thanks again ;)
[Moto G 4G Android Development] männle:
My XT1039 is on german stock 4.4.4 and I can't flash it. When I'm trying to do that, I always get the message: Installation abborted! Does anyone knows this fault?

Thanks for replies
[Moto G 4G Android Development] bullbutch:
I reflashed my x1039 Ret EU with the german 4.4.4 version, and added the update to 5.1 afterwards. And everything is working perfect.
[Moto G 4G Android Development] cpvm:
Anyone know if I can flash the firmware of a xt1040 to my xt1045, I know that I will lost the signal if i flash the incorrect modem but what will happen if I only flash the boot and the system?

Enviado desde mi XT1045 mediante Tapatalk
[Moto G 4G Android Development] männle:
[MENTION=2445877]bullbutch[/MENTION]: How did you flash? With fastboot or in stock recovery?
[Moto G 4G Android Development] lost101:
While I can't say if it will work or not: you can simply flash the XT1045 boot and system to undo.
[Moto G 4G Android Development] johnjtaylor:
I've uploaded the file - the url is: https://drive.google.com/file/d/0B0fykWxF7kIIczMxeWx6ckhDTW8/view?usp=sharing
[Moto G 4G Android Development] daugirdas:
Where can I download a stock recovery for Tesco GB 21.11.56 please? Mine for some reason is stuck with the previous version (1.46) and is failing the OTA update to 5.1
[Moto G 4G Android Development] hacktrix2006:
I think you will need to flash the whole boot recovery system images from 46 to update to 56 then to go to 5.1. You could try using the retgb 56 recovery and see if it works like.
[Moto G 4G Android Development] Danymat:
guys can i update with ota if my bootloader is modified?
[Moto G 4G Android Development] hacktrix2006:
In what way modified on the bootloader?
[Moto G 4G Android Development] Danymat:
i mean it's unlocked
[Moto G 4G Android Development] hacktrix2006:
Yes you can ota on an unlocked bootloader it will stay unlocked too
[Moto G 4G Android Development] Danymat:
Thanks man!
[Moto G 4G Android Development] daugirdas:
I'm not sure why the 46->56 update left such a mess on mine but I guess I have few options now.

Do you think I would be in better position if I flash the whole retgb system (I don't use TESCO sim, so frankly I could do with out any of their tie ins) or pick a custom but stable ROM. CM looks nice, but they are only nightlies. So really not sure what would be the closest stable option.
[Moto G 4G Android Development] hacktrix2006:
What you left it in a mess?
[Moto G 4G Android Development] redsnake80:
Thanks!!!

I can update via stock recovery? -> "select apply update via sd card"

I have my "XT1040 Chile" locked
[Moto G 4G Android Development] hacktrix2006:
You could try flashing the retgb system recovery and boot images but I can't guarantee it would work?
[Moto G 4G Android Development] Wyneg:
I tried to install this zip, but installation was aborted. I compared the CID number and this is that I saw: [ro.boot.cid]:[0xC]

What means?

Thanks!
[Moto G 4G Android Development] cpvm:
You have cid 12
[Moto G 4G Android Development] Wyneg:
Thanks for response. Should I install via fastboot instead recovery?

Thanks again!
[Moto G 4G Android Development] cpvm:
You can flash a xt1039 from brazil and then update it to 5.1 with an ota
[Moto G 4G Android Development] lost101:
This thread is about fastboot firmware images. It has nothing to do with OTA Updates. You extract the contents of the zip and flash files individually via fastboot.

Tutorial: http://xdaforums.com/showthread.php?p=47820707
[Moto G 4G Android Development] Wyneg:
Aaaah, my mistake, thanks for rapid response ;)
[Moto G 4G Android Development] bullbutch:
I flashed the german 4.4.4 with fastboot. And then I flashed the update.zip with stock recovery. I don't think you can flash that kind of update with fastboot.
[Moto G 4G Android Development] CJMom:
Did you boot to Android after you installed 4.4.4 and updated Motorola update services?

or you flashed with fastboot 4.4.4 and right away booted to recovery and flashed the update zip?
[Moto G 4G Android Development] bullbutch:
I booted the phone to see if it would work with the german version before I updated to 5.1. I don't know if the motorola update services got updated, but I don't think that matters? I flashed the update from the stock recovery, so it wouldn't use Motorola update services, I think.
[Moto G 4G Android Development] CJMom:
Thanks

Just wanted to know if you could update to Lolipop and get the initial setup screen without having to factory reset after the OTA
[Moto G 4G Android Development] bullbutch:
I did a factory reset after updating, so I wouldn't know :)
[Moto G 4G Android Development] dog121:
Retail EU is now available according to the moto g 4g forum...

Looks like their pushing out the retail now...
[Moto G 4G Android Development] Wyneg:
Hi again!

I installed via fastboot, but I lost network signal? Any ideas? If I install KK modem, signal will return?

Thanks!
[Moto G 4G Android Development] lost101:
From what I understand, you just flashed the entire XT1040 Firmware Image on an XT1039. This was a very dangerous thing to do. You are lucky the phone still works at all.

It was already covered above; the only things that you should have flashed where boot.img and system.img.

Whatever else you do from this point,

do not flash the bootloader again

. The command for this is: mfastboot flash motoboot motoboot.img

Using the XT1039 4.4.4 Firmware image, do the following commands to restore the XT1039 Radio firmware:

mfastboot flash modem NON-HLOS.bin

mfastboot erase modemst1

mfastboot erase modemst2

mfastboot flash fsg fsg.mbn
​
[Moto G 4G Android Development] Wyneg:
Hi! Nooo, I flashed XT1040 retail brazil in a XT1040, I downgraded to 4.4.4 and restore the network, but I want Lollipop T_T If I install all except modem of lollipop retail, will work? Thanks!
[Moto G 4G Android Development] lost101:
Lollipop can work with KitKat Radio Firmware on non-LTE Moto G. Please don't include flashing Bootloader (motoboot.img) - unless absolutely necessary. If something goes wrong with flashing Bootloader, your phone is destroyed.
[Moto G 4G Android Development] Wyneg:
Then, you say that I could install all except this below and get lollipop?

fastboot flash motoboot motoboot.img

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

And gpt.bin?
[Moto G 4G Android Development] lost101:
gpt.bin is required, everything else you mention can be omitted.
[Moto G 4G Android Development] tijuanacartel:
has anyone captured the 5.1 OTA for reteu and converted it for flash with fastboot?
[Moto G 4G Android Development] aveyer:
I have an XT1039, went from stock 4.4.4 retail GB to CM12, can I flash Lollipop stock retail DE or retail EU instead of waiting for retail GB?
[Moto G 4G Android Development] F4b0s:
Hello !

It seems that the EU retail version has been delivered.

Has anyone the rom file ?

Thanks for helping

;)

---------- Post added at 09:12 AM ---------- Previous post was at 09:10 AM ----------

:good:

Hello !

Could you give us the link ?

Thanks :)
[Moto G 4G Android Development] Lurker-Observer:
Nevermind, problem solved.
[Moto G 4G Android Development] molnaratt:
Hello,

Is it possible to flash the modified logo to get rid of the warning message of unlocked bootloader in 5.1? Or would it brick the device?

If modified logo is flashed, will I receive OTA updates in the future, or is it required to remain untouched?

Thanks for the answers.
[Moto G 4G Android Development] gen_scheisskopf:
It should be possible- check this thread

Educated guess- logo has nothing to do with OTAs.

Looking into captured OTA zips:

-some files- including bootlogos, bootloader, kernel/recovery etc- are provided as binary files

-baseband files are provided as both binaries and patches, looking into update-script may tell more

-/system files are in most cases provided as patches (all those .p files). That's why OTA requires certain unmodified build.
[Moto G 4G Android Development] ssirK:
i have XT1039 FR Retail, just flashed it with KK retail EU from beeeto's CM12.1, all seems fine for me, now waiting for Lollipop update
[Moto G 4G Android Development] mitty:
Looks like nobody (well here at least) has the EU retail update yet? Waiting for it in Australia.
[Moto G 4G Android Development] gen_scheisskopf:
It seems we still have to wait. "Selected users" most likely equals to "public SOAK test"
[Moto G 4G Android Development] ssirK:
How i upgraded to Lollipop 5.1 with my FR retail XT1039 :

1/ Download DE KK retail: http://www.filefactory.com/file/6br...-SS_4.4.4_KXB21.14-L1.56_cid7_CFC_1FF.xml.zip (Found here: http://xdaforums.com/moto-g/4g-development/xt1039-moto-g-4g-stock-firmware-kxb21-t2805619)

2/ Download DE Lollipop update: http://www.multiupfile.com/f/03c3dcfb (Hugefiles worked for me) / Found here: http://xdaforums.com/showpost.php?p=61331225&postcount=47

Mirror: http://kriss-prod.net/XT1039/

3/ Flash KK DE Retail : http://xdaforums.com/showthread.php?p=47820707#post47820707

4/ Flash Lollipop update, found here: http://xdaforums.com/moto-g/general/rom-moto-g-4g-lte-lollipop-t3117553/page6

Reboot to recovery mode, press and hold "Volume Up" Button, then press Power Button

--> all seems fine to me, didnt test much, flashed beeeto"s CM12.1 last build, no more flickering while booting, but now i have flickering with CWM recovery.. :)
[Moto G 4G Android Development] aveyer:
Cheers for reuploading the files, it's way faster than the filefactory download.

I'll flash Retail DE now and update to Lollipop then will reflash CM12.

Will let you know how it goes.

EDIT: Well flashing the gpt partition is failing, I guess I'll skip that and the bootloader flash....

EDIT2: Successfully upgraded to retail DE lollipop and flashed to CM12.1 again.
[Moto G 4G Android Development] ssirK:
for me too, it seems to be normal as it is a "downgrade"

which custom recovery do you use ? any flickering too ?

Glad it worked for you ! :)
[Moto G 4G Android Development] lu99ke:
Hey.. Just curious.... ( certainly not dissing)... Just wondering what is the benefit of flashing back to 4.4.4 then up to 5.0 and then to Cm12.1 when you were already on CM?

Just curious that's all..

Ciao
[Moto G 4G Android Development] ssirK:
there is a screen flickering on CM12 based ROMs when you boot with KK bootloader, this prevents it !

it also updates the modem, this could be good too
[Moto G 4G Android Development] lu99ke:
Ahh gotcha.....thanks!!

Yeah I had the flickering when I put bliss pop on mine... Just went back to stock 4.4.4..... Will be sure to try again once I go up to 5. :)

Thanks again
[Moto G 4G Android Development] F4b0s:
Hello !

I still didn't receive the EU retail lollipop...

If you've got it, could ou please upload the file ?

Thanks / Merci d'avance ;)

F4b0s
[Moto G 4G Android Development] gaarapt:
Yeah. Would be awesome if someone do that! Still waiting for the OTA.
[Moto G 4G Android Development] CJMom:
Update 6/18/2015: All users on Retail UK (21.11.56.peregrine_retgb.retgball.en.GB and 21.31.1.peregrine_retgb.retgball.en.GB), EE UK (21.11.56.peregrine_oraeu.oraeuall.en.EU eegb and 21.31.1.peregrine_oraeu.oraeuall.en.EU eegb), and Retail EU/Asia (21.31.1.peregrine_reteu.reteuall.en.EU) can download and install Android 5.1

Could someone please capture and upload the update for Retail UK?

Thanks
[Moto G 4G Android Development] dog121:
Would be good if someone captures the 21.31.1.peregrine_retgb.retgb all.en.Gb.ee

I'm. On stock but no update showing for it yet ...how long did you guys wait after the update was notified before you could download...
[Moto G 4G Android Development] J4mps:
thanks a lot dude!

flashed it today and it's running great.

---------- Post added at 03:01 ---------- Previous post was at 02:57 ----------

hey did you guys get the xt1040 update yet? i'ts available already!
[Moto G 4G Android Development] philou67:
Just flashed the German firmware and make the update with lolipop. Work great.

Nice, easy .
[Moto G 4G Android Development] nikobadboy:
hi. you used this firmware :

Android 4.4.4 (Retail Germany) KXB21.14-L1.56 CID7

for XT1039 ?
[Moto G 4G Android Development] necktru:
Yes, that file fix my phone, now its 100% operative, total flash with mfastboot.
[Moto G 4G Android Development] moses_dx:
Image for 1040 please
[Moto G 4G Android Development] gen_scheisskopf:
Worked like a charm on my EU retail :)

However I guess /system/app and /system/priv-app could use some cleanup. There seems to be quite a lot KK leftovers in these folders, files have older creation dates (15 March 2015) and are not stored in separate folders like Lollipop does. I'll see what can be deleted.

EDIT:

It is bug in AndroidCommander or old files are not visible in RootExplorer
[Moto G 4G Android Development] lost101:
New Android 5.1 Moto G LTE firmware image available:

Title: Android 5.1- Blur_Version.*.*.*.peregrine_retes.retes.en.es (Retail Spain) (XT1039)

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

[Download] [Mirror]

--

Firmware images provided by Firmware Team
[Moto G 4G Android Development] philou67:
yes. This one with the lollipo german update.
[Moto G 4G Android Development] martinisok:
Just restored my rooted 1039 gb to stock but I've done some stupid thing. I updated to Lollipop via ota then I supposed to wipe cache but also ticked wipe system. Now I've got no operating system. What do I do now? Read somewhere if you update to Lollipop boot loader you can't go back to kitkat it might brick your phone. Can I restore stock kitkat again and try again.
[Moto G 4G Android Development] dog121:
Do not try and install KitKat you will brick your phone you will.have to wait for someone to upload the lollipop software you require...
[Moto G 4G Android Development] martinisok:
Thanks for reply but I took the risk!

Installed cm 12.1 backup I had then after reflashed kitkat stock rom on here.

There was some screen tearing as it was loading up but loaded up fine and managed to get the Lolliop ota again.
[Moto G 4G Android Development] ssirK:
install an alternative ROM based on Lollipop, like CM12.1 !
[Moto G 4G Android Development] dog121:
This time wipe cache not system...

I must say the lollipop update was good I've rooted it and put custom recovery removed some stock apps installed xposed and three mods its just the same as cm12.1 and no bug's plus the torch light is Bright again...looking forward to cm bringing M...
[Moto G 4G Android Development] martinisok:
Lol, did it right this time all working good now. Also installed xposed and gravity box makes it nearly as same as cm but without the bugs.
[Moto G 4G Android Development] J4mps:
Using stock 5.1 xt1040 for 3 days now and battery life is incredible!

28h since last recharge and still 17% left.

Fantastic!
[Moto G 4G Android Development] dc239:
did somebody noticed that 787mhz is the minimum freqency instead of 300mhz ?

Do you think that it's bug guys?

(I'm using stock 5.1 retde non-rooted system)
[Moto G 4G Android Development] gen_scheisskopf:
Same for me (running DE Lollipop). I may be a bug but I modified system quite a bit so I can't say for sure
[Moto G 4G Android Development] lost101:
Here is a discussion on the official Motorola forum: https://forums.motorola.com/posts/74749f78cf

The default CPU idle speed can be changed by editing: /system/etc/init.qcom.post_boot.sh

Change:

echo 787200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq​

To:

echo 300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq​

Also mentioned in the Motorola thread is a new value for 'go_hispeed_load' - which in KitKat was set to '50' (%) but in Lollipop is '90' (%.) You can also manually change this init.qcom.post_boot.sh

Having restored the KitKat values; it became obvious to me why these changes have been made in Lollipop. The extra animations put more demand on the Moto G (Falcon) hardware, performance lag is more noticeable with the KitKat values. Reducing animations to '.5' in Settings > Developer settings - helps mitigate this.
[Moto G 4G Android Development] dc239:
That's strange,because if i open camera and take a picture,freqencies went back to normal
[Moto G 4G Android Development] gen_scheisskopf:
Camera app may change cpu clock when starting and ending its main activity, it's a system (trusted) app. IIRC such behaviour was present already in Eclair

Wysłane z mojego XT1039 przy użyciu Tapatalka
[Moto G 4G Android Development] martinisok:
I changed the value too 300000, after boot old value came back.
[Moto G 4G Android Development] lost101:
There may have been more than one instance to change in the file. Different boards are mentioned.
[Moto G 4G Android Development] razlack:
I use Kernel Auditor to set min cpu to 300. Resets it to 300 after boot
[Moto G 4G Android Development] lost101:
You need to edit the file I mention above.
[Moto G 4G Android Development] martinisok:
Actually for me opening and closing the camera app on every boot keeps the value.
[Moto G 4G Android Development] munlar:
Did anyone on Retail EU 21.31.1 already get the update?
[Moto G 4G Android Development] Mattski:
Any update for the XT1045 US Retail?
[Moto G 4G Android Development] cpvm:
Nothing yet....?

But someone in other forum flash an xt1040 in a xt1045 and it works but he doesn't give any details...

Enviado desde mi XT1045 mediante Tapatalk
[Moto G 4G Android Development] Polloos:
Can you upload the .zip to Mega or other? I get "Unknown network error" all time...

Thanks a lot! :)

Enviado desde mi XT1039 mediante Tapatalk
[Moto G 4G Android Development] lost101:
https://www.androidfilehost.com/?fid=24052804347763131​
[Moto G 4G Android Development] lu99ke:
Not me.... In Aus...
[Moto G 4G Android Development] PremiumMediocre:
I just got retail uk.
[Moto G 4G Android Development] demolition23:
I have retail uk is there any 5.1 image?
[Moto G 4G Android Development] dc239:
Does somebady have retail germany 5.1 system prepaired for fastboot flash ?
[Moto G 4G Android Development] mooms:
Someone know the differences between the Spain and EU versions ? they have the same cid, maybe they can be crossflashed ?

If someone wants to try:
[Moto G 4G Android Development] zbzdoncorleone:
Does anyone else have problems with Bluetooth Audio on 5.1? That was the reason I didn't try CM before, but now it is definitely worse than with Kitkat. It does not break off, but there are lots of skips and stutters, very annoying!
[Moto G 4G Android Development] lu99ke:
From what I can tell, there are no real differences..... But you can't cross-flash the OTA update through recovery as the update is programmed to look for the matching current FW.... I tried putting the German one on my EU and it failed..

When the full FW gets released we will be able to do it through fastboot.... But as OTA it would appear you need it to match your current FW..
[Moto G 4G Android Development] lost101:
For those that are not aware; it is possible with non-4g Moto G to boot Stock Lollipop ROMs without updating the Bootloader. The now available 5.1 Firmware images can be flashed without including the motoboot.img (Bootloader) file. You may want to do this to keep open the possibility of returning to KitKat.

The OTA Updates also include the new Bootloader.
[Moto G 4G Android Development] mooms:
Actually the file linked

is

the full FW. :cool:
[Moto G 4G Android Development] merlinolillo:
I've installed the kitkat 4.4.4 Spanish firmware in my XT1039 with Retail EU and then the Spanish 5.1 ota and I have to say that I haven't noticed any difference with the previous Retail EU. Everything is working like a charm. So I can't say what are the differences between the two versions
[Moto G 4G Android Development] cpvm:
So that means that I can flash a xt1040 into mine xt1045?

As far I know the only difference is a band between the two.

Enviado desde mi XT1045 mediante Tapatalk
[Moto G 4G Android Development] rodsayd:
The firmwares for example "Title: Android 5.1- Blur_Version.*.*.*.peregrine_retbr.retbr.en.br (Retail Brazil) (XT1040)

Filename: XT1040_PEREGRINE_RETBR_5.1_LPB23.13-8_cid12_CFC.xml.zip"..

Are flashable zips? I just have to flash them via recovery and that's it? I mean that will update my bootloader and I won't be able to go back to KK and that will also solve the flicker problem with CM 12.1 ROM's? Or I have to install them some other way?
[Moto G 4G Android Development] mooms:
OK, thanks for the feedback, they must have some differences though.

You have to unzip and flash the files in bootloader mode with mfastboot. Everything is explained in the first post (RTFFP!!!)

As lost101 said, you can omit the flash of the bootloader if you want, it's your choice.
[Moto G 4G Android Development] rodsayd:
Thanks, I read the first post but I wasn't sure if it was any different on Lollipop.