yashsingh1/xdaforums huggingface dataset:
[Kindle Fire Android Development] hallstevenson:
I actually tried that already (renamed it apps.old, to be specific). Next, I moved it to the root folder of my "C:" drive just to avoid long filenames (C:\Program Files\Kindle Fire Utility\apps) and renamed the folder to just "KFU". Are long filenames an issue ? I think I've seen it mentioned related to 'adb' in the past.

I'll still try deleting the folder... Okay, it's downloading a new copy of apps.zip... Almost there... (re-running it a 2nd time, hence the skipping download output)

***********************************************
* Apps Installer *
***********************************************

apps.zip has been found.
Skipping download...

rm failed for /system/app/Facebook.apk, No such file or directory
3593 KB/s (2238785 bytes in 0.608s)
pkg: /data/local/tmp/GoogleServicesFramework.apk
Success
2806 KB/s (5827652 bytes in 2.028s)
pkg: /data/local/tmp/com.gau.go.launcherex-1.apk
Success
3314 KB/s (4023889 bytes in 1.185s)
pkg: /data/local/tmp/com.facebook.katana-1.apk
Success
3066 KB/s (4408080 bytes in 1.404s)
pkg: /data/local/tmp/com.google.android.apps.googlevoice-1.apk
Success
3429 KB/s (8054357 bytes in 2.293s)
pkg: /data/local/tmp/com.google.android.apps.plus-1.apk
Success
2943 KB/s (47023 bytes in 0.015s)
pkg: /data/local/tmp/SyncSettings.apk
Success
2566 KB/s (327980 bytes in 0.124s)
pkg: /data/local/tmp/Calendar.apk
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
3497 KB/s (3296645 bytes in 0.920s)
7365 KB/s (117652 bytes in 0.015s)
7995 KB/s (127720 bytes in 0.015s)

***********************************************
* All Done! *
***********************************************

That's all folks. Our apps have been installed.

Press any key to continue . . .

Still no Vending.apk being installed. I do see a "vending.apk" /data folder from apps.zip and a "Vending.apk" in the /system folder from apps.zip. Is the script not going into /system and pushing the (3) APKs ?

---------- Post added at 10:21 PM ---------- Previous post was at 09:42 PM ----------

I ended up pushing Google-Calendar/Contact-SyncAdapter.apk and Vending.apk (note the capital "V") to /system/app and I have the Market working now.
[Kindle Fire Android Development] Vashypooh:
You will not see it say vending.apk installed.

3497 KB/s (3296645 bytes in 0.920s)

7365 KB/s (117652 bytes in 0.015s)

7995 KB/s (127720 bytes in 0.015s)

That is vending.apk being installed.

Load up go launcher and it will be there.
[Kindle Fire Android Development] Vashypooh:
Dunno what to tell you, but it did install the vending.apk correctly in KFU when you ran it too. It can sometimes take a bit to show and dont believe it will unless you are running a 3rd party launcher.

You cant "push" anything to /system/app since adb wont run as root on stock.
[Kindle Fire Android Development] hallstevenson:
I was checking for Play under Go Launcher. I knew it wouldn't show up under Amazon's launcher.

I guess "push" was the wrong word, I used Root Explorer.

It's all good now though!
[Kindle Fire Android Development] DigitalAnalog:
KFU has an option to 'obtain stock update.zip'. If I flash that zip via TWRP, will I get the stock Kindle OS?
[Kindle Fire Android Development] Vashypooh:
Yes but you need to be careful doing that, wipe factory, system, and just about everything before you flash that update.zip it gets.
[Kindle Fire Android Development] Chronzy:
Thanks!

Just wanted to thank Vash and everyone else who made this utility possible. Within an hour of getting my Kindle home last night I had it rooted and loaded with CM9. I would have not bought a Kindle if this were not possible so I wonder if device manufacturers out there understand how the hacking/development scene truly drives sales. Hopefully they're paying attention and continue to.

Thanks for the $200 tablet! A token of my appreciation: 88R73350F44596615
[Kindle Fire Android Development] gruuvin:
I don't think Amazon is making money selling kindle fires to hackers who root. I think they make the money selling books.

So if you love your fire, spread the love to Amazon and buy some books!

;)
[Kindle Fire Android Development] kenikh:
^ Agreed. FWIW, if I can buy an app from AMZN over Google Play, I do.
[Kindle Fire Android Development] Chronzy:
Oh, I've bought around 15 books from Amazon over the last 2 yrs and considering Amazon Prime. I'm all for supporting a good product/brand monetarily. It's just good to have a good tablet at a reasonable price.

All things considered I'm sure Amazon would rather have this device in my hand over a nook color.
[Kindle Fire Android Development] hallstevenson:
I think you wildly overestimate the number of people who "hack" their Kindle Fire (or most any device) in the grand scheme of things.
[Kindle Fire Android Development] gruuvin:
No doubt!

I have prime too... love it! It's great to pay nothing for shipping and get stuff in two days. What's the point of going to best buy or walmart when you can find better selection for better prices, brought to you in no time!?
[Kindle Fire Android Development] jwhistler:
You cannot go wrong with Amazon Prime!
[Kindle Fire Android Development] binaryman001:
Hi, so I was trying to get my kindle rooted, and noticed that when I started the KFU, unlike the screenshot, mine did say it was online, but that the boot status was unknown. So i then disconnected the device and tried again, and still get the same error, does anybody know why that is or if it will effect the root process?
[Kindle Fire Android Development] mk69:
adb status: offline and boot mode: unknown

For those who have been getting the following results when you run kfu...

Adb status: offline

Boot mode: unknown

try the kindle fire USB driver installer file attached... The one that comes with kfu didn't work on two of my XP machines, but did work on my Windows 7 machine. The driver install file attached worked on both of my XP machines. Now kfu runs and I have online status and boot mode status on my XP machines...

Good luck...

http://db.tt/rnvhMgic
[Kindle Fire Android Development] binaryman001:
odd thing is that is that I actually am running a windows 7
[Kindle Fire Android Development] soulweeper51:
It was suggested by kinfauns in this thread that I started

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

that I ask a question I have here. I'm assuming this is the thread he meant. I just got my kindle fire, yes, I'm a noob to this.

Anyway......I've decided to skip just rooting my Kindle Fire, and want to flash a custom ROM, not sure which, but that's irrelevant.

I copied and pasted my question, and his response, and hope to get some clarification on the rights steps using KFU to flash a custom ROM.

"if I decide to go with KFU, would I simply

download KFU

install the drivers

install TWRP

install FireFireFire

boot into TWRP, and flash whatever ROM I chose?"

Sounds right and I would think that it would work, but I don't speak KFU. Might be easier just to cross your fingers and do the rooting process. I'm guessing it does both installs at the same time. You'd probably have better luck asking someone over in the KFU thread.

Thanks in advance!
[Kindle Fire Android Development] potestasx:
You must root your device before installing a custom recovery/bootloader.

Sent from my Kindle Fire
[Kindle Fire Android Development] Chronzy:
Using this utility to root and install a recovery makes it incredibly easy on the Fire:

1. In the KFU folder, first run the install_drivers.bat

2. Run the utility (run.bat)

3. Select option 2 to root the device

4. Select 3 or 4 to install the corresponding recovery (I went with TWRP)

Done.

FFF and extras are optional.

Dontate to show your support for good development! Devs aren't buying new devices based off their thanks count. ;)
[Kindle Fire Android Development] soulweeper51:
After all that, I can boot into recovery, and flash whatever ROM I want, correct?
[Kindle Fire Android Development] Dasanko:
Rooting is NOT necessary if you just want to flash a custom ROM.

Just as the steps you originally described (save for switching the install order, just an habit):

Download KFU and extract it

Run install_drivers.bat (may want to delete your old drivers first and then unplug your KF before running this)

Finally run KFU through run.bat

Install FFF (this one is very important, don't just label it as optional!)

Install TWRP

Close KFU and make a backup, flash away, whatever else you'd like to do...
[Kindle Fire Android Development] ProfEngr:
Edit: removed question & hopefully posted in a more relevant location.
[Kindle Fire Android Development] soulweeper51:
EDIT: Retracted post
[Kindle Fire Android Development] ahage16:
Thanks for the utility, but I think I may be having some problems. It seems like I get a lot of errors when I run the tools, but in the end it tells me everything worked fine. Here are some screenshots from running this: (apparently I am not supposed to post images, but is this allowed? imgur.com/a/OHpJF)

The first two are from installing root, next two are from installing twrp, and then the last one is from trying to boot into recovery. When I do that, it just ends up booting like normal. Is there an easy way to check whether root was done properly? How about if the recovery was installed?
[Kindle Fire Android Development] Dasanko:
You can easily check if root was installed properly by running an application that requires root: root explorer, titanium backup, etc...

FFF and TWRP definitely failed to install. wget also failed to fetch the files in the first place. Can you tell us a bit more about the way you're using KFU? Did you try placing it in a short path, such as C:\KFU ? Are you right clicking and "Running as Administrator"? (this can mess up the paths) Did you edit any of the files? Take a look in files/files.log as well... OR make sure KFU/wget isn't being blocked by a firewall of some sort.

You may want to just redownload KFU and start from scratch. Also, double check the drivers, even if they appear to be working right, make sure they show up like in the table here: http://xdaforums.com/showpost.php?p=23747671&postcount=2
[Kindle Fire Android Development] Higg777:
Can't get root. Everything else seems to be working great though. Getting this:

Attempt to remove root checker.

mv: can't rename '/system/bin/check_rooted': No such file or directory

Please wait...

Installing Superuser.apk

Error: Could not access the Package Manager. Is the system running?
[Kindle Fire Android Development] ahage16:
Thanks for the suggestions. I tried moving it to a short path and temporarily disabling firewall before running root installer again, but it doesn't seem to be working after I tried running setCPU. Driver seems to be installed fine as well. I'll try redownloading and see if that fixes anything.

EDIT: Whenever I ran the batch file, even though I didn't right click run as administrator, it would say administrator in the title bar. I tried running it when logged in as a standard user, and the word is gone from the title bar, but the results are the same. I haven't edited any files, and this is what my files.log looks like:
[Kindle Fire Android Development] Dasanko:
It looks fine, I assume you've already tried redownloading KFU? Although the issue is probably in your OS.

As a get around, you can try manually downloading those files, using the links included in your files.log to get (put them under KFU\recovery) whichever ones you want to flash (and it wouldn't hurt to verify their hash later using a program for it), although at this point, I'm not so sure using KFU to flash FFF and TWRP is a good idea at all - something else may fail, and that wouldn't be a good or nice thing.
[Kindle Fire Android Development] Techlyfe:
I'm late to the help game but what OS are you running? And what is the exact directory that you are running KFU from? When you run KFU does it show whether it is ONLINE and what the BOOTMODE is?
[Kindle Fire Android Development] ahage16:
I'm pretty sure I managed to get everything working correctly, although I don't know why no one else was having problems. I tried manually downloading the necessary files, but the script still was not finding them. I noticed that it was looking for files with different names then the downloaded ones, so I renamed all the files, but then the MD5 check was failing on all of them. So I manually checked MD5, and removed that part checks it in the script, and then everything seems to work correctly. I was able to run a root only app, and I can boot into recovery. I don't know why I didn't just do this manually to begin with.
[Kindle Fire Android Development] Higg777:
Any though what I should do to get root from that error? Seems like the root checker isn't allowing removal.
[Kindle Fire Android Development] Techlyfe:
What exactly are you doing or more precisely what have you done already?

What ROM/Firmware are you currently running.

Have you tried Sideloading Superuser.apk?
[Kindle Fire Android Development] Higg777:
Thank you for the response. I'm using KFU only. I'm on stock ROM/firmware. I tried flashing a superuser zip from recovery but that didn't take. That error comes in the batch when trying the root option. I was able to successfully flash TWRP and CWM recoveries though, so device communication seems good.
[Kindle Fire Android Development] Dasanko:
http://xdaforums.com/showthread.php?t=1552547

Since you're having issues rooting, try the manual method (you didn't mention which stock version, so I'm assuming >=6.3): http://xdaforums.com/showthread.php?t=1568340
[Kindle Fire Android Development] Techlyfe:
Not exactly sure of the issue, it could be possible that you don't quite have root as of yet. Have you tried using an app that requires root?

Try this, sideloading the superuser.apk :

Plug up your kindle, and enable mass storage mode.

Copy the superuser.apk file that is located in KFU\files folder, onto your kindle. Disable mass storage mode and on the kindle use a file browser to navigate to the location where you copied superuser.apk. Now click the file to install it.

Wait a minute, on the stock rom, and most, if not all roms, there is an option that allows installation of non-market apps, usually located in security tab of settings. Do you have that enabled? If not, that is your issue i believe. You can't side load/install apps via adb or file browsers unless you enable that setting, if i'm not mistaken.
[Kindle Fire Android Development] wayzata:
Damn this is INSANELY involved beyond what I've seen on other devices.

The Kindle shows up as ADB Composite Device or something but it says device not found when I try to run the first adb command, tried adb kill-server and it still didn't work. Any ideas?

I mean honestly, are you trying to make it impossible? I've read all the guides and it's like when you get a math lecture and they basically explain 2+2=4 then the test is "If you have $10 find the mass of the sun"
[Kindle Fire Android Development] Techlyfe:
This is the KFU thread, why would you be running adb commands?

*edit* What exactly are you doing, you don't mention whether or not the device shows up ONLINE nor do you state whether kfu displays what bootmode. I have no idea from what you (explained?) that would allow anyone to help you in the least.
[Kindle Fire Android Development] DeamonFish:
Not sure if it's a problem for anyone else, but it would not install TWRP for me, it would only boot from it.

tools\fastboot -i 0x1949 boot recovery\twrp.img

Okay, so, is it supposed to only boot from it? I would have thought that you want it to run tools\fastboot -i 0x1949 flash recovery\twrp.img

Anyways just thought i'd throw that out there.
[Kindle Fire Android Development] Vashypooh:
You are not using the latest KFU.
[Kindle Fire Android Development] DeamonFish:
Ah, okay. It all makes sense now :P
[Kindle Fire Android Development] ninjames:
Really not sure where to ask this, but can I get some help? Rooted today using this utility, and installed Google Play/Go Launcher

Is there any way to go back to using Kindle's native reading app? When I click on books it instead opens the mobile equivalent of the Kindle App to use. For one, it's a sloppier interface and not good. For two, I don't like clicking a book from the carousel and opening up into an app. I want to go straight to a book. In other words, I don't want anything to do with that app or Go Launcher, really.

Is there a way to go back? I can't even get the new Kindle App to recognize any of my books. Clicking on one just opens to a blank kindle screen. No idea to even sync books to that app.

Lastly, is there a way to get the Google Play store into the Kindle Launcher? This is all really confusing. I may want to go back to stock if it's taking away functionality to root it.

And I apologize because I'm sure this has been asked before ..

EDIT: Now all of my books aren't showing up at all, despite being in "Documents" on the SD Card (where Calibre placed them and where they appeared on the main Books tab since before rooting) and books won't download from the cloud when I tell them to. How do I reverse all of this and go back to how I was? Before root with the original recovery. Unless there's a way to remove all this other crap and just be rooted with the play store (ie, still using the native kindle interface that actually works ...)

EDITEDITEDIT: Wow. Alright, so I apologize once again for making this all muddled and the like. I wiped and flashed the stock rom and everything seems to be back to normal. Can't quite figure out the best way to root and get Google Play without custom launchers or ruining my actual kindle app.
[Kindle Fire Android Development] Techlyfe:
Rooting with KFU doesn't actually make any real changes to the stock rom outside of adding root. What you must have done before was update the kindle app in playstore with Kindle for android. That was your mistake, three apps you must not update: Kindle for android, Google Music and Google Movies. They will give you hell, (not work like you are used to them working in stock launcher) when your on a stock rom.

You can use another launcher, but in that launcher you must put a shortcut to the kindle launcher nearby to access the other functionality that you are used to.

1. Install root

2. Install google apps / go launcher

3. When done, and you get the option to select the default launcher, do not let go launcher be the default launcher. Check the "make this default" box and select the kindle launcher.

4. You should be good to go, just do not upload those 3 apps i mentioned above.

Oh and the reason the kindle for android app wasnt reading your documents folder is because it is hardcoded to check the new sdcard\kindle folder for books.
[Kindle Fire Android Development] jacewt:
If you get google play, do not update the kindle app through google play. It will break your kindle app on custom rom. Do not install go launcher or any other thing. You can get google play and keep stock just the way it is.
[Kindle Fire Android Development] hallstevenson:
I learned not to update the Kindle app through Google's Market ! After I did, my wife wanted to know where her books were ! It made her log back in and Amazon didn't make her re-pay, but did make re-download them.
[Kindle Fire Android Development] CannibalAngel:
I keep getting this error when running run.bat:

Any suggestions?

I am on Windows 7 Home Premium SP1 and am right-clicking and choosing Run as Administrator.
[Kindle Fire Android Development] Techlyfe:
Rename the \Kindle Fire Ultility folder to KFU and also put the folder at the root of a drive so that it looks like this C:\KFU or D:\KFU and try again. Usually this happens when you have characters or spaces in your username.
[Kindle Fire Android Development] redbean25:
Also because you are right clicking and choosing Run As Administrator, Windows is looking in the system32 path for the executable for adb. Just run it directly from that directory...not as admin.
[Kindle Fire Android Development] Ledgehanger:
Thank you for a great tool for those of us that are just starting to dangle our toes in the water of rooting/flashing/etc. This is phenomenally helpful.

In time I'll get to where I am willing/able to do a lot of this stuff independently - but having you put a nice bow on it for me right now was great.

Now... how long can I be happy with my "Stock plus Swype" Kindle Fire before I feel the need to flash a custom ROM...? ;o)
[Kindle Fire Android Development] kenikh:
Hopefully longer than me...it took me all of 1 day to ditch for ICS. I've never looked back.
[Kindle Fire Android Development] CannibalAngel:
Renamed the folder KFU and moved it to C: and I still get the same error.
[Kindle Fire Android Development] powerpoint45:
download fail

When i choose install fff or twrp it just goes to fastboot then boots back up.and when i try to root it does same thing and is not rooted.but it installs superuser.apk.is their a security thing preventing it.I'm using win 7 please help.all firewall is off.I think its a download problem.

here is the error while trying to install fff:
[Kindle Fire Android Development] powerpoint45:
root error

and here is the root error

im running 6.3.1.I just got a new kindle today and manually updated it with the amazon instructions.Im wondering if thats what is causing the failure.What im worried about is this:

Please help. I hate stock.I think the utility did something different the second time I tried to root.but it still failed.I don't get it.
[Kindle Fire Android Development] Dasanko:
Pretty much. Try this: http://xdaforums.com/showthread.php?p=26408206#post26408206
[Kindle Fire Android Development] powerpoint45:
thank you so much.i cant try now but i will when i get home.so pretty much in the log it will have the urls to download the files, then u put them in the right folder.
[Kindle Fire Android Development] Dasanko:
The hashes are there as well. Don't forget to double check that the hashes match your downloads, otherwise you could be in for a big headache.
[Kindle Fire Android Development] powerpoint45:
what do you mean by hashes or will it be obviouse what your talxin about when i look at the file.cause im not home yet.
[Kindle Fire Android Development] bboti86:
Hey,

thanks, great tool.

Unfortunately driver install will not work on a localized windows.

If you add the /L 0x401 option to the install_driver bat it will work on anything (but it will default to English).

See it here: http://msdn.microsoft.com/en-us/library/windows/hardware/ff544886(v=vs.85).aspx

B
[Kindle Fire Android Development] Dasanko:
It will be obvious. Just get an application that can check MD5 hashes (for example, HashTab) - if they match, that means the file is completely equal and not corrupt or different in any way.
[Kindle Fire Android Development] powerpoint45:
Ok.I did exactly what you said and checked the md5 and it matched exactly.but i still got a different error here it is:

I'm sure i need to do like one more thing, but i don't know what.I think for some reason it cant find the md5, so it cant verify the file.I also changed the file names to twrp.img and fff.bin.Am i supposed to make an fffmd5 or something.if so how do i make it and where do I put it?Oh and thanks for the quick responses.
[Kindle Fire Android Development] tehloxely:
Does this install TWRP 2.1.0? If not, maybe you could add it?
[Kindle Fire Android Development] Dasanko:
That's pretty ridiculous. No idea why your command line is unable to use basic commands, but whatever. You're the third person that has had these issues. Can you point anything out you may have done with KFU? Editing any files at all? Just trying to find some kind of common cause here.

Either way, at this point, it's probably best to go with the manual approach than to fight over and over with KFU: http://xdaforums.com/showthread.php?t=1638452

If you're already on fastboot and waiting, go straight to:

fastboot -i 0x1949 flash recovery "C:\KFU\recovery\twrp.img"

fastboot -i 0x1949 flash bootloader "C:\KFU\recovery\fff.bin"

fastboot -i 0x1949 oem idme bootmode 4000

fastboot -i 0x1949 reboot

(as a side note, next time you have to use fastboot you won't have to use -i 0x1949 anymore... and you won't have to use it under ADB once you install a different ROM)

It installs TWRP 2.1.1