yashsingh1/xdaforums huggingface dataset:
[Kindle Fire HDX 7" & 8.9" General] draxie:
If you only followed the steps in the bulk mode post,

then you should have a vulnerable bootloader, but it's

still locked. Note, however, that you can skip step 2 in

the unlock thread. That's effectively what bulk mode

accomplished for you. If you had generated an unlock

code before (i.e. step 1), all that's left is unlock.bat ...

---------- Post added at 11:22 ---------- Previous post was at 10:24 ----------

I have not done a thorough analysis of KingRoot myself,

but I have a healthy dose of paranoia and I've seen too many

threads reporting issues due to KingRoot that I perfer to stay

away from it.

The chances of bricking your device following the bulk mode

route depend entirely on your ability to copy & paste and

follow instructions. It's easy to make stupid mistakes.

I got a bit too confident that I had the method under control,

since I had just tested it in Windows and everything worked fine.

When I tested it from Linux, and it didn't quite work at first, that

got me confused. I figured out that this depended on caching

and pushing data to the device to fast; so, I added 'oflag=direct'

to the 'dd' command-line to flash 'aboot' and rebooted right away

to test, only to realize that I had forgotten to also flash TWRP...

So, I ended up with a *locked* vulnerable bootloader with no way

to get into 'fastboot' mode to unlock (since neither boot/system,

nor recovery is working). I *will* unbrick this device eventually,

but the effort involved is non-trivial at the moment (although a

leak of the _new_ flash programmer would make it trivial).

Right, 4.5.5.3 is too new to have received any reports, but now

that the links are up on Amazon's relevant pages, I'll download

those, examine what changed (likely fixes for KRACK only), and

-if things appear sane- I'll test on my own device. Hang tight!

I do have scripts, but those are packaged in a VM and expect

to be driven from a browser. This 1-Click approach works fine

in Mac OS, but didn't work on Windows last time I checked.

Honestly, I don't quite recall if I had even tested in Linux.

I think it used to work with KVM, but not with VirtualBox.

I'll need to check again and get back with a definite answer.

A lot of questions feel stupid once you know the answer.... (-;

If you have a Thor, you'll need aboot-13.zip.

Yes. And, 1-Click does all of that for you automagically.

(It flashes a castrated version of the latest FireOS, which

_should_ work without wiping your data, but you can

always just flash anything else on top, if you so desire.)

If it works on your system, that is.

---------- Post added at 11:27 ---------- Previous post was at 11:22 ----------

Personally, I'd go with 1-Click... You can get a 'preview' for Mac OS.

If you don't have access to a Mac, use my bulk mode post referenced above.
[Kindle Fire HDX 7" & 8.9" General] derBoNostar:
Finally got it! :good:

Thanks a lot!

After sleeping over it all I finally went your unlocking-by-bulkmode-route with a slightly different approach from https://xdaforums.com/showpost.php?p=72971564&postcount=113

I directly started with my corrupted and factroy resetted FireOS 4.2.5 without enabling WiFi and gave a **** about Kingroot (cause no need of it with bulkmode ;) ).

Except some minor driver issues and a little struggling with fastboot and recovery, I got it all going and unlooking went successful after all.

Then I flashed latest 7.1.2 AospExtended and GApps Nano and now I'm "geflashed" myself about how easy it was, wondering why the whole unlocking stuff almost made me chicken out. :laugh:

After all was up and running, yesterday evening I only did some basic setup within AOSPExtended and slightly played around with it but I'm already like "WOHAAA"! I'm sooo happy having a "new" device thats quite state of the art (again) now! I can't wait to leave the office today to play a little further when at home!

Thanks again to all folks for giving such valuable support and for contributing so much in detail!

Although it's sometimes a little confusing getting through all those threads and posts for picking up certain pieces that might address individual needs. ;)
[Kindle Fire HDX 7" & 8.9" General] matt_heynes:
[MENTION=5828306]draxie[/MENTION]:

Thanks a lot for the very insightful reply, and thanks even more for offering to test 4.5.5.3 on your own device! I'll make sure to stay tuned to this thread to see how it works out.

So, if the new firmware does turn out not to be a problem, you would recommend I just boot into Windows and follow your original instructions, instead of treading on somewhat new ground with Linux, right? Do you think it makes any difference if I do this on Windows 7 or 10?
[Kindle Fire HDX 7" & 8.9" General] DB126:
Although directed at [MENTION=5828306]draxie[/MENTION] I'll add a few comments for flavor:

- I have a fair bit of experience with Kingroot; while borderline malware I've yet to see it survive a partition wipe which is a near prerequisite for custom ROM installation; nor have I observed it 'leaking' personal data, although it certainly has the means for doing so; a fair bit of FUD surrounding this tool

- I expect Kingroot will be effective against FireOS 4.5.5.3 although in may take multiple attempts (typical behavior w/FireOS)

- securing 'root' and installing a vulnerable bootloader via "bulk mode" is not that scary provided instructions are carefully followed; boils down to personal confidence/comfort working in a command ('line mode') environment

- installing (flashing) a vulnerable bootloader and TWRP is not difficult once root has been obtained. Subsequently unlocking the bootloader is also easy once past annoying driver issues which occur mainly with Windows hosts
[Kindle Fire HDX 7" & 8.9" General] Yousucks2:
Could someone reupload TWRP files (For Thor) ? Google link is broken.

Or quote the new DW link, i read 10 pages and i can't find a new one, thank you.
[Kindle Fire HDX 7" & 8.9" General] DB126:
Use this for now.
[Kindle Fire HDX 7" & 8.9" General] Yousucks2:
Thanks for the quick repply,but that method works on the lastest update? My hdx 7 received 4.5.5.3 last week, i already rooted with kingroot,dont want to brick it if the method hasnt been tested on this build , i did a succesufull bootloader unlock with ADB method of this thread on the past, so i want use it again

Otherwise i wait for the files or some opinions on the same case,before try to procede

Again thanks for the repply
[Kindle Fire HDX 7" & 8.9" General] navmad:
What about the twrp recovery image?
[Kindle Fire HDX 7" & 8.9" General] mcasara:
Which aboot file should I use for HDX 7, aboot-13 or aboot-14?
[Kindle Fire HDX 7" & 8.9" General] matt_heynes:
Here you go: https://xdaforums.com/kindle-fire-hdx/development/recovery-twrp-3-0-0-0-t3322547

You'll need aboot-13 for a Thor (HDX 7").
[Kindle Fire HDX 7" & 8.9" General] DB126:
No reason to believe this will not work with the latest HDX OTAs from Amazon (aka FireOS 4.5.5.3). The aboot that gets flashed was first seen with FireOS 3.1.x. Exceptionally unlikely Amazon would add an efuse to a minor point release for a long discontinued device.

---------- Post added at 12:27 PM ---------- Previous post was at 12:26 PM ----------

Here: https://xdaforums.com/kindle-fire-hdx/development/recovery-twrp-3-0-0-0-t3322547
[Kindle Fire HDX 7" & 8.9" General] mcasara:
I did step 2 and entered fastboot mode. It says: [fastboot]

ready

and nothing more. When i type fastboot devices it results in blank outpoot (I'm using ubuntu). I can access twrp recovery too.

Is this normal or not? What should i do next? Could you provide more info how to generate unlock key on ubuntu? thanks in advance
[Kindle Fire HDX 7" & 8.9" General] draxie:
Yes, it's normal. The Linux version of fastboot doesn't work with these devices

without an explicit vendor ID on the command line. Try adding '-i 0x1949'...
[Kindle Fire HDX 7" & 8.9" General] navmad:
I just rooted my Thor which is on 4.5.5.3 with kingroot. Had never rooted this device before.

Bootloader unlock method still works fine as well. I was able to flash lineage 14.
[Kindle Fire HDX 7" & 8.9" General] mcasara:
Okay, that works, thanks. But how about generating unlock file? What should I do with get_code.bat file? Your help is much apreciated.
[Kindle Fire HDX 7" & 8.9" General] navmad:
Just run it and you will get a file unlock.code in your wording directory. Now follow step 3 in OP.
[Kindle Fire HDX 7" & 8.9" General] draxie:
Anybody home?

These forums have a special button for just that... (-;

Didn't you say that you were using Ubuntu?

You have no use for the .bat files there...

Have you noticed that unlock.zip includes .sh files as well?

Did you ever wonder what those might be for?

---------- Post added at 20:56 ---------- Previous post was at 20:52 ----------

Blind leading the sightless...

Not on Ubuntu, I don't think...
[Kindle Fire HDX 7" & 8.9" General] mcasara:
oh gosh.... didn't notice them.. sorry for wasting your time.
[Kindle Fire HDX 7" & 8.9" General] navmad:
Obviously you have to use the platform specific script. :)
[Kindle Fire HDX 7" & 8.9" General] draxie:
1-Click works on Linux, too!

OK. Heads up only, I'll need to do some more testing and fixes before pre-release

(and I'll have to a Windows device to try it on too), but my current dev version

of 1-Click works not only on Mac OS, but also on Linux (at least, with VBox 5.1.30).

I've also used a _repacked_ version of 4.5.5.3 on my test Thor, and went without

a glitch (my Apollo is another story, but it's likely self-inflicted). Within a few days,

I plan to restore the Thor to full stock 4.5.5.3 and run the pre-release 1-Click against

it in Linux. Just in case, you're still interested...
[Kindle Fire HDX 7" & 8.9" General] matt_heynes:
That's awesome! Thanks so much for sticking with this and working out the Linux solution. Very much looking forward to giving it a try once it's ready!

I do wonder about one thing, though: As my Linux system already has adb, fastboot, etc. set up and working: Could I do away with the VBOX installation and simply run whatever script is executed inside the VM directly? I've had some bad experiences with setting up USB support in VirtualBox in the past.
[Kindle Fire HDX 7" & 8.9" General] draxie:
It's complicated

Honestly, all I had to do was install VirtualBox and it just worked.

Much like in MacOS. The VM still doesn't manage to pick up the

device after initiating bulk mode on Windows (and KVM seems

to have a similar problem on Linux).

I've tested a few times from 4.5.5.3 stock to an arbitrary ROM

(well, I've only tried Lineage and AEX, but the process should

be exactly the same); so, it's basically ready. I'm just trying to

streamline the UX (user experience) and making the tool more

robust. I didn't have time to work on this last week, but I can

probably PM you with a download link late this week, if you're

willing to test.

The short answer is: NO. BTW, I thought that I had already given

a more informative answer to basically the same question.

Of course, I cannot stop you from trying to extract the scripts

from the 1-Click VM, but I won't support you doing so.

In the recent past, if I may ask?

What distro are/were you using?
[Kindle Fire HDX 7" & 8.9" General] nachomhwang:
LOTS of great information. Thank you so much everyone. Just wanted to add another hiccup that I experienced.

I just rooted my apollo from 7.5.5.3 and my files we hidden in su, like in post #2. Searched everywhere and finally found them in /mnt/shell/emulated/0

I also had to uninstall the microsoft driver during fast boot. other than that, everything went perfect. Thanks again!!
[Kindle Fire HDX 7" & 8.9" General] MxUltra:
Hello,

is there a possibility to get from the fastboot/factory cable mode (9008 QDL mode) to the mentioned 'bulk' mode?
[Kindle Fire HDX 7" & 8.9" General] DB126:
Crosspost - please stick to the original thread: https://xdaforums.com/kindle-fire-hdx/help/fire-hdx-7-bootloop-4-5-5-3-update-t3701531/post74458020
[Kindle Fire HDX 7" & 8.9" General] matt_heynes:
Sorry, just wanted to make sure. VM it is, then!

No, it has been a while. I was using Ubuntu 12.04 back then. The setups I currently have access to include Ubuntu 14.04, 17.04, and Windows 7. I think I'll just install the latest VBox on my machine and see if I can establish a USB connection with a regular Linux guest before going through with the script.

Very much looking forward to giving it a try!

I've actually just bought another HDX7. This one was very cheap because the WiFi is apparently malfunctioning in some way or another. So I now have a somewhat more dispensable test device to give the script a try on first.
[Kindle Fire HDX 7" & 8.9" General] draxie:
You got mail

Hopefully, you won't experience any trouble this time.

Check your XDA Inbox! (-;

Good idea! Although I'm reasonably confident the thing works now,

you can never be too careful. Better safe than sorry...
[Kindle Fire HDX 7" & 8.9" General] stevebread:
Hi, i made a mistake flashing wrong aboot (thor) to apollo device, and unlocking also didnt work. So i'm stuck with blank screen, with only fastboot is working with using id 0x1949 (example: fastboot -i 0x1949 getvar product -> thor.)

Is there any way out of this? Could somebody help me?

Thanks,
[Kindle Fire HDX 7" & 8.9" General] draxie:
fastboot is all you need

As long as fastboot is working, you should be fine.

If you have access to Linux or Mac OS, I can send you

a pre-release version of 1-Click, which should get you

out of trouble in the simplest possible way.

If you're stuck on Windows, follow this post and you'll

be fine, unless you make more mistakes along the way.

Read the whole post! As you are starting from fastboot,

you'll need to run the fastboot commands near the end

first *before* you can follow the numbered steps.
[Kindle Fire HDX 7" & 8.9" General] Silencer3007:
Can someone upload a flashable stock rom 4.5.5.2 or 4.5.5.3, please? All links are dead :(

Thank you :)
[Kindle Fire HDX 7" & 8.9" General] iksel:
Hello all, can't download aboot and twrp for Apolo, links are dead, could someone help?

Edit:

https://xdaforums.com/showpost.php?p=74321642&postcount=859
[Kindle Fire HDX 7" & 8.9" General] iksel:
Hello again, sorry for my can-not-find twrp_cubed.img and aboot_vuln.mbn files, link on 1. post don't work...

:crying:

every time I tried to flash unlock code got:

C:\Kindle>fastboot -i 0x1949 flash unlock unlock.code
target reported max download size of 1073741824 bytes
sending 'unlock' (0 KB)...
OKAY [ 0.078s]
writing 'unlock'...
FAILED (remote: Unlock code is NOT correct)
finished. total time: 0.141s

Thanks in advance!!!

Best regards to all XDA community!
[Kindle Fire HDX 7" & 8.9" General] Habbz:
I'm getting the exact same thing lol, tried countless times and it still comes back failed, surely it has to be something simple that i'm doing wrong. any ideas would be greatly appreciated.
[Kindle Fire HDX 7" & 8.9" General] stevebread:
Hi, Draxie

The windows instructions worked, so i have a working tablet again.

Thank you very much.
[Kindle Fire HDX 7" & 8.9" General] draxie:
Prep?

Have you installed a vulnerable bootloader?
[Kindle Fire HDX 7" & 8.9" General] iksel:
I can't dowload it too, do you have it for Apollo?

Thanks!
[Kindle Fire HDX 7" & 8.9" General] Habbz:
Possibly not , should i start with step 2 on this guide ? or is there a different process, thanks for replying

---------- Post added at 11:51 PM ---------- Previous post was at 11:49 PM ----------
[Kindle Fire HDX 7" & 8.9" General] draxie:
Search, anyone?

aboot: https://xdaforums.com/showpost.php?p=74269859&postcount=777

-13 for Thor

-14 for Apollo

TWRP: https://xdaforums.com/kindle-fire-hdx/development/recovery-twrp-3-0-0-0-t3322547
[Kindle Fire HDX 7" & 8.9" General] Habbz:
Still trying to figure this out, i dont think my bootloader is unlocked, and i can't do the steps on the first page, just keep getting that error, once it's unlocked i'm fairly confident of what to do after. im just stuck at the moment

I'm on Apollo 8.9 HDX , i already have CM11 installed and wanted to upgrade. seems as though my bootloader is stopping me getting updated

I also have TWRP 2.7.1.0 installed and i can't get it to update to a better version.
[Kindle Fire HDX 7" & 8.9" General] DB126:
You need to install the vulnerable bootloader (step #2 in OP) before you can unlock it.
[Kindle Fire HDX 7" & 8.9" General] iksel:
Hello Davey126,

I already have found this draxie's post, but haven't be 100% sure about it, now I am. Tonight I'll try not to brick Kindle and post my work.

Best regards!
[Kindle Fire HDX 7" & 8.9" General] habbz84:
I'll give it a try thank you, probably a stupid question, but is there a specific place I open a new command prompt to do the code?

Edit do i need to rename the aboot file , or keep it in the zip on my SD card the command prompt can't find the file

Edit x2 - i get this when trying to install

PS C:\Users\Lee\Desktop> adb shell

shell@apollo:/ $ su

root@apollo:/ # dd if=/sdcard/twrp_cubed.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery

/sdcard/twrp_cubed.img: cannot open for read: No such file or directory

1|root@apollo:/ #
[Kindle Fire HDX 7" & 8.9" General] DB126:
- vulnerable bootloader (aboot) needs to be unzipped and renamed

- twrp image needs to be renamed

- suggest a candid assessment of whether you are comfortable working at this level; a simple undetected mistake can easily lead to a non-recoverable brick
[Kindle Fire HDX 7" & 8.9" General] habbz84:
Sorted it thank you so much , its been ages since i last did this kind of thing, can you just help me out one last time, i've installed CM12.1 , what Gapps do i choose ? you've been a great help
[Kindle Fire HDX 7" & 8.9" General] matt_heynes:
I had the same question and Davey was kind enough to answer it here. Although from what I understand it's better practice to flash the ROM and GApss simultaneously.
[Kindle Fire HDX 7" & 8.9" General] habbz84:
Thanks Matt, so it's any arm nano version of what firmware ? 5.1 ?
[Kindle Fire HDX 7" & 8.9" General] DB126:
5.1 is correct for CM 12.1.

Sidenote: I used CM 12.1 on this device for better than a year (switching just recently). Lovely ROM laced with several deficiencies that diminish the user experience. As you are starting from scratch I strongly encourage upgrading to an Android 7.1 based ROM - either Lineage 14.1 or AospExtended. I prefer the latter but you may find the former more to your liking coming off CM.
[Kindle Fire HDX 7" & 8.9" General] habbz84:
ok, i honestly appreciate all the help you've given me, so if i install LineageOS , is the gapps version going to be 7 ?
[Kindle Fire HDX 7" & 8.9" General] DB126:
Arm/7.1/nano (pico, micro, mini or full also ok; avoid stock)
[Kindle Fire HDX 7" & 8.9" General] iksel:
Stuck at kindle fire [ fastboot ]

Hello guys,

I succesfully flashed vulnerable bootloader (aboot) and renamed recovery image, obtain unlock code and flash unlock with success.

Got response with

fastboot -i 0x1949 oem idme ?

.

But now I'm stuck at kindle fire [ fastboot ], tried to flash again TWRP 3.1.1-1 with

fastboot -i 0x1949 flash recovery apollo-twrp-3.1.1-1.img

I got success, but again it goes in kindle fire [ fastboot ] mode...

What now should I do?

Best regards!

Edit:

Power button + Up made me go into TWRP instead kindle fire [ fastboot ] so I'm happy now!

Thanks you all folks!
[Kindle Fire HDX 7" & 8.9" General] habbz84:
All sorted now Davey , Im running LineageOS with the correct gapps, thank you for your patience.
[Kindle Fire HDX 7" & 8.9" General] DB126:
Well done. My assistance was minimal; you did all the heavy lifting. Enjoy your rejuvenated device! :)
[Kindle Fire HDX 7" & 8.9" General] habbz84:
Just for reference or anyone stuck in my positon , use the codes below , this is what i was doing wrong.
[Kindle Fire HDX 7" & 8.9" General] yepun:
Hi,

I did a silly mistake in step2, I copied the Apollo Files (aboot and twrp), but I have a Thor device. After sending the unlock.bat the display went black and that’s it. I have read I’m not the first who did this wrong, so I tried the suggested things. Here is the list what works and what not:

I have access to tablet via explorer

the USB driver is Android Composite ADB Interface

“adb devices” gives the output: List of devices attached D0FCA0A0414201E9 recovery

I can open an adb shell with strange command prompt

I don’t have access via fastboot (probably never had, even before mistake)

“wmic partition where index=22 get diskindex” results in “no instances available”, so I don’t have a diskindex for the dd command.

“wmic volume list” shows me my hard drives and some volumes without names

Any suggestions what I can try? Thanks!
[Kindle Fire HDX 7" & 8.9" General] draxie:
Read??

Near the end of that post you got that 'wmic' command from you will find

instructions also for starting from 'adb', which you seem to have working.

I'm not going to repeat the same thing here again. Please read carefully!
[Kindle Fire HDX 7" & 8.9" General] yepun:
Sorry, perhaps I was reading too carefully. You wrote “any

unrooted

& locked 3rd gen HDX device.” The device is already rooted, so I was not sure I make something wrong here.

After “adb reboot bootloader” the tablet behaves like after sending the unlock.bat. I lose connection (adb and fastboot) and I get an unknown USB devise in the hardware manager.

I’m not able to install an appropriate driver for this device (Win 10, 64bit, driver signing disabled). I tried Win7, 64bit, same problem. I have additionally Win XP and Win7, 32bit but I don’t want to play on these machines, they are for production.

The device manager shows for the unknown device: DeviceInstanceId USB\VID_0000&PID_0002\5&2f350751&0&10

In the android_winusb.ini driver I can only find

;thor

%CompositeAdbInterface% = USB_Install, USB\VID_1949&PID_000C&MI_01

So, VID and PID (I have no idea what that means) are different and Win10 refuses to accept it. Should I modify the android_winusb.ini?
[Kindle Fire HDX 7" & 8.9" General] draxie:
My turn...

OK. Interesting. Now, it's my turn to read carefully...

And, that's what I did. I read both of your posts as carefully as I could,

but I just cannot get your story to add up... Chances are you managed

to get into a situation I've never seen before. Or, your version of reality

doesn't quite match your Thor's...

So, if you cannot get fastboot working, but you do have ADB access

*including a working shell*, then let's work from there... I'm curious

to see just what we're looking at, I'd like you to post the output of

these commands:

adb shell id
adb shell getprop ro.build.fingerprint
adb shell twrp get tw_version

You can get a whole pile of info running just 'adb shell getprop'

with no argument, but some of that may be "sensitive" and it's

quite long; so, I won't ask you to post all that.

If you can verify that you indeed have TWRP (which I suspect,

since you say ADB shows your device in 'recovery') and you

have root in that shell, then you should be able to re-flash

the *right* aboot and TWRP images using 'dd' from ADB (as

instructed in the OP, except that you can leave out the 'su'

step, since TWRP likely gives you root by default).

If not, then we'll need to make sense of what I asked you

to post and find a way forward.
[Kindle Fire HDX 7" & 8.9" General] yepun:
Pow, it’s hard work to bring the device back from fastboot mode??? into a configuration, where windows recognize it as Kindle HDX again. I have to press several buttons randomly and when I see a few vertical pixel lines flashing up for some fractions of seconds, I know I’m back in adb mode. This is the output I get for the commands:

adb shell id
uid=0(root) gid=0(root) groups=1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:su:s0

adb shell getprop ro.build.fingerprint
google/cm_apollo/apollo:6.0.1/MOB30Z/cbdc06ef73:userdebug/test-keys

adb shell twrp get tw_version
tw_version = 3.0.2-0

How do I know, if I have root in my shell? su returns: /sbin/sh: su: not found

Is it save to run the dd command now?