[Moto G Android Development] lost101:
Recommended Settings:

All Animations speed: 0.5 (Changed via Developer options - see below)

Wi-Fi Sleep policy: Never. (Changed via Settings > Wi-Fi > Advanced) - Check Battery stats occasionally | some Apps will force Wi-Fi to be always on​

Bugs:

When flashing, I get the following: "E:Error executing updater binary in zip" or "Updater process ended with ERROR: 7"

This is a custom recovery bug. Try restarting recovery and flashing again. Alternatively you may need to format /data (userdata) in Custom Recovery. Note: This will delete anything on internal storage - photos, music, videos etc.

Why does my screen ripple | flicker?

This is due to compatibility issues between KitKat Bootloader and the Lollipop Kernel. Turn screen off once to fix. Upgrade Bootloader easily with: Bootloader Upgrader Tool

My Battery History shows Wi-Fi is constantly in use, even when turned off?

The issue appears to be due to certain apps are keeping Wi-Fi active in Lollipop. Solution here.

Why does Stock Kernel not idle at 300mhz?

There is a problem with the Stock Kernel included with 5.0.2, causing it to only idle at 787 mhz. A workaround is to install a Kernel Tweaker such as Trickster MOD or Device Control. Issue fixed in Optimized ROM v1.2 or newer.

'Emergency Calls Only' showing in status bar at odd times in Android 5.1?

This is a known bug in Android 5.1. Calls and data are unaffected.

I reduced brightness to 0 and got stuck with a black screen?

This appears to be a bug in 'Adaptive brightness.' Turning it off and on should stop this happening.

If you are in this situation, try shining a torch light on the screen at an angle to make out the very dim display. You can also try swiping down the 'quick toggle' notification menu and changing brightness via the sliding bar. [Source]

GPS has stopped working after flashing GPE ROM?

Flash the GPE 'no-GPS' fix via custom recovery. Alternatively, enter Fastboot mode and type the following commands:

fastboot erase modemst1

fastboot erase modemst2​

GPE ROM gets stuck at boot logo?

/data needs to be formatted to ext4. If you change format to ext4, then wipe /data - it will revert back to f2fs - as that is the default for most recoveries. Check and recheck, before flashing the ROM to make sure /data is actually formatted to ext4. You can also try using the GPE version of TWRP. It will default to ext4.

More information below regarding GPE.

When I install Xposed Framework, Android reports "internal memory is full"?

After flashing the xposed-arm-*.zip in custom recovery - immediately choose 'Wipe Cache / Dalvik.'

Xposed Framework and Android 5.1

I cannot provide support for the use of Xposed Framework. It is still a highly experimental work-in-progress MOD with no official release.

The thread for reporting issues related to Xposed is here: [UNOFFICIAL] Xposed for Android 5.1​

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.

Do I need to upgrade to Lollipop before flashing these ROMs?

No. You can go directly from any KitKat ROM. Simply factory reset in custom recovery and flash.

Do I need to downgrade to 4.4.4 before flashing these ROMs?

No. However an additional step is required if you are currently running a GPE ROM; see next question.

Can I flash the Stock ROMs if I'm GPE?

Stock Motorola ROMs require a F2FS 'userdata' partition. If you are GPE, or have ever been; you may need to convert to Stock. More info below.

How do I make Animations in Lollipop faster or turn them off?

Enable Developer options - repeatedly tap 'Build number' in About phone. Change the three 'Animation scale' settings to: .5x or off. "2.5x" is available if you have installed the Xposed Module known as GravityBox.

Will these ROMs get official Motorola OTA Updates?

Official Motorola OTA Updates have been disabled in all Optimized ROMs. The Untouched ROMs will certainly get a notification when a new OTA Update is available, however the official upgrade process has two key requirements:

1) An unmodified /system partition (Android must never have been rooted)

2) Stock Recovery​

If your phone fails to meet either of these requirements; the update process will probably fail. If you absolutely must retain the ability to receive and apply official OTA Updates - then the only certain way is to flash the Factory Firmware Image for your model and never root or change recovery.

It should be noted that I have disabled OTA Updates in the Optimized ROMs because I consider them dangerous and messy. Q & A has many accounts of people very unhappy with the results of applying OTA Updates (bugs, crashes, poor performance) and a number of cases where the upgrade process has hard-bricked phones - effectively killing the device.

Newer Factory Firmware Images become available that incorporate all OTA Updates - and when possible I try to update ROMs based on those new Images.

How to enable 'Battery Saving Mode'?

Go to Settings > Battery > Press the three dots > Battery saver. You can choose to enable immediately or have it automatically turn on at a specified battery percentage. To noticeably improve Battery Life, flash one of the custom Stock Kernels available here.

Why can't I change Voicemail Number?

Solution: http://xdaforums.com/showpost.php?p=60493182&postcount=1503

How to enable 'WCDMA only' data mode?

1) Dial: *#*#4636#*#*

2) Tap 'Phone information'

3) Scroll down to: Set preferred network type

4) Change to: WCDMA only​

What is 'Zipaligining' | Post-install zipaligning?

Zipaligining

It makes apps use less RAM. Longer answer.

Post-install zipaligning

Newly installed apps are zip-aligned after reboot. This process occurs only once per app, as a database exists in /system/usr. When an app is updated, the new apk will also be zip-aligned and added to the database.

MultiROM is not working with these ROMs?

Currently, a custom Kernel is required. ATTACKED Custom Kernel will allow you to use Stock ROMs with MutliROM.

How to hide the Network | Carrier name in the status bar?

Settings > More > Mobile network > Show mobile network​

How to turn off Lock-screen rotation?

This setting is a built.prop edit. Use a text editor with root access to open: /system/build.prop - remove the last line, or change to 'false':

lockscreen.rot_override=true​

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 choose the format:

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 EXT4 for GPE or F2FS if returning to Motorola Stock)​