[Fire HD 8 and HD 10 Original Android Development] deathlessster:
Thank you my friend that is great work my device now back to live .

But now i need to flash twrp again use ./step-1.sh but i get this error

root@khalid:/home/khalid/Downloads/amonet-douglas-v1.1/amonet# sudo ./step-1.sh

Testing root access...

uid=0(root) gid=0(root) context=u:r:init:s0

PL version: 6 (6)

LK version: 2 (2)

TZ version: 259 (259)

Your device will be reset to factory defaults...

Press Enter to Continue...

Dumping GPT

34+0 records in

34+0 records out

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

/data/local/tmp/gpt.bin: 1 file pulled. 0.3 MB/s (17408 bytes in 0.059s)

Modifying GPT

[2019-09-04 18:43:52.412512] Input GPT:

[2019-09-04 18:43:52.420744]

[2019-09-04 18:43:52.420854] Sector size (logical): 512 bytes

[2019-09-04 18:43:52.420956] Disk identifier (GUID): BE9E3536-6B98-4084-A368-36B21A533077

[2019-09-04 18:43:52.421043] Partition table holds up to 128 entries

[2019-09-04 18:43:52.421130] This partition table begins at sector 2 and ends at sector 33

[2019-09-04 18:43:52.421215] First usable sector is 34, last usable sector is 30535646

[2019-09-04 18:43:52.421298] Other partition table is at sector 30535679

[2019-09-04 18:43:52.421380]

[2019-09-04 18:43:52.421697] Number Start (sector) End (sector) Size Name

[2019-09-04 18:43:52.422832] 1 1024 7167 3.00 MiB proinfo

[2019-09-04 18:43:52.427961] 2 7168 16383 4.50 MiB PMT

[2019-09-04 18:43:52.429934] 3 16384 17407 512.00 KiB lk

[2019-09-04 18:43:52.430545] 4 17408 18431 512.00 KiB lk2

[2019-09-04 18:43:52.432040] 5 18432 51199 16.00 MiB boot_x

[2019-09-04 18:43:52.432653] 6 51200 86015 17.00 MiB recovery_x

[2019-09-04 18:43:52.434786] 7 86016 96255 5.00 MiB tee1

[2019-09-04 18:43:52.435431] 8 96256 106495 5.00 MiB tee2

[2019-09-04 18:43:52.435949] 9 106496 187391 39.50 MiB metadata

[2019-09-04 18:43:52.438351] 10 187392 189439 1024.00 KiB kb

[2019-09-04 18:43:52.439673] 11 189440 191487 1024.00 KiB dkb

[2019-09-04 18:43:52.442733] 12 191488 192511 512.00 KiB MISC

[2019-09-04 18:43:52.443378] 13 192512 208895 8.00 MiB reserved

[2019-09-04 18:43:52.444125] 14 208896 3515391 1.58 GiB system

[2019-09-04 18:43:52.444639] 15 3515392 4383743 424.00 MiB cache

[2019-09-04 18:43:52.445373] 16 4383744 30084095 12.25 GiB userdata

[2019-09-04 18:43:52.450785] 17 30084096 30309375 110.00 MiB boot

[2019-09-04 18:43:52.451318] 18 30309376 30534655 110.00 MiB recovery

[2019-09-04 18:43:52.571000]

[2019-09-04 18:43:52.580472] Regenerate primary and backup GPT from input

[2019-09-04 18:43:52.580657] Writing regenerated GPT to gpt-D01EB0A014660Q99/gpt.bin.gpt

[2019-09-04 18:43:52.581705] Writing regenerated backup GPT to gpt-D01EB0A014660Q99/gpt.bin.bak

[2019-09-04 18:43:52.582690] Writing backup GPT offset to gpt-D01EB0A014660Q99/gpt.bin.offset

Traceback (most recent call last):

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

main()

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

part_list_mod1 = modify_step1(part_list)

File "modules/gpt.py", line 181, in modify_step1

assert partition['name'].decode("utf-16le").rstrip("\x00") == "userdata", "the last partition is not userdata, refusing modification"

AssertionError: the last partition is not userdata, refusing modification

root@khalid:/home/khalid/Downloads/amonet-douglas-v1.1/amonet#

when i use your method to fix gpt my device boot to hack BL & i flash my modify system.img & boot.img from ota but i can not flash stock rom by sideload because no stock recovery or twrp in my device