[Verizon Samsung Galaxy S III] darkspr1te:
As this is GTP parition it uses differing handles for the partition type

here is a example snip of the qualcomm partition.xml for a gtp partition

could we see if my compiled binaries for gtp partitions return the UUID for type ?

Original Post http://xdaforums.com/showpost.php?p=36019312&postcount=13

Binaries

http://www.sendspace.com/file/5b3jdc

Example output from partx ( non gtp partition, i dont have gtp partition)

shell@android:/ # /data/test/partx

Usage:
partx [-a|-d|-s] [--nr <n:m> | <partition>] <disk>

Options:
-a, --add add specified partitions or all of them
-d, --delete delete specified partitions or all of them
-l, --list list partitions (DEPRECATED)
-s, --show list partitions

-b, --bytes print SIZE in bytes rather than in human readable format
-g, --noheadings don't print headings for --show
-n, --nr <n:m> specify the range of partitions (e.g. --nr 2:4)
-o, --output <type> define which output columns to use
-P, --pairs use key="value" output format
-r, --raw use raw output format
-t, --type <type> specify the partition type (dos, bsd, solaris, etc.)
-v, --verbose verbose mode

-h, --help display this help and exit
-V, --version output version information and exit

Available columns (for --show, --raw or --pairs):
NR partition number
START start of the partition in sectors
END end of the partition in sectors
SECTORS number of sectors
SIZE human readable size
NAME partition name
UUID partition UUID
TYPE partition type hex or uuid
FLAGS partition flags
SCHEME partition table type (dos, gpt, ...)

For more details see partx(8).
1|shell@android:/ # /data/test/partx -l /dev/block/mmcblk0
# 1: 1- 204800 ( 204800 sectors, 104 MB)
# 2: 204801- 205800 ( 1000 sectors, 0 MB)
# 3: 205801- 208800 ( 3000 sectors, 1 MB)
# 4: 208801- 30777343 ( 30568543 sectors, 15651 MB)
# 5: 212992- 213991 ( 1000 sectors, 0 MB)
# 6: 221184- 225279 ( 4096 sectors, 2 MB)
# 7: 229376- 234375 ( 5000 sectors, 2 MB)
# 8: 237568- 258047 ( 20480 sectors, 10 MB)
# 9: 262144- 263143 ( 1000 sectors, 0 MB)
#10: 270336- 271335 ( 1000 sectors, 0 MB)
#11: 278528- 279527 ( 1000 sectors, 0 MB)
#12: 286720- 307199 ( 20480 sectors, 10 MB)
#13: 311296- 511999 ( 200704 sectors, 102 MB)
#14: 516096- 522239 ( 6144 sectors, 3 MB)
#15: 524288- 530431 ( 6144 sectors, 3 MB)
#16: 532480- 538623 ( 6144 sectors, 3 MB)
#17: 540672- 741375 ( 200704 sectors, 102 MB)
#18: 745472- 751615 ( 6144 sectors, 3 MB)
#19: 753664- 759807 ( 6144 sectors, 3 MB)
#20: 761856- 767999 ( 6144 sectors, 3 MB)
#21: 770048- 790527 ( 20480 sectors, 10 MB)
#22: 794624- 815103 ( 20480 sectors, 10 MB)
#23: 819200- 839679 ( 20480 sectors, 10 MB)
#24: 843776- 3911679 ( 3067904 sectors, 1570 MB)
#25: 3915776- 8114175 ( 4198400 sectors, 2149 MB)
#26: 8118272- 8736767 ( 618496 sectors, 316 MB)
#27: 8740864- 9005055 ( 264192 sectors, 135 MB)
#28: 9011200- 10035199 ( 1024000 sectors, 524 MB)
#29: 10035200- 30777343 ( 20742144 sectors, 10619 MB)
shell@android:/ #

lsblk output

shell@android:/ # /data/test/lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 2.1M 0 loop
`-278cb90965c39ee2acfea003ec39e4f5 (dm-0)
254:0 0 2.1M 0 dm /mnt/asec/com.androirc-1
loop1 7:1 0 5.1M 0 loop
`-ce28924bd3284f292fdd7955925746bc (dm-1)
254:1 0 5.1M 0 dm /mnt/asec/com.quoord.tapatalkxda.activity-
loop2 7:2 0 16.3M 0 loop
`-2ef6fb57bc43988a90c9add8bc514237 (dm-2)
254:2 0 16.3M 0 dm /mnt/asec/com.loumasoft.amiga500musiccolle
mmcblk0 179:0 0 14.7G 0 disk
|-mmcblk0p1 179:1 0 100M 0 disk
|-mmcblk0p2 179:2 0 500K 0 disk
|-mmcblk0p3 179:3 0 1.5M 0 disk
|-mmcblk0p4 179:4 0 1K 0 disk
|-mmcblk0p5 179:5 0 500K 0 disk
|-mmcblk0p6 179:6 0 2M 0 disk
|-mmcblk0p7 179:7 0 2.5M 0 disk
|-mmcblk0p8 179:8 0 10M 0 disk
|-mmcblk0p9 179:9 0 500K 0 disk
|-mmcblk0p10 179:10 0 500K 0 disk
|-mmcblk0p11 179:11 0 500K 0 disk
|-mmcblk0p12 179:12 0 10M 0 disk
|-mmcblk0p13 179:13 0 98M 0 disk
|-mmcblk0p14 179:14 0 3M 0 disk
|-mmcblk0p15 179:15 0 3M 0 disk
|-mmcblk0p16 179:16 0 3M 0 disk
|-mmcblk0p17 179:17 0 98M 0 disk
|-mmcblk0p18 179:18 0 3M 0 disk
|-mmcblk0p19 179:19 0 3M 0 disk
|-mmcblk0p20 179:20 0 3M 0 disk
|-mmcblk0p21 179:21 0 10M 0 disk
|-mmcblk0p22 179:22 0 10M 0 disk
|-mmcblk0p23 179:23 0 10M 0 disk
|-mmcblk0p24 179:24 0 1.5G 0 disk
|-mmcblk0p25 179:25 0 2G 0 disk
|-mmcblk0p26 179:26 0 302M 0 disk
|-mmcblk0p27 179:27 0 129M 0 disk
|-mmcblk0p28 179:28 0 500M 0 disk
`-mmcblk0p29 179:29 0 9.9G 0 disk
mmcblk1 179:32 0 14.4G 0 disk
`-mmcblk1p1 179:33 0 14.4G 0 disk
shell@android:/ #

sample output from blkid

blkid from util-linux 2.22 (libblkid 2.22.0, 04-Sep-2012)
Usage:
blkid -L <label> | -U <uuid>

blkid [-c <file>] [-ghlLv] [-o <format>] [-s <tag>]
[-t <token>] [<dev> ...]

blkid -p [-s <tag>] [-O <offset>] [-S <size>]
[-o <format>] <dev> ...

blkid -i [-s <tag>] [-o <format>] <dev> ...

Options:
-c <file> read from <file> instead of reading from the default
cache file (-c /dev/null means no cache)
-d don't encode non-printing characters
-h print this usage message and exit
-g garbage collect the blkid cache
-o <format> output format; can be one of:
value, device, export or full; (default: full)
-k list all known filesystems/RAIDs and exit
-s <tag> show specified tag(s) (default show all tags)
-t <token> find device with a specific token (NAME=value pair)
-l look up only first device with token specified by -t
-L <label> convert LABEL to device name
-U <uuid> convert UUID to device name
-v print version and exit
<dev> specify device(s) to probe (default: all devices)

Low-level probing options:
-p low-level superblocks probing (bypass cache)
-i gather information about I/O limits
-S <size> overwrite device size
-O <offset> probe at the given offset
-u <list> filter by "usage" (e.g. -u filesystem,raid)
-n <list> filter by filesystem type (e.g. -n vfat,ext3)

4|shell@android:/ # /data/test/blkid
/dev/block/mmcblk0: PTTYPE="dos"
/dev/block/mmcblk0p13: SEC_TYPE="msdos" UUID="7365-DAB3" TYPE="vfat"
/dev/block/mmcblk0p17: SEC_TYPE="msdos" UUID="29B2-ACBF" TYPE="vfat"
/dev/block/mmcblk0p21: UUID="57f8f4bc-abf4-0000-675f-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p24: UUID="c63c0c30-700c-4874-9acd-fd507d02000a" TYPE="ext4"
/dev/block/mmcblk0p25: UUID="36caf8ff-15bf-4c24-92e0-0c84a21f3b0c" TYPE="ext4"
/dev/block/mmcblk0p26: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p27: UUID="57f8f4bc-abf4-0000-675f-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p28: UUID="57f8f4bc-abf4-0000-675f-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p29: UUID="887F-1DF5" TYPE="vfat"
/dev/block/mmcblk1: PTTYPE="dos"
/dev/block/mmcblk1p1: UUID="64A1-1B57" TYPE="vfat"
shell@android:/ #

most will use sgdisk/partx on gtp based partitions. sgdisk also supports the partition info cloning like sfdisk does.

See sfdisk in util-linux sources for more info

darkspr1te