• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[UNLOCK][ROOT][TWRP][UNBRICK] Fire HD 8 2017 (douglas)

Search This thread

dontpanic-xda

Member
Oct 13, 2019
40
10
Ok so i could do it without the need to install it on the pc, straight from the usb stick? (not saying it will solve all my problems, but at least better chances?)

Yes, I think it's worthwhile to try this from Ubuntu booted from a USB stick. No guarantees! But I've seen people have success going from an emulated Ubuntu to native Ubuntu booted from a USB.

Don't forget to disable modem manager. :)
 
  • Like
Reactions: Drachna

FireworksVOBL

New member
Nov 17, 2021
3
1
I think you do not need ADB connection until you install TWRP. TWRP will be installed without ADB connection. What I meant is:
Set to fastboot mode -> brick your device -> apply bootrom-step.sh -> apply fastboot-step.sh

All should work without ADB connection. Actually when I did for my three douglas, I first enabled usb debug on. There is possibility that my suggestion might not work. Anyway, try it. It should be much easier than the hardware method.

I believe you already have read informative posts in this thread. That means you do NOT, for example, try to power on your bricked device.
Thanks for all the help. i think the secret was to use a “pure” Ubuntu environment instead of the Windows Ubuntu app. All went fairly straightforward then. I managed to flash a Fire OS image from the Amazon website and get my kindle back up and running. I couldn’t be bothered to root and try a different OS, as Fire does what I need. At least until another update bricks it :)
 
  • Like
Reactions: dontpanic-xda

Korin67

Senior Member
Feb 24, 2018
226
97
Thanks for all the help. i think the secret was to use a “pure” Ubuntu environment instead of the Windows Ubuntu app. All went fairly straightforward then. I managed to flash a Fire OS image from the Amazon website and get my kindle back up and running. I couldn’t be bothered to root and try a different OS, as Fire does what I need. At least until another update bricks it :)
Nice to hear that. Well, LOS15.1 might be a good choice (you would be amazed with its speed) even though you are not so much interested in. Anyway, enjoy your tablet.
 

Pyrosync

New member
Jul 31, 2017
4
0
Hi I have bricked Kindle fire hd8 Gen 7 I tried the code sudo ./bootrom-step.sh using the t28 short method and received the bad gpt error listed below in the log could anyone offer any help to get my sons kindle working

Python:
[2021-11-30 18:56:10.535619] Waiting for bootrom
[2021-11-30 18:56:24.838317] Found port = /dev/ttyACM0
[2021-11-30 18:56:24.838954] Handshake

* * * If you have a short attached, remove it now * * *
* * * Press Enter to continue * * *


[2021-11-30 18:56:38.869766] Init crypto engine
[2021-11-30 18:56:38.893621] Disable caches
[2021-11-30 18:56:38.894283] Disable bootrom range checks
[2021-11-30 18:56:38.915462] Load payload from ../brom-payload/build/payload.bin = 0x4888 bytes
[2021-11-30 18:56:38.917747] Send payload
[2021-11-30 18:56:39.968254] Let's rock
[2021-11-30 18:56:39.969160] Wait for the payload to come online...
[2021-11-30 18:56:40.899028] all good
[2021-11-30 18:56:40.899562] Check GPT
[2021-11-30 18:56:41.277105]
[2021-11-30 18:56:41.277268] Sector size (logical): 512 bytes
[2021-11-30 18:56:41.277397] Disk identifier (GUID): 88C350DB-9F18-49B6-8E03-A4C14049C4EB
[2021-11-30 18:56:41.277484] Partition table holds up to 128 entries
[2021-11-30 18:56:41.277570] This partition table begins at sector 2 and ends at sector 33
[2021-11-30 18:56:41.277652] First usable sector is 34, last usable sector is 30777310
[2021-11-30 18:56:41.277730] Other partition table is at sector 30777343
[2021-11-30 18:56:41.277805]
[2021-11-30 18:56:41.277923] Number   Start (sector)     End (sector)  Size          Name         
[2021-11-30 18:56:41.278714]     1             1024             7167  3.00 MiB      proinfo       
[2021-11-30 18:56:41.279036]     2             7168            16383  4.50 MiB      PMT           
[2021-11-30 18:56:41.279313]     3            16384            17407  512.00 KiB    lk           
[2021-11-30 18:56:41.279577]     4            17408            18431  512.00 KiB    lk2           
[2021-11-30 18:56:41.279865]     5            18432            51199  16.00 MiB     boot         
[2021-11-30 18:56:41.280141]     6            51200            86015  17.00 MiB     recovery     
[2021-11-30 18:56:41.280401]     7            86016            96255  5.00 MiB      tee1         
[2021-11-30 18:56:41.280782]     8            96256           106495  5.00 MiB      tee2         
[2021-11-30 18:56:41.281045]     9           106496           187391  39.50 MiB     metadata     
[2021-11-30 18:56:41.281302]    10           187392           189439  1024.00 KiB   kb           
[2021-11-30 18:56:41.281558]    11           189440           191487  1024.00 KiB   dkb           
[2021-11-30 18:56:41.281815]    12           191488           192511  512.00 KiB    MISC         
[2021-11-30 18:56:41.282076]    13           192512           208895  8.00 MiB      reserved     
[2021-11-30 18:56:41.282331]    14           208896          3515391  1.58 GiB      system       
[2021-11-30 18:56:41.282595]    15          3515392          4383743  424.00 MiB    cache         
[2021-11-30 18:56:41.282853]    16          4383744         30777310  12.59 GiB     userdata     
[2021-11-30 18:56:41.296008]
[2021-11-30 18:56:41.296148] Modify GPT
[2021-11-30 18:56:41.296347] Validate GPT
[2021-11-30 18:56:41.296543]
[2021-11-30 18:56:41.296606] Sector size (logical): 512 bytes
[2021-11-30 18:56:41.296672] Disk identifier (GUID): 88C350DB-9F18-49B6-8E03-A4C14049C4EB
[2021-11-30 18:56:41.296737] Partition table holds up to 128 entries
[2021-11-30 18:56:41.296791] This partition table begins at sector 2 and ends at sector 33
[2021-11-30 18:56:41.296832] First usable sector is 34, last usable sector is 30777310
[2021-11-30 18:56:41.296871] Other partition table is at sector 30777343
[2021-11-30 18:56:41.296909]
[2021-11-30 18:56:41.296971] Number   Start (sector)     End (sector)  Size          Name         
[2021-11-30 18:56:41.297125]     1             1024             7167  3.00 MiB      proinfo       
[2021-11-30 18:56:41.297276]     2             7168            16383  4.50 MiB      PMT           
[2021-11-30 18:56:41.297427]     3            16384            17407  512.00 KiB    lk           
[2021-11-30 18:56:41.297576]     4            17408            18431  512.00 KiB    lk2           
[2021-11-30 18:56:41.297726]     5            18432            51199  16.00 MiB     boot_x       
[2021-11-30 18:56:41.297887]     6            51200            86015  17.00 MiB     recovery_x   
[2021-11-30 18:56:41.298045]     7            86016            96255  5.00 MiB      tee1         
[2021-11-30 18:56:41.298193]     8            96256           106495  5.00 MiB      tee2         
[2021-11-30 18:56:41.298359]     9           106496           187391  39.50 MiB     metadata     
[2021-11-30 18:56:41.298524]    10           187392           189439  1024.00 KiB   kb           
[2021-11-30 18:56:41.298688]    11           189440           191487  1024.00 KiB   dkb           
[2021-11-30 18:56:41.298848]    12           191488           192511  512.00 KiB    MISC         
[2021-11-30 18:56:41.299016]    13           192512           208895  8.00 MiB      reserved     
[2021-11-30 18:56:41.299175]    14           208896          3515391  1.58 GiB      system       
[2021-11-30 18:56:41.299339]    15          3515392          4383743  424.00 MiB    cache         
[2021-11-30 18:56:41.299499]    16          4383744         30325759  12.37 GiB     userdata     
[2021-11-30 18:56:41.299655]    17         30325760         30551039  110.00 MiB    boot         
[2021-11-30 18:56:41.299819]    18         30551040         30776319  110.00 MiB    recovery     
[2021-11-30 18:56:41.309935]
[2021-11-30 18:56:41.310054] Flash new primary GPT
[34 / 34]
[2021-11-30 18:56:42.040777] Flash new backup GPT
[33 / 33]
[2021-11-30 18:56:42.887334]
[2021-11-30 18:56:42.887511] Sector size (logical): 512 bytes
[2021-11-30 18:56:42.887668] Disk identifier (GUID): 88C350DB-9F18-49B6-8E03-A4C14049C4EB
[2021-11-30 18:56:42.887780] Partition table holds up to 128 entries
[2021-11-30 18:56:42.887898] This partition table begins at sector 2 and ends at sector 33
[2021-11-30 18:56:42.888021] First usable sector is 34, last usable sector is 30777310
[2021-11-30 18:56:42.888111] Other partition table is at sector 30777343
[2021-11-30 18:56:42.888191]
[2021-11-30 18:56:42.888305] Number   Start (sector)     End (sector)  Size          Name         
[2021-11-30 18:56:42.888651]     1             1024             7167  3.00 MiB      proinfo       
[2021-11-30 18:56:42.888987]     2             7168            16383  4.50 MiB      PMT           
[2021-11-30 18:56:42.889339]     3            16384            17407  512.00 KiB    lk           
[2021-11-30 18:56:42.889648]     4            17408            18431  512.00 KiB    lk2           
[2021-11-30 18:56:42.889983]     5            18432            51199  16.00 MiB     boot         
[2021-11-30 18:56:42.890323]     6            51200            86015  17.00 MiB     recovery     
[2021-11-30 18:56:42.890671]     7            86016            96255  5.00 MiB      tee1         
[2021-11-30 18:56:42.891022]     8            96256           106495  5.00 MiB      tee2         
[2021-11-30 18:56:42.891343]     9           106496           187391  39.50 MiB     metadata     
[2021-11-30 18:56:42.891708]    10           187392           189439  1024.00 KiB   kb           
[2021-11-30 18:56:42.892110]    11           189440           191487  1024.00 KiB   dkb           
[2021-11-30 18:56:42.892568]    12           191488           192511  512.00 KiB    MISC         
[2021-11-30 18:56:42.893038]    13           192512           208895  8.00 MiB      reserved     
[2021-11-30 18:56:42.893462]    14           208896          3515391  1.58 GiB      system       
[2021-11-30 18:56:42.893812]    15          3515392          4383743  424.00 MiB    cache         
[2021-11-30 18:56:42.894401]    16          4383744         30777310  12.59 GiB     userdata     
[2021-11-30 18:56:42.910791]
Traceback (most recent call last):
  File "main.py", line 256, in <module>
    main()
  File "main.py", line 177, in main
    raise RuntimeError("bad gpt")
RuntimeError: bad gpt
 

Pyrosync

New member
Jul 31, 2017
4
0
I think my son let the kindle fire hd 8 go flat during a firmaware update and it bricked it just had a black screen so i'm not sure what firmaware it was on and i have the issue above
 

pug_ster

Member
Jul 30, 2010
44
7
Recently there was a sale on this Fire hd 8 gen 7 for $20 at Woot so I brought it so I tried to hack. It is hard to find a one with the firmware 5.6.4.0 or lower so this is how I got it to work. Honorable mention to Opec who actually got the instructions right so I modified his instructions a little to fit everything in.

A) amonet-douglas-v1.2.zip from first Page of this Thread:
https://forum.xda-developers.com/...p.4845269/
Unpack the Archive to a separate Folder.
B) brick-douglas.zip from first Page of this Thread:
https://forum.xda-developers.com/...p.4825253/
Unpack the Archive to a separate Folder.

1) Boot from a live version of linux (I used Ubuntu mate Lts 20.04) or you can install linux in your computer.
2) Run the following commands to install tools;
sudo apt update
sudo add-apt-repository universe
sudo apt install python3 python3-serial adb fastboot dos2unix
3) Disable modem manager
sudo systemctl stop ModemManager
sudo systemctl disable ModemManager
4) Reboot FireHD8 to Recovery (Power Off device, then hold VolUp + Power)
5) Select Factory Reset then Wipe Cache
6) Reboot to Bootloader. You will see the black screen with "Fastboot" in the lower corner.
7) Connect your usb cable to the tablet.
8) Open Terminal from "brick-douglas" folder an enter "sudo ./brick.sh (note that you are actually bricking your fire tablet in order to recover)
9) Check Display output for the "Disconnect USB and Powerdown" Message and do so when prompted. Proceed to step 10 if there no problems, but it didn't work for me.
*** Note if you see an error and the FireHD Reboot and do the "Apps and Data Optimization" at the Welcome Install Screen Powerdown the FireHD and enter Bootloader again.
a) repeat steps 4-7
b) Enter "sudo ./brick-8920.sh" instead of brick.sh
c) You should see Display output for the "Disconnect usb and powerdown" message and do so when prompted.
10) Open Terminal from "amonet-douglas-v1.2" foder.
11) Enter "sudo ./bootrom-step.sh"
12) Reconnect USB while your tablet is off.
13) Wait until the bootrom step is finished
14) Enter "sudo ./fastboot-step.sh"
15) You will end up in TWRP
16) Prepare a microsd card with Lineage OS 15.1 or 14.1 with the rom and gapps and install Lineage OS.
https://forum.xda-developers.com/...1.4328503/
https://forum.xda-developers.com/...1.4195349/
 

Angus_xda

Member
Nov 3, 2008
29
3
Riverview, NB
Thanks. I was stuck until I found your instructions.

There is a small typo at instruction 9) b) sudo ./brick-8920.sh should be sudo ./brick-9820.sh

Now I'm stuck at 14) :)
< waiting for any device >

I'm doing this in a Mint VM in VirtualBox.
MediaTek MT6277 is shown as attached in the VM.
MediaTek USB port is attached in Windows.
USB\VID_0E8D&PID_0003&REV_0100
USB\VID_0E8D&PID_0003

Got any advice?

UPDATE
Got it. This post covered the fix.
 
Last edited:

bolidew

Member
May 31, 2010
20
7
Thanks. I was stuck until I found your instructions.

There is a small typo at instruction 9) b) sudo ./brick-8920.sh should be sudo ./brick-9820.sh

Now I'm stuck at 14) :)
< waiting for any device >

I'm doing this in a Mint VM in VirtualBox.
MediaTek MT6277 is shown as attached in the VM.
MediaTek USB port is attached in Windows.
USB\VID_0E8D&PID_0003&REV_0100
USB\VID_0E8D&PID_0003

Got any advice?

UPDATE
Got it. This post covered the fix.
Did you have to open the device when fixing it?
 

jlim0930

Member
Aug 11, 2011
38
2
I have a bricked HD 8 7th gen. Not sure how it was bricked since its been like this for a while.

When i plug in the device it shows
Code:
==> /var/log/kern.log <==
Dec 17 16:16:51 ubuntu kernel: [ 1574.396715] usb 2-1: new high-speed USB device number 11 using ehci-pci
Dec 17 16:16:51 ubuntu kernel: [ 1574.553668] usb 2-1: New USB device found, idVendor=0e8d, idProduct=2000, bcdDevice= 1.00
Dec 17 16:16:51 ubuntu kernel: [ 1574.553682] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 17 16:16:51 ubuntu kernel: [ 1574.553687] usb 2-1: Product: MT65xx Preloader
Dec 17 16:16:51 ubuntu kernel: [ 1574.553692] usb 2-1: Manufacturer: MediaTek
Dec 17 16:16:51 ubuntu kernel: [ 1574.557233] cdc_acm 2-1:1.0: Zero length descriptor references
Dec 17 16:16:51 ubuntu kernel: [ 1574.557249] cdc_acm: probe of 2-1:1.0 failed with error -22
Dec 17 16:16:51 ubuntu kernel: [ 1574.557729] cdc_acm 2-1:1.1: ttyACM1: USB ACM device

==> /var/log/syslog <==
Dec 17 16:16:51 ubuntu kernel: [ 1574.396715] usb 2-1: new high-speed USB device number 11 using ehci-pci
Dec 17 16:16:51 ubuntu kernel: [ 1574.553668] usb 2-1: New USB device found, idVendor=0e8d, idProduct=2000, bcdDevice= 1.00
Dec 17 16:16:51 ubuntu kernel: [ 1574.553682] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 17 16:16:51 ubuntu kernel: [ 1574.553687] usb 2-1: Product: MT65xx Preloader
Dec 17 16:16:51 ubuntu kernel: [ 1574.553692] usb 2-1: Manufacturer: MediaTek
Dec 17 16:16:51 ubuntu kernel: [ 1574.557233] cdc_acm 2-1:1.0: Zero length descriptor references
Dec 17 16:16:51 ubuntu kernel: [ 1574.557249] cdc_acm: probe of 2-1:1.0 failed with error -22
Dec 17 16:16:51 ubuntu kernel: [ 1574.557729] cdc_acm 2-1:1.1: ttyACM1: USB ACM device
Dec 17 16:15:20 ubuntu gnome-shell[5651]: [GFX1-]: Couldn't sanitize RENDERER device: AMD RV710
Dec 17 16:16:51 ubuntu mtp-probe: checking bus 2, device 11: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Dec 17 16:16:51 ubuntu mtp-probe: bus: 2, device: 11 was not an MTP device
Dec 17 16:16:51 ubuntu snapd[1326]: hotplug.go:199: hotplug device add event ignored, enable experimental.hotplug
Dec 17 16:16:51 ubuntu mtp-probe: checking bus 2, device 11: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Dec 17 16:16:51 ubuntu mtp-probe: bus: 2, device: 11 was not an MTP device

I tried to run both bootrom-step.sh and bootrom-step-minimal.sh but am keep getting the same results
Code:
[2021-12-17 16:14:16.297660] Waiting for bootrom
[2021-12-17 16:14:31.770383] Found port = /dev/ttyACM0
[2021-12-17 16:14:31.797342] Handshake

* * * If you have a short attached, remove it now * * *
* * * Press Enter to continue * * *

b''
b'\x00\x01'
Traceback (most recent call last):
  File "main.py", line 256, in <module>
    main()
  File "main.py", line 129, in main
    load_payload(dev, "../brom-payload/build/payload.bin")
  File "/home/ubuntu/Downloads/amonet/modules/load_payload.py", line 123, in load_payload
    dev.write32(0x10007008, 0x1971) # low-level watchdog kick
  File "/home/ubuntu/Downloads/amonet/modules/common.py", line 163, in write32
    self.check(self.dev.read(2), b'\x00\x01') # arg check
  File "/home/ubuntu/Downloads/amonet/modules/common.py", line 90, in check
    raise RuntimeError("ERROR: Serial protocol mismatch")
RuntimeError: ERROR: Serial protocol mismatch

What am i missing or doing wrong?
 

jlim0930

Member
Aug 11, 2011
38
2
I have a bricked HD 8 7th gen. Not sure how it was bricked since its been like this for a while.

When i plug in the device it shows
Code:
==> /var/log/kern.log <==
Dec 17 16:16:51 ubuntu kernel: [ 1574.396715] usb 2-1: new high-speed USB device number 11 using ehci-pci
Dec 17 16:16:51 ubuntu kernel: [ 1574.553668] usb 2-1: New USB device found, idVendor=0e8d, idProduct=2000, bcdDevice= 1.00
Dec 17 16:16:51 ubuntu kernel: [ 1574.553682] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 17 16:16:51 ubuntu kernel: [ 1574.553687] usb 2-1: Product: MT65xx Preloader
Dec 17 16:16:51 ubuntu kernel: [ 1574.553692] usb 2-1: Manufacturer: MediaTek
Dec 17 16:16:51 ubuntu kernel: [ 1574.557233] cdc_acm 2-1:1.0: Zero length descriptor references
Dec 17 16:16:51 ubuntu kernel: [ 1574.557249] cdc_acm: probe of 2-1:1.0 failed with error -22
Dec 17 16:16:51 ubuntu kernel: [ 1574.557729] cdc_acm 2-1:1.1: ttyACM1: USB ACM device

==> /var/log/syslog <==
Dec 17 16:16:51 ubuntu kernel: [ 1574.396715] usb 2-1: new high-speed USB device number 11 using ehci-pci
Dec 17 16:16:51 ubuntu kernel: [ 1574.553668] usb 2-1: New USB device found, idVendor=0e8d, idProduct=2000, bcdDevice= 1.00
Dec 17 16:16:51 ubuntu kernel: [ 1574.553682] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 17 16:16:51 ubuntu kernel: [ 1574.553687] usb 2-1: Product: MT65xx Preloader
Dec 17 16:16:51 ubuntu kernel: [ 1574.553692] usb 2-1: Manufacturer: MediaTek
Dec 17 16:16:51 ubuntu kernel: [ 1574.557233] cdc_acm 2-1:1.0: Zero length descriptor references
Dec 17 16:16:51 ubuntu kernel: [ 1574.557249] cdc_acm: probe of 2-1:1.0 failed with error -22
Dec 17 16:16:51 ubuntu kernel: [ 1574.557729] cdc_acm 2-1:1.1: ttyACM1: USB ACM device
Dec 17 16:15:20 ubuntu gnome-shell[5651]: [GFX1-]: Couldn't sanitize RENDERER device: AMD RV710
Dec 17 16:16:51 ubuntu mtp-probe: checking bus 2, device 11: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Dec 17 16:16:51 ubuntu mtp-probe: bus: 2, device: 11 was not an MTP device
Dec 17 16:16:51 ubuntu snapd[1326]: hotplug.go:199: hotplug device add event ignored, enable experimental.hotplug
Dec 17 16:16:51 ubuntu mtp-probe: checking bus 2, device 11: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Dec 17 16:16:51 ubuntu mtp-probe: bus: 2, device: 11 was not an MTP device

I tried to run both bootrom-step.sh and bootrom-step-minimal.sh but am keep getting the same results
Code:
[2021-12-17 16:14:16.297660] Waiting for bootrom
[2021-12-17 16:14:31.770383] Found port = /dev/ttyACM0
[2021-12-17 16:14:31.797342] Handshake

* * * If you have a short attached, remove it now * * *
* * * Press Enter to continue * * *

b''
b'\x00\x01'
Traceback (most recent call last):
  File "main.py", line 256, in <module>
    main()
  File "main.py", line 129, in main
    load_payload(dev, "../brom-payload/build/payload.bin")
  File "/home/ubuntu/Downloads/amonet/modules/load_payload.py", line 123, in load_payload
    dev.write32(0x10007008, 0x1971) # low-level watchdog kick
  File "/home/ubuntu/Downloads/amonet/modules/common.py", line 163, in write32
    self.check(self.dev.read(2), b'\x00\x01') # arg check
  File "/home/ubuntu/Downloads/amonet/modules/common.py", line 90, in check
    raise RuntimeError("ERROR: Serial protocol mismatch")
RuntimeError: ERROR: Serial protocol mismatch

What am i missing or doing wrong?
 

jlim0930

Member
Aug 11, 2011
38
2
Found the issue. it had to do with
Code:
MT65xx Preloader

Went the hardware route and was able to recover

too bad i broke the screen and the one of the ribbons in the process but the hardware method did work!
 

kingladar

Member
Nov 3, 2016
8
3
I also bought several of the 7th gen devices from Woot. Here are my instructions for loading Lineage 15.1. They are based on what pug_ster provided, with typos fixed, and precise commands to run.


1) Boot using Fedora. See notes below if you're using Ubuntu.

2) Prep and install tools.
sudo dnf install -y android-tools dos2unix python3 python3-pyserial unzip sudo systemctl disable ModemManager && sudo systemctl stop ModemManager curl -L -s -o brick-douglas.zip https://forum.xda-developers.com/attachments/brick-douglas-zip.4825253/ && unzip -qq -e -d brick-douglas brick-douglas.zip curl -L -s -o amonet-douglas.zip https://forum.xda-developers.com/attachments/amonet-douglas-v1-2-zip.4845269/ && unzip -qq -e -d amonet-douglas amonet-douglas.zip curl -L -s -o lineage-15.1-douglas.zip https://github.com/mt8163-dev/android_device_amazon_douglas/releases/download/15.1-8.0/lineage-15.1-20211107-UNOFFICIAL-douglas.zip curl -L -s -o open-gapps-arm64-8.1-pico.zip https://jaist.dl.sourceforge.net/project/opengapps/arm64/20211217/open_gapps-arm64-8.1-pico-20211217.zip md5sum lineage-15.1-douglas.zip > lineage-15.1-douglas.zip.md5sum md5sum open-gapps-arm64-8.1-pico.zip > open-gapps-arm64-8.1-pico.zip.md5sum echo 6647dd0b5b9d2c04a2f167f6ccc7a2cfbcaa6f1f93f8251c7a39455db77119b2 amonet-douglas.zip | sha256sum -c echo ba017f1c4fc2f003924912a9099d18c94dd82401a2ad12881b7e7e158a4bc06b brick-douglas.zip | sha256sum -c echo 4351859b45eb5124d4ed6ddf4f32cbd29ef61adfa79574208a408926f431db46 lineage-15.1-douglas.zip | sha256sum -c echo 8bb21f299a77c535f8aad39d7b4fdd25966daa143f6fa06a2ac2eb274c2daba7 open-gapps-arm64-8.1-pico.zip | sha256sum -c

3) Reboot Fire HD 8 into recovery mode.
Power off the device, then press the Volume Down + Power keys until the Amazon logo appears.

4) In recovery mode run Factory Reset followed by Wipe Cache and then reboot to Bootloader.
A black screen with "Fastboot" in the lower corner should appear.

5) Connect the tablet to a computer using a Micro USB cable and run the brick script. This will brick the tablet.
cd brick-douglas/amonet sudo ./brick.sh

6) If Display reads "Disconnect USB and Powerdown" message, proceed to step 7. Otherwise if the tablet reboots into FireOS, repeat steps 3-4, and use the alternate brick script.
cd brick-douglas/amonet sudo ./brick-9820.sh

7) Assuming you've reached the "Disconnect USB and Powerdown" message, long press the power button to shutdown, and then disconnect the tablet.

8) Run the bootrom script, and then connect the bricked tablet. Allow the script to complete.
cd amonet-douglas/amonet
sudo ./bootrom-step.sh


9) Use the fastboot script to install TWRP which will reboot the tablet into recovery mode when it's complete.
cd amonet-douglas/amonet
sudo ./fastboot-step.sh

10) Prepare a Micro SD card and load the following files onto it, and insert the card into the tablet.
lineage-15.1-douglas.zip
open-gapps-arm64-8.1-pico.zip
lineage-15.1-douglas.zip.md5sum
open-gapps-arm64-8.1-pico.zip.md5sum


11) Swipe the slider to enable modifications. Then from within TWRP, run the following actions to create a data partition and mount the SD card.
Wipe -> Wipe Data -> Yes
Mount -> Advanced Mount -> Select the Partitions
System
Cache
Data
Storage
Install -> Select Storage -> Storage -> Select Files
Select lineage-15.1-douglas.zip
Add More Zips
Select open-gapps-arm64-8.1-pico.zip
Swipe to Install

12) When the installation is complete, remove the SD card, and wipe the Dalvik cache, and press reboot.

13) Enjoy your Amazon+Google subsidized device.

Notes)

On Ubuntu replace the DNF install command with the corresponding APT command below.
sudo apt update && sudo add-apt-repository universe && sudo apt install -y adb fastboot dos2unix python3 python3-serial unzip

For the privacy inclined, omit the open-gapps-arm64-8.1-pico.zip file from 11 for a Google-free device.

To cleanup the downloaded files run the following.
rm -rf amonet-douglas amonet-douglas.zip brick-douglas brick-douglas.zip lineage-15.1-douglas.zip lineage-15.1-douglas.zip.md5sum open-gapps-arm64-8.1-pico.zip open-gapps-arm64-8.1-pico.zip.md5sum
 
  • Like
Reactions: salvo2002
Hi I have bricked Kindle fire hd8 Gen 7 I tried the code sudo ./bootrom-step.sh using the t28 short method and received the bad gpt error listed below in the log could anyone offer any help to get my sons kindle working

Python:
[2021-11-30 18:56:10.535619] Waiting for bootrom
[2021-11-30 18:56:24.838317] Found port = /dev/ttyACM0
[2021-11-30 18:56:24.838954] Handshake

* * * If you have a short attached, remove it now * * *
* * * Press Enter to continue * * *


[2021-11-30 18:56:38.869766] Init crypto engine
[2021-11-30 18:56:38.893621] Disable caches
[2021-11-30 18:56:38.894283] Disable bootrom range checks
[2021-11-30 18:56:38.915462] Load payload from ../brom-payload/build/payload.bin = 0x4888 bytes
[2021-11-30 18:56:38.917747] Send payload
[2021-11-30 18:56:39.968254] Let's rock
[2021-11-30 18:56:39.969160] Wait for the payload to come online...
[2021-11-30 18:56:40.899028] all good
[2021-11-30 18:56:40.899562] Check GPT
[2021-11-30 18:56:41.277105]
[2021-11-30 18:56:41.277268] Sector size (logical): 512 bytes
[2021-11-30 18:56:41.277397] Disk identifier (GUID): 88C350DB-9F18-49B6-8E03-A4C14049C4EB
[2021-11-30 18:56:41.277484] Partition table holds up to 128 entries
[2021-11-30 18:56:41.277570] This partition table begins at sector 2 and ends at sector 33
[2021-11-30 18:56:41.277652] First usable sector is 34, last usable sector is 30777310
[2021-11-30 18:56:41.277730] Other partition table is at sector 30777343
[2021-11-30 18:56:41.277805]
[2021-11-30 18:56:41.277923] Number   Start (sector)     End (sector)  Size          Name        
[2021-11-30 18:56:41.278714]     1             1024             7167  3.00 MiB      proinfo      
[2021-11-30 18:56:41.279036]     2             7168            16383  4.50 MiB      PMT          
[2021-11-30 18:56:41.279313]     3            16384            17407  512.00 KiB    lk          
[2021-11-30 18:56:41.279577]     4            17408            18431  512.00 KiB    lk2          
[2021-11-30 18:56:41.279865]     5            18432            51199  16.00 MiB     boot        
[2021-11-30 18:56:41.280141]     6            51200            86015  17.00 MiB     recovery    
[2021-11-30 18:56:41.280401]     7            86016            96255  5.00 MiB      tee1        
[2021-11-30 18:56:41.280782]     8            96256           106495  5.00 MiB      tee2        
[2021-11-30 18:56:41.281045]     9           106496           187391  39.50 MiB     metadata    
[2021-11-30 18:56:41.281302]    10           187392           189439  1024.00 KiB   kb          
[2021-11-30 18:56:41.281558]    11           189440           191487  1024.00 KiB   dkb          
[2021-11-30 18:56:41.281815]    12           191488           192511  512.00 KiB    MISC        
[2021-11-30 18:56:41.282076]    13           192512           208895  8.00 MiB      reserved    
[2021-11-30 18:56:41.282331]    14           208896          3515391  1.58 GiB      system      
[2021-11-30 18:56:41.282595]    15          3515392          4383743  424.00 MiB    cache        
[2021-11-30 18:56:41.282853]    16          4383744         30777310  12.59 GiB     userdata    
[2021-11-30 18:56:41.296008]
[2021-11-30 18:56:41.296148] Modify GPT
[2021-11-30 18:56:41.296347] Validate GPT
[2021-11-30 18:56:41.296543]
[2021-11-30 18:56:41.296606] Sector size (logical): 512 bytes
[2021-11-30 18:56:41.296672] Disk identifier (GUID): 88C350DB-9F18-49B6-8E03-A4C14049C4EB
[2021-11-30 18:56:41.296737] Partition table holds up to 128 entries
[2021-11-30 18:56:41.296791] This partition table begins at sector 2 and ends at sector 33
[2021-11-30 18:56:41.296832] First usable sector is 34, last usable sector is 30777310
[2021-11-30 18:56:41.296871] Other partition table is at sector 30777343
[2021-11-30 18:56:41.296909]
[2021-11-30 18:56:41.296971] Number   Start (sector)     End (sector)  Size          Name        
[2021-11-30 18:56:41.297125]     1             1024             7167  3.00 MiB      proinfo      
[2021-11-30 18:56:41.297276]     2             7168            16383  4.50 MiB      PMT          
[2021-11-30 18:56:41.297427]     3            16384            17407  512.00 KiB    lk          
[2021-11-30 18:56:41.297576]     4            17408            18431  512.00 KiB    lk2          
[2021-11-30 18:56:41.297726]     5            18432            51199  16.00 MiB     boot_x      
[2021-11-30 18:56:41.297887]     6            51200            86015  17.00 MiB     recovery_x  
[2021-11-30 18:56:41.298045]     7            86016            96255  5.00 MiB      tee1        
[2021-11-30 18:56:41.298193]     8            96256           106495  5.00 MiB      tee2        
[2021-11-30 18:56:41.298359]     9           106496           187391  39.50 MiB     metadata    
[2021-11-30 18:56:41.298524]    10           187392           189439  1024.00 KiB   kb          
[2021-11-30 18:56:41.298688]    11           189440           191487  1024.00 KiB   dkb          
[2021-11-30 18:56:41.298848]    12           191488           192511  512.00 KiB    MISC        
[2021-11-30 18:56:41.299016]    13           192512           208895  8.00 MiB      reserved    
[2021-11-30 18:56:41.299175]    14           208896          3515391  1.58 GiB      system      
[2021-11-30 18:56:41.299339]    15          3515392          4383743  424.00 MiB    cache        
[2021-11-30 18:56:41.299499]    16          4383744         30325759  12.37 GiB     userdata    
[2021-11-30 18:56:41.299655]    17         30325760         30551039  110.00 MiB    boot        
[2021-11-30 18:56:41.299819]    18         30551040         30776319  110.00 MiB    recovery    
[2021-11-30 18:56:41.309935]
[2021-11-30 18:56:41.310054] Flash new primary GPT
[34 / 34]
[2021-11-30 18:56:42.040777] Flash new backup GPT
[33 / 33]
[2021-11-30 18:56:42.887334]
[2021-11-30 18:56:42.887511] Sector size (logical): 512 bytes
[2021-11-30 18:56:42.887668] Disk identifier (GUID): 88C350DB-9F18-49B6-8E03-A4C14049C4EB
[2021-11-30 18:56:42.887780] Partition table holds up to 128 entries
[2021-11-30 18:56:42.887898] This partition table begins at sector 2 and ends at sector 33
[2021-11-30 18:56:42.888021] First usable sector is 34, last usable sector is 30777310
[2021-11-30 18:56:42.888111] Other partition table is at sector 30777343
[2021-11-30 18:56:42.888191]
[2021-11-30 18:56:42.888305] Number   Start (sector)     End (sector)  Size          Name        
[2021-11-30 18:56:42.888651]     1             1024             7167  3.00 MiB      proinfo      
[2021-11-30 18:56:42.888987]     2             7168            16383  4.50 MiB      PMT          
[2021-11-30 18:56:42.889339]     3            16384            17407  512.00 KiB    lk          
[2021-11-30 18:56:42.889648]     4            17408            18431  512.00 KiB    lk2          
[2021-11-30 18:56:42.889983]     5            18432            51199  16.00 MiB     boot        
[2021-11-30 18:56:42.890323]     6            51200            86015  17.00 MiB     recovery    
[2021-11-30 18:56:42.890671]     7            86016            96255  5.00 MiB      tee1        
[2021-11-30 18:56:42.891022]     8            96256           106495  5.00 MiB      tee2        
[2021-11-30 18:56:42.891343]     9           106496           187391  39.50 MiB     metadata    
[2021-11-30 18:56:42.891708]    10           187392           189439  1024.00 KiB   kb          
[2021-11-30 18:56:42.892110]    11           189440           191487  1024.00 KiB   dkb          
[2021-11-30 18:56:42.892568]    12           191488           192511  512.00 KiB    MISC        
[2021-11-30 18:56:42.893038]    13           192512           208895  8.00 MiB      reserved    
[2021-11-30 18:56:42.893462]    14           208896          3515391  1.58 GiB      system      
[2021-11-30 18:56:42.893812]    15          3515392          4383743  424.00 MiB    cache        
[2021-11-30 18:56:42.894401]    16          4383744         30777310  12.59 GiB     userdata    
[2021-11-30 18:56:42.910791]
Traceback (most recent call last):
  File "main.py", line 256, in <module>
    main()
  File "main.py", line 177, in main
    raise RuntimeError("bad gpt")
RuntimeError: bad gpt

try running gpt fix.sh --> bootrom-step.sh --> fastboot-step.sh. GPT Fix is on the first page.
 

bibikalka

Senior Member
May 14, 2015
1,394
1,097
Forgive my present ignorance, but what is the latest TWRP version for douglas? Does it include the new Samsung exFAT drivers, or some old version of something?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I also bought several of the 7th gen devices from Woot. Here are my instructions for loading Lineage 15.1. They are based on what pug_ster provided, with typos fixed, and precise commands to run.


    1) Boot using Fedora. See notes below if you're using Ubuntu.

    2) Prep and install tools.
    sudo dnf install -y android-tools dos2unix python3 python3-pyserial unzip sudo systemctl disable ModemManager && sudo systemctl stop ModemManager curl -L -s -o brick-douglas.zip https://forum.xda-developers.com/attachments/brick-douglas-zip.4825253/ && unzip -qq -e -d brick-douglas brick-douglas.zip curl -L -s -o amonet-douglas.zip https://forum.xda-developers.com/attachments/amonet-douglas-v1-2-zip.4845269/ && unzip -qq -e -d amonet-douglas amonet-douglas.zip curl -L -s -o lineage-15.1-douglas.zip https://github.com/mt8163-dev/android_device_amazon_douglas/releases/download/15.1-8.0/lineage-15.1-20211107-UNOFFICIAL-douglas.zip curl -L -s -o open-gapps-arm64-8.1-pico.zip https://jaist.dl.sourceforge.net/project/opengapps/arm64/20211217/open_gapps-arm64-8.1-pico-20211217.zip md5sum lineage-15.1-douglas.zip > lineage-15.1-douglas.zip.md5sum md5sum open-gapps-arm64-8.1-pico.zip > open-gapps-arm64-8.1-pico.zip.md5sum echo 6647dd0b5b9d2c04a2f167f6ccc7a2cfbcaa6f1f93f8251c7a39455db77119b2 amonet-douglas.zip | sha256sum -c echo ba017f1c4fc2f003924912a9099d18c94dd82401a2ad12881b7e7e158a4bc06b brick-douglas.zip | sha256sum -c echo 4351859b45eb5124d4ed6ddf4f32cbd29ef61adfa79574208a408926f431db46 lineage-15.1-douglas.zip | sha256sum -c echo 8bb21f299a77c535f8aad39d7b4fdd25966daa143f6fa06a2ac2eb274c2daba7 open-gapps-arm64-8.1-pico.zip | sha256sum -c

    3) Reboot Fire HD 8 into recovery mode.
    Power off the device, then press the Volume Down + Power keys until the Amazon logo appears.

    4) In recovery mode run Factory Reset followed by Wipe Cache and then reboot to Bootloader.
    A black screen with "Fastboot" in the lower corner should appear.

    5) Connect the tablet to a computer using a Micro USB cable and run the brick script. This will brick the tablet.
    cd brick-douglas/amonet sudo ./brick.sh

    6) If Display reads "Disconnect USB and Powerdown" message, proceed to step 7. Otherwise if the tablet reboots into FireOS, repeat steps 3-4, and use the alternate brick script.
    cd brick-douglas/amonet sudo ./brick-9820.sh

    7) Assuming you've reached the "Disconnect USB and Powerdown" message, long press the power button to shutdown, and then disconnect the tablet.

    8) Run the bootrom script, and then connect the bricked tablet. Allow the script to complete.
    cd amonet-douglas/amonet
    sudo ./bootrom-step.sh


    9) Use the fastboot script to install TWRP which will reboot the tablet into recovery mode when it's complete.
    cd amonet-douglas/amonet
    sudo ./fastboot-step.sh

    10) Prepare a Micro SD card and load the following files onto it, and insert the card into the tablet.
    lineage-15.1-douglas.zip
    open-gapps-arm64-8.1-pico.zip
    lineage-15.1-douglas.zip.md5sum
    open-gapps-arm64-8.1-pico.zip.md5sum


    11) Swipe the slider to enable modifications. Then from within TWRP, run the following actions to create a data partition and mount the SD card.
    Wipe -> Wipe Data -> Yes
    Mount -> Advanced Mount -> Select the Partitions
    System
    Cache
    Data
    Storage
    Install -> Select Storage -> Storage -> Select Files
    Select lineage-15.1-douglas.zip
    Add More Zips
    Select open-gapps-arm64-8.1-pico.zip
    Swipe to Install

    12) When the installation is complete, remove the SD card, and wipe the Dalvik cache, and press reboot.

    13) Enjoy your Amazon+Google subsidized device.

    Notes)

    On Ubuntu replace the DNF install command with the corresponding APT command below.
    sudo apt update && sudo add-apt-repository universe && sudo apt install -y adb fastboot dos2unix python3 python3-serial unzip

    For the privacy inclined, omit the open-gapps-arm64-8.1-pico.zip file from 11 for a Google-free device.

    To cleanup the downloaded files run the following.
    rm -rf amonet-douglas amonet-douglas.zip brick-douglas brick-douglas.zip lineage-15.1-douglas.zip lineage-15.1-douglas.zip.md5sum open-gapps-arm64-8.1-pico.zip open-gapps-arm64-8.1-pico.zip.md5sum
  • 57
    Read this whole guide before starting.

    This is for the 7th gen Fire HD8 (douglas).

    Current version: amonet-douglas-v1.2.zip


    NOTE: This process does not require you to open your device, but should something go horribly wrong, be prepared to do so.


    NOTE: This process will modify the partition-table (GPT) of your device.



    NOTE: Your device will be reset to factory defaults (including internal storage) during this process.


    What you need:
    • A Linux installation or live-system
    • A micro-USB cable

    Install python3, PySerial, adb, fastboot dos2unix. For Debian/Ubuntu something like this should work:
    Code:
    sudo apt update
    sudo add-apt-repository universe
    sudo apt install python3 python3-serial adb fastboot dos2unix

    1. Extract the attached zip-file "amonet-douglas-v1.1.zip" and open a terminal in that directory.


    NOTE: If you are already rooted, continue with the next step, otherwise get mtk-su by @diplomatic from here and place (the unpacked binary) into amonet/bin folder


    2. Enable ADB in Developer Settings

    3. Start the script:
    Code:
    sudo ./step-1.sh

    Your device will now reboot into recovery and perform a factory reset.

    NOTE: If you are on a firmware newer than 5.6.4.0, a downgrade is necessary, this requires bricking the device temporarily. (The screen won't come on at all)
    If you chose the brick option, you don't need to run step-2.sh below:



    Make sure ModemManager is disabled or uninstalled:
    Code:
    sudo systemctl stop ModemManager
    sudo systemctl disable ModemManager


    WARNING: Do not use bootrom-step-minimal.sh if you bricked using brick(-9820).sh!
    You will need to use bootrom-step.sh.


    After you have confirmed the bricking by typing "YES", you will need disconnect the device and run
    Code:
    sudo ./bootrom-step-minimal.sh
    Then plug the device back in.

    It will then boot into "hacked fastboot" mode.
    Then run
    Code:
    sudo ./fastboot-step.sh



    NOTE: When you are back at initial setup, you can skip registration by selecting a WiFi-Network, then pressing "Cancel" and then "Not Now"
    NOTE: Make sure you re-enable ADB after Factory Reset.



    4. Start the script:
    Code:
    sudo ./step-2.sh

    The exploit will now be flashed and your device will reboot into TWRP.

    You can now install Magisk from there.


    Going back to stock
    Extract the attached zip-file "amonet-douglas-return-to-stock.zip" into the same folder where you extracted "amonet-douglas-v1.0.zip" and open a terminal in that directory.
    You can go back to stock without restoring the original partition-table, so you can go back to unlocked without wiping data.
    Just use hacked fastboot to
    Code:
    sudo fastboot flash recovery bin/recovery.img

    If you want to go back completely (including restoring your GPT):
    Code:
    sudo ./return-to-stock.sh

    Your device should reboot into Amazon Recovery. Use adb sideload to install stock image from there. (Make sure to use FireOS 5.6.4.0 or newer, otherwise you may brick your device)

    Important information

    In the new partitioning scheme your boot/recovery-images will be in boot_x/recovery_x respectively, while boot/recovery will hold the exploit.
    TWRP takes care of remapping these for you, so installing zips/images from TWRP will work as expected.

    Don't flash boot/recovery images from FireOS (FlashFire, MagiskManager etc.) (If you do anyway, make sure you flash them to boot_x/recovery_x)

    Should you accidentally overwrite the wrong boot, but your TWRP is still working, rebooting into TWRP will fix that automatically.

    TWRP will prevent updates from overwriting LK/Preloader/TZ, so generally installing an update should work without issues (only full updates, incremental updates won't work).

    For ROM developers there is still an option to overwrite these, which should only be done after thorough testing and if needed (LK should never be updated).

    It is still advised to disable OTA.


    Very special thanks to @xyz` for making all this possible and putting up with the countless questions I have asked, helping me finish this.
    Special thanks also to @diplomatic for his wonderfull mtk-su, allowing you to unlock without opening the device.
    Thanks to @t0x1cSH and @breakfastofsecrets for testing.
    18
    Yesterday i managed to root updated FireOS and install Lineage 12.1, so, here's my story :D

    Version 5.6.6.0 build 654620620,
    on Linux KDE Neon.

    1. Installed python3, PySerial, adb, fastboot dos2unix as described in this and other posts.
      Code:
      sudo apt update
      sudo add-apt-repository universe
      sudo apt install python3 python3-serial adb fastboot dos2unix
    2. Downloaded the following attachments from the first post : amonet-douglas-v1.2.zip and brick-douglas.zip
    3. Extract both files to the same folder
    4. Enable Developer options and enable ADB (inside debugging options) on Amazon tablet
    5. Plug in the tablet (has to be turned on)
    6. Now comes the commands execution part. So, open the terminal in Linux (lines that start with // are comments and should not be run from command line - if you copy paste)

      Code:
      sudo systemctl stop ModemManager && sudo systemctl disable ModemManager
      Code:
      adb devices
      // there should be an item listed
      // to be sure, you can unplug and run it again, if it's empty, 
      // ou know tablet can connect, so plug in the tablet back
      Code:
      adb reboot bootloader
      // reboots the tablet and awaits commands
      Code:
      sudo ./brick.sh
      // type YES, hit enter
      // it will take a couple of minutes (around 3-5min in my case)
      // watch the tablet for success message, it should be displayed there if everything works
      // but also, watch your terminal...if it gives you error message similiar to:
      // ==> [I][U]failed with error message that it can't write somewhere[/U][/I]
      // you have to try with brick-9820 script
      Code:
      sudo ./brick-9820.sh
      // it will take a couple of minutes, similar to above step

      NOTE : after either of the above commands (which one succeeds) POWER OFF THE TABLET and DO NOT try to turn it back on. It should stay powered off!!

      Code:
      sudo ./bootrom-step.sh
      // this will take some time (in my case around 5-10 minutes)
      // will give you message similar to "awaiting device connection" and nothing else...
      // although nothing seems to happen, just wait a bit and watch the terminal, it will soon start displaying the process
      // it should then reboot the tablet, but in my case, that did not happen, so i had to do it manually...
      // NOTE that althought tablet seems to be "off", it isn't, so press power btn and hold for 5 sec to turn it off
      // after that click and hold volume up button (when in portrait mode it is the right one, the one closest to power btn)
      // and immediately after that press and hold the power btn until amazon logo shows itself
      // it should then show in bottom left corner HACKED FASTBOOT after a few seconds

      Code:
      sudo fastboot devices
      // there should be a device listed
      // if not, you should run (in the extracted directory that you are in):
      ./bin/fastboot devices
      // if sudo fastboot devices does not show your device but ./bin/fastboot works, you have to edit the fastboot-step.sh file and change the fastboot commands to ./bin/fastboot
      Code:
      sudo ./fastboot-step.sh
      // takes a couple of minutes (1-3 min in my case)
      // reboots the device

    after that you should be in TWRP :)

    NOTE when in TWRP:

    DO NOT RESTART tablet before the following
    (or amazon fire os will overwrite TWRP and you will be reset to factory default with fireOS, losing everything you've done and starting from scratch...
    when it happened to me, the brick-9820.sh didn't work anymore and had to use brick.sh script)

    -allow modifications
    -format data,system,cache partitions, go to wipe->advanced wipe-> repair/format (something like that), select each of the 3 partitions aformentioned and format to ext4
    -if you've done it correctly, there should not be any red warnings
    -after that go to wipe, select all partitions and wipe them (just to be sure)

    -tablet should be connected and TWRP should be left on

    on PC
    -download Lineage 12.1 ROM from https://forum.xda-developers.com/hd8-hd10/general/discussion-root-progress-fire-hd-8-t3743024
    -download opengapps from https://opengapps.org/
    - put them inside amonet-douglas-v1.2 folder where you've extracted the prior ZIP files (just to be clear, you can put them anywhere, but i like to keep it all inside the working directory)

    -go to terminal
    Code:
    adb push lineage-12.1-20200614-UNOFFICIAL-douglas.zip /sdcard
    adb push open_gapps-arm64-5.1-nano-20200624.zip /sdcard

    now the files are on the tablet
    - in TWRP go to INSTALL, go to /sdcard folder if not in it
    - first install Lineage ROM from zip
    - then install GApps from zip

    hope it works!
    I'm glad i've finally rooted it, thank you all for the great content here! :)
    11
    Wire root process

    after updating my tablet to the latest version Fire OS 5.6.4.0 (build 636559820) which does not have SW root I have decided to open up the unit and use hardware method which works on all versions of firmware

    What you will need

    1. wire
    2. plastic tool as in the picture below to open the unit.
    3. linux machine, I used Raspberry Pi 3+ and Raspbian.
    MVIMG_20190920_171046.jpg


    Process:

    1. remove SD card from the fire HD to avoid breaking it during the opening process ( yes it happened to me, luckily just 16GB card )
    2. use plastic tool to detach display from plastic rear chassis. It is very easy and safe process.
    MVIMG_20190920_171059.jpg

    3. Remove 4 screws from the motherboard.
    4. detach digitizer ( yellow ) cable and rear camera using plastic tool.
    MVIMG_20190920_171327.jpg

    5. You can leave display flex cable, battery and speaker ( soldered ) connected.
    6. turn montherboard on the other side so it lays on the battery. There is a small adhesive pad on the left side of PCA, use plastic tool to start lifting the board from that side.

    MVIMG_20190920_171508.jpg

    MVIMG_20190920_171533.jpg


    7. find pad TP28 and prepare you Linux PC now

    8. DOwnload amonet-douglas-v1.1.zip from OP of the thread , extract.
    9. run, it will take a while to update your linux distribution to the latest version.
    Code:
     sudo apt update
           sudo add-apt-repository universe
           sudo apt install python3 python3-serial adb fastboot dos2unix
    10. Get your self into the Amonet folder ( most licely Downloads/Amonet ) folder where you extracted ZIP from OP.
    11. run
    Code:
     sudo ./bootrom-step.sh
    12. you should see this msg on the screen
    Code:
    [2019-02-07 14:35:59.478924] Waiting for bootrom

    13 Now here is the tricky part which will require some practice. You have to short TP28 with grond ( the big pad neer TP28 ) and while doing it connect USB cable to the PC. Here is how I did it.
    IMG_20190920_171622.jpg

    IMG_20190920_171659.jpg

    14. So I was holding the wire in the left hand and used right hand to plug slowly USB cable into the montherboard. ( not easy I know, but you will get there )
    15. If you did it right you will see a message on the screen to Release the short wire and hit ENTER.
    16. wait till the scripts does its think and when you see this you are in fasboot. Look at the scrren, you should see AMAZON logo and small text on the bottom "fastboot xyz etc..." Don1t unplug table, keep going.
    Code:
    [2019-02-07 12:11:05.621357] Reboot to unlocked fastboot.
    17. run this script
    Code:
    sudo ./fastboot-step.sh
    18. Your unit should boot into TWRP
    19. Assemble back the unit so digitizer will work.
    20 boot into TWRP and install Lieage, GAPPS and Magisk. Install Lineage ZIP file from here. https://forum.xda-developers.com/hd8-hd10/orig-development/rom-lineage-12-1-t3953677
    7
    I was definitely on 9920 (exactly:FireOS 5.6.4.0 (636559920)). Was thinking I was stuck without an unlock method. I did the brick.sh script, then (and here's where my "some problems" comes in - my own error) without paying attention ran the wrong script as the next step after intentionally bricking my tablet. I don't know what state my table was in after doing that, but it wasn't booting into FireOS and I didn't have TWRP. So, not knowing what else to do, I tried flashing the latest official FireOS from the site I linked above. When I rebooted after doing that, I had a working FireOS and going into settings showed me on FireOS 5.6.4.0 (636558520).

    At this point, since I was on a TWRP-able OS, I just started over with step-1.sh and step-2.sh and was able to get where I ultimately wanted to be. I'm running SlimLP. Thanks to everyone who has worked through how to make this happen.

    Thank you sir! I thought 9920 was beyond saving so I did not bother. But after reading your post I decided to give it a try and the process was actually easier than I thought!

    Here's exactly what I did

    1. Code:
      adb reboot bootloader
      to put into fastboot
    2. Run
      Code:
      brick-9820.sh
      (yes, 9820. I tried brick.sh and it didn't work). In this step I actually got an error message on my computer, but it's OK as long as the DEVICE itself tells you to power off on the tablet screen. Power off and unplug the cable.
    3. Run
      Code:
      bootrom-step.sh
      , NOT the minimal one. Plug in the cable again. It'll reboot at the end but your screen would stay blank.
    4. Run
      Code:
      fastboot-step.sh
      , that's it I'm in TWRP !

    As a side note other than the brick step I actually ran the rest (1, 3 and 4) on a Mac (since I already got adb on it and did not want to setup the whole Android SDK on my Linux box again). The brick step I guess you have to be on Linux since the hacked fastboot only came as ELF in the zip. To run bootrom-step on Mac, simply comment out the modemanager check in main.py.
    6
    @willgaj did you enter bootloader mode on the Fire ? Powerdown and then Press VolUp + Power, wait until you see "Enter Recovery" , then select "Bootloader".

    Heres how it worked out for me:

    Files I used:

    amonet-douglas-v1.2.zip from first Page of this Thread:
    https://forum.xda-developers.com/attachments/amonet-douglas-v1-2-zip.4845269/
    Unpack the Archive to a separate Folder.

    brick-douglas.zip from first Page of this Thread:
    https://forum.xda-developers.com/attachments/brick-douglas-zip.4825253/
    Unpack the Archive to a separate Folder.


    MTK-su (i used te 64 bit) from here:
    https://forum.xda-developers.com/t/rapid-temporary-root-for-hd-8-hd-10.3904595/
    Unpack and copy to the MTK-su from the 64 Bit folder to the “bin” folders of the previous unpacked folders.


    Unlock steps:

    1. Reboot FireHD8 to Recovery (Power Off device, then hold VolUp + Power)

    2. Select Facotry Reset then Wipe Cache

    3. Reboot to Bootloader

    4. You will see the balck screen with “Fastboot” in the lower corner.

    5. Open Terminal from “brick-douglas” folder an enter “sudo ./brick.sh
    6. Check Display output for the “Disconnect USB and Powerdown” Message and do so when prompted
      (If theres an Error see below Step 12)

    7. Open Terminal from “amonet-douglas-v1.2” foder.

    8. Enter “sudo ./bootrom-step.sh"

    9. Reconnet USB

    10. Wait until the bootrom step is finished

    11. Enter “sudo ./fastboot-step.sh”

    12. You will end up in TWRP

    If theres an error let the FireHD Reboot and do the “Apps and Data Optimization” at the Welcome Install Screen Powerdown the FireHD and enter Bootloader again.
    • Open Terminal from “brick-douglas” folder
    • Enter “sudo ./brick-8920.sh”
    • Check Display output for the “Disconnect usb and powerdown” message and do so when prompted.
    • Enter “sudo ./bootrom-step.sh
    • Reconnet USB
    • Wait until the bootrom step is finished.
    • Enter “sudo ./fastboot-step.sh"
    • You will end up in TWRP


    Lineage OS installation:

    Prepare a Micro SD Card with: Lineage OS (Search the forum for the douglas (FireHD 8 7.Gen) or suez (FireHD 10 7Gen) Version, Gapps (ARM64, 7.1, nano) and Magisk and insert in FireHD.

    In TWRP Format Data and Wipe data, system, cache.

    Install Rom, gapps and magisk

    Reboot to Lineage OS



    Hardware Method:

    If you got stuck somewhere in the middle or the Exploit doesn’t work try the hardware method.

    I somehow bricked my HD10 , I think I disconnected the USB because I was to unpatient.

    For the Hardware method, you need to open the Tablet, use a prytool or a Creditcars / Knife to remove the backcover, just gently pry around the bezel until the screen pops out.

    You need to unscrew the mainboard and gently flip it over , on the HD10 I didn’t had to remove any wire , just be carefull with the speakers and put a piece of cardboard or plastic on the back between the mainboard and battery so it will not shorten or puncture the battery.

    Find the CLK pin (theres several pictures on the forum for your specific device) use a piece of wire or paperclip to shorten from a ground plane or the SD Card slot housing to the clock pin. This works best if you got someone that will help you.

    • Connect USB to the Tablet, but leave it unplugged on the Computer side.
    • Make sure the Tablet is powered down (Press and hold Power button for 30 seconds)
    • Open Terminal from “amonet-douglas-v1.2” foder.
    • Enter “sudo ./bootrom-step.sh”
    • Now shorten CLK to ground and hold it.
    • Ask a kind person to plug in the USB cable on the Computer now.
    • The Terminal will tell you to remove the wire when ready.
    • Press enter and wait for bootrom-step.sh to finish.
    • If an error during bootrom step occurs , just retry
    • After bootrom step is finished, enter “sudo ./fastboot-step.sh”
    • You will end up in TWRP

    PS: I directly installed LOS 14.1 on the HD8 , on the HD10 i i used LOS 12.1 because LOS 14.1 is missing Camera Support on the HD10 in fact loosing the camera shouldnt trouble too much as the picture quality is horrible anyways. As for now I am happy to have a running Android on the tabs and don´t need to worry amazon giving me headaches every few weeks when updating CrapOS and redndering my configuration unuseable , i got 14 HD8/10 deloyed around the house as input devices for Homeautomation (running Habpannel).

    One thing to mention when switching to LOS, is that you can´t use apps that need to be certified anymore, like Netflix, Banking etc.

    Good luck!

    PPS: Thanks a lot to k4y0z and his fellas for the great job!


    opec