yashsingh1/xdaforums huggingface dataset:
[Kindle Fire HDX 7" & 8.9" General] Cl4ncy:
With 3.2.4 & Safestrap 3.75 you can downgrade to 3.1.0 using the downgrade images provided by [MENTION=5749760]ggow[/MENTION]. Check page 2 here (page 1 is about 3.2.5/3.2.6 users who can NOT use these images!). Then flash TWRP, update the bootloader to 3.2.3.2, unlock the bootloader, then use ROM of your choice.

Read the info, ask if you've any questions before you brick your HDX! Note that factory reset in Safestrap means the standard wipe only (wipes data, cache & dalvik only)! Do NOT go into advanced wipe, do NOT wipe System!

Be sure to make backups of your current system (even if you don't need it anymore), remove the secondary slot(s) in Safestrap to get back the storage used by it (if you created any), and after installation of TWRP create a backup of your Fire OS before you flash any custom ROM. Read the installation notes and requirements carefully!
[Kindle Fire HDX 7" & 8.9" General] taette:
ok i found an image in my twrp which brings me to 3.1.0

now i upgrade my bootloader to 3.2.3.2 and unlock the bootloader with which method?

after that i'm able to flash my roms :)
[Kindle Fire HDX 7" & 8.9" General] DB126:
Try the 'one click' tool from this thread as it automates much of the procedure. If that fails you can always fall back to the 'classic' method which is tedious but time proven. There is no risk in unlock attempts; it either works or doesn't.
[Kindle Fire HDX 7" & 8.9" General] CrashThump:
I'm sorry for bumping the thread.

So why is there an "unsupported" warning for my HDX 8.9 3rd gen?

B01807063472069F -- **UNSUPPORTED** (apollo/KFAPWI/apollo)

but in fact:

Forging unlock image for the device (B01807063472069F)
ok
Rebooting the device (B01807063472069F) to the bootloader
ok
Waiting until the [fastboot] prompt appears on the device (B01807063472069F)
ok
Flashing unlock image to the device (B01807063472069F)
target reported max download size of 1073741824 bytes
sending 'unlock' (0 KB)...
OKAY [ 0.093s]
writing 'unlock'...
OKAY [ 0.070s]
finished. total time: 0.163s
ok
[Kindle Fire HDX 7" & 8.9" General] brainwash123:
On my machine (Win10, Oracle VirtualBox 5.0.10) the image does not boot.

It says:

and just remains stuck there, CPU is not seeing any usage.

I've played a bit with the VM parameters, deleted and reinstalled the VM but still get the same thing.

I have to mention I'm actively using VirtualBox with some other images I have (>5) and it works fine with them.
[Kindle Fire HDX 7" & 8.9" General] draxie:
Oops...

Well.. that's because I have the LTE version and you have the WiFi-only version,

*and* I was sloppy enough not to realize that these differ in the last letter of

their Build.MODEL. Sorry...

I'll fix this cosmetic, but -quite possibly- distressing oversight ASAP.

Thanks for reporting back! This is the type of issue I would never have noticed...

I've posted a version that should fix the UNSUPPORTED issue.

Would you be able to test? (I don't have a *WI device...)
[Kindle Fire HDX 7" & 8.9" General] draxie:
Previously, I had only tested this with 5.0.8, but I've just downloaded 5.0.10

and on a Windows 10 (home/32-bit) test box everything works as expected.

Since you're not even expected to see what you tell me you are seeing,

I think you may have decided that you are too advanced to run the batch file

(which sets up the correct VM parameters before launch) and tried to use

the iso directly. Of course, that's possible as well, but -to keep the size down-

this image has only a serial console, no graphics; so, you'll need to configure

accordingly. What you are seeing is the VGA output, which should be blank. (-;

I'd just try the batch file, if I were you (or, at least, take a look to see the right

parameters).
[Kindle Fire HDX 7" & 8.9" General] brainwash123:
I've used the batch file to set up the VM and it worked without errors. It even set up the USB filter correctly, I can hear the Kindle being disconnected from my machine when the VM boots. But I will play with it some more, it might be that I have a particular setup.

I don't know where to start though, hanging while the kernel is loading is not something I had to deal with.
[Kindle Fire HDX 7" & 8.9" General] draxie:
Just so that we're on the same page, *where* (i.e. in which window, by title) are you seeing that message?

The batch file is supposed to launch 'puttytel' (included in the ZIP archive) to connect to the VM's serial port.

I don't think the message you describe should be showing up there. That sounds more like what you'd see

on the VGA output before the kernel switches console to the serial port. (Which also means it's not hanging,

it just uses a console you're apparently not connected to. From here, I can only wonder why.)
[Kindle Fire HDX 7" & 8.9" General] brainwash123:
The message is seen when starting the VM in normal (i.e. not headless) mode.

I've added a few debug instructions and the failing part is this:

c:\Temp\6\1-Click>powershell "[System.IO.Directory]::GetFiles('\\.\pipe\')"
Exception calling "GetFiles" with "1" argument(s): "Second path fragment must not be a drive or UNC name.
Parameter name: path2"
At line:1 char:1
+ [System.IO.Directory]::GetFiles('\\.\pipe\')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentException

So I assume it's a setup problem with the serial port<->pipe redirection. However I'm not proficient enough to know how to deal with this. I've tried using \\localhost\ instead of \\.\ but then I get a different error.

Using the original batch file it just loops as this command is never without error:
[Kindle Fire HDX 7" & 8.9" General] draxie:
Alright, then I think we have established without any doubt

that the symptoms you reported do not apply when 1-Click

is used the way it was intended. That' s not a problem, but

I prefer to work with trying to fix the original batch file, since

I have no idea (and, you might not remember exactly) what

you may have changed.

Again, the command you show would never be issued by

1-Click.bat; at least, not in that exact form you were trying.

Unfortunately, powershell has incompatibilities between

its different versions; hence, depending on what version

you've got installed, the command-line arguments to

powershell in 1-Click.bat may actually be important.

Can you also try the variant the batch file uses (and,

I've tested on my boxes):

powershell -version 2.0 -command "[System.IO.Directory]::GetFiles('\\.\pipe\')"

Additionally, if you want to debug the script, you should

just type "rem " before "@echo off" on the first line, and

you'll get every line printed as it executes..

Maybe, or maybe not.. it's difficult to tell without seeing

the actual output from the original script. Although, your

assumption does make sense, considering that you never

see ' puttytel' showing the serial console.

If that is so, then you should be able to start 'puttytel' manually

to connect to the serial console while the script is looping by:

puttytel -serial \\.\pipe\1-Click

If the original script doesn't work for you, and you need more help,

I'd appreciate if you could cut&paste the output from the batch file

with '@echo off' commented out (with 'rem ') or that line deleted.

Just a side remark: I really don't understand why VirtualBox

doesn't implement redirecting the serial port to the current

terminal (which works like a charm on both Linux and OSX

using '-uartmode /dev/tty'; I expected '-uartmode CON:' to

work on Windows, but -unfortunately- it does not).

That would get rid of both 'puttytel' and the powershell

nonsense for waiting until the pipe appears...

I'm seriously considering adding this functionality to VBox,

although -given how little time I have these days- it may

take a [long] while before that happens...
[Kindle Fire HDX 7" & 8.9" General] crhisguzman:
Hello!! Works like a charm! Thanks @draxie for all your help!!! Great tool!!!
[Kindle Fire HDX 7" & 8.9" General] nerderous:
Worked with ease, damn fine utility draxie, good sir! Thanks for your effort. Got Lineage 16 hummin' right along, didn't even have to brush up on my adb/fastboot commands(y)
[Kindle Fire HDX 7" & 8.9" General] sol-invictus:
@draxie

Sorry to ask this (maybe stupid) question but shouldn't there be an attachment in the first post? Maybe it got lost when xda moved the forum platform and/or the edit afterwards?

I'm missing this linux friendly unlock solution for the thor device! :)
[Kindle Fire HDX 7" & 8.9" General] sol-invictus:
@draxie

Ok, I found now my problem with the first post. It is a mix of this new theme and the font color and my screen. I missed the violet instruction to send you a PM with the OS host information. Mea Culpa! :) Maybe you could change the font color to increase the abstraction and visibillity from the new standard theme? :)
[Kindle Fire HDX 7" & 8.9" General] Shaka1999:
please, i have VirtualBox6.1

thank you!
[Kindle Fire HDX 7" & 8.9" General] rahimali:
please share link i have sent PM. i'm bricked / stuck in fastboot. i'll be using ubuntu. please consider making this utility publicly available without the need for PM because people like me might go crazy waiting for a reply from the OP. Thanks!
[Kindle Fire HDX 7" & 8.9" General] sol-invictus:
Thanks @draxie! It worked! :) Where can I donate? :)

P.S.: I had problems that it wanted always to add my user to the virtual box group and after that it exited. I removed one exit 0 and after that it worked!
[Kindle Fire HDX 7" & 8.9" General] draxie:
That shouldn't be necessary.

Have you tried answering the question "Fix? [Y/n] "

by simply pressing 'n' on your keyboard?
[Kindle Fire HDX 7" & 8.9" General] sol-invictus:
:D That would probably have done the trick too!
[Kindle Fire HDX 7" & 8.9" General] HDXgamer:
Thanks very much @draxie - a painless way to install TWRP.

(y):cool:
[Kindle Fire HDX 7" & 8.9" General] holeshot77:
@draxie Apollo HDX 8.9 Chrome OS. if that doesnt work, I will get virtualbox.

EDIT: have virtualbox 6.1
[Kindle Fire HDX 7" & 8.9" General] biwuchen:
could you send me a link please?
[Kindle Fire HDX 7" & 8.9" General] ShyGuy27:
Could you please send me a link for Thor with Lubuntu 19.04. Thanks!
[Kindle Fire HDX 7" & 8.9" General] mahar shoaib:
Where to download files.. link please
[Kindle Fire HDX 7" & 8.9" General] Neggolnie:
Worked perfektly well. For those who may concern, I used Linux Mint 20 as an operation system and Virtualbox 6.1. Many thanks to draxie for developing this nice tool.
[Kindle Fire HDX 7" & 8.9" General] krassygnoll:
Hey draxie, thank you for working dilligently on this. I am running Kubuntu 20.04 but have access to a few different distros if you wanted to test it somewhere else. I have Virtualbox running successfully underneath it.

I just made my account today, but I've been lurking for about a decade. Rooted a few phones and a Shield TV in the past utilizing this forum. Just trying to breathe some life into an old Kindle I dug up. Thank you so much!

---

EDIT: Just checking, is there any advantage/disadvantage to manually unlocking the bootloader in some way? I'm hitting more Windows drivers/guides but can keep digging.
[Kindle Fire HDX 7" & 8.9" General] scops:
All fine here after some problems with (i think) corrupt file systems. i just had to first unlock it and not format it with the 1-Click tool. after that it booted up nicely in twrp; i formated all partitions and now i have LOS 16 on my old kindle! Thanks a lot.
[Kindle Fire HDX 7" & 8.9" General] leoluo2008:
Where to download files.. link please. BTW i have a Windows HOST OS
[Kindle Fire HDX 7" & 8.9" General] leoluo2008:
I have a Windows HOST OS, where to download ? link please.
[Kindle Fire HDX 7" & 8.9" General] rahimali:
the instructions in the OP are very clear. this will not work on Windows.
[Kindle Fire HDX 7" & 8.9" General] DB126:
Instructions in OP also state to PM; no links. Clearly not reading ....
[Kindle Fire HDX 7" & 8.9" General] mbuck2019:
Hi,

I have acquired a Kindle Fire HDX 8.9" 3rd Gen 64GB Wifi + LTE. I would like to get rid of FireOS 4.5.5.3. Is there any ROM that supports LTE ? I have successfully replaced FireOS by AospExtended-v4.6-thor in the past on a HDX 7" (non-LTE) but this time I have a 8.9" version with LTE. Before I brick the device, I just want to know if anyone has done it and get LTE to work.

Thanks a lot

m
[Kindle Fire HDX 7" & 8.9" General] PokeFan919:
Thx. The tool worked
[Kindle Fire HDX 7" & 8.9" General] superbloomie:
Appreciate you publishing this -- tool works great (after I re-read the instructions and actually followed them!)

Happy to finally put my old HDX back to use as an excellent home assistant tablet with fully kiosk browser.
[Kindle Fire HDX 7" & 8.9" General] mbuck2019:
Hi, I've got a KFHDX 7 32GB (3rdGen) on which I have replaced FireOS 4.5.5.3 with LOS16 using the 1-Click method from Draxie. The annoying issue I've been struggling with is the tablet keeps freezing randomly. I know it's not related to memory as it freezes also in TWRP recovery main screen (I can swipe halfway and it jerks back). I have tried to replace LOS by AOSPExtended4.6, same issue. I decided to give up and go back to FireOS 4.5.5.3, but, at some point I had tried to wipe everything (including system) when trying to fix the freeze. So I lost my FireOS backup. Now I don't have Amazon System Recovery (3e) when booting into fastboot. I have tried to put the FireOS firmware on the device renaming it from .bin to .zip and used TWRP to install it, it won't do it - it complains about the device is an omni-thor whereas the update is a thor. I could not find a workaround for that on the forum. Can somebody kindly let me know the steps to revert back to FireOS 4.5.5.3? Thanks a lot for your help.
[Kindle Fire HDX 7" & 8.9" General] draxie:
I'm trying to attach my back2stock script without much success...

Alright... putting it in a ZIP archive did the trick...

NB: this goes fully stock, including recovery (i.e. you'll lose TWRP).
[Kindle Fire HDX 7" & 8.9" General] mbuck2019:
Thanks a lot Draxie! So I take it I can use the current TWRP 3.5.0_9.1 to install that zip? Is that right?

cheers

Update: Ok, I opened up the script, so it looks like I just have to open up a terminal window in TWRP and execute back2stock UPDATE.BIN (where UPDATE.BIN = update-kindle-13.4.5.5_user_455007020.bin) , that's it? Sorry, just being careful before I cause chaos :)
[Kindle Fire HDX 7" & 8.9" General] draxie:
I'd surely hope so; although you should start

with the Kindle booted as normal

(i.e. NOT in recovery/TWRP).

The script uses adb to communicate with both the normal Android-like OS (FireOS, LOS, etc.)

and TWRP and as such it should be run on a box with a Unix-like OS (Linux/MacOS/WSL) and have

bash, adb, and zip/unzip installed.

The tablet itself should be in normal OS mode to start with,

but it will get rebooted to TWRP during the process.

BTW, if all you want is a way to tweak the original update so that TWRP won't refuse to install it,

then extract META-INF/com/google/android/updater-script, remove any line

starting with getprop, and refresh the archive with the updated script.

Essentially that's what these lines do (with variables properly set, followed by a clean-up)

# remove device checks, since ROM:s tend to change model name
unzip -u -o "$1" $u
sed -i '/^getprop/d' $u
zip -u "$z" $u
[Kindle Fire HDX 7" & 8.9" General] mbuck2019:
I'm getting this permission error below. I can't see where it's doing a chmod in the script. Ideas?

$ ./back2stock UPDATE.BIN

+ '[' -r UPDATE.BIN ']'

+ u=META-INF/com/google/android/updater-script

+ p=recovery/recovery-from-boot.p

+ d=system/etc/recovery-resource.dat

+ a=boot.img

+ t=/data/local/tmp

+ e=/sdcard/rec.img

+ z=UPDATE.BIN.zip

+ x=mv

+ (( 1 < 1 ))

+ x='cp -u'

+ cp -u -v UPDATE.BIN UPDATE.BIN.zip

'UPDATE.BIN' -> 'UPDATE.BIN.zip'

+ unzip -u -o UPDATE.BIN.zip recovery/recovery-from-boot.p system/etc/recovery-resource.dat boot.img

Archive: UPDATE.BIN.zip

signed by SignApk

inflating: boot.img

inflating: recovery/recovery-from-boot.p

inflating: system/etc/recovery-resource.dat

+ for i in p d a

+ adb push -p recovery/recovery-from-boot.p /data/local/tmp/p

recovery/recovery-from-boot.p: 1 file ...hed. 4.2 MB/s (435857 bytes in 0.100s)

+ for i in p d a

+ adb push -p system/etc/recovery-resource.dat /data/local/tmp/d

system/etc/recovery-resource.dat: 1 fi...d. 11.3 MB/s (1286910 bytes in 0.108s)

+ for i in p d a

+ adb push -p boot.img /data/local/tmp/a

boot.img: 1 file pushed. 6.7 MB/s (7831552 bytes in 1.113s)

+ unzip -p UPDATE.BIN.zip recovery/etc/install-recovery.sh

+ read -a x

+ case ${x[0]}${x[1]} in

+ read -a x

+ case ${x[0]}${x[1]} in

+ read -a x

+ case ${x[0]}${x[1]} in

+ read -a x

+ case ${x[0]}${x[1]} in

+ x[2]=/data/local/tmp/d

+ x[3]=/data/local/tmp/a

+ x[4]=/sdcard/rec.img

+ x[7]=c9f4d9810aea3b8757c134a4a225b6f4b14d237b:/data/local/tmp/p

+ adb shell touch /sdcard/rec.img

+ adb shell applypatch -b /data/local/tmp/d /data/local/tmp/a /sdcard/rec.img 5fa6a58da1ef09fa62f5cc6bd275543b1852e210 9590784 c9f4d9810aea3b8757c134a4a225b6f4b14d237b:/data/local/tmp/p

patch /data/local/tmp/a: now 5fa6a58d

chmod of "/sdcard/rec.img.patch" failed: Operation not permitted

FYI

$ adb shell ls -l /sdcard/rec*

-rw-rw---- 1 root sdcard_rw 0 2021-08-03 16:38 /sdcard/rec.img

-rw-rw---- 1 root sdcard_rw 9590784 2021-08-03 16:38 /sdcard/rec.img.patch

Looks like it's failing to overwrite rec.img by rec.img.patch ??

adb shell mv $e.patch $e
[Kindle Fire HDX 7" & 8.9" General] draxie:
I think that chmod is internal to the applypatch command.

I also believe that the error is inconsequential, except possibly that it stops the script due

to the -e flag requesting to abort on error. Try tagging on || :

at the end of the offending line (#40), and try again. In other words line 40, should look like this:

adb shell "${x[@]}" || :

BTW, I also re-uploaded a new version with that change above; so, you could grab that instead.
[Kindle Fire HDX 7" & 8.9" General] draxie:
No, actually, it never gets that far... it fails on the line before.

BTW, on LOS16, I'm getting an even funkier error message...

So, I guess the "right" way to structure the script _could_ be to first install

the tweaked ZIP to get FireOS back, and use the original applypatch

command to fix recovery. AND, I suppose the latter could be made optional,

in case people prefer to keep TWRP instead (a wise choice, unless preparing to re-sell...)

Of course, doing so would require extra reboots which tend to freak out people.
[Kindle Fire HDX 7" & 8.9" General] mbuck2019:
Looks like it completed successfully. It rebooted in TWRP and all I did is I rebooted the kindle. It then started the FireOS and run through the setup. I think I have a hardware issue with this device. It's not responding to touch - it's erratic. I have to tap several times and even it won't type in my amazon's email address in one go. As if the digitizer has gone mad.

This "freezing" issue started after I had patch the device with LOS 16 for Thor. I had to go back to LOS 14 as I noticed the freeze. After that, I could not fix that freezing issue. By the way, before I used 1-Click (which worked flawlessly on 2 other devices I had done before), this device was working well without the freezing issue. Tbh, I don't know what could have happened. I thought going back to FireOS would resolve the problem, but sadly not.

I will paste the outputs of back2stock next (for reference).

Thanks a lot Draxie. If there is anything you can think of that would help, do let me know.
[Kindle Fire HDX 7" & 8.9" General] draxie:
Hmm.... I'm wondering what kind of HW issue you may be having.

Have you seen this relatively recent thread on touchscreen issues?

I don't suppose that would present itself as a "freeze", though...

BTW, I've just reworked the back2stock script,

but I have no desire rolling back my Kindle; so, I'm attaching it here

for anyone who feels compelled to test... As usual, no warranties.
[Kindle Fire HDX 7" & 8.9" General] mbuck2019:
Oh, I haven't seen that thread before. Yes, this is exactly what I am experiencing.

Even now after putting FireOS back, it has become worse. The device is basically unusable. It would seem the digitizer has been infected. At the moment, I can't do anything with the device, although it boots up. It's not responding to swipe, very erratic. Also, I forgot to say, it keeps complaining I'm not connected to the network and prompts me to register, but the Wifi is connected.

I think I won't be able to execute the back2stock (v2) as it doesn't have TWRP. I would have thought the bootloader would go back to Amazon recovery on Power+Vol down, but it keeps looping on the Kindle Fire logo.
[Kindle Fire HDX 7" & 8.9" General] mbuck2019:
I'm looking at the thread you gave me, but I need the synaptic for thor. This link is bringing me to apollo's :

synaptics-dsx-v2.1/firmware at master · ggow/synaptics-dsx-v2.1

Synaptics DSX v2.1. Contribute to ggow/synaptics-dsx-v2.1 development by creating an account on GitHub.

github.com

Is there a way you can get me the file Synaptics.3.B.thor.img ?

Thanks a bunch
[Kindle Fire HDX 7" & 8.9" General] draxie:
You can use 1-Click (again) to install TWRP (and a ROM, if you like, since that

does NOT seem to be the root cause of your issue).

You'll have to do that yourself, but there's definitely a way.

First of all, I'm not at all sure that you need the 3.B variant for Thor,

but you'll find it in IHEX format here. If that doesn't work, there are

a number of different variants in the same directory.

To convert IHEX to binary, there are literally a zillion alternatives.

If you're on Linux, objcopy works as described here.

You could also use this online utility, which supposedly runs entirely

in Javascript in your browser...
[Kindle Fire HDX 7" & 8.9" General] mbuck2019:
Yes, you are right. I was worried that I lost connectivity to the kindle as I won't appear when connected to the laptop. But I reran 1-Click and got TWRP back and was also able to apply AOSP.

With regards to the .hex, I saw the objcopy example in the README after my post. The only thing I wasn't sure if the .img was a .bin which was renamed to .img to run the command:

./synaptics_fw_updater -v -f -b Synaptics.3.B.thor.img

I have no idea of the different variants for thor, but I'll have a go and see if fixes it.

Thanks a lot. I will provide an update asap.
[Kindle Fire HDX 7" & 8.9" General] mbuck2019:
Ok, I have run synaptics_fw_update like so :

thor:/data # ./synaptics_fw_updater -v -f -b Synaptics.3.B.thor.img

Checksum in image file header = 0x671d0d20

Checksum computed from image file = 0x671d0d20

Sensor sysfs entry: /sys/class/input/input0

Image file: Synaptics.3.B.thor.img

Starting firmware update...

Force reflash

Firmware update finished...

Elapsed time = 67.991770 seconds

thor:/data #

rebooted, AOSP came up and seems to have fixed the touch screen, but, then I noticed that when I tried to start typing in my login to connect to wifi, it types random letters by itself. If I rebooted into TWRP, the symptoms is still there , i.e I can swipe halfway and it jerks back and won't complete. I have to restart a couple of times until the full swipe works.

I have tried to flash a couple of vairant of the thor .hex (2B, g) but no difference.
[Kindle Fire HDX 7" & 8.9" General] mbuck2019:
Update: I have tried all variants of Synaptics.X.y.thor.img after converting the .ihex on http://matrixstorm.com/avr/hextobin/ihexconverter.html , rebooted the device. I noticed the problem "seems" to go away in portrait mode, but in landscape, i have to swipe multiple times until it works. However, the issue would come back soon after. Interestingly, if I pulled the virtual keyboard, I find sometimes only the first line (quertyuiop..) works the first time when typing, but not the second or third line of the keyboard.

I have a 2nd kindle HDX 7 (but 16GB) which is running AOSPExtended flawlessly. Is it possible to restored a backup of the 16GB on this 32GB problem device? I did try a backup on TWRP and restore the .img on the device but it did not resolve the issue.