yashsingh1/xdaforums huggingface dataset:
[7" Kindle Fire HD Android Development] raj3366:
Reply to soupmagnet questions

I am extremely sorry for the delay. I didn't find out yet how to get notified if someone posts a reply to my message. So I missed seeing your question on time.

- I used Mac (10.8.4) + android sdk.

$ adb version

Android Debug Bridge version 1.0.31

Android sdk: adt-bundle-mac-x86_64-20130219

- I installed the drivers using the Mac installer (just followed the procedure to install android sdk (http://developer.android.com/sdk/index.html)).

For rooting the device, I used "Root_with_Restore_by_Bin4ry_v18". Since I did not have a fastboot cable, I had to root to boot into fastboot using the below command:

adb shell su -c "reboot bootloader"

I used the same for my previous kindle when the kindle had 7.1 version. I did not face any issues. It was very smooth. But I had 7.4.3 running already when I tried on the new kindle.

Please let me know if you need more information. I am willing to provide (even execute commands to get what is required) whatever information you need.

And thanks for all your hard work. :good:
[7" Kindle Fire HD Android Development] Hashcode:
Can you run an md5sum on the bootloader file you are using?
[7" Kindle Fire HD Android Development] raj3366:
Yes, I ran the md5sum on all the files (including 7.2.3.bin) and verified them. Anyways, here they are:

MD5 (kfhd7-freedom-boot-7.4.3.img) = 137efc9e38aaa12c072d2270902a5fc7

MD5 (kfhd7-twrp-2.6.0.0-recovery.img) = c9e3469a4ce2c9402f57e7777082595c

MD5 (kfhd7-u-boot-prod-7.2.3.bin) = bb029673d8f186db4dff6d38f4aa28cf

MD5 (stack) = 3cee2b7f3233fc3a1e10373677b8c1a9

EDIT: Btw, just to be sure, I was able to get the boot loader working. I was just answering the questions posted by soupmagnet for debugging purpose in my post above.
[7" Kindle Fire HD Android Development] boringfrog:
Went back to stock this morning then tried again, I think I might have missed the second command out after pushing the stack file to the device, looking good now and in TWRP recovery. Do I really need to install the pre rooted stock amazon OS if i'm going to install CM10?
[7" Kindle Fire HD Android Development] Onoitsu2:
I did not need to do so for cm10.1, but if going to say kinology you do need stock in place. All I did was wipe well everything twrp let me (except sdcard), then installed the zips.
[7" Kindle Fire HD Android Development] dustpop:
why it suggests " no such file or directory" when i follow the step 1 to back up?
[7" Kindle Fire HD Android Development] boringfrog:
Is your device recognised in ADB?
[7" Kindle Fire HD Android Development] dustpop:
I've typed the above order in cmd, but it stops at "wating for device" and has no further responses.
[7" Kindle Fire HD Android Development] bstapley:
I was asked by a friend to get Cyanogenmod on his Kindle Fire 7 HD, but am having issues with the stack command. Currently the Kindle is running version 7.4.3:

C:\android-sdk-windows\tools>adb push stack /data/local/tmp/

2000 KB/s (4096 bytes in 0.002s) <-----works successfully

C:\android-sdk-windows\tools>adb shell su -c "dd if=/data/local/tmp/stack of=/de

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

error: protocol fault (status 30 2b 31 20?!)

I've tried changing the stack file to be pushed to /data/local and /sdcard and all have the same error error: protocol fault (status 30 2b 31 20?!).

I later followed the recommendation by Hashcode to try the following:

C:\android-sdk-windows\tools>adb root

adbd cannot run as root in production builds

but as you can see, it will not allow me to get root. I've verified that root functions properly via:

C:\android-sdk-windows\tools>adb shell

shell@android:/ $ su

su

shell@android:/ #

and via terminal and root checker apps installed in the KF.

What's am I missing here? Any help would be much appreciated. Thanks!
[7" Kindle Fire HD Android Development] pmgreen:
Same thing here, tried different cables too. Greatly appreciate any help

Update: Followed the steps here with no issue; http://xdaforums.com/showthread.php?t=2347170
[7" Kindle Fire HD Android Development] DirtyDobbs:
Sorry I'm a noob at this and was wondering if I was able to do this without installing Andriod SDK? I have ADB and my kindle is on 7.3.0 rooted. I'm not sure if ADB is good enough or I need the SDK. If I do what do I need to install from SDK and where/how do I get the files from here to work. I'm really looking forward to setting up a second boot loader.

Thanks for the help
[7" Kindle Fire HD Android Development] dustpop:
yes, and it works well.
[7" Kindle Fire HD Android Development] DirtyDobbs:
One other question I have is should I update to 7.4.3? I'm currently on 7.2.3 that has TWRP installed. What would be the easest way to update, should I and will I still get Root in the update? Thanks for all the help.
[7" Kindle Fire HD Android Development] calkenneth:
That depends on whether you just want the original Amazon OS but with root, or if you want to be able to install a different ROM, such as Hashcode's port of CM10.1, onto the device. If you just want the Amazon OS but want root access, then it'd be okay to upgrade and re-root it. I was running a rooted version of 7.4.3 previously but now I've got CM10.1 on it and it works so much better for my purposes.
[7" Kindle Fire HD Android Development] DirtyDobbs:
I think I just got confused. I want to keep the TWRP installed and I plan on installing the CM10.1. I have the Amazon OS 7.2.3 when I boot. I guess what I'm asking is if I install the CM10.1 will it boot to that instead of the Amazon OS? And the instructions are for Amazon OS 7.4.3. So I was assuming by this guide that you could update to 7.4.3 and install TWRP and 2nd bootloader, am I wrong?

I know there's not a hugh change in the OS but I would like to run the latest Amazon OS and still be able to Root the Kindle. But if running the CM10.1 boot's first then I will just do that instead.
[7" Kindle Fire HD Android Development] Hashcode:
You can flash a pre-rooted 7.4.3 here:

http://goo.im/devs/Hashcode/tate/kfhd7-amazon-os-7.4.3.zip

Upgrading this way saves root, and doesnt force you to reinstall the 2nd bootloader.
[7" Kindle Fire HD Android Development] caithao:
Forgot about the existence of this thread. Posted my reports in the old thread, please review what i've got to say: http://xdaforums.com/showpost.php?p=44092440&postcount=109
[7" Kindle Fire HD Android Development] DirtyDobbs:
Thaks for the help Hashcode. I'll have to download the file in a couple days because I don't have a personnel computer that I can use right now. I'm on deployment in the Navy. But once I have the file how do I update the Amazon OS to 7.4.3 without losing TWRP? Plus once I update will I lose all the stuff that is currently installed on 7.2.3?

Thanks again for the help
[7" Kindle Fire HD Android Development] xxxo:
Found this good app for people with no computer https://play.google.com/store/apps/details?id=com.cgollner.flashify
[7" Kindle Fire HD Android Development] quan_1986:
:good: +1 :victory:
[7" Kindle Fire HD Android Development] caithao:
Has anyone found out how to transfer TWRP Backups to computer yet?
[7" Kindle Fire HD Android Development] r3pwn:
Use "adb pull" on your computer.
[7" Kindle Fire HD Android Development] degiovab:
Try with these shell commands (you have to install Android Terminal Emulator from Play):

$ su

# chmod -R 777 /data/media/0/TWRP

After that your backup folder should be available to copy via MTP as every other directory.
[7" Kindle Fire HD Android Development] starstremr:
i am curious do i have to do this one? how do you check if the binary is killed?

*STEP 6: Flash the Amazon OS (pre-rooted with the stack included) in TWRP

* This step is somewhat optional: Because we had to drop a 4K file right in the middle of the operating system, there is a chance that we've killed a binary that is used by the OS. To fix this you can re-flash the OS using the provided .zip file. And this will relocate all files so that they don't land on the stack space. But you will lose any OS customizations you have in place. The OS will be stock + rooted w/ Superuser.apk & busybox.

i mainly want twrp for ooops i am screwed issues.
[7" Kindle Fire HD Android Development] caithao:
I am still able to transfer it back to my device, and restore it right? I am unsure but will i lose any data or anything when i do transfer the files to my computer, or back into my device?
[7" Kindle Fire HD Android Development] degiovab:
Sure!

Due to the limited memory, I normally keep only one TWRP backup in my KFHD, but I have several nandroids in my pc, just in case I need to revert back to some old version.

As far as I've seen (and I've done several flashes back and forth) you can remove the directory containing the nandroid (I always keep the 0000000000000000 directory, eventually empty) or copy back an old nandroid, and it works.

EDIT: Just remember that the nandroid will restore everything but your sdcard, so (going back to your question) you will not lose any data, but just be careful about what is in the sdcard. One common error happens when you wipe everything (including your internal storage) and then realise you do not have your nandroid anymore...
[7" Kindle Fire HD Android Development] Opensystem:
I have a guide, here, which can help with that problem

http://xdaforums.com/showthread.php?t=2347170

Just read it carefully. You should only need to do the last couple steps, as long as you have root :)

Sent from my Android Kindle Fire HD 7 Running Cyanogenmod 10.1
[7" Kindle Fire HD Android Development] caithao:
Unfortunately I'm currently on CM10.1, and OS won't detect the device at the moment. Any suggestions?
[7" Kindle Fire HD Android Development] degiovab:
That's a completely different problem (I originally thought you were referring to the wrong bitsetting of TWRP).

In order to detect the device with pc Windows you have to properly install the drivers.

Have a look here: http://xdaforums.com/showthread.php?t=2281016
[7" Kindle Fire HD Android Development] raj3366:
Did you enable USB debugging in developer options? Often when you flash ROMs, you need to enable that again.
[7" Kindle Fire HD Android Development] caithao:
Coming from Kinology 7.3.1 to CM10.1, does the drivers need to be installed again? I thought drivers were already installed, but I'll give it a shot again. Thanks

EDITED: Well that was simple, I'd uninstall the driver and reinstall it again, then *BOOM* it worked like taking candy from a baby :)

But again, I've just totally forgot how to su root into adb again. Can you remind me?

USB debugging doesn't seem to be found in the settings menu...

EDITED: Read the post from degiovab and solved the problem by tapping build 6 times under build number.
[7" Kindle Fire HD Android Development] Markyzz:
Doesn't help if you don't have root lol

My USB port will charge at an angle, but I can't connect to PC :(
[7" Kindle Fire HD Android Development] starstremr:
Does this still work with 7.4.6 ?
[7" Kindle Fire HD Android Development] starstremr:
ok my kindle hd 7" was updated to 7.4.6 so i did this again and when i hold down the volume up i go into fastboot mode with out a cable what have i done wrong?

OK I got it working so thanks
[7" Kindle Fire HD Android Development] justinrn:
cannot find OS on TWRP

i have followed all your steps, and managed to get into TWRP. ive done this before on phones, and have TWRP for my HTC One. unfortunately, i cannot find kfhd7-amazon-os-7.4.3.zip on my KFHD and cannot boot into an OS. i do have the fastboot cable, but do not want to have to redo everything again. im at a loss. please help me!
[7" Kindle Fire HD Android Development] Hashcode:
Download the OS (or locate it on your PC), connect the device via USB after booting into recovery and open a cmd line:

cd <wherever the file is>

adb push kfhd7-amazon-os-7.4.3.zip /sdcard/Download

Wait for that file to get pushed and then you should see it in the Install screen.
[7" Kindle Fire HD Android Development] {davros}:
ugh...

ok so i followed this and i either get a kindle fire orange to blue boot loop or when holding down the vol up button it goes to a screen that say fastboot and thats it. pc is forever waiting for device. i saw TWRP at the first boot made a backup then rebooted and its now stuck in a loop
[7" Kindle Fire HD Android Development] Neighbor808:
I can still follow this thread if I'm on version 7.4.6 right?

Edit: Nevermind fixed fastboot issue.
[7" Kindle Fire HD Android Development] pihug12:
Hello!

I did all these things a while ago with Amazon OS 7.4.3 i think. I never installed CyanogenMod after that (still waiting for a stable version, I'm following the CM threads and the latest commits with interest).

Today, I wanted to update the recovery to TWRP 2.6.1.0. It seems my device isn't rooted anymore and I can't access the recovery with the "volume up" button. And my device was updated to Amazon OS 7.4.6 without me knowing it (I never agreed for that anyway...).

Which steps do I need to play again? Rooted Amazon OS again? The stack override? The freedom boot? The older 7.2.3 bootloader?

Thanks!
[7" Kindle Fire HD Android Development] RCamacho50:
Can I Install The 2nd-Bootloader + TWRP 2.6.1.0 On The 7" Kindle Fire HD In Version 7.4.6?

The Kindle Needs To Be Rooted?
[7" Kindle Fire HD Android Development] hobbie1009:
Roms fail

I can load the Full Amazon OS 7.4.3 flash .zip from the TWRP 2.6.1.0, although strangely won't connect to my amazon account. But attempting to load either Jellybam or CM and I get a failed load "asser failed: getprop("ro.product.device") == "blaxe_tablet" || getprop("ro.buigetprop("ro.product.device") == "otter2"

Any advice would be greatly appreciated
[7" Kindle Fire HD Android Development] Hashcode:
wrong .zip. that's for Kindle Fire 2
[7" Kindle Fire HD Android Development] hobbie1009:
codename

My apologies . I seem to have made the poor assumption that the KF2 and KFHD were the same as far as ROMS were concerned. Guess thats why I couldn't find a codename when googling. I was able to get your KFHD ROM cm-10.1-20130812-UNOFFICIAL-tate loaded onto it. Thank you for that.
[7" Kindle Fire HD Android Development] mrkhigh:
I had a few issues and followed the instructions verbatim

First: I have adb and fastboot working fine

I was running amazon os 7.2.1 rooted using the initial root method and nova launcher

issues:

issue 1)

Step 3 did not work for me it has

adb push stack /sdcard which gave me an error "failed to copy stack to /sdcard is a directory"

solution: adb push stack /sdcard/ the slash makes a difference for me.

issue 2) I did not desire to update the amazon os to the latest and foolishly did not put a flashable zip on the sdcard sadly when I went to boot into the newly installed twrp I wound up in a cycle where only twrp would load

solution: I did not find a solution to this I am guessing the stack or the 7.2.3 bootloader killed amazon os's ability to load

I downloaded kinology and then I went into twrp and chose advance then sideload and pushed the files I wanted on the sdcard by typing

adb push whateverthefilenamewas.zip /sdcard/

hope this helps somebody else who is in my shoes

I honestly wonder if the entire issue was I was already on 7.2.1 and went ahead and flashed the 7.2.3 bootloader if someone can verify this perhaps we can save someone else some troubles.

either way, twrp is installed and an os is installed thanks hashcode
[7" Kindle Fire HD Android Development] Hashcode:
Thanks!

I'll add the slash as soon as I'm near my PC.

And I should probably add a section about having the ROM on the device already.

Nice work figuring it out.

FWI, you dont need to be in sideload mode for adb push to work. There is a separate adb sideload function.

Either works.

EDIT: Fixed
[7" Kindle Fire HD Android Development] Neighbor808:
Yes, it works on 7.4.6. You should be rooted, too. Heed my warning, however: Put a ROM on your SD card before flashing TWRP and second bootloader so you have something to flash as soon as you boot into recovery. Stock ROM will bootloop.
[7" Kindle Fire HD Android Development] LinearEquation:
Can I use this with 7.2.3 os rooted? Or, do I need to get to a different OS? I have done this three times although never manually so hopefully no twrp bootloop. Thanks to anyone for the help.
[7" Kindle Fire HD Android Development] LinearEquation:
Finally! I'm running cm!

Now my only real question is how can I access my amazon videos, apps, etc? Thanks.
[7" Kindle Fire HD Android Development] mrkhigh:
Edited
[7" Kindle Fire HD Android Development] LinearEquation:
No one knows how to access the stuff I had on Amazon Part Prime? Is there not a way to switch launchers?
[7" Kindle Fire HD Android Development] EFEXR:
I currently have skorpn fastboot cable and the cable works perfectly because as soon as I plug in the cable the kindle fire hd goes straight into fastboot.

Here is my issue, at the beginning of the guide it states:

"Q: How do I know if my fastboot works?

A: With the Kindle powered down, type the following command into a cmd/terminal window on your PC (should return with: < waiting for device> ):

fastboot -i 0x1949 getvar product

Then connect your fastboot cable to the Kindle and reboot. It *SHOULD* show a Fastboot screen and your terminal window should show something like:

product: Tate-XXX-XX (something here)

Type this to reboot out of fastboot mode:

fastboot -i 0x1949 reboot

"

I tried fastboot -i 0x1949 getvar product then connecting the factory cable and nothing happens I only get <waiting for device>.

How can I fix this?
[7" Kindle Fire HD Android Development] mrkhigh:
You have a driver issue, you need to uninstall your kindle drivers and find the proper ones
[7" Kindle Fire HD Android Development] EFEXR:
which are the proper drivers? I assumed the proper adb drivers found in KFFA were the only drivers that were needed. If I need the proper drivers, where can I find them?
[7" Kindle Fire HD Android Development] r3pwn:
Doesnt sound like a driver issue. More like an operator error.

As stated above, I do not think this is a driver issue. Be sure your kindle is off before you plug in the fastboot cable to it. After connecting it to your computer, you will see "Fastboot" in a very lame (imho) wordart font. You can then proceed through the steps.
[7" Kindle Fire HD Android Development] Neighbor808:
http://www.amazon.com/gp/mas/get/android/ref=mas_rw_ldg

Instructions:

1)Click link

2)Download APK

3)Put APK on Sdcard, make sure unknown sources are enabled

4)Install Marketplace APK, Log in to your Amazon account, access and re-download the stuff you bought.
[7" Kindle Fire HD Android Development] LinearEquation:
Got'er done, thank you.
[7" Kindle Fire HD Android Development] EFEXR:
I just tried this. Kindle was completely off, went into cmd and typed "fastboot -i 0x1949 getvar product" (without the quotes) and "<waiting for device>" appeared. I then connected the factory cable into the computer first and plugged that into the kindle. My kindle automatically went into fastboot but the "<waiting for device>" is stuck, nothing else appears
[7" Kindle Fire HD Android Development] LinearEquation:
If I could add this to it. Open a command window, while logged into the administrator profile, and type ADB. If you see a bunch of data fly by, your good there. The same for fastboot. Also, here is a little screen shot I took to help you see what to look for in your CMD window.
[7" Kindle Fire HD Android Development] LinearEquation:
How long did you leave it plugged in? My laptop is pretty fast and it took about 20 seconds or so. Can you try it again and wait up to two minutes and see what happens.
[7" Kindle Fire HD Android Development] Neighbor808:
[MENTION=5174611]EFEXR[/MENTION], Download the .zip I have attached and extract the one folder contained within. Install the drivers through Device Manager.
[7" Kindle Fire HD Android Development] EFEXR:
I just tried this. I typed ADB and a lot of text came out just like you said. Then tried out the fastboot command and still no luck. Just waiting for device

Edit:

that did it thank you so much.
[7" Kindle Fire HD Android Development] LinearEquation:
Well, I guess it could be your drivers. Try this, you'll need to check your path to make sure your drivers are set up right. There was a video posted by another member on here with some great detail.

How to video. Very in depth and will get you straitened out on getting drivers installed correct. http://www.youtube.com/watch?v=oaNM-lt_aHw

To check the path =

Left click on the windows button > now right click on "computer" > now left click on "properties" > now left click on "advanced system settings" > now in the window that just popped up, click "advanced" > now down at the bottom of that window, click on "environment variables"

Now another window will pop up. The bottom part will have a section of variables and values. Scroll down until you see the word "path." At the end of all that you will set a path for the drivers to run from when you execute the command of "fastboot." It sounds intimidating but it's like riding a bike. Once you get it, you'll never forget it.

Once you have the zip downloaded and you extratc it, I would drag the extracted folder ( the entire folder) right to your "C" drive to make setting the driver path as painless as possible. You won't have to set a new path unless you move the extracted folder.

Now I recommend you watch the video and confirm the path of your drivers.

Edit - I see you got it working. Cool, good luck.
[7" Kindle Fire HD Android Development] RCamacho50:
Hascode, Do I Need To Copy The Files On Step 2 To The SDCard On Kindle Fire HD?
[7" Kindle Fire HD Android Development] mrkhigh:
You should put the Amazon os or another rom on the kindle the rest you place in the directory you are doing the fast boot commands from
[7" Kindle Fire HD Android Development] RCamacho50:
How The Heck I Can Install That 'Stack Override'?

Do I Need To Copy It To The Root Of The SDCard?

When I Try To Do Those Commands, I Get This:

I Don't Know What To Do...

Please Help!

Thanks!
[7" Kindle Fire HD Android Development] RCamacho50:
Ok. Can You Show Me An Example Of The Commands From The Directory You're Doing It?

I'm A Noob, Sorry... I Need To See Something.
[7" Kindle Fire HD Android Development] mrkhigh:
You should copy your stack file to c:\users\rcamacho50
[7" Kindle Fire HD Android Development] RCamacho50:
And Then Do This Command?

adb push stack /sdcard/

Then This One?

adb shell su -c "dd if=/sdcard/stack of=/dev/block/platform/omap/omap_hsmmc.1/by-name/system bs=6519488 seek=1"
[7" Kindle Fire HD Android Development] mrkhigh:
Yes follow hashcodes instructions verbatim, do you have your rom file on your kindle yet? You most likely will not be able to boot after you complete this tutorial and will have to flash a rom in recovery
[7" Kindle Fire HD Android Development] RCamacho50:
Thank You Very Much!

I Have The Recovery
[7" Kindle Fire HD Android Development] RCamacho50:
Which Is The Best ROM Guys? I Want Suggestions.

I Have Hashcode's CyanogenMod 10.2 And Its Amazing But I Want Something New!
[7" Kindle Fire HD Android Development] LinearEquation:
It's my understanding that to avoid arguments amongst developer's , this question is not one this forums likes to have posted. You'll just have to try them out.
[7" Kindle Fire HD Android Development] RCamacho50:
I Have A Big Problem... I Dont Have Any File In My Tablet To Flash From TWRP. What Can I Do To Put A File In The Device???
[7" Kindle Fire HD Android Development] LinearEquation:
Which tablet? Your best help will come by posting in a help area for you tablet to get those most familiar with it helping you. In general, you will push a ROM onto your tablet.
[7" Kindle Fire HD Android Development] RCamacho50:
Of Course Is The Amazon 7" Kindle Fire HD, Thats Why I'm Writing Here... Duh!

And I Already Fixed It!

Thanks!
[7" Kindle Fire HD Android Development] LinearEquation:
Cool, glad you learned how to read up on this issue addressed multiple times.
[7" Kindle Fire HD Android Development] mrkhigh:
Page 44 4th post down

Is your answer

I also told you this