[Fire HD 8 and HD 10 Original Android Development] Phantasy0742:
Reboot recovery and do wipe data/factory reset.

After the factory reset, I did skip registration and re-enable adb in developer option.

Then, run step-2.sh

Testing root access...

uid=0(root) gid=0(root) groups=1000(system),1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),2000(shell),2001(cache),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0

Looking for partition-suffix

lrwxrwxrwx root root 2010-01-01 10:00 recovery_tmp -> /dev/block/mmcblk0p17

Couldn't find GPT files, regenerating from device

Dumping GPT

34+0 records in

34+0 records out

17408 bytes transferred in 0.001 secs (17408000 bytes/sec)

[100%] /data/local/tmp/gpt.bin

Unpatching GPT

[2019-03-27 02:58:32.595995] Input GPT:

[2019-03-27 02:58:32.596454]

[2019-03-27 02:58:32.596488] Sector size (logical): 512 bytes

[2019-03-27 02:58:32.596521] Disk identifier (GUID): 04EF21A7-28FA-4D1D-A17E-B450CE093E4F

[2019-03-27 02:58:32.596544] Partition table holds up to 128 entries

[2019-03-27 02:58:32.596564] This partition table begins at sector 2 and ends at sector 33

[2019-03-27 02:58:32.596583] First usable sector is 34, last usable sector is 61071326

[2019-03-27 02:58:32.596600] Other partition table is at sector 61071359

[2019-03-27 02:58:32.596617]

[2019-03-27 02:58:32.596650] Number Start (sector) End (sector) Size Name

[2019-03-27 02:58:32.597036] 1 1024 7167 3.00 MiB proinfo

[2019-03-27 02:58:32.597292] 2 7168 16383 4.50 MiB PMT

[2019-03-27 02:58:32.597547] 3 16384 18431 1024.00 KiB kb

[2019-03-27 02:58:32.597797] 4 18432 20479 1024.00 KiB dkb

[2019-03-27 02:58:32.598052] 5 20480 22527 1024.00 KiB lk

[2019-03-27 02:58:32.598303] 6 22528 32767 5.00 MiB tee1

[2019-03-27 02:58:32.598560] 7 32768 43007 5.00 MiB tee2

[2019-03-27 02:58:32.598814] 8 43008 123903 39.50 MiB metadata

[2019-03-27 02:58:32.599069] 9 123904 124927 512.00 KiB MISC

[2019-03-27 02:58:32.599325] 10 124928 141311 8.00 MiB reserved

[2019-03-27 02:58:32.599638] 11 141312 174079 16.00 MiB boot

[2019-03-27 02:58:32.599900] 12 174080 208895 17.00 MiB recovery

[2019-03-27 02:58:32.600149] 13 208896 3515391 1.58 GiB system

[2019-03-27 02:58:32.600400] 14 3515392 4383743 424.00 MiB cache

[2019-03-27 02:58:32.600650] 15 4383744 60619775 26.82 GiB userdata

[2019-03-27 02:58:32.600902] 16 60619776 60845055 110.00 MiB boot_tmp

[2019-03-27 02:58:32.601153] 17 60845056 61070335 110.00 MiB recovery_tmp

[2019-03-27 02:58:32.624754]

[2019-03-27 02:58:32.624791] Regenerate primary and backup GPT from input

[2019-03-27 02:58:32.624848] Writing regenerated GPT to gpt-regen/gpt.bin.gpt

[2019-03-27 02:58:32.624925] Writing regenerated backup GPT to gpt-regen/gpt.bin.bak

[2019-03-27 02:58:32.624985] Writing backup GPT offset to gpt-regen/gpt.bin.offset

Traceback (most recent call last):

File "modules/gpt.py", line 314, in <module>

main()

File "modules/gpt.py", line 297, in main

part_list_unpatched = unpatch(gpt_header, part_list)

File "modules/gpt.py", line 226, in unpatch

partition = get_part_by_name(part_list_n, "boot_x")

File "modules/gpt.py", line 116, in get_part_by_name

if part['name'].decode("utf-16le").rstrip("\x00") == name:

File "/usr/lib/python3.6/encodings/utf_16_le.py", line 16, in decode

return codecs.utf_16_le_decode(input, errors, True)

UnicodeDecodeError: 'utf-16-le' codec can't decode byte 0x00 in position 0: truncated data