yashsingh1/xdaforums huggingface dataset:
[8.9" Kindle Fire HD Android Development] Slimepuppy:
Amazon 8.3.1 Breaks Root - and TWRP

I just got to 'relearn' something best not forgotten - Amazon's over the air updates will kill TWRP and the replacement bootloader.

My 8.9 16GB device has been happily running TWRP, CM10.1, and occasionally 8.1.4. What made this all possible is that I used Prokennexusa's manual method to disable Amazon's over the air updates.

The last time I upgraded TWRP and CM10 I did a full system wipe and started from scratch. My plan was to install Hashcode's 8.3.0 image and then disable OTA updates. Unfortunately, Amazon go to the machine before I killed OTA. Now I'm back to a 'one trick pony' HD running 8.3.1 with no root, no TWRP, and no CM10.

Where's that cable? Grrrrrr...
[8.9" Kindle Fire HD Android Development] apd:
Very annoying and happened to me too (although I thought I had disabled OTA updates but had not yet gone to CM10). At least 8.3.1 can be rooted!
[8.9" Kindle Fire HD Android Development] sugarsine:
Do I Need Root First

quick question. does my kfhd 8.9 need to be rooted first before following this guide?
[8.9" Kindle Fire HD Android Development] apd:
Yes it does
[8.9" Kindle Fire HD Android Development] misagh99:
problem

What am I doing wrong?

I have windows 8

Microsoft Windows [Version 6.2.9200]

(c) 2012 Microsoft Corporation. All rights reserved.

C:\SDK\sdk>cd platform-tools

C:\SDK\sdk\platform-tools>adb shell su -c "dd if=/dev/block/platform/omap/omap_h

smmc.1/by-name/boot of=/sdcard/stock-boot.img"

/system/bin/sh: su: not found

C:\SDK\sdk\platform-tools>adb shell su -c "dd if=/dev/block/platform/omap/omap_h

smmc.1/by-name/recovery of=/sdcard/stock-recovery.img"

/system/bin/sh: su: not found

C:\SDK\sdk\platform-tools>
[8.9" Kindle Fire HD Android Development] ZilverZurfarn:
Is your KF rooted?
[8.9" Kindle Fire HD Android Development] misagh99:
yes it is
[8.9" Kindle Fire HD Android Development] apd:
I think this could be one of two things: either your KFHD is not properly rooted (have you tried checking root with a root checking app or running an app which requires root) or you don't have the kfhd adb drivers installed properly. I think it is more likely the former
[8.9" Kindle Fire HD Android Development] misagh99:
problem was rooting. i rooted again and it did work. but now I have a problem on step 3:

C:\SDK\sdk\platform-tools>adb shell su -c "dd if=/data/local/tmp/stack of=/dev/b

lock/platform/omap/omap_hsmmc.1/by-name/system bs=6519488 seek=1"

/data/local/tmp/stack: cannot open for read: No such file or directory

C:\SDK\sdk\platform-tools>adb push stack /data/local/tmp/

cannot stat 'stack': No such file or directory
[8.9" Kindle Fire HD Android Development] ZilverZurfarn:
You don't have the file stack in the same dir as adb.

And the commands should be in the reverse order.
[8.9" Kindle Fire HD Android Development] misagh99:
I copied all the file in platform-tools and used the command in order but no luck! do i have to enter these command in fast boot mod?

I finally manage to get it to work. thanks you guys for helping me
[8.9" Kindle Fire HD Android Development] dreamer609:
Thats great! It took me a while too to figure it out 12hrs or more ..
[8.9" Kindle Fire HD Android Development] gsu_golfer:
Once i make a backup, where can I locate it? I checked around with the KFHD plugged into my computer and didn't see it.
[8.9" Kindle Fire HD Android Development] apd:
It's normally on the internal storage at /TWRP/Backups (it may be 0/TWRP/Backups)
[8.9" Kindle Fire HD Android Development] dwcasey:
me too...

I'm in the same boat. I found a adb/fastboot driver installer and it said I already had some installed.

Running adb devices with the KFHD89 running, I get nothing. I've turned on/off ADB mode too. This is all on stock and standard cables as far as I know, I've never gone out and bought a specific 'fastboot' cable.

Windows 8. I've tried ADB32-bit and ADB64-bit.

EDIT: help from here http://xdaforums.com/showthread.php?p=34626361 and here https://developer.amazon.com/sdk/fire/connect-adb.html , I am now able to see it via ADB devices. Will try fastboot commands.

EDIT2: Whelp, nothing using the fastboot getvar product command. I hear windows chime more than once during the boot sequence, but not pulling anything:

C:\tools\adt64\sdk\platform-tools>fastboot -i 0x1949 getvar product

< waiting for device >

EDIT3: since I have dual-boot win8/ubunutu on this laptop, i fired up ubuntu and I think I'm making progress.
[8.9" Kindle Fire HD Android Development] nikonx:
Well Ive got my Kindle to show the blue logo but can't get into recovery... I hold down the left volume and power button when the yellow logo comes on and the screen flashes and then goes to blue logo and then flashes and turns off. I'm on 8.3.1 rooted. Any ideas?

UPDATE: Nevermind. Got it with some playing around with when/how long I held left volume button.

NOTES for Mac users (I think this should be added to OP): Every adb/fastboot command needs to be prefixed with ./ eg. ./adb push and ./fastboot. Also, to get the fastboot commands to work in Step 5. I had to unplug and replug the USB after each command to get it to take. If it hangs after entering one of the fastboot commands and doesn't show "completed" or whatever within 10 seconds, unplug and replug and it will either finish or you will reenter the command.
[8.9" Kindle Fire HD Android Development] Hashcode:
ATTENTION: PUBLIC SERVICE ANNOUNCEMENT

It has come to my attention that under certain circumstances when your devices is stuck in a bootloader bootloop the information on the "boot0" block of the internal storage gets ERASED and RESET.

This partition is special and contains ALL of your device's hardware specific information:

- Wifi MAC address + Encoded Secret for registering w/ Amazon services

- BT MAC address

- Serial #

etc

FOR BACKING UP THIS PARTITION:

adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"

adb pull /sdcard/boot0block.img

Place the "boot0block.img" file with the other files that you backed up in the original instructions for safe keeping.

FOR RESTORING THIS PARTITION:

(do not do this unless you are absolutely SURE that your boot0 block got wiped out -- hopefully you never need to)

This is done via adb from your PC while the device is in TWRP recovery or in the Android OS (not fastboot):

cd <your safekeeping files>

adb push boot0block /sdcard/boot0block.img

adb shell "echo 0 > /sys/block/mmcblk0boot0/force_ro; dd if=/sdcard/boot0block.img of=/dev/block/mmcblk0boot0;"

THIS FILE IS UNIQUE TO YOUR DEVICE AND CANNOT BE REPLACED OR REBUILT FROM ANOTHER DEVICE. DO NOT SHARE IT WITH ANYONE AS IT CONTAINS INFORMATION ABOUT YOUR DEVICE USED BY AMAZON DURING REGISTRATION.
[8.9" Kindle Fire HD Android Development] anacondo:
All done and working within 5 minutes, no problems at all. Thanks a lot for all your hard work, Hashcode!
[8.9" Kindle Fire HD Android Development] kodie.:
help

step 3 wont initiate CMD displays

cannot stat 'stack' : no such file or directory

please help thanks
[8.9" Kindle Fire HD Android Development] ZilverZurfarn:
Has been answered a # of times. You are not in the same directory as where stack is.
[8.9" Kindle Fire HD Android Development] kodie.:
even when i put this direction " C:\Users\Rodney\Downloads where stack is located it still shows the same message

---------- Post added at 01:11 PM ---------- Previous post was at 12:21 PM ----------

step 3 wont initiate CMD displays

cannot stat 'stack' : no such file or directory

please help thanks
[8.9" Kindle Fire HD Android Development] kareeme:
Connecting to a PC does not trigger any response.

Hi

hope you can Help???? My kindle fire hd 8.9 does not connect to the PC.

Have tried resetting 20sec power button then press power button. (Screen black)
[8.9" Kindle Fire HD Android Development] sharonbw:
adb drivers installed but device not found

My kindle is recognized and composite adb drivers installed but all commands return device not found. What am I missing?

Edit: before anyone asks, it is turned on on the kindle. :]

Edit 2: This seems to be a separate problem but yesterday I had root and today I apparently don't. How can it go away? Dang I feel stupid but I'm not guys. The adb problem happened yesterday when I had definite root access obtained following these instructions: http://xdaforums.com/showthread.php?p=31545627

EDIT 3: Well I bricked it. Teach me to fiddle around when i don't know what I'm doing. It won't boot. It gives me the option to reset to factory default but it doesn't work. It'll go into fastboot but I don't know how to fix it. I'm sending it back. Didn't love it anyway.

What are the chances they can tell I messed with it vs it just being defective?
[8.9" Kindle Fire HD Android Development] justin_vn:
some body help me please.

i'm just use kindle fire HD so i can not understand anything [MENTION=529326]_____[/MENTION]@
[8.9" Kindle Fire HD Android Development] blackhelio:
I made a little tutorial for anyone who cannot get into Fastboot Mode: http://xdaforums.com/showthread.php?t=2292403

Thanks dreamer609 the initial find.
[8.9" Kindle Fire HD Android Development] kyij:
Haven't really been following the thread recently but I do notice nothing has been worked on with the kindle LTE services. Not sure how hard this is but I have a kindle with a sim card for this service although I have not done much with the device since getting it.. haven't even flashed it yet. Anyway, I am willing to lend it to someone for a period of time that is willing to work on this service for everyone else. Let me know if your interested. :cool:
[8.9" Kindle Fire HD Android Development] andlid:
red screen,,,

hello,

spent a few hours tonight trying to do a phased install, first wanted the kindle rooted and then install the twrp tomorrow the plan was to install a rom and gapps. after feffing around a bit I got to the below step:

fastboot -i 0x1949 flash boot kfhd8-freedom-boot-8.3.0.img

fastboot -i 0x1949 flash recovery kfhd8-twrp-2.4.4.0-recovery.img

fastboot -i 0x1949 reboot

after the reboot I got a red screen, guessing some of the above files got corrupted? I found the fix for the red screen with some pretty basic .bat file. The problem is that it relies on the fastboot function *that the device can boot up in fastboot, I never got that working and had to use the adb shell command to get it into fastboot to push above files. How can I work around this problem? Not really sure why it never liked to get into fastboot as described in the threads.

Help would be greatly appreciated since this is the wifes Kindle ;)

Cheers

A
[8.9" Kindle Fire HD Android Development] andlid:
Would there be any point in trying this? (first part and once in fastboot retry above boot and recovery commands?)

taken from this thread: http://xdaforums.com/showthread.php?t=2273256

"hi kodie,

maybe I can help you, I also had the Red Screen and have the problem resolved as follows:

with the tool KFHD_SRTv2.1-8.1.4 Link: http://xdaforums.com/show....php?t=2011126 I get the Fastbot mode

Then use the tool KF First Aide link: http://xdaforums.com/show....php?t=2096888 under item 7 "Completly Restore the KFHD8.9 - 8.1.4

read the individual notes carefully, then the RedScreen was in my past ...

mfg

J-P"

:rolleyes:
[8.9" Kindle Fire HD Android Development] mcgrathpatj:
Can't boot to stock Kindle OS

Hi guys, great tutorial. Followed and successfully flashed TWRP. when I goto reboot, I get the orange FIRE followed by BLUE fire and then the kindle wants to start stock OS. However, it bootloops and automatically goes to TWRP.

I don't mind that so much, but now want to flash CM10.1... think this is safe to do so? Also, I need to somehow get the files onto the kindle.... TWRP isn't allowing me to mount the USB to my PC. Any help is appreciated.
[8.9" Kindle Fire HD Android Development] mcgrathpatj:
Just to follow up, I ended up using ADB to push the CM10.1 and gapps files over to the SDCARD and flashed that way. Got it working thankfully.
[8.9" Kindle Fire HD Android Development] Hashcode:
Has anyone had experience w/ using this tool after taking the 8.4.1 update?
[8.9" Kindle Fire HD Android Development] Thepooch:
Are you wondering if the exploit is patched?
[8.9" Kindle Fire HD Android Development] gsu_golfer:
Has anyone else had a situation where you get stuck at the CM spinning logo? Mine's doing that now, after being fine for a while.
[8.9" Kindle Fire HD Android Development] dommerick:
I will probably try this upcoming weekend. Too bad the OTA wasn't disabled on my device. Since I was pretty ok with the status my device was in.
[8.9" Kindle Fire HD Android Development] spectrrr:
So far, no luck.... but that may or may not be the fault of the 8.4.1 update.

I've read through the whole thread, and here's where I'm at:

Started with stock, NO root 8.4.1

First time messing with the KF8.9 (but plenty of time logged tinkering w/ a Droid 1 and a Nexus 7).

SDK and kindle fire drivers installed correctly. Fastboot and ADB installed and working just fine. All necessary files downloaded and in the right directories. (Win7 x64 btw, but NO PROBLEMS with fastboot).

First, rooted using Bin4ry method, option 2. Ran it once. Installed and ran Titanium Backup to confirm successful installation and function of SU.

Second, started following all directions in the OP of this thread. ALL steps 1, 2, 3, 4, 4.5, 5 completed successfully and without errors or apparent problems, until the final restart [ fastboot -i 0x1949 reboot ]. At this point the device reboots, shows the orange logo, then flickers to the blue logo.... and that's where it stays frozen, never goes beyond that point.

booting into TWRP using the volume rocker WORKS, and TWRP appears to be working just fine, from here I was able to make another system backup and flash the gapps file. But it will not boot the OS, just stays frozen on the BLUE kindle fire logo. To get the OS to boot, I have to reboot into fastboot again, flash the backed up boot.img and recovery.img files (I did not flash system.img), and then it goes back to booting normally, but of course without TWRPP.

At this point, I booted back into the OS, found the gapps play store successfully installed. Read that lack of busybox may cause problems somewhere in the TWRP install, so I downloaded and installed busybox from the market (StericDroid/Erickson's free installer).

Started over from the beginning, steps 2-5 of this thread. Same results. I've tried it about 5 times now, monkeying around with any setting I can think of. Same results every time. TWRP installs and works fine, but I can't boot the KF OS without flashing the recovery and boot back to stock.

And that's where I'm at. maybe its a new problem with 8.4.1, or maybe someone recognizes the problem and can figure out where I'm going wrong. Sorry for the looooong post, but hopefully that will give you ALL the information you need for better diagnosis or debugging. I thought about trying to flash CM10.1 and see if that would boot, but I think I'll wait till I get the recovery nice and stable before messing too much with the OS.
[8.9" Kindle Fire HD Android Development] Thepooch:
You would never make it to the white kindle blue fire if there was a boot issue it would just be static at the white and orange logo I`m pretty sure, at least that is how was for me from a stack install failure. The system not loading could simply be a broken shell issue. My suggestion is when you get twrp back on which appears to be working is to do a full wipe minus the sdcard and flash CM10 my guess is that it will boot right for you and you should not have further issues. You could also backgrade and flash Hashcodes twrp flashable 8.3.1. Make sure when you install the stack file that you grant shell su permissions or the process will fail. Just a side note busybox is what makes the recovery and stack install successful make sure you have that properly installed before you begin if using stericson`s choose to overwrite all symlinks and it is being installed to system/xbin then run smart install.
[8.9" Kindle Fire HD Android Development] gsu_golfer:
I'm still having issues locating my backup. I made one and its stored SOMEWHERE as evidenced by my total available storage decreasing. However it's not available in the TWRP folder or in the restore menu.

Suggestions?
[8.9" Kindle Fire HD Android Development] spectrrr:
A bit more information from further monkeying around.

1) tried flashing JUST the backed up boot.img - fixed the boot hang issue just as it did previously (but of course eliminated the blue fire logo). So flashing recovery.img was not important.

2) I had installed the "normal" install of busybox to system/bin, so I went back and reinstalled it to system/xbin with the smart install, Then started back at the beginning once again, reflashed everything, still no go, identical symptoms.

3) Instead of flashing boot.img to fix the problem this time, I tryied flashing the original backed up system.img to see if by chance that fixed it. This time it hung on the ORANGE fire logo and never made it to the blue. reflashed a backup of the systenm I made just before, and that fixed it.

Still have no idea what the problem is at this point, but what the hell, onwards to CM10.1!!

4) Flashed TWRP again, flashed CM10.1 (hashcodes stock varient). Reboot, no boot hang, and it booted right up into CM10.1

I guess if/when I want to go back to stock amazon, I'll try flashing the 8.3.1 file available, and see if that fixes the boot issues, because none of my saved images seem to work with the boot file.

I wonder if that is related to 8.4.1 in some way.... greater minds than mine I'm sure can figure it out ;)
[8.9" Kindle Fire HD Android Development] Thepooch:
You went back and forth so much I'm not going to try to decipher what you did but as I suspected your system would not boot because of a broken shell IMHO. If you want stock the return is easy you just won't have 8.4.1 my guess is you won't even know the difference. Glad your going again.

Edit it`s okay I decided to guinea pig myself restored stock went through the process and ended right where you were stuck at the white kindle blue fire logo. So an overhaul will need to be done to be able to run 8.4.1 maybe with the stack file or now its checking the u-boot-prod-8.1.4.bin file for a match which mildly sucks it means Amazon messed with something deeper to further their agenda.
[8.9" Kindle Fire HD Android Development] Thepooch:
Did you rename it? Use the file manager in twrp to locate it could be under data/media/0/twrp/backups/0000000000000000 if you have renamed it with any spaces it might not show.
[8.9" Kindle Fire HD Android Development] Hashcode:
I should rebuild the stock freedom boot.img using the newest 8.4.1 ram disk, this is most likely causing some issue.
[8.9" Kindle Fire HD Android Development] Thepooch:
I can only guess this is out of my Knowledge base. There were no issues with the 8.3.1 zip you provided, CM10 or restoring a backup the problem rests on 8.4.1.
[8.9" Kindle Fire HD Android Development] killeril:
original boot fail

Same problem here stack in blue screen and dont load 8.4.1:(

tnks for work
[8.9" Kindle Fire HD Android Development] Thepooch:
Yep you will need to adb push a rom zip to your kindle while you are in recovery http://xdaforums.com/showthread.php?t=2142241 do a full wipe minus your sdcard and flash it.
[8.9" Kindle Fire HD Android Development] killeril:
-__-

Is it wipes away 2nd bootloader?

or simply boots amazon OS after flashing (with TWRP if you press volume) ? Tnx alot!
[8.9" Kindle Fire HD Android Development] badbutz:
sorry to bother you with this, but ist there any progress on kfhd8-freedom-boot-8.4.1.img?
[8.9" Kindle Fire HD Android Development] Thepooch:
It will not have any affect on the second bootloader. It`s simply rooted stock you will have to add Playstore or other tweaks.
[8.9" Kindle Fire HD Android Development] Ectoplasmic:
I have rooted 8.4.3 stock and intend to stay that way for now. I'd like a way to backup/restore in case I get stuck in a bootloop or want to revert from an OTA.

Will this basic ADB backup/restore method work on stock KF HD 8.9?

Backup

adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"

Restore

fastboot -i 0x1949 flash boot stock-boot.img
fastboot -i 0x1949 flash recovery stock-recovery.img
fastboot -i 0x1949 flash system stock-system.img
fastboot -i 0x1949 reboot
[8.9" Kindle Fire HD Android Development] Hashcode:
Hi guys, I'm sorry to hear some are having problems on the new 8.4.3 software.

I'm on vacation till the weekend and then I can run back through the install to see what's not working.
[8.9" Kindle Fire HD Android Development] Thepooch:
So far we have only heard of one permanent brick but I think there have been a few soft bricks. Thank you Hashcode enjoy your vacation.
[8.9" Kindle Fire HD Android Development] Brandonrz:
*DELETE*
[8.9" Kindle Fire HD Android Development] Brandonrz:
I need help :(

Sent from my Kindle Fire 8.9 HD via T-T Hd
[8.9" Kindle Fire HD Android Development] Hashcode:
What kind of problem do you have?
[8.9" Kindle Fire HD Android Development] Brandonrz:
I want to install 2nd bootloader and twrp on 8.4.3. I know the method, but everyone who runs option 41 on kf first aide gets the red screen. How do we do it on 8.4.3 without making a paperweight

Sent from my Kindle Fire 8.9 HD via T-T Hd
[8.9" Kindle Fire HD Android Development] andlid:
Bump? Had to give up my laptop :(
[8.9" Kindle Fire HD Android Development] Brandonrz:
Bump on my question.

Sent from my Kindle Fire 8.9 HD via T-T Hd
[8.9" Kindle Fire HD Android Development] Hashcode:
What's option 41 in kfire first aide? And is it necessary for root and then installing the bootloader/recovery?
[8.9" Kindle Fire HD Android Development] Brandonrz:
Option 41 is to install 2nd bootloader and twrp for if hd 8.9. But everyone I hear is getting a red screen on 8.4.3. Everyone who gets the red screen is all ready rooted, and followed all of the instructions, and has 8.4.3. You're really smart so I asked you.

Sent from my Kindle Fire 8.9 HD via T-T Hd
[8.9" Kindle Fire HD Android Development] pattiman:
I can confirm that the method from the OP works on 8.4.3. I just succesfully installed CM10.1.

Great work Hashcode!
[8.9" Kindle Fire HD Android Development] Hashcode:
I should probably re-package my instructions in #1 as a one click type of app.

Using option 41 isn't really following the instructions for the 2nd bootloader / TWRP.
[8.9" Kindle Fire HD Android Development] Brandonrz:
Oh. Ok, ty hashcode!! I'll install 2nd bootloader as soon as you update cm10.1 a bit. Thank you for all you do for our kindle.

Sent from my Kindle Fire 8.9 HD via T-T Hd
[8.9" Kindle Fire HD Android Development] Brandonrz:
Fastboot wont reconise my kindle, it's always saying "< waiting for device >" I opened device manager and it has a triangle next to Jem...ect. Help :( I remember fastboot recognized it sometime ago, but now it's not :( hhelp
[8.9" Kindle Fire HD Android Development] arda99:
Fastboot uses same adb driver

http://xdaforums.com/showpost.php?p=37882963&postcount=54