[Moto G Q&A, Help & Troubleshooting] X-Flies:
Well, this is another message about a bricked device.

I searched a bit on the forum but I could'n find a solution yet.

I had some custom ROM but I decided go back to stock.

I flashed stock ROM using mfastboot then I installed TWRP. Unfortunately I choose the wrong version from folder and it was for another device (Nexus 7 Grouper).

When i tried to flash the correct TWRP version, it first gave me an error saying that it wasn't permitted or something like that.

I then flashe stock ROM again and after the inicial logo the screen goes black and occasionally flashes the android e red exclamation mark for a few miliseconds...

I can access bootloader, so after a few flashes of stock ROM and some flashes trying to flash TWRP I could finally flash TWRP.

Now, If I flash stock and boot, it flashes me the dead robot.

If I then flash TWRP, it only boots to TWRP.

Any help how to fix this?

Flash STOCK output:

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.029s]
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.320s]
finished. total time: 0.358s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash motoboot motoboot.img
target max-sparse-size: 256MB
sending 'motoboot' (1953 KB)...
OKAY [ 0.112s]
writing 'motoboot'...
(bootloader) flashing tz ...
(bootloader) flashing rpm ...
(bootloader) flashing sdi ...
(bootloader) flashing aboot ...
(bootloader) flashing sbl1 ...
OKAY [ 1.103s]
finished. total time: 1.225s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash boot boot.img
target max-sparse-size: 256MB
sending 'boot' (10240 KB)...
OKAY [ 0.442s]
writing 'boot'...
OKAY [ 0.886s]
finished. total time: 1.338s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash recovery recovery.img
target max-sparse-size: 256MB
sending 'recovery' (10240 KB)...
OKAY [ 0.457s]
writing 'recovery'...
OKAY [ 0.898s]
finished. total time: 1.364s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash system system.img_sparsechunk.0
target max-sparse-size: 256MB
sending 'system' (257755 KB)...
OKAY [ 10.157s]
writing 'system'...
OKAY [ 15.026s]
finished. total time: 25.193s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash system system.img_sparsechunk.1
target max-sparse-size: 256MB
sending 'system' (256949 KB)...
OKAY [ 10.134s]
writing 'system'...
OKAY [ 15.123s]
finished. total time: 25.265s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash system system.img_sparsechunk.2
target max-sparse-size: 256MB
sending 'system' (260404 KB)...
OKAY [ 9.208s]
writing 'system'...
OKAY [ 15.237s]
finished. total time: 24.464s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash system system.img_sparsechunk.3
target max-sparse-size: 256MB
sending 'system' (166184 KB)...
OKAY [ 5.613s]
writing 'system'...
OKAY [ 10.758s]
finished. total time: 16.380s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash modem NON-HLOS.bin
target max-sparse-size: 256MB
sending 'modem' (49376 KB)...
OKAY [ 1.985s]
writing 'modem'...
OKAY [ 2.193s]
finished. total time: 4.191s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.028s]
finished. total time: 0.031s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.058s]
finished. total time: 0.063s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash fsg fsg.mbn
target max-sparse-size: 256MB
sending 'fsg' (103 KB)...
OKAY [ 0.093s]
writing 'fsg'...
OKAY [ 5.323s]
finished. total time: 5.424s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot erase cache
erasing 'cache'...
OKAY [ 0.079s]
finished. total time: 0.085s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot erase userdata
erasing 'userdata'...
OKAY [ 0.505s]
finished. total time: 0.512s

D:\XT1033_FALCON_ASIA_DS_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot reboot
rebooting...

finished. total time: 0.002s

adb shell cat /proc/partitions

major	minor #blocks name

179 0 15388672 mmcblk0
179 1 65536 mmcblk0p1
179 2 512 mmcblk0p2
179 3 32 mmcblk0p3
179 4 512 mmcblk0p4
179 5 200 mmcblk0p5
179 6 400 mmcblk0p6
179 7 32 mmcblk0p7
179 8 512 mmcblk0p8
179 9 2048 mmcblk0p9
179 10 2332 mmcblk0p10
179 11 512 mmcblk0p11
179 12 200 mmcblk0p12
179 13 400 mmcblk0p13
179 14 32 mmcblk0p14
179 15 512 mmcblk0p15
179 16 1052 mmcblk0p16
179 17 1536 mmcblk0p17
179 18 1536 mmcblk0p18
179 19 512 mmcblk0p19
179 20 8 mmcblk0p20
179 21 1536 mmcblk0p21
179 22 1 mmcblk0p22
179 23 8 mmcblk0p23
179 24 1024 mmcblk0p24
179 25 128 mmcblk0p25
179 26 3072 mmcblk0p26
179 27 4096 mmcblk0p27
179 28 4096 mmcblk0p28
179 29 8192 mmcblk0p29
179 30 512 mmcblk0p30
179 31 10240 mmcblk0p31
259 0 10240 mmcblk0p32
259 1 678016 mmcblk0p33
259 2 999424 mmcblk0p34
259 3 8192 mmcblk0p35
259 4 13545344 mmcblk0p36
179 32 512 mmcblk0rpmb

adb shell ls -al /dev/block/platform/msm_sdcc.1/by-name

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
drwxr-xr-x 2 root root 760 Jan 1 02:32 .
drwxr-xr-x 4 root root 840 Jan 1 02:32 ..
lrwxrwxrwx 1 root root 20 Jan 1 02:32 DDR -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 20 Jan 1 02:32 aboot -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 21 Jan 1 02:32 abootBackup -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 Jan 1 02:32 boot -> /dev/block/mmcblk0p31
lrwxrwxrwx 1 root root 21 Jan 1 02:32 cache -> /dev/block/mmcblk0p33
lrwxrwxrwx 1 root root 21 Jan 1 02:32 cid -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 21 Jan 1 02:32 clogo -> /dev/block/mmcblk0p28
lrwxrwxrwx 1 root root 21 Jan 1 02:32 dhob -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 Jan 1 02:32 fsc -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 Jan 1 02:32 fsg -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 21 Jan 1 02:32 hob -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 Jan 1 02:32 kpan -> /dev/block/mmcblk0p35
lrwxrwxrwx 1 root root 21 Jan 1 02:32 logo -> /dev/block/mmcblk0p27
lrwxrwxrwx 1 root root 20 Jan 1 02:32 logs -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 Jan 1 02:32 misc -> /dev/block/mmcblk0p30
lrwxrwxrwx 1 root root 20 Jan 1 02:32 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 21 Jan 1 02:32 modemst1 -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 Jan 1 02:32 modemst2 -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 21 Jan 1 02:32 padA -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 21 Jan 1 02:32 padB -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 Jan 1 02:32 pds -> /dev/block/mmcblk0p26
lrwxrwxrwx 1 root root 21 Jan 1 02:32 persist -> /dev/block/mmcblk0p29
lrwxrwxrwx 1 root root 21 Jan 1 02:32 recovery -> /dev/block/mmcblk0p32
lrwxrwxrwx 1 root root 20 Jan 1 02:32 rpm -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 21 Jan 1 02:32 rpmBackup -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 20 Jan 1 02:32 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 20 Jan 1 02:32 sdi -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 21 Jan 1 02:32 sdiBackup -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 Jan 1 02:32 sp -> /dev/block/mmcblk0p24
lrwxrwxrwx 1 root root 21 Jan 1 02:32 ssd -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 21 Jan 1 02:32 system -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 20 Jan 1 02:32 tz -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 21 Jan 1 02:32 tzBackup -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 Jan 1 02:32 userdata -> /dev/block/mmcblk0p36
lrwxrwxrwx 1 root root 20 Jan 1 02:32 utags -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 21 Jan 1 02:32 utagsBackup -> /dev/block/mmcblk0p15