yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] hacktrix2006:
I am having issues with filefactory trying to download the XT1039 GB full image so it can be uploaded to the faster server. Can someone upload it to something like androidfilehost.com or something.
[Moto G 4G Android Development] eteles:
Usually, the frequencies supported by the phone can not be changed by software only modifications... They are a combination of software and hardware. Changing the radio can be useful when a specific radio file does not work well with a specific ROM... But not to change the supported frequencies... Would only work if the hardware was the same... Which I really doubt.
[Moto G 4G Android Development] eteles:
Update 4.4.4 for stock XT1040 is out! Can someone grab it and post it?

I'm currently on CM, so I can't do It...
[Moto G 4G Android Development] eteles:
I reverted to stock just to grab the 4.4.4 update for the XT1040 (retail BR) for you guys... Hope it helps! Here's the link:

https://docs.google.com/file/d/0B70vEW5xjd35enJvb0o1bXRMVmc/edit?usp=docslist_api
[Moto G 4G Android Development] lost101:
New 4.4.4 Moto G LTE firmware image available: (Looks like a newer build)

Title: Android 4.4.4 - Blur_Version.*.*.*.peregrine_umts.Retail.en.01 (Retail Brazil) (XT1039) (BRAZIL ONLY)

Filename: (Moto_G_LTE_XT1039)_RETAIL-BR-EU-SS_4.4.4_KXB21.14-L1.56_cid12_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] eteles:
Retail BR is XT1040 and not XT1039...
[Moto G 4G Android Development] mooms:
:good:

I have some questions:

What's the difference between RET-EU-SS (previous build, 21.14.46) and RETAIL-BR-EU-SS (this build, 21.14.56) ?

Brasil and Europe share the same ROM ? If yes, why the previous one haven't "BR" in its name ?

Also, what "SS" is for?

Also, I don't see this ROM on firmware-team ?
[Moto G 4G Android Development] lost101:
I don't know why it has that title but I suspect it hasn't been renamed. Since it states BR-EU; it's probably being considered a generic ROM that can be applied to either XT1039 or XT1040. 'SS' stands for Single Sim. I don't know what has changed. Maybe there is something on Motorola's website.
[Moto G 4G Android Development] vpnair:
Yeah I dont know why there are some Brazil roms with XT1039 and others with XT1040. Anyone who is over there can confirm the existence of both phones/ROMs?
[Moto G 4G Android Development] eteles:
The XT1040 is the retail version... It works with most of the carriers (Oi, TIM, Vivo and Claro). It seems the XT1039 is for NEXTEL carrier only... It probably uses other freq. or technology.
[Moto G 4G Android Development] lost101:
New Moto G LTE firmware images available:

Title: Android 4.4.4 - Blur_Version.*.*.*.peregrine_umts.AmericaMovil.en.PE (AMX Peru) (XT1045)

Filename: XT1045_AMX-PE-SS_4.4.4_KXB21.14-L1.54_cid12_CFC_1FF.xml.zip

[Download]

Title: Android 4.4.3 - Blur_Version.*.*.*.peregrine_umts.tefla.en.01 (Telefónica Latin America) (XT1039?)

Filename: (Moto G LTE) TELEFONICA-LA-SS_4.4.3_KXB21.14-L1.31_cid12_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​

---------- Post added at 10:49 AM ---------- Previous post was at 10:23 AM ----------

A different model number does usually indicate a significant hardware difference. However the Moto G non-LTE does have two CDMA variants: XT1028 - Verizon US and XT1031 - Boost US - where the only difference is software (Page Plus) - but I could be wrong on that.
[Moto G 4G Android Development] eteles:
The difference between the gsm variants of the moto g LTE is just the supported modem frequencies... That's why the Cyanogenmod ROM is the same for all of them.
[Moto G 4G Android Development] mooms:
Warning: do not flash this file if you have an European XT1039, you will end with no modem installed.

I think this ROM is for Brazil XT1039 only despite the name.

I have reflashed Android 4.4.4 (Retail Europe) KXB21.14-L1.46 with mfastboot then restored a nandroid backup made with TWRP just before the first flash and everything is OK.
[Moto G 4G Android Development] kdbrown5:
Would this work on US xt1045?
[Moto G 4G Android Development] lost101:
I don't know.
[Moto G 4G Android Development] vpnair:
Probably wont. Different CID. The modem wont be correct for your region.
[Moto G 4G Android Development] lost101:
New Moto G LTE firmware image available:

Title: Android 4.4.4 - Blur_Version.*.*.*.peregrine_retca.retca.en.CA (Retail Canada) (XT1045)

Filename: XT1045_RETAIL-CA-SS_4.4.4_KXB21.14-L1.54_cid14_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] Scorpius666:
I have a quick question I wonder if anyone knows about it.

I have a Moto G 4G US versions (LTE bands 2, 4, 5, 17) but I need the LTE band 3 (1800 MHz). Could I flash an european firmware and I would get the band 3 on it?

Thanks in advance. I've heard that I might be able to flash another radio to it so that's why I'm asking.
[Moto G 4G Android Development] AdamG:
I got myself a Moto G 4G from Tesco and then unlocked it on the cheap, I myself was also pleasantly surprised to see references to tescogb remain after flashing a retail image.

I have been trying to dig for answers to this.

After disassembling the Settings.apk looking for answers I found that the "tescogb" string is being retrieved from the properties ro.carrier and gsm.version.baseband

fsg.mbn is not the issue as I flashed a baseband from the Moto G and the carrier name was still the same.

My guess now is that the customisation is stored in one of the other partitions.

The hunt continues...
[Moto G 4G Android Development] eteles:
Supporting a frequency is a matter of hardware+software... Not just software... You could flash a different radio but I doubt this will do any good for you...

I'm almost sure the radio is different or Motorola wouldn't need to make so many versions of the phone... It would just sell a generic version...
[Moto G 4G Android Development] mooms:
Even in the same model number they seems to have differences, see my previous post.
[Moto G 4G Android Development] lost101:
[MENTION=3504676]hacktrix2006[/MENTION] - I'm waiting for a new Internet connection to get installed. From then, I will try to make mirrors sooner. I can't help right now.

UPDATE: After much thought, and being unable to contact OP; I have added Peregrine to this index thread: [INDEX] Moto G [Falcon][Peregrine] Factory Firmware Images

Discussion can continue here, but at least firmware requests can be made in that thread and people can more easily keep track of what firmware images are available.

[MENTION=3504676]hacktrix2006[/MENTION] - I wasn't sure how much prominence to give to your mirrors, so they are always the last mirror.
[Moto G 4G Android Development] hacktrix2006:
[MENTION=1006674]lost101[/MENTION] no problem the domain used for firmware images has a 2TB bandwidth per month allocation, so it really doesn't matter where you place the mirror bud. All that people need to know is that its a download as fast as your connection can give you service.
[Moto G 4G Android Development] BlueFlame4:
So, here are some DDL-Mirrors! :)

Retail Germany

visi0nary.de/wp-content/misc/XT1039_PEREGRINE_RETDE_5.1_LPB23.13-17_cid7_CFC.xml.zip

Retail EU

visi0nary.de/wp-content/misc/XT1039_PEREGRINE_RETEU_5.1_LPB23.13-17_cid7_CFC.xml.zip

Retail GB is up as well

visi0nary.de/wp-content/misc/XT1039_PEREGRINE_RETGB_5.1_LPB23.13-17_cid7_CFC.xml.zip

Tesco GB is now up, too!

visi0nary.de/wp-content/misc/XT1039_PEREGRINE_TESCOGB_5.1_LPB23.13-17_cid7_CFC.xml.zip

Orange is up

visi0nary.de/wp-content/misc/XT1039_PEREGRINE_ORAEU_5.1_LPB23.13-17_cid7_CFC.xml.zip

Coming tomorrow: Retail UK, Orange Europe, Tesco UK, and some more ;)
[Moto G 4G Android Development] jneto3000:
So, in my XT1040 I was on Android 5.1 (updated using these "blur" OTA zips) then downgraded to 4.4.4.

Now, if I install the 5.1 original firmware through ADB commands, will I have problems or will be fine?

Thanks!
[Moto G 4G Android Development] dc239:
I don't think that you'll have any problems if you flash the correct firmware for XT1040 only.But after i flashed the stock german firmware for my XT1039,my phone wasn't able to boot up correctly....it just stayed at the moto logo...so i needed to reflash the gpt.bin file from the captured ota (which i flashed before).And then it finally booted up
[Moto G 4G Android Development] killerBRs:
Firmware 5.1 Lollipop for BRAZIL XT1039,XT1040

Please...
[Moto G 4G Android Development] rodsayd:
Quoting myself again, I think this is what you need. (It was only on the page before...)
[Moto G 4G Android Development] killerBRs:
Works in XT1039? RETAIL Brazil

I need a Gpt.bin, motoboot.bin and logo.bin..

For flash my device..

My ROM is 23.21.35.peregrine_retail.retbr.en.BR (In ota, but stuck in airplane, format and clean install :( .. Why i Downgraded.. And havê a airplane bug)

(Link is for XT1040)

Thanks...
[Moto G 4G Android Development] polarbass:
OTA update

Hey there, I would like to get some help as I don't really know what to install to get back to stock.

Quick info:

Phone is Moto G 4G XT1040 from Videotron Canada

Currently running 4.4.4 Stock with unlocked bootloader and custom recovery (CWM).

System version : 21.11.61.peregrine_retca.retca.en.CA retca

Build number: KXB21.14-L1.61

Now I want to reflash the stock image and recovery to update to 5.1 but i'm not sure which one to use as I dont see any file matching my CID or build number.

CID Getter says ro.boot.cid is 0xE

Now from the download, it seems to say it should be 14?

Can I flash this file or it wont work? XT1040_RETAIL-CA-SS_4.4.4_KXB21.14-L1.65_cid14_CFC_1FF.xml.zip
[Moto G 4G Android Development] lost101:
XT1045 Retail US 5.1 Factory Firmware Image is now available.

http://xdaforums.com/moto-g/general/index-moto-g-falcon-factory-firmware-t3110795​
[Moto G 4G Android Development] polytek:
Rogers in Canada finally started pushing 5.1 yesterday. Unfortunately, I have an unlocked bootloader so the OTA update is failing during re-boot of course. Can I boot in recovery mode to complete the upgrade? And if I can, I need to know where the OTA download gets saved. Or is this not possible. Do I need to extract the image somehow and do a sideload/flash process?

Any advice appreciated.

XT1040 Rogers/FIDO Canada.
[Moto G 4G Android Development] polarbass:
The OTA update get saved in the /cache folder. You can get it before the phone reboot to install it.

As for the rest of the question, I'm in the same boat as you. Not too sure on what to do to install it manually.

Here is the link to the update although I did not test it.

http://1drv.ms/1COqD1k
[Moto G 4G Android Development] eLbor11:
Big problem while downgrading from 5.1 lolipop

Hi, I have a big problem, I was trying to downgrade from 5.1 Lolipop and had some errors like this:

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

I went on with the process, and after reboot it rebooted in 5.1, but without sim working, and I guess other things too, can anyone suggest the what I do next? If I could get handle of 5.1 version of .xml.zip for my phone, I guess I would need to just flash the parts where it didnt give me an error, but I cant find where to download one, anyway waiting for an answear, I need this phone up and running ASAP

EDIT:NEVER MIND few posts earlier there is a working .xml.zip with 5.1 Lolipop, flashed the things I needed and its working, but anyway - is there a way to downgrade to 4.4.4?
[Moto G 4G Android Development] lost101:
[MENTION=3992501]eLbor11[/MENTION] - Custom Recovery 4.4.4 Flashable zips are available here:

http://xdaforums.com/moto-g/4g-development/rom-stock-motorola-4g-kitkat-rom-t3160127​
[Moto G 4G Android Development] charesa39:
Woohoo! Thank you! I've been waiting for this one. Now I can finally get rooted and start the tinkering knowing I have this safety net (been spoiled by my Nexus devices).
[Moto G 4G Android Development] cpvm:
If i flash your rom and then i flash this radio

Will I have signal on a xt1045 cid12?

If not can I revert the process, right?

Sent from my Moto G LTE.
[Moto G 4G Android Development] lost101:
Which ROM exactly? You can revert radio yes.
[Moto G 4G Android Development] cpvm:
Your ROM, I not gonna flash the bootloader .

Sent from my Moto G LTE.
[Moto G 4G Android Development] polarbass:
5.1 retca

Well I answer my question finally.

I installed the 4.4.4 firmware in fastboot and then the OTA 5.1 update and everything went well.

I'm now on 23.21.35.peregrine_retca.retca.en.CA retca

Moto G 4G from Videotron
[Moto G 4G Android Development] minimale_ldz:
Hi, I managed to flash 4.4.4 stock firmware on my XT1039, downgrading it from Lolipop 5.1 (OTA update) and all worked fine untill I factory reset my device and unrooted it using Superuser's built-in option. After that I tried to flash 4.4.4 firmware again and it failed on first step (mfastboot flash partition gpt.bin) bricking my device (it booted into fastboot with UTAG "flashfail" message) - it didn't charge over USB and ADB didn't recognize it. One of XDA members said I shouldn't have executed mfastboot flash partition gpt.bin nor mfastboot flash motoboot motoboot.img commands when downgrading but it worked fine. I'm wondering if I should execute them now when flashing stock 4.4.4 again while my device still has stock 4.4.4 (it doesn't want to install OTA 5.1 update after unrooting, so I guess it needs reflash). Can anyone advise me on this one? Thanks
[Moto G 4G Android Development] lost101:
[MENTION=6788745]minimale_ldz[/MENTION] - every time you flash motoboot.img (Bootloader) - you risk destroying your phone. I suggest you do not repeatedly flash that file.

Regarding Android 5.1, I recommend you flash the full factory firmware image: http://xdaforums.com/moto-g/general/index-moto-g-falcon-factory-firmware-t3110795

OTA Updates, while they mostly work - can and do fail, reducing performance and in some cases breaking phones.
[Moto G 4G Android Development] minimale_ldz:
Thank you. Sorry for noob questions but should I only skip motoboot.img? How about gpt.bin? And another one - can I flash it directly on my 4.4.4 installation?

Edit: one more thing - does it make any difference if I install retail or tesco version?

Edit2: OK, another problem. After executing "ADB reboot fastboot" command my device does just regular reboot. No fastboot mode. I booted it in fastboot mode manually and ADB doesn's see my device, however "ADB devices" command works fine when I connect my device in normal mode. Also, when I try "factory" command in fastboot mode it shows me white screen with large battery shape and question mark inside it and just stays like this until I reboot it with power button. It looks like I messed it up.
[Moto G 4G Android Development] lost101:
You can skip the motoboot.img - but not gpt.bin. If you get 'screen flicker' in Lollipop, and you don't think you will ever go back to KitKat, also flash motoboot.img. The following command is recommended and will wipe internal storage: mfastboot erase userdata

Retail and Tesco are identical - there is no real difference.
[Moto G 4G Android Development] minimale_ldz:
Thanks. What about my fastboot problem I mentioned in second edit:
[Moto G 4G Android Development] lost101:
Flashing firmware images has nothing to do with ADB or ADB commands. ADB does not work in fastboot mode. To enter fastboot mode, turn phone on while holding volume down.
[Moto G 4G Android Development] Wyneg:
How relevant it is that I have 21.21.65.peregrine_retla.retla.en.01 (amxcl) system version, KXB21.14-L1.65 compilation number?

Can I install Retail Brazil - XT1040_PEREGRINE_RETBR_5.1_LPB23.13-35_cid12 ** ** Latest build? (Before I installed Retail Brazil - XT1040_PEREGRINE_RETBR_5.1_LPB23.13-8_cid12 and I lost network)

Thanks!
[Moto G 4G Android Development] Travisholt92:
Did you fastboot flash modem NON-HOLS.bin as well? That may be your issue (outdated modem).
[Moto G 4G Android Development] Wyneg:
Hi [MENTION=4711784]Travisholt92[/MENTION]!

Yes, I did it, like instructions in main post.

Didn't recognize sim, IMEI and baseband... (now I'm in KK again)

¿?

Thanks!

Update: I installed Retail Brazil - XT1040_PEREGRINE_RETBR_5.1_LPB23.13-35_cid12 ** ** Latest build and I have network!!!

First time, I installed using fastboot and network died, but I used mfastboot this time...
[Moto G 4G Android Development] minimale_ldz:
OK, I downloaded the file and am ready to go, but... the code written here doesn't seem to fit my files as I have 4 system_img.spareschunk files (0,1,2 and 3) and the code in instructions only contains 3 (1,2 and 3). Should I just add system.img_sparsechunk.0 before 1,2 and 3? Thanks

Edit: OK, I just added 1 line of code and done the stuff. My device is up and running. Thanks for your help and clearing things up.
[Moto G 4G Android Development] Gianlu92:
Just to be sure: I am on Lollipop bootloader 41.1A, but I am having issues with flashing specific things via recovery (either using the previous 2.8.3.0 version that never gave me any problems paired with KitKat bootloader, or the newer 2.8.7.0), so I am wondering if coming back to stock KitKat via fastboot and flashing a custom recovery from scratch would make the trick. Is it safe to proceed as in OP even with Lollipop bootloader or will I do a mess? Would it be better to flash stock Lollipop instead?
[Moto G 4G Android Development] Xplorer4x4:
I unzipped the lollipop zips but I dont see motoboot.img. Am I missing something where do i get motoboot.img? I tried flashing the optimized lollipop zip but still get the screen flickering and I am unable to install the latest blispop because my bootloader hasnt been upgraded.
[Moto G 4G Android Development] st3rox:
Motoboot.img and NON-HLOS.bin (radio) are in the stock firmware package, which you can download from the stock firmware thread in the moto g general forum
[Moto G 4G Android Development] Xplorer4x4:
Thanks! Now I execute mfastboot flash modem NON-HLOS.bin and mfastboot flash motoboot motoboot.img correct?

Still on the old kk bootloader after issuing these commands in fastboot. ..:confused: I used the files from XT1045_PEREGRINE_RETUS_5.1_LPB23.13-37_cid9_CFC.xml.zip
[Moto G 4G Android Development] st3rox:
Yep, make sure you're using mfastboot, not the regular one, and your phone has to be in the bootloader, not recovery.

Maybe post a screenshot/picture of the output, or copy it to here
[Moto G 4G Android Development] Xplorer4x4:
Where do I get mfastboot? I was using the fastboot from the sdk.

EDIT: Found it here and that solved the problem! Now using the LP bootloader and modem! Thanks for the help!
[Moto G 4G Android Development] st3rox:
Awesome, glad to be of service!
[Moto G 4G Android Development] BlueFlame4:
Hey,

I don't get why it is so important to use mfastboot. I've been using the normal fastboot ever since on my Linux and never had any problems. What are the differences?
[Moto G 4G Android Development] st3rox:
Mfastboot is specifically for Motorola devices, I assume it fixes some incompatibilities, regular fastboot doesn't even detect my moto on Windows 7

If regular works for you then just stick with it, no need to reinvent the wheel :P
[Moto G 4G Android Development] lost101:
mfastboot is the only way to flash some sparse (firmware) files. At least on Windows - I don't think there is any limitations on Linux fastboot.
[Moto G 4G Android Development] hottabi489:
Hello, will the Moto G XT 1045 have official update to 5.1?
[Moto G 4G Android Development] sonygoup:
Yea its out
[Moto G 4G Android Development] lost101:
[MENTION=1745761]hottabi489[/MENTION] - If you are impatient. the full firmware image is available here:

[INDEX] Moto G [Falcon][Peregrine] Factory Firmware Images​
[Moto G 4G Android Development] falle21:
How could I check my cid?

Sent from my XT1040 running Desolation ROM
[Moto G 4G Android Development] moses_dx:
With fastboot command of course

Enviado desde mi D6633 mediante Tapatalk
[Moto G 4G Android Development] st3rox:
It's in the first post, "fastboot getvar all"

Or the playstore app
[Moto G 4G Android Development] BitingChaos:
I've ONLY used "fastboot" from Google's site to flash my Moto G LTE. Yes, even on Windows.

As fas as I know, the advantage of "mfastboot" hasn't been valid in years. I read some time ago that it was patched to handle larger files at a time the regular fastboot command could not. The stock SDK fastboot has since been updated.

It's confusing to tell people to download some random mfastboot program from some random site when Google has official downloads of fastboot that should work just fine.
[Moto G 4G Android Development] lost101:
[MENTION=3975238]BitingChaos[/MENTION] - Thanks for the clarification. Could you provide a link to the version you refer to?
[Moto G 4G Android Development] BitingChaos:
Google's official Android SDK page is here: https://developer.android.com/sdk/

If you go down to the part that says "SDK Tools Only", you can download the package for your OS (Windows, Mac, or Linux).

Download, install, and run. Having the Java/JRE should be sufficient if you just want the tools (instead of the full Java/JDK).

Once the "Android SDK Manager" launches, click "Deselect All" to un-check all options. Then check off just "Android SDK Platform-tools" and install.

It should download and install latest official fastboot and adb.

You can then add the Android SDK directory/platform-tools to your system PATH.
[Moto G 4G Android Development] BlueFlame4:
Please note that I had to take down the mirrors (visi0nary.de) again due to traffic limits. Sorry!
[Moto G 4G Android Development] hacktrix2006:
No problem. My mirrors are still up u till the account hits the 2tb bandwidth limit. Then if its required I can purchase bandwidth more but only if its really needed as its expensive.
[Moto G 4G Android Development] rouyal:
I have xt1045 retail. If I flash everything back to stock 4.4.4, and install the moto update stuff from play store, how long before update to lollipop is available? Is it rolling out in waves (still?) or is everyone getting it now?

Edit; nevermind. Found the factory files for 5.1 just like kitkat has (op of this thread) that I used for returning to stock. Used same process here and flashed everything through fastboot.
[Moto G 4G Android Development] Lurker-Observer:
Hi all, ... I deleted build.prop (Moto G XT1039) and I haven't power it off... can anybody please post the build.prop archive from /system?

Thanks!
[Moto G 4G Android Development] lost101:
Attached.
[Moto G 4G Android Development] Lurker-Observer:
You're awesome thanks!

But... when I restart the phone, it's all black...
[Moto G 4G Android Development] mooms:
I think you need to fix the permissions.
[Moto G 4G Android Development] Skire90:
Has anyone received the stagefright fix yet via OTA? I have seen reports of the 1st gen Moto G 3G receiving the update, but not a single Moto G 4G report.
[Moto G 4G Android Development] moses_dx:
Brazilian and Indian should get it first and I haven't seen it.

Enviado desde mi D6633 mediante Tapatalk
[Moto G 4G Android Development] lfuentes:
Hello guys, I'm looking for Stock ROM for XT1040 from Personal Argentina. No matter what version of Android.

Thanks!

Enviado desde mi XT1040 mediante Tapatalk
[Moto G 4G Android Development] sdembiske:
Fido Moto GTE LTE XT1040 Canada

Confirming the Canadian version for XT1040 works perfectly. Rogers Canada owns Canada Fido and the cid's are a match: 0xE does = 14. I restored with the download and was immediately able to get the download for the Lollipop upgrade from the carrier directly and install. By the way a full wipe (cache, dalvik and data) with TWRP afterwords was required on the new download to restore WIFI. Big Thanks, vpnair - Cheers