yashsingh1/xdaforums huggingface dataset:
[7" Kindle Fire HD Android Development] TwistedPoet:
What (finally) worked for me

First off, HUGE shout out and THANK YOU to [MENTION=4414914]onemeila[/MENTION]. The KFHD System.img Restore Tool is what got my KFHD back to life.

What Happened?....I have a rooted KFHD 7" (2cd gen) with dual bootloader and TWRP. I was experiencing some system instability and decided to use TWRP to reset back to stock and start over. Using the recovery method in TWRP, I flashed the recovery image and reset the system. It never came back. Upon reboot, the orange Kindle Fire logo would appear on the screen for about 3 seconds, go away, come back for 3 seconds, and continue repeating in that manner.

What fixed it?....After exhausting EVERY method I could imagine without a factory cable (I even ran into Hashcode in a chat room and he said the same thing), I bought a factory cable. {Purchased through Team Black Hat...http://shop.teamblackhat.info/main.sc}, downloaded KFHD_SRT_v1.35-7.3.0 https://docs.google.com/file/d/0B4lZEJI5lYeMb1g5bW9tQW00LUE/edit, Ran option 3 and everything came back to life. I maintained root access but had lost TWRP and the 2cd bootloader. Plus there were some minor issues with different programs not functioning properly. So, I reset to factory settings, re-rooted and reinstalled the 2cd bootloader.

I only posted this in hopes that maybe one day, someone will have a similar issue and be able to find a solution link the one I found here. I attempted many different methods (ask here or message me if you care to hear the details, lol) and none worked. This method did and it worked incredibly quickly. Thanks again to all those involved in making this utility. :good::D
[7" Kindle Fire HD Android Development] Red_81:
Here are the images for the latest software 7.4.8 that I rooted.

https://drive.google.com/folderview?id=0ByBB3p40cC9BTTBKb2U0MlBpRjA&usp=sharing
[7" Kindle Fire HD Android Development] BookCase:
Ditto! My experience is exactly the same as yours except, I did not run into Hashcode in a chat. Great work and Thank you very much, OP!
[7" Kindle Fire HD Android Development] r3pwn:
Hey, [MENTION=4414914]onemeila[/MENTION], if you don't mind me contributing to have this become "The Unbricking Thread", (although this is an odd, and VERY rare brick, it happened to me. And by VERY rare, I mean that mine was the only one that Hashcode had heard of) if someone gets an error on boot (while on stock) saying "Provisioning Fail", their best bet is to flash (via fastboot) a system dump of someone's cm11 as well as either the stock cm11 boot image or one of [MENTION=4746892]Maromi[/MENTION]'s kernels. (Just to be safe, go ahead and flash all of the other partitions as well, and don't forget to wipe user data and cache)(Before someone asks, no, reverting to 100% stock did not fix the issue. I'm actually kinda scared to go back to stock now. Lol)
[7" Kindle Fire HD Android Development] Xaotikdesigns:
When I plug my kindle in, it switches into Fastboot on the device, but when I choose an option in the tool, it just says "waiting for device"

I had no issues rooting the device a few weeks ago, but fastboot doesn't seem to work.
[7" Kindle Fire HD Android Development] TwistedPoet:
Have you tried uninstalling then reinstalling the ADB diver's?
[7" Kindle Fire HD Android Development] Xaotikdesigns:
Did that, also tried it at work on a PC that never had a kindle connected to it before.
[7" Kindle Fire HD Android Development] Red_81:
What does your device manager show when you connect the Kindle while it is in fastboot mode?
[7" Kindle Fire HD Android Development] Red_81:
Uploading the 7.4.9 rooted stock images now.

http://goo.gl/VO8prH
[7" Kindle Fire HD Android Development] ktweb:
If I want to use these files instead of the ones included in the program, do I replace them with these and then which option would I select.

Thanks for sharing
[7" Kindle Fire HD Android Development] Red_81:
Yes. You replace the files with the same names. I think you then choose option 1. It the restore stock with root. I do not have one with the play store already included.
[7" Kindle Fire HD Android Development] GameGuru41:
Ok I am dumb, how am I supposed to get this on my Kindle Fire HD 7.4.9 when it hasn't ever been rooted? If I buy a factory fastboot cable will that make it easy to root?
[7" Kindle Fire HD Android Development] Red_81:
Does adb reboot bootloader work? If not, then you will need a fastboot cable. Honestly, they are totally worth it. They make dealing with any issues much easier.
[7" Kindle Fire HD Android Development] :
Thanks for the upload, out of curiosity how did you go about rooting 7.4.9 as a few are saying it was blocked in this update by the methods already on here?

Also are these images based on 7.4.9_D025_4952320 which is the second public revision of 7.4.9 as the first apparently had issues which is why Amazon didn't link directly to it.

Latest 7.4.9 stock bin is here - https://www.amazon.co.uk/gp/help/customer/display.html?nodeId=201016350
[7" Kindle Fire HD Android Development] Red_81:
So many questions for so early in the morning (Central US here).

Rooting

I have manually pushed the exploit and have also used the Binary root

7.4.9_D025_4952320

Yes, this is the BIN file that was on the US amazon server as of Monday when I created these images. Unfortunately, it does not have the new Amazon MP3 that includes Amazon Prime Music. They are apparently pushing that seperately. When it gets pushed to my devices I plan on updating it or at list linking to it.

I'm working on rewriting the batch file to clean a few things up and maybe give some more options. When I do, I'll probably start a new post and link to it. There is no ETA on that, because people at work keep scheduling meetings!!!!:rolleyes:

UPDATE: I uploaded a version of the KFHD_SRT tool with a blank images folder. This will make it faster if you just need the program and not the images because you already downloaded the newer ones. Just drop the images from 7.4.8 or 7.4.9 into the images folder.
[7" Kindle Fire HD Android Development] GameGuru41:
<waiting for device>

Ok I messed something up. I got by factory cable yesterday and successfully put on 7.4.9 with root. I then followed the simple noob guide to put on the PlayStore. I wanted to put on a custom ROM so I followed another on how to put on the second boot loader and TWRP. I successfully did that, got into TWRP and attempted to mount it so I could bring over my ROM to install but it wouldn't mount. I rebooted the Kindle to desktop and it brought up the dialog that the kindle was connected, I started copying the ROM over and left to do something. Came back and looked at the Kindle screen and it said it was Updating like I had just put a new image on. It came back up and root was gone and I can't get KFHD System.img Restore Tool to re-root again because it is saying <waiting for device> now. I have rebooted my PC and Kindle many times and I am using my fastboot factory cable (and it is still saying Fastboot on screen when I plug it in).

How to I fix this <waiting for device> problem?
[7" Kindle Fire HD Android Development] GameGuru41:
Ok, it is no longer saying <waiting for device>, it is now saying:

My Kindle is in Fastboot as the Kindle screen tells me but it isn't working. I have re-downloaded KFHD System.img Restore Tool many times, several different versions but no luck. What happened?
[7" Kindle Fire HD Android Development] TwistedPoet:
Go to YouTube and search for videos from [MENTION=345440]root[/MENTION]junky. He has an entire section that will walk you step by step how to root and mod the Kindle Fire HD 7 inch.
[7" Kindle Fire HD Android Development] GameGuru41:
I will definitely do that but I am very confused because I used this tool and had it rooted, now I can't use this tool again as I get this error. Does anyone know what this error means?
[7" Kindle Fire HD Android Development] TwistedPoet:
I've not seen that error. Sorry, wish I was a better help. I know the vids from [MENTION=345440]root[/MENTION]Junky will also install TWRP and a second bootloader.
[7" Kindle Fire HD Android Development] Red_81:
I think this is saying the system2 file (option 2) is too big for the system partition. Can you reboot to recovery? If you can is it twrp or stock recovery. It sounds like Amazon pushed the 7.4.9 update to you. You could always try refreshing option 1. You won't need to do the play store if you are just going to flash a custom roms right away.

Also, make sure to have your room already on the internal storage when you go to load twrp.
[7" Kindle Fire HD Android Development] GameGuru41:
Ok I am able to flash the images to the Kindle Fire HD today, tried Option 1 and Option 2 with 7.4.9, 7.4.8 and 7.3.0 and none of them give me wireless ability, it is in the off position and will not let me switch it to ON. How do I fix this?
[7" Kindle Fire HD Android Development] Red_81:
Did you wipe data? I have seen this as an issue with the wireless configuration file.
[7" Kindle Fire HD Android Development] NightflyUK:
So I tried using this file to get my Kindle back to factory stock and I think something has gone awry!

Now I'm stuck in the bootloop with the big exclamation warning sign telling me it doesn't seem to be able to boot and resetting to factory defaults might help...which it doesn't!

I'm at a complete loss now as I'm assuming the only way to solve this is by making/buying a factory cable so would I be right?
[7" Kindle Fire HD Android Development] Red_81:
What version did you flash? Did you do the recovery also?
[7" Kindle Fire HD Android Development] NightflyUK:
I used the 1.3.5 version but don't think I did the recovery. I used option 3 just to get it as stock as possible in the attempt to then start from scratch to try and root.2nd boot/custom ROM again. I'm well aware I dropped the ball somewhere but was just wondering if there was a way out of this without a factory cable or even if a factory cable can save me!
[7" Kindle Fire HD Android Development] Red_81:
You can definitely fix it with a fast boot cable. Try this to see if you can get into fastboot without it.

Open a cmd window where the fastboot.exe file is.

Now type

fastboot -i 0x1949 getvar product

It'll return waiting for device.

Turn off the Kindle and plug it in. If it boots into fastboot,you're good to go
[7" Kindle Fire HD Android Development] NightflyUK:
Is the .exe located where I extracted the SDK folder? I'm not on my PC but the one that has the platform tools and extras folders in it for drivers and the like?
[7" Kindle Fire HD Android Development] Red_81:
Yes it should be. Depending on your setup, fastboot may work from any command window.
[7" Kindle Fire HD Android Development] NightflyUK:
Brilliant! Will give that a blast tonight and report back. Thanks very much for your time on this. I realise I'm being very noobish and usually I can sort things out myself with some extensive searching around these parts but this Kindle is the hardest thing I've ever had to flash in my experience. Probably due to trying to turn it into something it isn't!

Edit/Update: No luck as soon as I plug the Kindle in after entering the above fastboot command it just goes back to the infinite recovery/bootloop. I'd assume my only option is now factory cable?
[7" Kindle Fire HD Android Development] Maromi:
[MENTION=1215048]NightflyUK[/MENTION]

option 3 only flashes recovery and boot imgs. option 1 and 2 flash different system imgs

if you only did 3 and not 1 or 2 too. you're gonna need a fastboot cable.
[7" Kindle Fire HD Android Development] Red_81:
^ This. In the future, for anyone else reading, you should always flash system and recovery together.
[7" Kindle Fire HD Android Development] NightflyUK:
Well you live and learn! haha Fastboot cable it is, thanks very much guys :)

BTW do you know the best source for a fastboot cable for us in the UK?
[7" Kindle Fire HD Android Development] SafinWasi:
I recommend getting one from Team Black Hat.

http://shop.teamblackhat.info

Sent from my device running CyanogenMod 11
[7" Kindle Fire HD Android Development] Maromi:
so you had a KFHD with 7.4.9 already

you flashed a rooted image in fastboot

no issues

you followed the 2nd bootlader instructions

so at this point you have a 7.4.9 rooted system, 7.4.6. boot for 2nd bootloader, twrp recovery images and 7.2.3 bootloader installed

Kindle still booted to 7.4.9?

during a file transfer the system did a restore/update and lost root

you can't only flash stock system.img (regardless if its rooted or not) when you have 2nd bootloader and twrp installed.

do you still have 2nd bootloader(the blue one) and twrp?
[7" Kindle Fire HD Android Development] cybertlc:
So here's what happened. I was trying to go back to Stock.......and I believe I accidentally flashed the Gen1 KFHD recovery from Amazon.com instead of Gen2. I then used this utility and followed this step by step, everything went fine.......and then I got stuck in a bootloop. It boots to the logo screen, and then immediately reboots and keeps doing it. I'm wondering if since I possibly flashed the wrong Gen recovery from Amazon, that this app is also flashing the wrong set......and that's what put it into a bootloop.

Any fix?
[7" Kindle Fire HD Android Development] Red_81:
Flash options 1 (system) and 3 (boot and recovery). You should be fine
[7" Kindle Fire HD Android Development] Cary Grant:
kfsowi

I have Kindle Fire HD 7", kfsowi version 2013 11.3.1.0 (no camera). Can I downgrade to 7.2 using this method? I'm guessing no, different hardware, right? But does anyone know? Thanks
[7" Kindle Fire HD Android Development] Red_81:
No! This is only for the 2012 version. You will most likely brick your device.
[7" Kindle Fire HD Android Development] Cary Grant:
Yup, that's what I thought. Thanks for the confirmation.
[7" Kindle Fire HD Android Development] beastmods:
ok customer brought kindle fire hd 7 in to my store it was stuck in boot loop and shining kindle screen.

tried 30 sec reset.

then made my own cable and tried fastboot erase userdata and cache. still looped..

now i have used the two latest programs in this thread to write sys recovery and boot.

that resulted in red screen fastboot loop

so i tried the 7.4.9 files and still have red screen loop

can anyone tell me what i am doing wrong?
[7" Kindle Fire HD Android Development] Red_81:
Did you tell it to reboot normally when you were finished?

Did you try writing system (option 1), recovery (option 3), then erasing user data/cache?

Just want to confirm this is the Kindle fire HD with the camera on the front, right?
[7" Kindle Fire HD Android Development] beastmods:
Oh there is no camera.

So is this the fire 2?
[7" Kindle Fire HD Android Development] Red_81:
Is the back curved or angled? The angled back is the 2013 model and uses the 11.x.x software. It could be a kindle fire 2 which uses another version of the software.

You could run this in fastboot to tell you what model you have:

fastboot -i 0x1949 getvar product
[7" Kindle Fire HD Android Development] beastmods:
Its angled on back

---------- Post added at 07:36 PM ---------- Previous post was at 07:35 PM ----------

Where do I find the 11.x.x files?
[7" Kindle Fire HD Android Development] Red_81:
Download the Kindlesuite program from kfsowi.com. I believe it has a restore function. If that doesn't work, I can probably track some others down.
[7" Kindle Fire HD Android Development] amkdeath:
waiting for device

Thank you for the tool and images!

One question though, Im on 7.3.1 rooted, entered fastboot mode through adb shell (Kindle screen says Fastboot) but my computer does not recognize the device. All fastboot commands return (waiting for device).

Any ideas? I'm on KFHD7

Thanks in Advance,

amk

EDIT: Also, Drivers show up in Device manager. I tried different cables/USB ports, no dice. Tried stunts513's modified driver, still no dice. After installing that driver, I restarted my computer and tried running fastboot commands again, and still the same. I'm going to try Uninstalling the Drivers -> Unplugging kindle -> Restarting computer -> plugging kindle in again

+EDIT: Nothing worked. Even Tried CWM universal drivers haha. Just went with an adb clone of the three clutch partitions, crossed my fingers, and ran FireFlash +Hashcode's edited TWRP recovery and boot.

Worked smoothly, and I'm now making TWRP backups. God knows what I would have needed to do had I bricked and needed to flash via fastboot
[7" Kindle Fire HD Android Development] ninjakettle:
Ok, i have 4.7.9. I have rooted successfully.

Now to get CM11 - i have to downgrade right - to 7.2.1?

So i've downloaded the "KFHD_SRT_v1.2- 7.2.1" link from the OP, and also the "boot and recovery imgs" under the downgrade instructions bit, step 1.

So i can just follow the est of the Downgrade instructions now to get to 7.2.1, at which point i can try putting on TWRP.

I have no fastboot cable, but can get into fastboot, so i'll risk it.

thanks
[7" Kindle Fire HD Android Development] theplagueisback:
Hi, can I downgrade my KFHD 7.4.9 to 7.4.3 using this instructions?

I was looking to downgrade to 7.4.6 actually.
[7" Kindle Fire HD Android Development] Red_81:
Yes. Load system, recovery, and wipe data/cache.
[7" Kindle Fire HD Android Development] theplagueisback:
Hi Red, I'm getting "No such file or directory" when I try to reboot in fastboot mode, here's the output:

C:\AndroidSDK\sdk\platform-tools>adb devices -l
List of devices attached
D025A0A024121UQQ device

C:\AndroidSDK\sdk\platform-tools>adb shell su -c "reboot bootloader"
[-] exec: No such file or directory

C:\AndroidSDK\sdk\platform-tools>

When I ran that command on the Kindle I got a root prompt and I allowed it.

Under the device manager I have listed: N2A ADB Mode / Kindle ADB Mode | HD 7
[7" Kindle Fire HD Android Development] theplagueisback:
Okay I got fastboot working but I need your help, I ran your .bat file and chose option #2, the data was sent and written successfully.

On the first page you have "Use KFHD_SRTool_v1.2 to flash system.img." but when I run the bat that option is not there so I'm stuck on this part.
[7" Kindle Fire HD Android Development] Red_81:
Use option 1. The second one doesn't work in the later versions. You can add the play store later if you want.
[7" Kindle Fire HD Android Development] SovietKommando:
This doesn't seem to be working for me. I selected option 1, and it says it completed successfully, but I'm still getting the red screen at boot up. What do I do?
[7" Kindle Fire HD Android Development] theplagueisback:
This is how I managed to go through the process of rooting and downgrading the stock OS:

Root using QemuRoot_v1.0

Use KindleFire FirstAid to reboot in fast boot mode and downgrade the system. (I downloaded and unpacked KFFirstAide64 on a folder located at C:\KKFIRSTAID and then ran RunMe.bat, use KFFirstAide32 if you have 32 bit OS)

"May the odds be ever in your favor"
[7" Kindle Fire HD Android Development] Zamdam1:
Can someone walk me through this with instructions for a mac? I think i messed something up but I'm sure its recoverable.

i am on 7.4.9 not rooted but somehow supersu with the diamond shaped icon is installed but will not update. I have a fast boot cable and it now doesn't boot. it will go to the kindle recovery thing and ask to reboot or restore.. restore does nothing.

adb shell su -c "reboot bootloader" did not work.

Use KFHD_SRTool_v1.2 to flash system.img. i am on a Mac. how can i do this?

fastboot -i 0x1949 flash boot boot.img worked

fastboot -i 0x1949 flash recovery recovery.img worked
[7" Kindle Fire HD Android Development] n311.dunkle:
Stock No Root

I'm having trouble finding any stock packagers that don't include superuser. Have you seen any that are 100% stock with no root? Nice touch on the play store though.
[7" Kindle Fire HD Android Development] Red_81:
The reason superuser is included is because root is required to pull those partitions off of the device.

You can always uproot or flash the stock package from Amazon once the device is up and running again.
[7" Kindle Fire HD Android Development] Rushead:
Why eliminate su? Just revert to stock and have a nice day.
[7" Kindle Fire HD Android Development] dazzlerellis:
Nvm all sorted now
[7" Kindle Fire HD Android Development] n311.dunkle:
I going to sell these and my buyers want 100% factory. I did figure out that there is an update package on http://http://www.amazon.com/gp/help/customer/display.html/ref=hp_left_v4_sib?ie=UTF8&nodeId=201016350 and the bin file wiped everything just fine. The tools here were useful getting the tablets off demo software which prevents you from getting to "more" so you can't run updates.
[7" Kindle Fire HD Android Development] Jayj0ka:
Recent update 7.5.1

I was trying to install a custom Rom and installed Fire Fire and now I have just a red screen. I have a fastboot cable and it will only boot into fastboot mode or has a red screen>

Any Assistance possibly I can flash the stock OS back... but not sure how to do it or what commands to use.

I have tried all root methods and also KFFirstAide and it will not resolve my issue.

Any help is appreciated.
[7" Kindle Fire HD Android Development] r3pwn:
I have a feeling you're in the wrong forum. If you had this kindle and flashed the FFF bootloader on it, it wouldn't boot. At all.
[7" Kindle Fire HD Android Development] LinearEquation:
Well, maybe. FFF is a bootloader and I have seen red screens from flashing it to KFHD7. Very lucky there is just a red screen and not hard bricked. If... they are using a Tate tablet.

---------- Post added at 10:44 PM ---------- Previous post was at 10:40 PM ----------

I need you to confirm the tablet you're using. Do you have a first gen KF or a Kindle Fire HD 7 (2nd generation)?. Do you remember the firmware you were using? Was it 6.xxx? Or 7.xxx? Or something else? I need you to be 100% positive of the model.

Edit: Stop random flashing because you gonna hard brick your tablet.
[7" Kindle Fire HD Android Development] Jayj0ka:
Thanks for the reply, it really is appreciated.

I have the Kindle Fire HD 2nd Edition it was on firmware 7.5.1 before flashing.

I used Key Root Master 1.3.6.apk to root, then verified with root checker.

I thought that I would be good to install a custom Rom and read to give FireFire a try I applied a custom recovery freedom boot

The image name inside of device manager when I have it connected in fastboot mode states

Product ID says:

product: Tate-PVT-08
[7" Kindle Fire HD Android Development] LinearEquation:
Fire Fire Fire is the wrong bootloader. Using that can hard brick your tablet. It's for the first Gen Kindle Fire only. Now you need a fastboot cord and the SRT tool. Use option 3 to flash recovery image.

When you do go to install a custom ROM, you must downgrade your bootloader to 7.2.3 where the exploit still exists. Then you you can flash images along with stack http://xdaforums.com/showthread.php?t=2128848

You can use FireFlash on the KFHD7 if you want http://xdaforums.com/showthread.php?t=2271909 There is a link to a YouTube video in that thread that will show you how to set up ADB and Fastboot so you can manually flash.
[7" Kindle Fire HD Android Development] Jayj0ka:
You are correct, I used the FireFlash.

This is what I used with fireflash11.apk

kfhd7-freedom-boot-7.4.6

kfhd7-twrp-2.7.0.0-recovery

Maybe this can help provide more information for you?

I have a fastboot cable and can get in fastboot mode and red screen only.

---------- Post added at 01:32 AM ---------- Previous post was at 01:00 AM ----------

Ya I believe that I bricked it as I can not enter any adb commands only some fastboot commands are working at it only works in fastboot mode.

I think that I am going to chop this one up as a loss....

Again thanks for your assistance..
[7" Kindle Fire HD Android Development] LinearEquation:
All you can do is fastboot commands while in fastboot, which is all you have access to atm. You no longer have adb nor do you need it atm. When you restore, you will. Red screen when using FireFlash is from not ticking the stack override box before flashing. Just use the System Restore Tool and flash your tablet to stock and start over. Your tablet is recognised in fastboot and should be recoverable.