[Moto G Android Development] lost101:
Disclaimer: I am not responsible for anything that happens as a result of flashing these files. Your destiny is your own.​

Credits: Big thanks to TheStrix and Al936 for making this project possible.

WARNING: Upgrading these ROMs via OTA Update will also change your Bootloader. Avoid headaches by flashing FOTA_Disabler_KK-LP.zip in Custom Recovery.

Stock Motorola KitKat ROM Collection

The goal here is to offer easily flashable versions of Stock Motorola ROMs. They should work with any Custom Recovery.

The collection will ONLY consist of Android 4.4.4 (or newer) KitKat ROMs due to the "Battery Loss Bug" present in older versions. Additionally, 4.4.4 includes the Heartbleed security fix.

If you would like to further optimize these ROMs, check out my Debloat Scripts.

First boot can take a while, don't panic.​

Untouched Version:

Nothing removed, nothing added. Pure Stock.​

Optimized Version:

Stock Kernel

Debloated [Removed Files] (Motorola apps still available in Play Store)

Zipaligned

Rooted

Busybox

ART | MultiROM compatible​

How to flash:

1) Boot into latest TWRP and Format Data (Wipe > Format DATA > Yes) - This step is essential, and will wipe Internal Storage (Downloads, Music, Photos etc, **backup important files**)

2) Transfer ROM to Internal Storage. This may be done in Windows via MTP, or using adb sideload or adb push ROM.zip /sdcard/

3) TWRP > Wipe > Factory reset and flash ROM.

4) Reboot.

NB #1: If you experience 'Settings' force-close; flash a 4.4.4 Radio from here.

NB #2: Gapps isn't necessary as Google Play Store is still present - Login and download your apps.

NB #3: If you get an 'encryption' message with GPe ROMs - Flash a 4.4.4 Stock Kernel or custom Stock-compatible Kernel (Faux, Phantom or XPerience)​

Miscellaneous: -= Flash via TWRP =-

Latest SuperSU - Flash via Custom Recovery

Modified Stock Messaging app (for GPe ROMs)​

XT1028 (CDMA)

Verizon 4.4.4 Stock ROM (Untouched) (564mb) [Download]

Verizon 4.4.4 Stock ROM (Optimized) v1.1 (323mb) [Download]​

XT1031 (CDMA)

Boost US 4.4.4 Stock ROM (Untouched) (581mb) [Download]

Boost US 4.4.4 Stock ROM (Optimized) v1.1 (317mb) [Download]​

XT1032

Retail US 4.4.4 Stock ROM (Untouched) (454mb) [Download]

Retail US 4.4.4 Stock ROM (Optimized) v1.1 (310mb) [Download]

Retail EU 4.4.4 Stock ROM (Untouched) (457mb) [Download]

Retail EU 4.4.4 Stock ROM (Optimized) v1.1 (309mb) [Download] [Mirror]

GPe 4.4.4 Stock ROM (Untouched) (430mb) [Download] [Mirror]

GPe 4.4.4 Stock ROM (Optimized) v1.1 (295mb) [Download] [Mirror #1] [Mirror #2]

Available Languages: http://imgur.com/a/oAGJk#0 (5 Screenshots)​

XT1033 (Dual-SIM)

Retail Asia 4.4.4 Stock ROM (Untouched) (460mb) [Download] [Mirror]

Retail Asia 4.4.4 Stock ROM (Optimized) v1.1 (313mb) [Download] [Mirror]

Retail Brazil 4.4.4 Stock ROM (Untouched) (456mb) [Download]

Retail Brazil 4.4.4 Stock ROM (Optimized) v1.1 (310mb) [Download] [Mirror]

Available Languages: Same as Retail EU 4.4.4, with the exception of Retail Brazil ROM - which includes Brazilian Portuguese.​

XT1034 (AWS)

Retail US 4.4.4 Stock ROM (Untouched) (454mb) [Download]

Retail US 4.4.4 Stock ROM (Optimized) v1.1 (310mb) [Download]

Retail Canada 4.4.4 Stock ROM (Untouched) (461mb) [Download]

Retail Canada 4.4.4 Stock ROM (Optimized) v1.1 (312mb) [Download]​

Changelog:

17/11/14 - Added XT1032 Retail EU Stock ROM (Untouched) (FIX: Previous version included root)

10/11/14 - Added XT1032 Retail US Stock ROM (Untouched)

10/11/14 - Added XT1032 Retail US Stock ROM (Optimized) v1.1

10/11/14 - Added XT1034 Retail US Stock ROM (Untouched)

10/11/14 - Added XT1034 Retail US Stock ROM (Optimized) v1.1

25/10/14 - Added mirror for XT1032 GPe Stock ROM (Optimized) v1.1

25/10/14 - Added mirror for XT1033 Retail Asia Stock ROM (Optimized) v1.1

25/10/14 - Added mirror for XT1033 Retail Brazil Stock ROM (Optimized) v1.1

05/10/14 - Added mirror for XT1032 Retail EU 4.4.4 Stock ROM (Optimized) v1.1

02/10/14 - Removed 'Building a Stock-based ROM' section (To avoid confusion)

30/09/14 - Added XT1034 Retail Canada Stock ROM (Optimized) v1.1

30/09/14 - Added XT1033 Retail Brazil Stock ROM (Optimized) v1.1

30/09/14 - Added XT1033 Retail Asia Stock ROM (Optimized) v1.1

30/09/14 - Added XT1032 Retail EU 4.4.4 Stock ROM (Optimized) v1.1

30/09/14 - Added XT1028 Verizon 4.4.4 Stock ROM (Optimized) v1.1

29/09/14 - Added XT1032 GPe 4.4.4 Stock ROM (Optimized) v1.1 (Xposed removed, Hangouts added)

29/09/14 - Added XT1031 Boost US 4.4.4 Stock ROM (Optimized) v1.1

29/09/14 - Added XT1031 Boost US 4.4.4 Stock ROM (Untouched)

13/09/14 - Added 'Miscellaneous' section

12/09/14 - Added 'Building a Stock-based ROM' section

06/09/14 - Added XT1028 Verizon 4.4.4 Stock ROM (Optimized) v1.0

05/09/14 - Added XT1034 Retail Canada 4.4.4 Stock ROM (Optimized) v1.0

05/09/14 - Added XT1033 Retail Brazil 4.4.4 Stock ROM (Optimized) v1.0

04/09/14 - Added Mirrors for XT1033 Asian ROM (Optimized) v1.0 - Thanks pakmaonagogo and doomwithdon.

04/09/14 - Added XT1032 GPe 4.4.4 Stock ROM (Optimized) v1.0

04/09/14 - Added XT1033 Retail Asia Stock ROM (Optimized) v1.0

03/09/14 - Added XT1032 Retail EU 4.4.4 Stock ROM (Optimized) v1.0 - Now rooted / See above feature list

31/08/14 - Added XT1028 Verizon 4.4.4 Stock ROM (Untouched)

28/08/14 - Added XT1034 Retail Canada 4.4.4 Stock ROM (Untouched)

28/08/14 - Added Mirrors for XT1033 Asian ROMs - Thanks doomwithdon.

27/08/14 - Updated XT1033 Retail Asia 4.4.4 Stock ROM (Optimized) - Now fully Deodexed; fixed FM Radio / Boot-animation.

27/08/14 - Updated XT1032 Retail EU 4.4.4 Stock ROM (Optimized) - Now fully Deodexed; fixed FM Radio / Boot-animation.

24/08/14 - Added XT1033 - Retail Brazil 4.4.4 Stock ROM (Untouched)

24/08/14 - Added Mirrors for XT1033 - Retail Asia 4.4.4 Stock ROM (Optimized) - Thanks dab_penyo and Harbir.

Frequently Asked Questions:

What is this Collection?

All of these ROMs are created from the Motorola Factory Firmware images. A pure source, unlike a dump of an OTA Updated system; the upgrading process patches, moves or deletes system files. The result is possibly bugs being introduced, and files being left over. These ROMs are completely clean, and any bugs you find are genuine Android issues.

Why is 'Battery Saver Mode' missing in Optimized ROM?

This feature is part of MotoCare which is removed during the 'debloating' process. There are many Battery Saver apps available; try DS Battery Saver.

Why is the 'clear all' button missing in 'Recents'?

This is also a feature of MotoCare. One solution is to install Xposed Framework and the GravityBox module. Setting is under 'Miscellaneous Tweaks.'

Tell me about Google Play Edition (GPe) and F2FS filesystem?

F2FS was created at Samsung in 2013 for use on Linux-based operating systems. As its name implies, Flash-Friendly File System is a file system designed specifically to cater to the specific characteristics of NAND-based storage devices.​

GPe uses EXT4 filesystem for the 'userdata' partition. All other models of Moto G use F2FS.

If you have converted your Moto G to GPe using one of the available tutorials, you probably have formatted your 'userdata' partition to 'EXT4.'

Not only does this make the phone incompatible with Stock Motorola ROMs and custom ROMs / Kernels - some people also believe it affects performance. TWRP custom recovery has an option to reformat your device back to F2FS:

WARNING: This will erase 'internal storage' including photos, music, videos. (Backup ROM zip and important files to external storage via USB OTG cable)

Wipe > Advanced Wipe > Repair or Change File System > (select 'Data') > Change File System > (choose F2FS)​

It is possible to use GPe ROMs with a F2FS formatted 'userdata' partition. See note under 'How to Flash' above.​