yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] srinivasmuthyala38:
I fell for that too earlier and did that and soft bricked so please a friendly warning do not downgrade to 4.4.3 at all coz there is no 4.4.4 firmware for XT1045 cid9 yet.
[Moto G 4G Android Development] TheFixItMan:
If you have stock rom on your phone or know someone who does with your model who is Rooted & has Busybox installed you can type the following in android terminal emulator app

su

tar -c system/* >> sdcard/system.tar

This will output a file called system.tar to the root of the sd card (internal) but wait until the prompt with your phone version reappears - it could take several minutes

You can then use this in android kitchen to create a Flashable zip of stock rom

OK it's not the same as flashing a firmware package but assuming that the phone used to create the tar hasn't had anything changed in the system partition it will be as good as

The only thing this won't help you with is stock recovery or kernel but I'm not sure what your end goal is

Just a thought for if you haven't got the firmware you can still create backup rom zips
[Moto G 4G Android Development] TadMSTR:
I run CarbonROM and my GPS won't lock. Read in a few places that people were able to fix this by doing the following:

1. Make nandroid backup

2. flash stock firmware

3. get GPS lock using stock firmware

4. restore nandroid

After that they reported GPS working properly again. I bought this phone (XT1045) from someone on swappa. They had the stock firmware but I'm guessing never used GPS during the month they were using it. The first thing I did was load CarbonROM so I hadn't used the GPS either.
[Moto G 4G Android Development] TheFixItMan:
Ah OK well the above would probably work if you could get someone with your model of phone to create a system dump for you to create a Flashable zip - I don't know if you can use a system dump from a different region as you are not actually flashing firmware - its more a custom rom without any modifications

Although I don't know if carbon rom has its own kernel - you might need to find stock kernel if it does
[Moto G 4G Android Development] Zyquil:
That is correct. So it's either one will have to flash 4.4.3 and stick with it or have to update via OTA to get 4.4.4 and don't downgrade.

I just stuck with 4.4.3 and went ahead with flashing custom roms.
[Moto G 4G Android Development] TadMSTR:
So the 4.4.4 OTA causes the downgrade issue? I just need to revert to stock temporarily to get a GPS lock. I intend to restore a nandroid of CarbonROM (4.4.4) after that. Not sure if the phone came with 4.4.3 or 4.4.4 before I started flashing roms.
[Moto G 4G Android Development] Zyquil:
No, it's the upgraded bootloader that's causing the soft bricking. Upgrade to 4.4.4 via OTA and your bootloader gets upgraded in the process(so I've been told). For the GPS lock, I returned to a nandroid of my stock 4.4.3 and got a lock, then flashed a custom rom.
[Moto G 4G Android Development] lost101:
New 4.4.4 Moto G LTE firmware images available:

Title: Android 4.4.4 - Blur_Version.*.*.*.peregrine_retca.retca.en.ca (Retail Canada) (XT1040)

Filename: XT1040_RETAIL-CA-SS_4.4.4_KXB21.14-L1.65_cid14_CFC_1FF.xml.zip

[Download]

Title: Android 4.4.4 - Blur_Version.*.*.*.peregrine_tefla.tefla.en.01 (Telefónica Latin America) (XT1040)

Filename: XT1040_TELEFONICA-LA-SS_4.4.4_KXB21.14-L1.65_cid12_CFC_1FF_SVC.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] aliendude5300:
Is there any chance of flashing to Cricket Wireless version to the retail firmware?
[Moto G 4G Android Development] vpnair:
Not to my knowledge. I dont believe flashing different CID firmware is wise. Although I'm not sure why it is different to ATT and others.
[Moto G 4G Android Development] lans_98:
Can anyone mirror Retail LA for XT1040 ? The MEGA Mirror don't works for me :C
[Moto G 4G Android Development] eteles:
All the models are the same, except for the modem...

If both versions of firmwares are designed for the same model number (ex.: XT1039) they should work fine...
[Moto G 4G Android Development] LuanTeles:
please can somene send me the bootanimation file? of 5.0 lollipop

its under system\bin
[Moto G 4G Android Development] NWKENT:
Sir..I couldn't find any animation in the file structure you mentioned..The boot animation (spinning earth) that's on this device, is located >> system/media/bootanimation.zip

Please correct me, if I'm wrong..

Note: I did change the animation on this device to another, to make sure..

Seems to me, to be the same animation as my XT1045 Moto G's, XT1060 Moto X DEV, and maybe even my XT1028 Moto G..

Here >> https://docs.google.com/file/d/0Bzr_08QESKW4NXZuN1huNzRUelk/edit?usp=docslist_api

sent by my

5.0_22.11.6 Lollipop (Rooted)

TWRP v2.8.0.1-titan

UPDATE-SuperSU-v2.16

XT1064 Moto G (2nd Gen.)

http://waynekent.com/page6.html

"Praise Jah" YOU people.!
[Moto G 4G Android Development] LuanTeles:
No, it's under System\bin

its named bootanimation Without file type, Its not a zip

It have the parameters to load the bootanimation.zip

only motorola phones have that ability to load .mp4 files on boot.

that's why i need this, to run it on cm12

The kitkat one, doesnt work anymore on Lollipop

thanks
[Moto G 4G Android Development] NWKENT:
Sir..I did locate the file you have requested..PM if you still need the file..

Sent from my:

4.4.4_23.3.24 XT1080M

Droid Maxx Developer Edition

http://waynekent.com/page6.html

"Praise Jah" YOU people.!
[Moto G 4G Android Development] senzacionale:
Slovenian Language

Can someone tell me if in stock firmware (EU region) Slovenian language is included or not?

Thanks
[Moto G 4G Android Development] alochmst98:
Here is the 4.4.4 OTA for XT1045 Retail US (CID 9): https://docs.google.com/file/d/0B67RS0BDBp_iOWhZdGlmWXpOQW8/

Can we turn that into a flashable zip for going back to stock 4.4.4? If so, how? I've tried flashing it with TWRP and Philz Recovery, but it doesn't work. I'm guessing it's not in the right format for that. It's the file that downloads to /cache when you accept the 4.4.4 OTA in the stock 4.4.3 ROM.
[Moto G 4G Android Development] NWKENT:
One would flash your zip, via adb..not via recovery..one cannot flash via RSDLite, because NO .xml file is included..conversion to an "update" is not possible (that I know of) because your zip will attempt to flash recovery, and being one is already in recovery, the flash will fail..maybe a "sideload" is possible thow..haven't never tried on the device mentioned, eventhow I own (2) XT1045's..lol

sent by my

5.0_22.11.6 Lollipop (Rooted)

TWRP v2.8.0.1-titan

UPDATE-SuperSU-v2.16

XT1064 Moto G (2nd Gen.)

http://waynekent.com/page6.html

"Praise Jah" YOU people.!
[Moto G 4G Android Development] TadMSTR:
Does anyone have a nandroid of stock 4.4.4 for the XT1045 CID9? I stupidly deleted the nandroid of stock I had and then later found out I have a GPS issue, which I can only fix by going back to stock and getting a GPS lock. Since my bootloader had been updated I cannot use the 4.4.3 firmware listed in the OP. Would be nice if Motorola would release the 4.4.4 stock firmware for the CID9 variant. If there is another way of getting back to stock with an updated bootloader I'm willing to try. Any help on this is greatly appreciated.
[Moto G 4G Android Development] benjoe1:
What is the difference between EU and GB retail ROM?

Because CID number is the same. Is it just software related or the modem frequencies are different? If I know correctly 800, 1800 and 2600 mhz are in use in UK, same as in Hungary.

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

Android 4.4.4 (Retail Great Britain) KXB21.14-L1.56-1 CID7
[Moto G 4G Android Development] alochmst98:
My mom just ordered a 2013 Moto G XT1045 retail US CID 9 from Amazon Prime. It's in new condition. When it gets here in two or three business days, before it even boots Android for the first time, I will boot it into a custom recovery (without flashing said recovery) and make a complete nandroid backup of the phone in factory state. Once I've successfully got the backup, I will boot into Android and skip through all the initial setup steps, then go into about phone to see if it's in 4.4.3 or 4.4.4. If it's on 4.4.3, I will apply the 4.4.4 OTA and then make a nandroid backup.

In short, in a few days I will make a full nandroid backup of factory 4.4.4 for the US retail XT1045 CID 9, and then post it to this thread as both an HTTP download and a torrent.
[Moto G 4G Android Development] TadMSTR:
This will definitely help me out. Learned my lesson to never delete a stock nandroid backup. Though this is the first time I've needed it to fix an issue. Just hoping it works.

Thanks. I'll add the torrent to my seed box and leave it running as long as needed.
[Moto G 4G Android Development] alochmst98:
Never mind.
[Moto G 4G Android Development] srinivasmuthyala38:
trying to update using fastboot update

C:\MotoToolAioV3>fastboot update XT1045.zip

archive does not contain 'android-info.txt'

archive does not contain 'android-product.txt'

error: update package has no android-info.txt or android-product.txt

got this.
[Moto G 4G Android Development] alochmst98:
Yeah, I'm sorry. Do not use that file!

I soft-bricked my Moto G when I flashed that nandroid from my mom's Moto G, even though they're both XT1045 US Retail CID 9's running Android 4.4.4. I don't know if I'm ever going to get my phone working again. It looks like I'm now entirely dependent on the FirmwareTeam distributing a firmware file for 4.4.4 or Lollipop for my phone.

Until then, I guess I'll have to go back to my crappy HTC Incredible 2. Damnit! I wish I knew how the FirmwareTeam does what they do. Using dd to clone partitions from my mom's phone to mine doesn't work because the hash somehow doesn't validate.
[Moto G 4G Android Development] lost101:
It's a 'nandroid backup' - you restore it to your phone via custom recovery.

---------- Post added at 08:17 AM ---------- Previous post was at 08:10 AM ----------

I've put in a request for the firmware image. I'm sure you know what you are doing but be careful with partitions, some should not be tampered with.
[Moto G 4G Android Development] NWKENT:
Sir..one would "restore" the backup via TWRP (or) CMD, depending on witch recovery, the backup originated, the OP fails to mention, (that I can see) witch recovery..anyhow..

I do have firmware for the XT1045..one would flash via adb..if you need help, PM..

Sent by my Motorola Droid XYBoard MZ617-32 10.1_ICS 4.04
[Moto G 4G Android Development] alochmst98:
Yes, I know. I am the person who posted the file, which is for TWRP (again, DO NOT use it! It will brick your phone).

I can't use adb. The only thing that works on my phone now is fastboot. Recoveries do not work. I have to wait for a new factory-signed firmware to be released for the XT1045 CID 9, which may never happen. It looks like I'll be buying a replacement Moto G next month and using my old phone in the meantime. The lesson I learned is to never use nandroid backups from one phone on another phone, even if they're the exact same model, variant, CID, and firmware/bootloader version. Nandroid backups should never be restored to any phone except the individual one that created them.
[Moto G 4G Android Development] NWKENT:
Sir..seems as thow you could flash the 4.4.4 OTA via the "stock recovery, or have you tried already.?

Have you tried, erase cache, via recovery, then flash the OTA zip.?
[Moto G 4G Android Development] alochmst98:
Again, recoveries do not work (whether stock or custom). Fast boot is the only thing that works on my phone right now.

Also, the 4.4.4 OTA I linked to earlier in the thread is only a delta updater. It's a not a complete, standalone factory firmware. The only thing I could use would be factory-signed firmware meant for flashing via fast boot, and it has to be 4.4.4 or newer for the XT1045 CID9. The files I need are not available for download on any website at this time.
[Moto G 4G Android Development] lost101:
[MENTION=4865858]Slinkwyde[/MENTION], I think you are overreacting. I recently flashed a TWRP backup from another model and returned to original firmware via fastboot image. I have requested the firmware image you need.

FYI, if you get a 'mismatched partition' error when flashing custom recoveries, that's normal.
[Moto G 4G Android Development] NWKENT:
Yes..as long as its the same model, one can "restore" a TWRP backup to another device, I have done this many, many times..without any issues..

I haven't tried to revert to Jelly Bean 4.4.3 to KK 4.4.4..don't know if the bootloader version is the same or not..just wait..I will check on version..

Update: bootloaders are different versions

JB >> v41.10

KK >> v41.13

So..this usually means one cannot revert, haven't tried myself, personally thow..

Sent from my 4.4.4_21.11.56_peregrine

(Unlocked) XT1045 Moto G 4G LTE #2

http://waynekent.com/page6.html

"Praise Jah" YOU people.!
[Moto G 4G Android Development] alochmst98:
Thanks for making that request, lost101.

Fast boot shows three hardware differences between the two phones, even though they're both XT1045 US Retail CID 9.

My eMMC was made by Sandisk and says PV=07

My mom's eMMC was made by Samsung and says PV=02.

My DRAM was made by Samsung.

My mom's DRAM was made by Hynix.

Here's what the nandroid backup included:

Each of those files had a corresponding .md5 checksum file.
[Moto G 4G Android Development] NWKENT:
If it would help, I would do a complete erase, then do a TWRP backup, then upload the backup, if you have some way to copy it to your SDCard, then restore from the SDCard..!

I do run a "known good" TWRP version..

sent by my Jelly Bean_ 4.1.2_98.72.16

(Root Exploit) XT912 Droid RAZR Maxx
[Moto G 4G Android Development] lost101:
Please never run: fastboot erase all - you will ruin the phone.

To clarify, you can flash a different model's TWRP backup, I did not mistype. The issue is your TWRP backup [MENTION=4865858]Slinkwyde[/MENTION] included extra unnecessary partitions. System.ext4.win and boot.emmc.win are all that was needed.

It's possible you have screwed up the partition table, flashing the gpt.bin from Android 4.4.3 (Retail US) KXB21.14-L1.23-4 CID9 might repair the table and allow you to flash a recovery. The command is: mfastboot flash partition gpt.bin

Are you sure you can't flash the 4.4.3 firmware image? What errors do you get?
[Moto G 4G Android Development] TadMSTR:
So if I repackage those two partitions with their md5 files in a zip, I could flash it in TWRP and be on stock 4.4.4?
[Moto G 4G Android Development] lost101:
Yes, all you need is ROM and Kernel. Here is the contents of a recent TWRP backup (from another phone) that I restored:

boot.emmc.win (Kernel)

boot.emmc.win.md5

recovery.log

system.ext4.win (ROM)

system.ext4.win.md5

system.info

I should have some time tomorrow to build a custom recovery flash-able zip if [MENTION=4865858]Slinkwyde[/MENTION] will share his backup again, or someone sends me a link to it.

Also, [MENTION=4865858]Slinkwyde[/MENTION], by overwriting your phones 'fsc' partition (fsc.emmc.win) with that of another, you may have lost your IMEI. Does the following command list an IMEI?

fastboot getvar all​

The people in this thread know more about the consequences of your actions than anyone: http://xdaforums.com/moto-g/help/info-moto-g-imei0-t2925970

I expect ultimately you won't know your position until you are able to boot Android again.
[Moto G 4G Android Development] hrincon:
Bought a Moto G XT1040 4G LTE at a Claro Colombia store which I unlocked and rooted following the instructions here http://wiki.cyanogenmod.org/w/Install_CM_for_peregrine#Unlocking_the_device. I erased some unnecessary apps from /system/apps and probably won't get the Lollipop update. Having read the instructions quoted above, I'm still not not sure which version to use. I got:

[ro.boot.cid]: [0xC]

Other information that might be useful:

[ro.boot.baseband]: [msm]

[ro.boot.bootloader]: [0x4113]

[ro.boot.carrier]: [amxco]

[ro.boot.device]: [peregrine]

[ro.boot.hwrev]: [0x82D0]

[ro.boot.radio]: [0x7]

[ro.build.description]: [peregrine_retla-user 4.4.4KXB21.14-L1.56 54 release keys]

[ro.build.id]: [KXB21.14-L1.56]

[ro.build.product]: [peregrine]

[ro.build.user]: [hudsoncm]

[ro.build.version.codename]: [REL]

[ro.build.version.full]: [Blur_Version.21.11.56.peregrine_retla.retla.en.01]

[ro.build.version.incremental]: [54]

[ro.build.version.qcom]: [AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04.02.048.020]

[ro.build.version.release]: [4.4.4]

[ro.build.version.sdk]: [19]

[ro.carrier]: [amxco]

[ro.product.board]: [MSM8226]

[ro.product.locale.language]: [es]

[ro.product.locale.region]: [US]

[ro.product.model]: [XT1040]

And the baseband version shown in ->Settings->About phone is:

MSM8926BP_101.90.49.01R, singlela_cust

Any hints or ideas? Also, what is the difference between the SVC and nonSVC ROMS you find?
[Moto G 4G Android Development] TadMSTR:
I'm currently seeding the torrent he made. I can't seem to find the original torrent file but I do have the hash of the torrent.

983fed7806f93d6aa7cd22505ffabb07f5b683a1

If that doesn't work for you I'll put the full zip on my cloud storage and PM you the link.
[Moto G 4G Android Development] lost101:
[MENTION=2676790]TadMSTR[/MENTION], I've sent you a PM.
[Moto G 4G Android Development] TadMSTR:
I replied to your PM but I don't see my reply so not sure if you got it. You may get 3 replies as I tried a few times.
[Moto G 4G Android Development] lost101:
This is a flashable zip for XT1045 CID9 4.4.4 Stock ROM. Do not extract; flash in Custom Recovery.

Note: A few Google apps removed to reduce filesize, otherwise untouched.

Title: Android 4.4.4 - Blur_Version.21.11.56.peregrine_retus.retus.en.US (Retail US) (XT1045)

Filename: XT1045_Retail_US_4.4.4_CID9.zip

[Download] (380mb)

Radio: 101.90.49.01R (Flash at your own risk)

Can someone confirm that '/dev/block/mmcblk0p1' is the modem partition as it is on non-LTE Moto G? The above radio should work if that is the case. I also took a guess at the radio version number.
[Moto G 4G Android Development] TadMSTR:
Will try this out when I get a chance. Which Google apps did you remove? Not that I mind just curious which ones. I prefer minimal Google apps anyway. Though I will only be using stock briefly to fix my GPS issue then right back to CarbonROM.
[Moto G 4G Android Development] lost101:
I only removed some of the larger gapps: Chrome, Google+, youtube - they are all available in Google play and would need updating anyway.
[Moto G 4G Android Development] TadMSTR:
I actually don't use Chrome on Android, prefer Firefox. Was just curious as I didn't remember what came included on stock for this phone.
[Moto G 4G Android Development] TadMSTR:
Confirming that flashing this will fix the GPS issue where it won't lock.

Made a nandroid backup. Flashed this stock backup, via TWPR recovery. Was able to get GPS lock in both Google Maps and a GPS testing app. Then restored the nandroid backup. Now have working GPS under CarbonROM.

Lesson here is always save your initial stock nandroid backup. Never know when you might need it.
[Moto G 4G Android Development] lost101:
To get a faster GPS lock, try GPS Status and Toolbox. The app will launch along-side Sat Nav. I've been using it for a few weeks and it makes a big difference.
[Moto G 4G Android Development] alochmst98:
Yeah, the IMEI is lost. I did do a nandroid backup of my phone before updating it from 4.4.3 to 4.4.4, and maybe I made that backup complete enough to be able to restore those partitions, once firmware is released and I become able to use a custom recovery again. If that doesn't work or if my 4.4.3 backup wasn't complete enough, then it probably won't ever work as a phone again. However, it could probably work as an iPod touch type of device.

In the meantime, I ordered a replacement Moto G. It arrived today and I am setting it up now. At ~$150 used on Amazon, it was cheap enough to not break the bank.

I learned two lessons from this:

Don't use the "integrate into System" feature of Link2SD. That's what made me need a factory system restore in the first place. The feature is meant to save internal storage space by replacing factory bundled apps with their updates from the Play Store (as opposed to having both the factory version and the updated version). Unfortunately, it caused numerous force close errors and made encryption no longer possible. I'm guessing the loss of encryption ability was caused by the stock keyboard app being affected; the stock keyboard is required for entering the decryption key at startup.

Restoring a nandroid from one phone to another is ok, but said backup must only include system and boot. Other partitions are unnecessary and often specific to the individual phone, which is what messed up my phone.

At least it wasn't a $700 flagship that I messed up, at least it happened at time when I was able to afford a replacement, and least I still had my old phone as a backup. The situation could have been a lot worse. Thanks to lost101 for all your help. I really appreciate it.
[Moto G 4G Android Development] lost101:
New 4.4.4 Moto G LTE firmware images available:

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

Filename: XT1039_RET-DE-SS_4.4.4_KXB21.14-L1.46_cid7_CFC_1FF.xml.zip

[Download]

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

Filename: XT1039_RET-DE-SS_4.4.4_KXB21.14-L1.56_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] Ferguson35000:
Hello, can someone provide me a mirror for this link (the first link page 1) :

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

The site for the download is overloaded since I'm not premium I cannot download it. I need it to go back to stock.

Thank you for your help.
[Moto G 4G Android Development] lost101:
https://mega.co.nz/#!BVpxWaoa!P1WTY-gGb6_oglQHubDJG9DPuLU25gm2EOqA3XctGhw​
[Moto G 4G Android Development] Ferguson35000:
Thank you very much. Perfect.
[Moto G 4G Android Development] vpnair:
Use Latest XT1040 firmware under Latin America. CID C is alphanumeric and means CID 12. You will still receive update but may have error installing. Flashing system and boot images (as indicated in OP) will allow update without compromising your data.
[Moto G 4G Android Development] moses_dx:
still no lp for 1040?
[Moto G 4G Android Development] gabrielsimoes:
No lollipop for any Moto G 4G device... I think we're the last ones...
[Moto G 4G Android Development] hacktrix2006:
Its a good thing us being last on the list of Moto G's to get the Update it might be bug free on release.
[Moto G 4G Android Development] gabrielsimoes:
Yes, but our LTE version has its own bugs :p
[Moto G 4G Android Development] hacktrix2006:
As far as i am aware the only version of Lollipop for the LTE variant is via CM12.. There is no Offical firmware for Android 5.0 so not sure what you mean by "our LTE version has its own bugs"
[Moto G 4G Android Development] gabrielsimoes:
I think some specific bugs might appear. When custom development for this device had started, the original Moto G ROMs had a lot of bugs when flashed on the LTE variant. I meant they might appear when the official firmware comes out, sorry for my bad english.
[Moto G 4G Android Development] moses_dx:
I've just flashed this firmware but I've noticed that the baseband is still showing the carrier. Hope that won't affect when updating to lp
[Moto G 4G Android Development] Khaiyan:
Sorry, I don't quite understand this. I'm running the unofficial Cyanogen Lollipop Rom, is it safe for me to install the 4.4.4 stock firmware following the commands posted?
[Moto G 4G Android Development] hacktrix2006:
If there is a Stock FIrmware on this thread for your phone then yes you can go from CM12 back to Stock 4.4.4 as i have done so today myself (Abit using RSDLite).
[Moto G 4G Android Development] Khaiyan:
OK great, thanks!