[Kindle Fire HDX 7" & 8.9" Android Development] draxie:
The attached archive includes 3 tools for those of you with .3.2.3.2 (or earlier) bootloaders.

Since other tools (and earlier version of these very tools) are available and working well,

this is mostly meant as an entry to an imaginary beauty contest. (JOKING!!!)

cuber.py

a generic gmpy2-free reimplementation of [MENTION=4450207]vortox[/MENTION]'s signature.py

use this to generate your unlock.img

cuboot.py (uses cuber.py)

a Python-only reimplementation of [MENTION=4450207]vortox[/MENTION]'s cuber

includes fixes to the kernel command-line and the device-tree

use this to convert a standard Amazon boot.img (>=.4.x.x)

upHDX (uses cuboot.py)

bash script to repack Amazon updates for TWRP

could be DANGEROUS, use with care

tested on Apollo for both 14.4.5.2 and 14.4.5.3

my unit is fully 14.4.5.3 now, except for aboot (which is 3.2.3.2)

should work on Thor as well

Those with bootloader .3.2.6 and lower can downgrade to .3.1.0

and upgrade the bootloader to the latest vulnerable version .3.2.3.2.

Those with .3.2.7 and higher appear to be out of luck with forged signatures, but I hear there's progress on rooting .4.5.2.

The python scripts have been tested on the following OS / Python combinations:

Windows: 2.7.9 and 3.4.3

Linux: 2.7.9 and 3.3.4

OSX: 2.6.? (cannot quite remember)

In addition to the tools themselves, I also included "educational" examples

(examples.sh for Linux/OSX, examples.bat for Windows).

These make use of the split.py script, which is otherwise unnecessary.

(The Windows example also shows that simply echoing your manfid/serial

combo to cuber.py -the way one does in Linux/OSX- won't work due to

the carriage-return character introduced by the echo command.

You'll need to handcraft a file matching the '0x%02x%08xn' format...)

Another batch file py..bat is meant as an extra aid for Windows users

to avoid trouble with setting paths and such. You should be able to simply

download and install your preferred Python version.

Open a command shell (cmd.exe), navigate to wherever you extracted the

archives, and type 'py PYTHON-SCRIPT ARGS' to run the Python scripts.

(This handholding intentionally does NOT work for the upHDX script.)

Hopefully, someone will find these simple tools useful.

EDIT: To unlock your bootloader (<=.3.2.3.2), you'll need adb and fastboot.

On Linux, most distributions package these separately. Look for android-tools-{adb,fastboot} or some such.

For Windows, you can get these from the official Android SDK (which is a **large** download,

with a lot more tools you won't need, if you don't already use them, but it's safe).

Alternatively, there's a very legit-looking project here an XDA, with a much smaller

download, fast install, and exactly the tools you need. I haven't used either... (-;

The actual unlock procedure is described here and here.

EDIT#2: I added another script 'cublock.py' to make unlock.img generation super easy both on Windows and Linux.

MD5( tools.zip) = c17fc91344bd3b4b040129a79a39741f

EDIT#3: Fixed issues with older versions of certain tools on Debian 7.

MD5( tools.zip) = 4f93ab667fd61db26c83675ce0bd6d9f

EDIT#4: Fixed a bug when 'cuber.py' is used directly from the command line.

MD5(tools.zip) = 67b4a6d65aa2b0aa3500b122c8a25290View attachment 3210856

XDA:DevDB Information

HDXtools, Tool/Utility for the Amazon Kindle Fire HDX 7" & 8.9"

Contributors

draxie

Version Information

Status: Alpha

Created 2015-03-13

Last Updated 2015-03-13