[Moto G Q&A, Help & Troubleshooting] vinny_80:
One Fine morning when I checked my phone it said "optimizing app 69 out of 109"..Battery drained out . Recharged and noticed Device wont start and won't go past the "Moto G logo POwered by android" screen .

Steps taken so far :

Unlocked bootloader . Device status shows unlocked status 3 .

1. Followed the steps @ http://xdaforums.com/showthread.php?t=2542219

No errors using XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xml.zip

Result:--> problem persists

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>vin

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.020s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.300s]
finished. total time: 0.326s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot flash motoboot motoboot.img
target max-sparse-size: 256MB
sending 'motoboot' (1953 KB)...
OKAY [ 0.095s]
writing 'motoboot'...
(bootloader) flashing tz ...
(bootloader) flashing rpm ...
(bootloader) flashing sdi ...
(bootloader) flashing aboot ...
(bootloader) flashing sbl1 ...
OKAY [ 0.930s]
finished. total time: 1.031s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot flash logo logo.bin
target max-sparse-size: 256MB
sending 'logo' (295 KB)...
OKAY [ 0.040s]
writing 'logo'...
OKAY [ 0.059s]
finished. total time: 0.104s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot flash boot boot.img
target max-sparse-size: 256MB
sending 'boot' (10240 KB)...
OKAY [ 0.408s]
writing 'boot'...
OKAY [ 0.587s]
finished. total time: 1.001s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot flash recovery recovery.img
target max-sparse-size: 256MB
sending 'recovery' (9488 KB)...
OKAY [ 0.401s]
writing 'recovery'...
OKAY [ 0.172s]
finished. total time: 0.577s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot flash system system.img_sparsechunk.0
target max-sparse-size: 256MB
sending 'system' (257755 KB)...
OKAY [ 9.347s]
writing 'system'...
OKAY [ 7.850s]
finished. total time: 17.201s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot flash system system.img_sparsechunk.1
target max-sparse-size: 256MB
sending 'system' (256953 KB)...
OKAY [ 9.122s]
writing 'system'...
OKAY [ 8.006s]
finished. total time: 17.133s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot flash system system.img_sparsechunk.2
target max-sparse-size: 256MB
sending 'system' (260396 KB)...
OKAY [ 9.446s]
writing 'system'...
OKAY [ 7.997s]
finished. total time: 17.449s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot flash system system.img_sparsechunk.3
target max-sparse-size: 256MB
sending 'system' (166572 KB)...
OKAY [ 6.084s]
writing 'system'...
OKAY [ 6.310s]
finished. total time: 12.400s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot flash modem NON-HLOS.bin
target max-sparse-size: 256MB
sending 'modem' (49376 KB)...
OKAY [ 1.835s]
writing 'modem'...
OKAY [ 0.826s]
finished. total time: 2.667s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.014s]
finished. total time: 0.016s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.014s]
finished. total time: 0.017s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot flash fsg fsg.mbn
target max-sparse-size: 256MB
sending 'fsg' (103 KB)...
OKAY [ 0.053s]
writing 'fsg'...
OKAY [ 3.177s]
finished. total time: 3.234s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot erase cache
erasing 'cache'...
OKAY [ 0.017s]
finished. total time: 0.019s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot erase userdata
erasing 'userdata'...
OKAY [ 0.021s]
finished. total time: 0.024s

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>pause
Press any key to continue . . .

C:\Users\vinesriv\Downloads\XT1033_FALCON_ASIA_DS_5.1_LPBS23.13-56-2_cid7_CFC.xm
l>mfastboot reboot
rebooting...

2. When I use

Fastboot erase recovery
Fastboot Flash recovery twrp-3.0.2-0-falcon.img

And reboot in recovery mode the system still uses stock recovery .

3. I am able to

Fastboot boot twrp-3.0.2-0-falcon.img

and I can see the twrp recovery . I used it to wipe cache and user data .

Used this to install : XT1033_Retail_Asia_51_Untouched.zip

Got error

Symlink failed error code 1 . Rebooted in recovery and this error was gone . Successfully installed zip .

Result :--- Problem persists

4. when I tried booting into cynogen recovery or twrp-3.0.2-0-falcon.img recovery , I am not able to install cynogen mod rom -- cm-13.0-20160916-NIGHTLY-falcon.zip and the error is cannot Can't install this package on top of incompatible data .

5 . When I use cm-11-20140504-SNAPSHOT-M6-falcon.zip I get some symlinks failed .

Overall I feel the flashing although is not giving any error , it is not writing anything .

The reason I believe that is 1... after flashing recovery and trying to boot recovery it goes to standard recovery and not custom recovery.

2. My problem of bootloop remains unresolved.

I am not an expert so not sure if rooting is required and if yes, even then I am not sure how to be sure if my device is rooted . I have tried using r2-motog-superboot.zip and also tried installing supersu.zip using twrp without errors. But, how do I tell if it is rooted successfully and what difference should I see?

How to get out of this bootloop .? One more thing:- is it possible to test if this is a hardware issue like disk failure or something?

I keep getting IO error on Dalvik-cache/arm while trying to wipe partitions using twrp.

Any help will be appreciated .