yashsingh1/xdaforums huggingface dataset:
[Kindle Fire HDX 7" & 8.9" General] fabische:
Well, before I continue manipulating the bootloader to unknown effects I wonder why I am not getting superuser rights while in ADB mode? My Apollo is 100% rooted (confirmed by root checker and supersu ), however after entering "su" into adb shell I remain stuck with the "$" instead of superuser prompt "#" . Thanks for your help... (btw: I am trying to follow the "unlock bootloader procedure")

UPDATE

Simple answer: I had overlooked the request for SU privileges on the Apollo screen. Rights granted, prompt changed to "#" !

UPDATE 2

Here´s the next problem I am running into:

as described in the unlock procedure, I have copied the files twrp_cubed.img and aboot_vuln.mbn into the root directory of my Apollo.

The following SU command is then expected to flash TWRP

dd if=/sdcard/twrp_cubed.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery

(I have to manually type this into the command window, as right-click-paste does not work here)

However, as a result I simply get a "file not found" error (see screenshot below).

twrp_cubed.img and aboot_vuln.mbn are definitely in the sdcard/ directory of my Fire.

Please note that I am currently still on safestrap 4.01.

UPDATE 3

I found the solution!

The "unknown file" error is caused by a different system path found on safestapped Fires. See Image below.

The correct command for safestrap fires is:

adb shell

su

dd if=/storage/emulated/0/twrp_cubed.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery

dd if=/storage/emulated/0/aboot_vuln.mbn of=/dev/block/platform/msm_sdcc.1/by-name/aboot

[IMG="file not found"]https://abload.de/img/nofilelrapi.jpg[/IMG]

[IMG="safestrap paths"]https://abload.de/img/safestrapsolution4zyo4.jpg[/IMG]
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
Have you enabled root access in developer options ?

Shoog
[Kindle Fire HDX 7" & 8.9" General] usman3206:
thanks for guiding and responding promptly and in details. after a few attempts, kingroot.apk is able to root the device. what next, try adb shell commands for installation of custom recovery like twrp. i think i will go as the thread says and will start trying to install twrp recovery.

---------- Post added at 01:30 PM ---------- Previous post was at 01:20 PM ----------

ok, the aboot and recovery files were correctly copied but then strangely device shutdown and now when i press power button but can get into twrp recovery mode at least. what to do now?
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
Yes, get TWRP working next and load the vulnerable bootloader.

Download the files pointed to in post one and place them into the SD card of the Kindle.

Run the adb commands as instructed and you should have a functional TWRP.

Looks like you are locked into fastboot. I have read that this can be broken by pressing the power down for at least 60secs and this will reset the flag which is instructing it to boot into fastboot - give it a try.

Shoog
[Kindle Fire HDX 7" & 8.9" General] usman3206:
should i start TWRP recovery and try pushing thru minimal adb and fastboot as it no longer accepts command like adb shell
[Kindle Fire HDX 7" & 8.9" General] DB126:
As [MENTION=569564]usman3206[/MENTION] seems to be making some progress I'll hang back and watch things unfold. Lots of interesting interpretations. Happy to help if needed.

---------- Post added at 02:51 PM ---------- Previous post was at 02:49 PM ----------

[MENTION=5837759]fabische[/MENTION] - are you all set?
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
Minimal adb and fastboot are programs on your PC side, they encompass the drivers needed to access the Kindle for the PC. You cannot push anything regarding adb/fastboot via TWRP.

Lets be clear where your at:

-you seem to have lost adb, but have you got a bootable system at all, since adb is accessed through your normal system.

-can you get it to boot into fastboot mode, which is what you need to unlock the bootloader. The key sequence is power vol down (I think)

-TWRP is for flashing your chosen ROM, fastboot is for flashing bootloaders etc.

Take stock and see what you have working. Did the long press power change anything for you ?

I am reluctant to go further at this stage since the insteructions at the top of this thread have altered and no longer follow what I remember. Did you get your serial number yet ?

Shoog
[Kindle Fire HDX 7" & 8.9" General] usman3206:
[MENTION=5488402]Davey126[/MENTION], thanks, i have mad considerable progress with the help of [MENTION=7218819]Shoog03[/MENTION] but currently my computer doesn't seem to be able to run pythod for code generation command "py cublock.py 0xmm 0xssssssss", it says access denied even though i am running cmd.exe as adminstrator and python 3 is already installed. don't know how to generate code on device either. any idea what i am doing wrong?

---------- Post added at 02:16 PM ---------- Previous post was at 02:11 PM ----------

i cannot access my system, all i get on long or short power press is kindle fire [fastboot] and when i connect usb with computer device says ready and when i press power plus vol down it's the same kindle fire with [fastboot]. TWRP is bootable on power plus vol up and down together.
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
I had similar issues with python, but for the life of me I cannot remember how I got it setup correctly in the end. I think your python executables are probably in need of a tweak or two to get them working. I had access to a Linux machine and I think python is better integrated into Linux and thats how I got things working in the end.

Maybe someone else can step in and advise on python setup.

Shoog
[Kindle Fire HDX 7" & 8.9" General] usman3206:
i can try linux as well since i have another machine with linux but the device is soft bricked and cannot get into system anymore and you said that adb cannot be pushed without running system first.
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
You have either lost your main kindle system or you are locked into fastboot mode. There are lots of general android threads on escaping fastboot.

If it really is a broken system, then you will have to try flashing a stock FireOS ROM. If it was running safestrap before that should tell you which version of FireOS the Kindle was running last. Google is your friend here as it will be the Safestrap CM11 method described on XDA.

Here is another thing to try, ADB should work with your system booted into TWRP (I think) which should allow you to perform all the adb steps necessary before going to fastboot and doing the unlock.

Shoog
[Kindle Fire HDX 7" & 8.9" General] usman3206:
seems locked into fastboot mode, i never saw safestrap on it so no idea which fire os it was running. i am searching on google about escaping fastboot and safestrap cm11 as yo suggested, let's see what i can find, in the mean time if someone has some idea then do suggest, thanks
[Kindle Fire HDX 7" & 8.9" General] DB126:
Oi - amazing you haven't bricked it yet.

- when tethered in fastboot mode do you get see "ready" on the device?

- does device respond to "fastboot devices" command?
[Kindle Fire HDX 7" & 8.9" General] usman3206:
why do you think i had bricked it? i was following things exactly as told. Yes it says "ready" so it basically is in fastboot mode and is ready to accept fastboot commands. which commands should i execute to progress further.
[Kindle Fire HDX 7" & 8.9" General] DB126:
If TWRP remains accessible there is a path forward. Awaiting reply. Try to maintain a steady state vs trying a bunch of random stuff that changes the situation.
[Kindle Fire HDX 7" & 8.9" General] usman3206:
Yes it says "ready" so it basically is in fastboot mode and is ready to accept fastboot commands. which commands should i execute to progress further. I don't do anything extra, i am following the advice and reading on xda to find something helpful.
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
Have you got your manfid and seriel codes yet ?

Shoog
[Kindle Fire HDX 7" & 8.9" General] usman3206:
don't know about those, how to get them?
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
Go into adb and type the following:

adb shell

Type these two commands:

cat /sys/block/mmcblk0/device/manfid

cat /sys/block/mmcblk0/device/serial

Both should return numbers, give those numbers to confirm you got them OK.

Shoog
[Kindle Fire HDX 7" & 8.9" General] DB126:
Didn't answer second question; will assume it works.

- not confident of the recovery currently installed on device; will attempt to boot a known 'good' build

- download this recovery and place into same folder (on host) where you are issuing adb/fastboot commands

- please do NOT attempt to flash (install) this recovery as directed in the above post; get to that later

- issue command: 'fastboot boot signed-thor-twrp-2870.img'

- if TWRP successfully boots return to host and see if "Kindle Internal Storage" shows up as an accessible device

- if you have access download and copy this rom to internal storage

Post back progress. Do NOT attempt to flash rom just yet (got a few more things to do)

---------- Post added at 10:26 AM ---------- Previous post was at 10:22 AM ----------

So you'll need to decide how you want to proceed. [MENTION=7218819]Shoog03[/MENTION] and I are approaching this from different directions. Both paths may eventually lead to happiness but jumping back and forth just yields confusion.
[Kindle Fire HDX 7" & 8.9" General] usman3206:
adb shell tried to run once in twrp mode but failed and ever after that it plainly said no emulator or device,

while in fastboot mode when i gave command "fastboot getvar product" it said waiting for device for quite long time (device it showed "ready")

---------- Post added at 03:36 PM ---------- Previous post was at 03:30 PM ----------

Ok, i will follow you, i can boot TWRP 3.0.2-0 and i can see internal storage in it and i have downloaded the rom that you mentioned. but when i executed fastboot command "fastboot getvar product" it said waiting for device for quite sometime without giving response.
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
This means you do not have a functional fastboot driver on your PC, get that sorted before attempting anything else. Searching this forum will lead to a thread where it tells you in precise detail how to get fastboot running on the Kindle HDX. Simply loading minimal fastboot and adb drivers will not get it right - it was one of the main hurdles to progress that I encountered in getting this going.

I provided a link to the thread in one of my earlier posts, but it will be a long way back and I aint redoing the legwork.

OK I tell a lie, it wasn't difficult to find the link:

https://xdaforums.com/showthread.php?t=2277112

Follow the instructions carefully and you should get fastboot working. Do this first and nothing more. When you get a serial number returned from fastboot devices whilst your Kindle is booted into fastboot mode you know you are good to go.

Until you do you are stuck.

Shoog
[Kindle Fire HDX 7" & 8.9" General] DB126:
- TWRP 3.0.2-0 was NOT the version I requested (has issues) but since you are there we'll go with that

- fastboot getvar response is irrelevant at this juncture ...

- from TWRP home screen access Wipe->Advanced Wipe. Select Data and System partitions (NOT Internal Storage). Use slider at bottom to execute.

- from TWRP home screen access Install menu. Navigate to folder containing previously downloaded Nexus ROM. Swipe to install. Wipe Cache and Dalvik partitions if prompted.

- reboot device. What happens?

---------- Post added at 10:53 AM ---------- Previous post was at 10:49 AM ----------

Not really ...
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
it all depends on what your ultimate objective is, if you want an unlocked bootlaoder then having working fastboot is a must. As far as I am concerned and the way I have been describing it - this is the path to following the unlock procdure at the head of this thread. Getting the Nexus rom working is only useful if you want to end up at the Nexus ROM as you will still have to get the unlcok working even when you have the Nexus ROM installed.

I suppose mine is just a different path.

Shoog
[Kindle Fire HDX 7" & 8.9" General] DB126:
It is...and I appreciate your focus on unlocking the bootloader. That said, having a bootable/working ROM validates many unknowns regarding the target device and facilitates the unlock procedure for many contributors with only casual familiarity with ADB/Fastboot. The end goal is the same (working unlocked device)...just taking a different path to the finish line.

-Davey
[Kindle Fire HDX 7" & 8.9" General] usman3206:
installation failed, error: 7, error installing zip file; does that mean that file is corrupted? since MD5 checking found to MD5 file also
[Kindle Fire HDX 7" & 8.9" General] DB126:
Not usually. Untether device and power down. Let it set for 10-15 sec then boot into fastboot. Restablish tether and then boot into TWRP recovery using the technique and TWRP image previously suggested (recall 3.0.2 has some issues). Then try to reflash Nexus ROM.

Also, did wipe of SYSTEM and DATA partitions appear to proceed normally (no errors)?
[Kindle Fire HDX 7" & 8.9" General] usman3206:
yes wipe of SYSTEM and DATA went smoothly without any errors. i used TWRP 3.0.2 cause it was suggested in the first post of this thread, and how can i install this TWRP recovery 2870? should i use TWRP 3.0.2 to do that since adb doesn't seem to work well.

---------- Post added at 05:08 PM ---------- Previous post was at 05:03 PM ----------

ok, i tried it few times and this time it successfully flashed it. this new ROM is able to boot the device. i have taken a deep sigh. [MENTION=297200]Davey[/MENTION] now suggest me a path to follow.
[Kindle Fire HDX 7" & 8.9" General] DB126:
Great!! Gotta spend a little time with the kids. Be back to you in a few hours. In the mean time feel free to play around with the Nexus ROM to validate device operates normally (remember - you don't know the device history or why the seller installed unrooted Nexus 4.0.5 without the usually complement of support tools).
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
Spend a bit of time looking at getting your PC to recognise the device in fastboot mode. It wont be time wasted as whatever you do you will have to get this working at some point.

Shoog
[Kindle Fire HDX 7" & 8.9" General] DB126:
Fastboot is working as indicated by ready prompt (here).
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
Does "fastboot devices" work as expected ?

If so then he is only a few steps away from unlocked bootloader, which would be great.

Shoog
[Kindle Fire HDX 7" & 8.9" General] DB126:
Assuming all is well w/Nexus you can move on to unlocking the bootloader following guidance in this post. No need to manually pull serial and manufacture IDs, install/configure Python or issue obscure ADB commands. You do NOT need to execute step #2 as your device is already 'equipped' with a vulnerable bootloader (please reread last statement for clarity/understanding). The batch files are not dangerous and can not harm your device. In contrast, step #2 can permanently trash your HDX if something goes wrong.

Once the bootloader is unlocked you can flash any of the 7 custom ROMs available for this device (I recommend LinOS 14.1). I would also suggest downgrading TWRP to version 3.0.0.1 as 3.0.2.0 has some issues may come back to haunt you. That is easily accomplished via a free tool called Flashify. Happy to provide more detail if desired/needed.

Enjoy your liberated device!
[Kindle Fire HDX 7" & 8.9" General] DB126:
[MENTION=5828306]draxie[/MENTION] and [MENTION=5749760]ggow[/MENTION] too!
[Kindle Fire HDX 7" & 8.9" General] fabische:
absolutely! I have added them in alphabetical order :o
[Kindle Fire HDX 7" & 8.9" General] usman3206:
when i run get_code.bat it gives error connect failed: unauthorized device, ADB_VENDOR_KEYS is not set, Try "Adb kill server" if that seems wrong etc and bunch of error lines.
[Kindle Fire HDX 7" & 8.9" General] DB126:
Quick response; follow-up later as needed:

- enable developer options in Nexus ROM (settings->about->tab build number 7+ times until enabled)

- within developer options enable USB debugging (wording may not be exact ... look around)

- tether device; be sure to authorize host when prompted

- check status bar for type of connection; should be data/adb/transfer (not 'charge' only)

It has been awhile since I ran Nexus ROM; some of the above is generic guidance and may not be exactly as presented. But the concept/procedure is the same regardless of ROM. [MENTION=7218819]Shoog03[/MENTION] may be able to help if you need immediate assistance.
[Kindle Fire HDX 7" & 8.9" General] usman3206:
ok, this was verified before but didn't work but after a while it did work and step 1 generated unlock.code but unlock.bat has problem as fastboot is waiting for device!
[Kindle Fire HDX 7" & 8.9" General] DB126:
You previously indicated a 'ready' prompt when in fastboot. You'll need to verify/update your Windows drivers again. See OP in this thread for link to known working drivers. Use Windows Device Manager to update drivers while connected in Fastboot mode. When 'ready' appears (or unlock.bat completes) you have a match!
[Kindle Fire HDX 7" & 8.9" General] usman3206:
Device shows "ready" prompt in fastboot mode but pc doesn't find the device, i think some drivers are missing in pc that can communicate with device in fastboot but are able to do so in adb mode. I am downloading full sdk from android site to install but it's a huge file. device manager shows all working drivers only yellow mark is at pci compatible devices which i don't think is associated with this while fire device is ok in device manager.
[Kindle Fire HDX 7" & 8.9" General] fabische:
Well, actually I have a similar issue with my second Apollo right now. I have unlocked the bootloader sucessfully and flashed twrp and the vulnerable aboot file. However, different to my other apollo, I seem to be stuck in fastboot mode. TWRP is simply not starting. However, the device is still recognized by ADB/Fastboot on my PC. Commands like "fastboot reboot" or Power+Vol Up won't trigger TWRP, I seem to be stuck in fastboot... Any ideas, chaps?

UPDATE

Solved it.

Had to disconnect USB cable from Kindle and press Power + Vol Up for a felt eternity. Now TWRP is back!
[Kindle Fire HDX 7" & 8.9" General] DB126:
Great. Keep in mind you can also boot a TWRP image downloaded to the host. This is a great workaround to no-boot/stuck-in-fastboot scenarios. Note: only works on vulnerable a bootloader (locked or unlocked).

---------- Post added at 11:39 PM ---------- Previous post was at 11:34 PM ----------

Full SDK is unnecessary and probably won't help. Try changing USB cables. Amazing how often this works (won't delve into the reasons)! Also try a different USB port on PC; avoid external hubs and/or USB3 ports if possible.
[Kindle Fire HDX 7" & 8.9" General] usman3206:
ok, i have got another pc as well; will try to run minimal adb and fastboot from that pc and will share results.

---------- Post added at 09:35 AM ---------- Previous post was at 09:31 AM ----------

by the way, this fire nexus rom is also not smooth and glitchy, could it be because the bootloader is locked or it works that way? and the LineageOS rom thread that you suggested has so many versions of rom like by gogg, hash and cm, so which one is working smoothly. thanks
[Kindle Fire HDX 7" & 8.9" General] DB126:
Both KK Nexus ROM builds are lean and smooth; certainly not glitchy. Neither require an unlocked bootloader as some have claimed. Nor would it alter such behavior. You have reported poor performance with two different ROMs on a misconfigured device with an unknown history purchased on eBay. Yep...must be those crappy HDX ROMs. Nothing wrong with the hardware.

LinOS requires an unlocked bootloader. Work on that first. Try a different USB cable. Often fixes the connectivity/communication behaviors you reported.
[Kindle Fire HDX 7" & 8.9" General] usman3206:
I am still unable to unlock bootloader cause my computer cannot find device while kindle's fastboot mode says "ready". I have been looking at windows device manager and strangely there is no android in other devices as is suggested in other threads to fix this issue. my other windows 7 system doesn't show it either and that system cannot even run adb command (it vanishes instantly) although i installed minimal adb and fastboot in that too. need help

Edit: in device manager when i click kindle fire hdx update driver it shows as MTP USB Device, think there is something wrong here
[Kindle Fire HDX 7" & 8.9" General] unhappybirthday:
Did you start by installing the official ADB/fastboot drivers linked in the prerequisites section of the OP? As mentioned there, I did have to allow unsigned device drivers on my Win10 64-bit OS to have a successful installation.
[Kindle Fire HDX 7" & 8.9" General] DB126:
In addition:

- if the device says 'ready' then it thinks there is a host connection

- that said, MTP USB Device does not seem right (should show an entry under Android Device)

- did you try a different USB cable (perhaps a couple) as previously suggested...twice?

- appears you are attempting to execute adb/fastboot commands from within Windows; need to open a static command prompt
[Kindle Fire HDX 7" & 8.9" General] Shoog03:
I have supplied a specific link to a guide which shows how to resolve all of the ADB/fastboot issues on the kindle. Can't repeat myself enough - this guide got me out of exactly the same ADB dysfunction as been described here.

Lets repeat this again - simply installing minimal fastboot adb will not get a functional communication between the kindle and a windows PC.

Shoog
[Kindle Fire HDX 7" & 8.9" General] DB126:
That was your experience which mirrors that of some other users but certainly not all. Depends what drivers are present on the host machine, experience level and other variables. I could claim the opposite which would be equally incorrect if applied universally. Appreciate the adb/fastboot troubleshooting link which should prove beneficial to those experiencing connectivity issues.
[Kindle Fire HDX 7" & 8.9" General] draxie:
Just to make sure we're not overlooking the simplest mistake:

are you including the all important '-i 0x1949' on your 'fastboot'

command line (e.g. "fastboot -i 0x1949 devices")?

With that out of the way, I'd suggest getting the latest drivers

directly from Amazon (unzip and run the executable):

https://developer.amazon.com/public...sting#installing-the-usb-driver-windows-users

You may also need to uninstall the MTP drivers as instructed here.

If you want something that works with *both* adb *and* fastboot,

make sure you hand-pick the 'Android Composite ADB Interface'

driver under 'Fire Devices' in Device Manager.

Update Driver Software... >> Browse my computer for driver software >> Let me pick from a list [...] >> Fire Devices
[Kindle Fire HDX 7" & 8.9" General] usman3206:
I have read all fastboot guide, removed kindle fire from windows and reinstalled drivers and it's being shown as Android Composite ADB Interface, i also downloaded whole lot of Android SDK studio and installed and updated it.

While following fastboot setup guide at xda university as suggested by shoog, when i execute adb device command it returns my device's id but when i execute fastboot it returns "access is denied". I cannot find any explanation for that error on that guide so what am i doing wrong?

Edit: Fastboot command is working in windows, just path was wrong, working to see if i can progress

---------- Post added at 03:37 PM ---------- Previous post was at 02:53 PM ----------

How can i enter in fastboot mode on my device? is there a key combination to do that because when i execute fastboot device, nothing comes up (for which i need to be in fastboot mode). please help
[Kindle Fire HDX 7" & 8.9" General] DB126:
- untether device and fully power off

- press <power>+<vol-down> until device enters fastboot mode; it should NOT say "ready"

- tether device; a ready prompt should appear

- open a command prompt; if necessary navigate to folder where fastboot.exe resides

- issue command "fastboot -i 0x1949 devices". Do you get a response?