[Hardware Hacking General] lept_2014:
Motorola Moto G (XT1032)

GENERAL:

General Device Name:	Motorola Moto G (2013)
Manufacturer Product Name:	XT1032
Processor:	ARMv7 Processor rev 3 (v7l) [Qualcomm MSM 8226 rev 83c0]
AOS version:	KitKat 4.4.4
Radio FW version:	<na>
System FW version:	<na>
Radio Service:	CDMA
Network / Carrier:	<na>
Country:	Spain

df:

Filesystem	1K-blocks	Used	Available	Use%	Mounted on
tmpfs	443852	80	443772	0%	/dev
tmpfs	443852	5716	438136	1%	/tmp
/dev/block/mmcblk0p36	5789552	1972960	3765536	34%	/data
/dev/block/mmcblk0p36	5789552	1972960	3765536	34%	/sdcard
/dev/block/mmcblk0p33	667328	11452	655876	2%	/cache

blkid:

/dev/block/mmcblk0:	PTTYPE="gpt"
/dev/block/mmcblk0p1:	UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4" PARTLABEL="modem" PARTUUID="93abd67b-35df-ef9d-4aea-e8c4d36ecfa1"
/dev/block/mmcblk0p2:	PARTLABEL="sbl1" PARTUUID="d465b87c-e36f-e519-d054-f9532bb4d638"
/dev/block/mmcblk0p21:	LABEL="secFSG" UUID="0c72959a-7770-785e-9ae5-5e15feef5fb9" TYPE="ext4"
/dev/block/mmcblk0p26:	LABEL="pds" UUID="b6a5c283-6f0f-4109-9286-42a9c8d62e71" SEC_TYPE="ext2" TYPE="ext3"
/dev/block/mmcblk0p29:	UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p33:	UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p34:	UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"

fdisk -l /dev/block/mmcblk0:

Disk /dev/block/mmcblk0: 7818 MB, 7818182656 bytes, 15269888 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot	Start	End	Blocks	Id	System
/dev/block/mmcblk0p1	1	4294967295	2147483647+	ee	GPT

gdisk -l /dev/block/mmcblk0:

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/block/mmcblk0: 15269888 sectors, 7.3 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 98101B32-BBE2-4BF2-A06E-2BB33D000C20
Partition table holds up to 36 entries
First usable sector is 34, last usable sector is 15269854
Partitions will be aligned on 2-sector boundaries
Total free space is 72203 sectors (35.3 MiB)

Number Start (sector) End (sector) Size Code Name
1 256 131327 64.0 MiB 0700 modem
2 131328 132351 512.0 KiB FFFF sbl1
3 132352 132415 32.0 KiB FFFF DDR
4 132608 133631 512.0 KiB FFFF aboot
5 135608 136007 200.0 KiB FFFF rpm
6 136608 137407 400.0 KiB FFFF tz
7 137608 137671 32.0 KiB FFFF sdi
8 137672 138695 512.0 KiB FFFF utags
9 138696 142791 2.0 MiB FFFF logs
10 142792 147455 2.3 MiB 0700 padA
11 147456 148479 512.0 KiB FFFF abootBackup
12 150456 150855 200.0 KiB FFFF rpmBackup
13 151456 152255 400.0 KiB FFFF tzBackup
14 152456 152519 32.0 KiB 0700 sdiBackup
15 152520 153543 512.0 KiB FFFF utagsBackup
16 153544 155647 1.0 MiB 0700 padB
17 155648 158719 1.5 MiB FFFF modemst1
18 158720 161791 1.5 MiB FFFF modemst2
19 161792 162815 512.0 KiB FFFF hob
20 162816 162831 8.0 KiB FFFF dhob
21 163072 166143 1.5 MiB FFFF fsg
22 166144 166145 1024 bytes FFFF fsc
23 166146 166161 8.0 KiB FFFF ssd
24 166162 168209 1024.0 KiB FFFF sp
25 168210 168465 128.0 KiB FFFF cid
26 168466 174609 3.0 MiB FFFF pds
27 174610 182801 4.0 MiB FFFF logo
28 182802 190993 4.0 MiB FFFF clogo
29 191232 207615 8.0 MiB 0700 persist
30 207616 208639 512.0 KiB FFFF misc
31 208640 229119 10.0 MiB FFFF boot
32 229120 249599 10.0 MiB FFFF recovery
33 249600 1605631 662.1 MiB 0700 cache
34 1605632 3604479 976.0 MiB 0700 system
35 3604480 3620863 8.0 MiB FFFF kpan
36 3620864 15204095 5.5 GiB 0700 userdata

parted /dev/block/mmcblk0:

Model: MMC 008G92 (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 131kB 67.2MB 67.1MB ext4 modem
2 67.2MB 67.8MB 524kB sbl1
3 67.8MB 67.8MB 32.8kB DDR
4 67.9MB 68.4MB 524kB aboot
5 69.4MB 69.6MB 205kB rpm
6 69.9MB 70.4MB 410kB tz
7 70.5MB 70.5MB 32.8kB sdi
8 70.5MB 71.0MB 524kB utags
9 71.0MB 73.1MB 2097kB logs
10 73.1MB 75.5MB 2388kB padA
11 75.5MB 76.0MB 524kB abootBackup
12 77.0MB 77.2MB 205kB rpmBackup
13 77.5MB 78.0MB 410kB tzBackup
14 78.1MB 78.1MB 32.8kB sdiBackup
15 78.1MB 78.6MB 524kB utagsBackup
16 78.6MB 79.7MB 1077kB padB
17 79.7MB 81.3MB 1573kB modemst1
18 81.3MB 82.8MB 1573kB modemst2
19 82.8MB 83.4MB 524kB hob
20 83.4MB 83.4MB 8192B dhob
21 83.5MB 85.1MB 1573kB ext2 fsg
22 85.1MB 85.1MB 1024B fsc
23 85.1MB 85.1MB 8192B ssd
24 85.1MB 86.1MB 1049kB sp
25 86.1MB 86.3MB 131kB cid
26 86.3MB 89.4MB 3146kB ext3 pds
27 89.4MB 93.6MB 4194kB logo
28 93.6MB 97.8MB 4194kB clogo
29 97.9MB 106MB 8389kB ext4 persist
30 106MB 107MB 524kB misc
31 107MB 117MB 10.5MB boot
32 117MB 128MB 10.5MB recovery
33 128MB 822MB 694MB ext4 cache
34 822MB 1845MB 1023MB ext4 system
35 1845MB 1854MB 8389kB kpan
36 1854MB 7784MB 5931MB userdata

partx -s /dev/block/mmcblk0:

NR START END SECTORS SIZE NAME UUID
1 256 131327 131072 64M modem 93abd67b-35df-ef9d-4aea-e8c4d36ecfa1
2 131328 132351 1024 512K sbl1 d465b87c-e36f-e519-d054-f9532bb4d638
3 132352 132415 64 32K DDR 8d4772ec-08a2-efc0-ca26-f10c5f59c286
4 132608 133631 1024 512K aboot 996b2d94-f771-de3d-dbaa-ed5cc38cf397
5 135608 136007 400 200K rpm 46ddb5bc-0f63-2b43-dec6-5795413e2b34
6 136608 137407 800 400K tz ebc23c87-eeb4-a0ff-407b-1d88c76aaf44
7 137608 137671 64 32K sdi 02437d2c-8d1a-47b2-e2d8-f19f41f21ff6
8 137672 138695 1024 512K utags 3f70fb2e-fb55-dd76-b075-ac9e60a65f06
9 138696 142791 4096 2M logs 770c0bf7-71ea-2337-7c9b-8fbbf46fc3f6
10 142792 147455 4664 2.3M padA 9afe5e68-f7ca-35f9-a2f7-67e4ab9a7f93
11 147456 148479 1024 512K abootBackup 4548bcef-89df-b3fe-9486-9d19a7d264db
12 150456 150855 400 200K rpmBackup 9a937f01-1ec1-398e-d447-d54482b6cb00
13 151456 152255 800 400K tzBackup e3ab910d-f62f-ba81-9e62-7a5e3742b6c1
14 152456 152519 64 32K sdiBackup 18397fdc-6051-5bfd-a00e-6fa5b2cc52bb
15 152520 153543 1024 512K utagsBackup cb24579f-7288-2fa8-acda-b28b0e3d1739
16 153544 155647 2104 1M padB ed16d7d5-d39d-5237-bc0f-9032525e8adc
17 155648 158719 3072 1.5M modemst1 6f848dd5-ff3f-f2d0-1129-6eae2653fd11
18 158720 161791 3072 1.5M modemst2 861c3ef5-07ac-9e5e-51e3-e1109110ec0a
19 161792 162815 1024 512K hob b52b8b8e-401f-6ef5-b43f-843d38fc61c2
20 162816 162831 16 8K dhob 076af99d-f35f-b6cd-1c10-503feebd1ff4
21 163072 166143 3072 1.5M fsg 6f074dae-5a0d-6fd7-d3a7-a3f9010c3d36
22 166144 166145 2 1K fsc cab1c411-1d7e-e2b0-9fc6-f57258394dba
23 166146 166161 16 8K ssd e2d00c4f-9a4f-010a-446f-6ebdbe9d9165
24 166162 168209 2048 1M sp d2e66266-3a8c-2110-f7d2-3ee662d47a3d
25 168210 168465 256 128K cid 78b32171-7fe3-8e1e-c419-b4f1eefb262a
26 168466 174609 6144 3M pds c2921c42-8208-fcde-b626-593746f93258
27 174610 182801 8192 4M logo f26c6502-54f4-c8e2-1c17-7ac46fd18ae8
28 182802 190993 8192 4M clogo 51910c78-4bfe-27f3-65e2-5f122c7f0a4d
29 191232 207615 16384 8M persist 643f0757-3708-3e46-2041-bcc9e5895f65
30 207616 208639 1024 512K misc 2ae26de1-9cb4-98a7-d75e-dccf3b9d65a7
31 208640 229119 20480 10M boot 03c86cc0-2464-16d3-32eb-2ed230200d81
32 229120 249599 20480 10M recovery 0015b9bc-fbd9-e492-5146-c51d076e86a4
33 249600 1605631 1356032 662.1M cache d548bb07-16a0-7fed-14e1-477b7c58aca1
34 1605632 3604479 1998848 976M system 75aa95d0-90e6-f00e-7f99-ebca5e2bae26
35 3604480 3620863 16384 8M kpan 4495236a-3f5a-7a16-ae26-41ff45738e96
36 3620864 15204095 11583232 5.5G userdata f6aeae4d-5c78-ffd7-b2bf-7a4b16866a9f

mount:

rootfs on	/	type rootfs (rw)
tmpfs on	/dev	type tmpfs (rw,seclabel,nosuid,relatime,size=443852k,nr_inodes=110963,mode=755)
devpts on	/dev/pts	type devpts (rw,seclabel,relatime,mode=600)
proc on	/proc	type proc (rw,relatime)
sysfs on	/sys	type sysfs (rw,seclabel,relatime)
selinuxfs on	/sys/fs/selinux	type selinuxfs (rw,relatime)
tmpfs on	/tmp	type tmpfs (rw,seclabel,relatime,size=443852k,nr_inodes=110963)
/dev/block/mmcblk0p36 on	/data	type f2fs (rw,relatime,background_gc=on,user_xattr,inline_xattr,acl,errors=continue,active_logs=6)
/dev/block/mmcblk0p36 on	/sdcard	type f2fs (rw,relatime,background_gc=on,user_xattr,inline_xattr,acl,errors=continue,active_logs=6)
/dev/block/mmcblk0p33 on	/cache	type ext4 (rw,seclabel,relatime,data=ordered)

cat /proc/partition:

major minor #blocks name

179 0 7634944 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 5791616 mmcblk0p36
179 32 512 mmcblk0rpmb