yashsingh1/xdaforums huggingface dataset:
[Kindle Fire 2 Android Development] Hashcode:
RAZR and Atrix 2 both have locked bootloaders which can't be flashed in this way.
[Kindle Fire 2 Android Development] granadier:
ok thx.. so this only works for any non-locked bootloarder??
[Kindle Fire 2 Android Development] powerpoint45:
repo

@hashcode Do you know why this keeps happening?

Get https://github.com/CyanogenMod/android
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
[Kindle Fire 2 Android Development] Hashcode:
Sometimes it takes a few tries if github is having issues.
[Kindle Fire 2 Android Development] MisterSir69:
I want to attempt this, Little Confused on where to place the downloaded files and how to push them and Where to take the files that need to be stored for safe keeping.
[Kindle Fire 2 Android Development] Hashcode:
The boot.img and recovery.img download files stay on your computer where you will use the fastboot command to flash them to the device.

The ROM.zip and gapps need to be placed on the /sdcard so that you can browse to them in TWRP.

And save the files that you pull in step #1 somewhere on your PC for safe-keeping.
[Kindle Fire 2 Android Development] MisterSir69:
I think My problem is, I dont know how to pull or push files using ADB. Any step by step process to learn how to do this?
[Kindle Fire 2 Android Development] fmkilo:
The files that need to be kept, the stock backup needs to be kept safe somewhere on your pc.

You pretty much need to be running mac or linux for the stack override.

put the .zips on your sdcard of your kindle.

you push them with adb

The most important part is that you don't get flustered, and have a factory cable on hand for emergencies..
[Kindle Fire 2 Android Development] MisterSir69:
not getting flusterd thats for sure, LOL im loving the input and learning how to do this, It keeps me busy. I just dont know how to use the commands that have bee supplied. And where the files will be backedup too so I can save them

---------- Post added at 02:18 AM ---------- Previous post was at 02:08 AM ----------

LOL okay, Looks like I have Figured out how to push these files. Im assuming the TWRP and other 2 files Need to be placed in the SDK/platform-tools Folder. Please correct me if im wrong. The other Files Gapps and Rom need to be placed on the sdcard. Think I have this figured out. Still confused on how to get the backup to run. At cmd prompt I navigate to my SDK/platformtools folder and I type the first command But I get Remote object adb pull /dev/block/platform/omap/omap_hsmmc.1/by-name/boot not a file or Directory
[Kindle Fire 2 Android Development] mindmajick:
When you say "pretty much"... does this mean it CAN'T be done on windows?
[Kindle Fire 2 Android Development] iytrix:
I noticed you said the HD codec doesn't work? What exactly does this affect?

I use the kindle mainly for netflix now, so will it not load the HD video somehow? I've never really understood codecs even on PCs, just knew that I had to download vlc and everything was fine and dandy haha.

Great work though guys! Thanks for all the time and effort you've put into this. Now that we are over the main hurdle everything should fall into place for getting it all working. Powerpoint will you be working on a ROM at all? It seems like you want to make things for personal use but I'm sure we would all love a much loved and worked on ROM with neat features :P

Once again, thank you all!
[Kindle Fire 2 Android Development] fmkilo:
netflix won't load nor will hd youtube. He's working on hdcodec.

---------- Post added at 07:56 PM ---------- Previous post was at 07:49 PM ----------

these are very similar, I assume you are both using windows. @mindmajick, if you try to pull the block images from windows, you get the error that @MisterSir69 got.

To circumnavigate this, go ahead and use

adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/recovery.img'
adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/boot.img'
adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/system.img'
adb pull /sdcard/recovery.img /some freaking directory you remember
adb pull /sdcard/boot.img /some freaking directory you remember
adb pull /sdcard/system.img /some freaking directory you remember

that should eliminate the errors.. and that is how you do that part on windows. the other part is creating the stack, it needs to either be given to a windows user, or the user has to boot into linux or mac to make it.
[Kindle Fire 2 Android Development] mindmajick:
Thanks. Just trying to be clear on everything.. before my cable comes. Since i ordered from Hong Kong it will probably be a while- which is probably a good thing as it gives me more time to become proficient with the fire.

I've made a few roms for phones over the past year or so, but I don't feel like bricking my week old toy just yet :D
[Kindle Fire 2 Android Development] MisterSir69:
I was able to push the stack just for test purposes but did not go any further until I backup
[Kindle Fire 2 Android Development] fmkilo:
As I already noted, there are a couple ways to handle flashing all of this without a factory cable, dd and idme bootmode. idme is included in both the rom and twrp that hashcode has linked up here. I suppose you could look for my post about what the bootmodes are in the "ibootedtwrponmykf2" thread... but that's probably asking too much. If you can get to twrp, you're probably good for without a cable, and I can assist you if you are smart enough to know that a factory reset from within twrp wipes /data without wiping /sdcard/ or /data/media.
[Kindle Fire 2 Android Development] speeddemon2008:
I just opened my KF2 that I got like a month ago. I did this so I could fully charge it. I did that with anticipation of putting CM10 on it.

I will be waiting, for when more bugs are worked out.

Good work guys!
[Kindle Fire 2 Android Development] fmkilo:
there is only one bug, we have been testing it for 4 days straight to get adb working, sdcard working, sound/video working. The only thing that does not work is the hdcodec. which means no netflix or hd youtube. everything else works fine. I think Hashcode has an aosp build for it too, but we have not even seen a link for it.
[Kindle Fire 2 Android Development] mindmajick:
Lol. I get that and I've read EVERY thread in the Kindle fire forums for all models... I just like having a backup plan available. I'm also pretty familiar with hardware and software... I've been an IT guy since i was 6 years old... I'm 37 now so...

It's not the flashing I'm worried about, but the chance of an issue without a way to recover.

I will never be that guy who bricked his stuff without a way to recover. Plus i have patience.. a virtue lacking in XDA ;)

Edit: it's also why i bought the Kindle fire.. not despite the two year old hardware inside but BECAUSE of it.
[Kindle Fire 2 Android Development] RevMike:
Posting from my KFOT - great job.

Few minor issues to report.

When I first attempted to boot to recovery it locked up. I could not boot past the blue screen. I reflashed recovery and everything worked. Not sure I can repeat it, but I'll try tomorrow.

Upon initial setup Google offered to restore my apps and settings. During this process WiFi glitched. I had 90 or so apps that failed to load. WiFi almost immediately reconnected and has been stable since. Just as likely to be my environment as anything else. So far so good.

---------- Post added at 10:10 PM ---------- Previous post was at 10:03 PM ----------

One other issue. My first attempt to boot after installing CM and GApps seemed to hang. I went back to recovery and wiped data. My data partition was still populated with the stock Amazon stuff. After wiping it I was able to successfully boot. I install enough custom roms on other devices that I should be able to remember this, but I was so intent on following your directions that I didn't do it.

I'll keep posting anything else that comes up.
[Kindle Fire 2 Android Development] fmkilo:
If you knew to wipe /data, why didn't you do that first? I mean, I could see someone who didn't know not flashing, and I understand that you wanted to follow the instructions, but stock amazon 4.0.3 data won't work on our 4.1.2 hackmod cm10.1 os.

---------- Post added at 09:28 PM ---------- Previous post was at 09:24 PM ----------

If you wish, and can join the freenonde irc #kindlefire-dev I will walk you through it, step by step. even from windows.

if you do use windows, go ahead and google mirc or webclient irc
[Kindle Fire 2 Android Development] mindmajick:
Appreciate it, but AGAIN it's not a lack of knowledge... i use Windows AND Linux and have taught quite a few people how to build from code. I understood your post in the other thread just fine.

Please take a look at my profile and my post history. There is a reason i have so many thanks ;)

I may take you up on the irc offer though just to see what you guys are up to. :D

Thank you for sharing. I think your info will keep someone else with less experience from thinking they bricked.
[Kindle Fire 2 Android Development] fmkilo:
Hashcode is offline for now.. I am about to make a video of the entire install process.

PPT could use some company while I'm away.
[Kindle Fire 2 Android Development] danis1997:
i tried whitout fastboot cable and i bropke my kindle jeje...i recommend to not do this process whitout a fastboot cable.

i damaged my bootloader not it is in a permanent bootloop, no ADB,Fastboot; and my PC does not reconize it...i think people will not want to be in my possition

i am waitting for my fastboot cable to try to solve this problem, i hope it works :)
[Kindle Fire 2 Android Development] mog44net:
I did something similar the first time I attempted recovery install. Fastboot cable is very recommended for the FK2.
[Kindle Fire 2 Android Development] danis1997:
yes, is better to not do it again i already have my fastboot cable and i rich to install android on my KFH7" :)...i want to share my experience do in it manually xD hope you dont do it jaja
[Kindle Fire 2 Android Development] Hashcode:
OP Updated with all new 10.4.3 based files + TWRP 2.6.0.0

Changelog: updated 2013-07-08

freedom boot.img (for use w/ stock Amazon OS + 2nd-bootloader):

[07/08] Updated w/ kernel from 10.4.3 release

TeamWin Recovery (TWRP) 2.6.0.0

[07/08] USB Vendor ID / Product ID in recovery now matches stock Amazon OS

[07/08] Based on 10.4.3 stock kernel

[07/08] Fixed recovery bootloop issue

[07/08] TWRP 2.6.0.0 update
[Kindle Fire 2 Android Development] boringfrog:
Up and running

Kindle Fire 2 up and running CM10.....fantastic work.:good:
[Kindle Fire 2 Android Development] SysWiz:
Any chance we can get this updated with the 10.4.6 kernel? Thanks for all your time!
[Kindle Fire 2 Android Development] SB13X:
Done all the steps one by one and ensured using the binary and qemu method I had root (double checked with root checkers) got the blue bootloader screen but won't boot into recovery just sits there on the blue screen saying booting I've tried fastboot erase cache but nothing, can't get into recovery and can't even boot into stock just getting the red triangle and the reboot reset to factory options.

Any advice, no fastboot cable lol ;) what can I say I like living life on the edge. (And hate spending money if not needed too haha)
[Kindle Fire 2 Android Development] jamadant:
Can anybody help, i followed the instructions in post 1 and my kindle fire 2 is now boot loop just flashing the kindle fire logo. any help greatly appreciated, i have tried searching all night but cant seem to find an answer
[Kindle Fire 2 Android Development] Hashcode:
Flashing? Like orange to blue and back to orange? Or just one color?
[Kindle Fire 2 Android Development] Hashcode:
This sounds like the recovery.img didn't flash correctly. Can you re-download this file:

http://goo.im/devs/Hashcode/otter2/otter2-twrp-2.6.0.0-recovery.img

md5sum: 54cd3fda08c51de2667e3bf82487a055

And flash it with fastboot:

fastboot -i 0x1949 flash recovery otter2-twrp-2.6.0.0-recovery.img

(If you can enter fastboot mode)
[Kindle Fire 2 Android Development] boringfrog:
ADB push

I got a Kindle fire 2 up and running CM10 great a while ago, now i'm trying to install CM10 on another KF2, but struggling to push the Stack file using ADB, error says not a directory? Any ideas?
[Kindle Fire 2 Android Development] SysWiz:
Put a trailing "/" after sdcard :
[Kindle Fire 2 Android Development] moparnut06:
I can not thank you enough for this guide Hashcode and all those involved. I bought a KF2 about a month ago. Coming from the original KF I figured this process would be just as simple. Boy was I wrong! I've successfully flashed TWRP and am now in the process of installing CM 10.1. I am beyond ecstatic. I couldn't manage to do it on my windows system for some reason... but now that I have accomplished this I realize what my mistakes were (I think). But of course... Linux comes to save the day. I also ran into the adb push stack /sdcard issue, but thankfully the additional backslash fixed it. Everything from there was a cakewalk... minus the corrupt bootloader flash that I had to re do. I MD5SUM'd it and knew my DL was good, so a reflash fixed me right up.
[Kindle Fire 2 Android Development] Hashcode:
Sorry! Added the backslash to the OP.
[Kindle Fire 2 Android Development] Nick N:
Can these steps be done with a KF2 that is on 10.4.6 or do I have to wait until the OP is updated?
[Kindle Fire 2 Android Development] kjhst123:
It works on 10.4.6
[Kindle Fire 2 Android Development] Nick N:
Edit: Redid everything and I was able to get to recovery

Had to use TWRP adb sideload to get CM 10.2 and Gapps onto the sdcard portion of the KF2.

Boo Yah!
[Kindle Fire 2 Android Development] cole_himself:
Thanks for this, Hashcode! Got CM10.1 working on my Fire now!
[Kindle Fire 2 Android Development] Reza WM:
hi every body

i have KF2 and i try root and install TWRP on it

im on 10.4.6 on my kindle

1- root my device

2-reboot in fastboot and install TWRP

3- blue kindle fire successfully install

now after reboot my device when normal boot goes to "Your kindle device cannot boot" screen and when i factory defualt back to this screen

and when my kindle boot up goes to recovery, my device stuck on kindle fire blue and do not any thing

when this happend.. when i turn of my device and turn on when cable in my device can go to fastboot but i flash otter2-u-boot-prod-10.2.4.bin and now when my device turn on when in cable cant access to fastboot

my device is on Your kindle device cannot boot screen when normal boot or stuck on kindle fire blue when go to recovery

how can fix it?! help plz

sorry for my bad english
[Kindle Fire 2 Android Development] stunts513:
You need a fastboot cable if you have the stock bootloader to get into fastboot.
[Kindle Fire 2 Android Development] pinbacninh_city:
Hello everyone.

Sorry for the english is not my native language.

I have a Kindle Fire 2 and 1 I'm trying to make TWRP Recovery effort but were unsuccessful.

Although as I type ADB commands will be successful.

But when select command (fastboot-i 0x1949 reboot) to restart and follow the instructions, it will appear blue logo (** If everything was done đúng at this point you will see the bootmenu with a BLUE During the reboot logo. **)

But that did not happen to me

My Kindle Fire 2 Kindle Fire still boot logo in yellow.

Actions so be repeated without any viable progress.

I hope people help

Thank you:crying:
[Kindle Fire 2 Android Development] kdan8888:
Same problem here!! help please!!! and i dont have the fastboot cable!!:crying:
[Kindle Fire 2 Android Development] flopower1996:
I highly recommend you to order/make a fastboot cable. Helped me in many situations. 6-10$ are nothing, when your 150$ device is bricked ;)
[Kindle Fire 2 Android Development] DroidDonX:
Hey Guys. I tried to download the files today for installing the 2nd Bootloader on my Kindle Fire HD, but when I try to download them it says "The file you requested was not found". In fact, I dont see any of Hashcode's files on Goo.Im. Is there another link I can use to find the files?

Thanks

---------- Post added at 07:43 PM ---------- Previous post was at 07:43 PM ----------

Hey Guys. I tried to download the files today for installing the 2nd Bootloader on my Kindle Fire HD, but when I try to download them it says "The file you requested was not found". In fact, I dont see any of Hashcode's files on Goo.Im. Is there another link I can use to find the files?

Thanks
[Kindle Fire 2 Android Development] BrooklynNY:
They're all right now
[Kindle Fire 2 Android Development] WhiTeRhiNo:
Tried downloading today. That stack files are not found. Could someone please reupload or send me links to files. Thanks
[Kindle Fire 2 Android Development] boringfrog:
TWRP but no fastboot

I have got a Kindle Fire with TWRP installed but no operating system yet, when I plug in my factory cable it doesn't start up in fastboot mode, any ideas why?
[Kindle Fire 2 Android Development] WhiTeRhiNo:
If you have recovery then you don't need fastboot. Just boot into recovery and adb sideload the Rom onto device. Adb sideload is in advanced tab in recovery
[Kindle Fire 2 Android Development] boringfrog:
No ADB sideboard on this version? I can access the SD card and have cm10zip file on but when trying to install get SD card error.
[Kindle Fire 2 Android Development] Hashcode:
Fixed download links. Sorry about that.
[Kindle Fire 2 Android Development] mindmajick:
Are you sure it's a factory cable and NOT the cable that came with the device?
[Kindle Fire 2 Android Development] boringfrog:
Definitely a factory cable.
[Kindle Fire 2 Android Development] Hashcode:
Please double check to make sure you also have the right drivers installed.
[Kindle Fire 2 Android Development] boringfrog:
Drivers are installed, kindle is recognised as a adb device but only in twrp recovery mode, when booting up it doesn't go to the orange kindle logo 1st but straight to the blue logo, so I think the original bootloader is gone? I am think of try to get back to original Amazon os, can I do this without fastboot?
[Kindle Fire 2 Android Development] flopower1996:
Hey long time that i saw you you here. Can you give us a little roadmap about future development? E.g. New kernel or Android 4.4.

Thank you.

Gesendet von meinem Amazon Kindle Fire2 mit Tapatalk 2
[Kindle Fire 2 Android Development] boringfrog:
Sorted, well sort of. I managed to get GAPPS to install 1st, so then I downloaded the Kindle Fire 1st gen CM10 file and tried to install that, it worked. Still no idea why fastboot not working?
[Kindle Fire 2 Android Development] Hashcode:
Hard to say exactly. I'm experimenting w/ the 1st gen kfire. And while it is booting, there needs to be some things fixed before I would use it as a daily.

And I have a kernel update to 3.4 in progress as well, but I only get a small amount of dev time to work on it due to many other Android projects being in the works.
[Kindle Fire 2 Android Development] JonnyLawless:
This Step Hard Bricked my KFHD:

ADDED 04/02

Download the older 10.2.4 bootloader file and flash to your device via fastboot:

http://downloads.crackflasher.com/se...rod-10.2.4.bin

md5sum 5b03a7b428325de8d360ec201a745498

Can I fix this? because now it wont turn on at all.
[Kindle Fire 2 Android Development] flopower1996:
Buddy this is only for the kindle fire 2 (non HD). So post your question in the right section!

Gesendet von meinem Amazon Kindle Fire2 mit Tapatalk 2
[Kindle Fire 2 Android Development] JonnyLawless:
Oh great, This explains why my KFHD bricked. I was brought to this feed from this one: http://xdaforums.com/showthread.php?t=2228532 Which was in the Kindle Fire HD 8.9 Q&A section. So whoever linked this thread here screwed me outta my most prized possession.
[Kindle Fire 2 Android Development] mindmajick:
See response in other thread.

You screwed yourself buddy. So rude.

--》Sent from my mind to your screen
[Kindle Fire 2 Android Development] flopower1996:
yeah and so many times it's written down that this is only for the kf2
[Kindle Fire 2 Android Development] JonnyLawless:
There's just too many Models of Kindle out there I've heard KFHD gen2 Referred to as KF2. There's just so many that it's hard to find good instructions on how to Install a custom ROM on them. Don't get me wrong I'm no Idiot. I've sucessfully Modded Wii's, PSP's, Xbox 360's, PS3's and even Jailbroke a few of Apple's gadgets. DSo I'm pretty savvy with these things. But modding my KFHD turned into my first disaster.
[Kindle Fire 2 Android Development] vite0150:
lol!!! Yeah right T.T, I believe you jonny haha
[Kindle Fire 2 Android Development] JonnyLawless:
lol dead serious. I think I'm much better with consoles. Amazon did what Nintendo, Sony, Microsoft and Apple could not... Thwart me.
[Kindle Fire 2 Android Development] xXezmacXx:
So you have to have a fastboot cable to do this? I havent been on the kindle forums for long time, I just want to root, recovery and Rom.
[Kindle Fire 2 Android Development] Hashcode:
Links fixed.

I'll try and rebuild a new TWRP w/ SElinux enabled here in a bit (tm).
[Kindle Fire 2 Android Development] flopower1996:
Hey can you please fix the internal sd card in cm11? Thanks!
[Kindle Fire 2 Android Development] NavyLCDR:
I have to agree. I have never spent so much time scratching my head trying to figure out - do I need to flash that or not and where do I get that file from, because the link is broken...

Please, don't get me wrong, the work everyone does here is wonderful, I am very grateful for it and I love having CM10.2 on my Kindle, but a lot of the guides seem to be written for the more experienced to follow.

I still don't know if my Kindle is "normal" now or not. I can boot into CM10.2 just fine. I can get into TWRP just fine with the power button. But I cannot get into Fastboot or TWRP with any software command such as reboot recovery or reboot bootloader. My Kindle just goes through the yellow/white KindleFire logo for about 1 second and then turns itself off. If that isn't normal, I have no idea how to fix it :).
[Kindle Fire 2 Android Development] flopower1996:
When you mod this device you have to be an expirenced user. Give the fault to amazon which makes this device nearly unmodable. This device is realy easy to brick... If you are a noob and want to taste custom roms and more choose another device such as the nexus family. The bootloader of nexus devices is realy easy to unlock and the modding and developing community is huge. But don't blame us for amazon's fault.

Thank you.
[Kindle Fire 2 Android Development] mindmajick:
Much love to hashcode!

--》Sent from my mind to your screen
[Kindle Fire 2 Android Development] seansnuhouse:
how to get back to stock

Hey first off thank you hashcode for showing me how to get cm11 on my kindle fire 2 non HD tablet........now my question is how to get it back to stock if I want to......I started with 10.4.6.....I rooted it with kindle fire first aide..... I backed it up with kffirstaide (all 11 files)......then I backed up the three files with your cmd lines.......then put in your bootloader files and twrp......then cm11......I ran into trouble and ended up at the kindle fire logo stuck so I tried fastboot to flash back the three file backup....when it got to system.IMG...it was to big or something and gave the size error.....I did fix the problem by re flashing the boot loader and twrp and then side loading cm11......but now I still don't know how to get it back stock.....I've seen a lot of files across these threads to download like a sparsed system.IMG file to use but the link was dead.....I still don't know if I should use that with my boot and recovery.IMG files though.......does anyone have like a stock kindle fire ROM that can be run from tarp or something that would flash the kf2 back to stock and then maybe do an upgrade to unroot it or something?.....thanks