[Moto G 4G Android Development] bennett78:
Need help with TWRP recovery

Trying to unbrick my Moto G XT1064 8GB,

a learning Android thing at this point before I deep six the phone.

[m]flashboot flash anything doesn't seem to work.

I apolygise if this is not the best thread...progress follows:

>>>Power BTN, Volumn Down

AP Fastboot Flash Mode (S)

48.87 (sha-1b80345, 2016-06-30 15:51:18)

CPU: NSMB226 CS

eMMC: 8GB SanDisk RV=D6 PV=07 TY=17

DRAM: 1024KB Elipida S4 SDRAM DIE=4GB

Battery OK

Device is UNLOCKED, Status Code: 3

Transfer Node; USB Connected

# fastboot devices

ZX1D526VJL	fastboot

# mfastboot flash recovery twrp-3.2.1-0-falcon.img

target max-sparse-size: 256MB

sending 'recovery' (9590 KB)...

OKAY [ 0.358s]

writing 'recovery'...

OKAY [ 0.174s]

finished. total time: 0.532s

>>>> recovery hangs Unlocked, white backlite screen

# mfastboot boot twrp-3.2.1-0-falcon.img

>>>> I get moto logo, then teamwin logo

# adb shell

~ # df

Filesystem 1K-blocks Used Available Use% Mounted on

tmpfs 446224 20 446204 0% /dev

tmpfs 446224 4 446220 0% /tmp

/dev/block/mmcblk0p35

538320 9364 528956 2% /cache

/dev/block/mmcblk0p38

5773168 4578664 1143448 80% /data

/dev/block/mmcblk0p38

5773168 4578664 1143448 80% /sdcard <<<<< Wrong

~ # umount /sdcard

~ # mount /system

~ # mount /firmware

~ # mount /dev/block/mmcblk1p1 /sdcard/

~ # echo SYSTEMLESS=true>>/data/.supersu

/sbin/sh: can't create /data/.supersu: Read-only file system

~ # mount -o remount -w /data

~ # echo SYSTEMLESS=true>>/data/.supersu

~ # df

Filesystem 1K-blocks Used Available Use% Mounted on

tmpfs 446224 20 446204 0% /dev

tmpfs 446224 8 446216 0% /tmp

/dev/block/mmcblk0p35

538320 9364 528956 2% /cache

/dev/block/mmcblk0p38

5773168 4578664 1143448 80% /data

/dev/block/mmcblk0p36

1112708 1041884 70824 94% /system

/dev/block/mmcblk0p1 63920 48420 15500 76% /firmware

/dev/block/mmcblk1p1 15474688 1283584 14191104 8% /sdcard

~ # alias l='ls -sF'

~ # l /sdcard/

32 ANY KK FIRMWARE TO 4.4.4 GPE.bat*

96 AdbWinApi.dll*

64 AdbWinUsbApi.dll*

32 Android 5.x TO 4.4.4 GPE.bat*

380928 Blur_Version.21.11.23.titan_retuaws.retuaws.en.US.zip*

47168 NON-HLOS.bin*

32 Root/

32 SIDELOAD LOLLIPOP.bat*

6752 SR5-SuperSU-v2.82-SR5-20171001224502.zip*

32 XT1033/

864 aapt.exe*

800 adb.exe*

10240 boot.img*

32 flashfile.xml*

736 fsg.mbn*

32 gpt.bin*

544 linux-fastboot*

96 logo.bin*

544 mfastboot.exe*

1984 motoboot.img*

224 osx-fastboot*

10240 recovery.img*

32 servicefile.xml*

255872 system.img_sparsechunk.0*

245984 system.img_sparsechunk.1*

235712 system.img_sparsechunk.2*

~ # top

Mem: 62232K used, 846216K free, 0K shrd, 2712K buff, 13160K cached

CPU: 0.0% usr 100% sys 0.0% nic 0.0% idle 0.0% io 0.0% irq 0.0% sirq

Load average: 11.00 8.91 4.55 2/125 200

PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND

151 1 root R 29112 3.2 0 99.6 /sbin/recovery

198 181 root R 11376 1.2 0 0.2 top

162 1 root S 14880 1.6 0 0.0 /sbin/adbd --root_seclabel=u:r:su:

181 162 root S 11376 1.2 0 0.0 /sbin/sh -

199 162 root S 11120 1.2 0 0.0 /sbin/sh -

148 1 root S 10064 1.1 0 0.0 /sbin/ueventd

1 0 root S 10060 1.1 0 0.0 /init --second-stage

140 2 root SW 0 0.0 0 0.0 [mmcqd/0]

24 2 root SW 0 0.0 0 0.0 [kworker/0:1]

31 2 root SW 0 0.0 0 0.0 [kworker/u:1]

3 2 root SW 0 0.0 0 0.0 [ksoftirqd/0]

137 2 root SW 0 0.0 0 0.0 [kworker/u:4]

168 2 root SW 0 0.0 0 0.0 [kworker/0:3]

146 2 root SW 0 0.0 0 0.0 [mmcqd/1]

7 2 root DW< 0 0.0 0 0.0 [kworker/u:0H]

166 2 root DW 0 0.0 0 0.0 [mdss_fb0]

27 2 root SW< 0 0.0 0 0.0 [kworker/0:1H]

39 2 root SW 0 0.0 1 0.0 [system]

40 2 root SW 0 0.0 1 0.0 [khubd]

41 2 root SW 0 0.0 1 0.0 [irq/102-msm_iom]

~ # cd /sdcard

/sdcard # /sbin/flash_image recovery recovery.img

failed with error: -1