[Moto G5 Questions & Answers] AnonDz:
thnx bro but the only way worked for me is via jtag

Model Settings:

Interface : eMMC

Brand : Motorola

Model : XT1676

SRF : C:/Program Files (x86)/Octoplus Pro JTAG Software/firmwareFolder/MOTOROLA_XT1676_EMMC.srf

Voltage : 1.8V

Bus Mode : 1 bit

Bus speed : Auto

Connecting...

Device : Hynix eMMC HAG4a2

Page size : 512 B

Block size : 512 B

Block count : 30777344

Size : 14.68 GB (15028.00 MB)

---------------------------------------------------------------

CID Info

CID : 90014A484147346132A54DA5C2B32401

Manufacturer ID : 0X90

Device/BGA : BGA (Discrete embedded)

OEM/Application ID : 0X4A

Product name : HAG4a2

Product revision : 10.5

Product serial number : (hex) 4DA5C2B3

Manufacturing date : 02/2017

---------------------------------------------------------------

CSD Info

CSD : D02701328F5903FFFFFFFFE78A400017

CSD structure : CSD version No. 1.2

SPEC version : 4.1, 4.2, 4.3, 4.4, 4.41, 4.5,

4.51, 5.0, 5.01, 5.1

Data read access time1: 15 ms

TRAN speed : 26 MHz

READ block length : 512 Bytes

WP group enable : YES

PERM_WRITE_PROTECT : NO

TMP_WRITE_PROTECT : NO

---------------------------------------------------------------

EXTCSD Info

Revision 1.8 (for MMC v5.1)

Erase block size : 512 Kbytes

Boot1 size : 4096 Kbytes

Boot2 size : 4096 Kbytes

RPMB size : 4096 Kbytes

Partition config : (0x38) 00111000

Boot partition enable : User area

(Bus width = 1Bit)

Boot ACK : No boot acknowledge sent (default)

Boot bus conditions : (0x00) 00000000

Boot bus width : x1 (sdr) or x4 (ddr) bus width in boot operation mode (default)

Reset boot bus conditions : Reset bus width to x1, single data rate and backward compatible timings after boot operation (default)

Boot mode : Use single data rate + backward compatible timings in boot operation (default)

RST_n function : (0x01) RST_n signal is permanently enabled

Partitioning support : Device supports partitioning features

Enhanced attribute : Device can have enhanced technological features in partitions and user data area.

Max enhanced data size: 7692288 Kbytes

Partitions attribute : 0x0

Part setting completed: 0x0

GP partition 1 size : 0 b

GP partition 2 size : 0 b

GP partition 3 size : 0 b

GP partition 4 size : 0 b

Enhanced area size : (0x0) 0 b

Enhanced area start : (0x0) 0 b

---------------------------------------------------------------Searching Android build info...

Ok

Disk/Image size : ab400000 bytes

Device sector size : 512 bytes

Partition offset : 2424832

Number of sectors : 7077888

Device Manufacturer :motorola

Device Platform :msm8937

Build ID :NPPS25.137-93-8

Release ID :7.0

Device Model :Moto G (5)

Device Name :cedric_retail

Architecture ABI :armeabi-v7a

Architecture ABI2 :armeabi

Architecture ABI List :armeabi-v7a,armeabi

Backup EXT_CSD saved to file C:/Program Files (x86)/Octoplus Pro JTAG Software/EXT_CSD Backups/HAG4a2_05_10_2018_14_08_34.bin.

Connect successful.

---------------------------------------------------------------

SW: 1.5.9; FW: 1.23.

P00: GPT (00000000, 00000100)	128 KB

P01: sbl1 (00000100, 00000400)	512 KB

P02: rpm (00000500, 00000200)	256 KB

P03: tz (00000900, 00000E00)	1792 KB

P04: devcfg (00001900, 00000100)	128 KB

P05: aboot (00001B00, 00000C00)	1536 KB

P06: cmnlib (00002700, 00000200)	256 KB

P07: cmnlib64 (00002900, 00000200)	256 KB

P08: keymaster (00002B00, 00000200)	256 KB

P09: prov (00002D00, 00000180)	192 KB

P10: sbl1bak (00002F00, 00000400)	512 KB

P11: rpmbak (00003300, 00000200)	256 KB

P12: tzbak (00003700, 00000E00)	1792 KB

P13: devcfgbak (00004700, 00000100)	128 KB

P14: abootbak (00004900, 00000C00)	1536 KB

P15: cmnlibbak (00005500, 00000200)	256 KB

P16: cmnlib64bak (00005700, 00000200)	256 KB

P17: keymasterbak (00005900, 00000200)	256 KB

P18: provbak (00005B00, 00000180)	192 KB

P19: modem (00005D00, 00032000)	100 MB

P20: fsc (00037D00, 00000002)	1024 b

P21: ssd (00037D02, 00000010)	8 KB

P22: dsp (00037D12, 00008000)	16 MB

P23: DDR (0003FE00, 00000040)	32 KB

P24: sec (0003FE40, 00000020)	16 KB

P25: utags (0003FF00, 00000400)	512 KB

P26: utagsBackup (00040300, 00000400)	512 KB

P27: modemst1 (00040700, 00001000)	2048 KB

P28: modemst2 (00041700, 00001000)	2048 KB

P29: fsg (00042700, 00004000)	8 MB

P30: persist (00046700, 00010000)	32 MB

P31: frp (00056700, 00000400)	512 KB

P32: cid (00056B00, 00000100)	128 KB

P33: logo (00056C00, 00008000)	16 MB

P34: carrier (0005EC00, 00008000)	16 MB

P35: metadata (00066C00, 00000400)	512 KB

P36: kpan (00067000, 00004000)	8 MB

P37: boot (0006B000, 00008000)	16 MB

P38: recovery (00073000, 000080C8)	16.1 MB

P39: misc (0007B100, 00000800)	1024 KB

P40: limits (0007B900, 00000040)	32 KB

P41: mota (0007BA00, 00000400)	512 KB

P42: dip (0007BE00, 00000800)	1024 KB

P43: syscfg (0007C600, 00000400)	512 KB

P44: logs (0007CA00, 00001000)	2048 KB

P45: apdp (0007DA00, 00000200)	256 KB

P46: msadp (0007DC00, 00000200)	256 KB

P47: dpo (0007DE00, 00000010)	8 KB

P48: padA (0007DF00, 00002100)	4.125 MB

P49: sp (00080000, 00004000)	8 MB

P50: hw (00084000, 00004000)	8 MB

P51: oem (00088000, 00148000)	656 MB

P52: cache (001D0000, 00080000)	256 MB

P53: system (00250000, 006C0000)	3456 MB

P54: userdata (00910000, 01449FDF)	10.14 GB

Backuping Gpt partition...

Opening C:/Program Files (x86)/Octoplus Pro JTAG Software/Backups/HAG4a2_Gpt_0x0_0x100_05_10_2018_14_08_34.bin file...

Reading. Please wait... Done.

Elapsed time 00:00:00

SW: 1.5.9; FW: 1.23.

Backuping Cid partition...

Opening C:/Program Files (x86)/Octoplus Pro JTAG Software/Backups/HAG4a2_Cid_0x56b00_0x100_05_10_2018_14_08_34.bin file...

Reading. Please wait... Done.

Elapsed time 00:00:00

SW: 1.5.9; FW: 1.23.

Switched to boot area partition 1.

Opening C:/Program Files (x86)/Octoplus Pro JTAG Software/firmwareFolder/(BOOT1 MOTOROLA XT1676) SAMSUNG EMMC RE1BMB.BIN file...

Write data verification is enabled.

Writing. Please wait... Done.

SW: 1.5.9; FW: 1.23.

Switched to boot area partition 2.

Opening C:/Program Files (x86)/Octoplus Pro JTAG Software/firmwareFolder/(BOOT2 MOTOROLA XT1676) SAMSUNG EMMC RE1BMB.BIN file...

Write data verification is enabled.

Writing. Please wait... Done.

SW: 1.5.9; FW: 1.23.

Pinout configuration not detected

Pinout configuration not detected

Repairing from file "C:/Program Files (x86)/Octoplus Pro JTAG Software/firmwareFolder/MOTOROLA_XT1676_EMMC.srf".

Write data verification is enabled.

Writing sbl1 partition...	Done.

Writing rpm partition...	Done.

Writing tz partition...	Done.

Writing devcfg partition...	Done.

Writing aboot partition...	Done.

Writing cmnlib partition...	Done.

Writing cmnlib64 partition...	Done.

Writing keymaster partition...	Done.

Writing prov partition...	Done.

Writing sbl1bak partition...	Done.

Writing rpmbak partition...	Done.

Writing tzbak partition...	Done.

Writing devcfgbak partition...	Done.

Writing abootbak partition...	Done.

Writing cmnlibbak partition...	Done.

Writing cmnlib64bak partition...	Done.

Writing keymasterbak partition...	Done.

Writing provbak partition...	Done.

Writing modem partition...	Done.

Writing fsc partition...	Done.

Writing ssd partition...	Done.

Writing dsp partition...	Done.

Writing DDR partition...	Done.

Writing sec partition...	Done.

Writing utags partition...	Done.

Writing utagsBackup partition...	Done.

Writing fsg partition...	Done.

Writing persist partition...	Done.

Writing frp partition...	Done.

Writing logo partition...	Done.

Writing carrier partition...	Done.

Writing metadata partition...	Done.

Writing kpan partition...	Done.

Writing boot partition...	Done.

Writing recovery partition...	Done.

Writing misc partition...	Done.

Writing limits partition...	Done.

Writing mota partition...	Done.

Writing dip partition...	Done.

Writing syscfg partition...	Done.

Writing logs partition...	Done.

Writing apdp partition...	Done.

Writing msadp partition...	Done.

Writing dpo partition...	Done.

Writing padA partition...	Done.

Writing sp partition...	Done.

Writing hw partition...	Done.

Writing gpt partition...	Done.

Smart Repair is successfully complete.

SW: 1.5.9; FW: 1.23.