yashsingh1/xdaforums huggingface dataset:
[Kindle Fire 2 Android Development] xl97:
ok.. first side note:

found thisd while surfing eBay for non-related stuff: (TOG adapter)

http://www.ebay.com/itm/DM-Micro-US...64b07a3d6:g:4hEAAOSwHQ9WakOB&autorefresh=true

so these are the files then to transfer:

stack - I have this already

ROM (which is really CM11/Otter2??) - what you linked to? https://download.cyanogenmod.org/get...TLY-otter2.zip (do I need to extract .zip and transfer everything over?)

GAPPS - gapps-kk-20131119.zip - dont have this yet

I guess I'm still getting tripped up on some terminology.. lol..

CM11 vs Otter 2? vs TWRP? vs Recovery??

if only the CM11 (Otter2), STACK and GAPPS need to be transferred over.... where/when does the TWRP get installed?

off to search for GAPPS now..

thanks!
[Kindle Fire 2 Android Development] mikeataol:
Hi,

TWRP is installed when you run the

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

and the other commands change the boot sequence to allow TWRP ( a non standard recovery) to work

you install CM11 (the ROM) and GAPPS by using TWRP to install the zips.

no , you dont unpack them, just transfer them over from the pc to Kindle's internal storage and install them in TWRP
[Kindle Fire 2 Android Development] desarenezitic:
Just a couple of points, I did this without a fastboot cable by using adb to reboot bootloader and enter fastboot mode. I was not too bothered if I bricked my KF2 as it was lying around unused. Do this at your own risk.

For gapps I used open gapps as they are up to date. Micro or Mini packages will work.
[Kindle Fire 2 Android Development] mrkhigh:
I just installed cm11 on my mother in laws kf2 yesterday.

Note: I think you have to be below 10.5 software version? (Unsure)

Your first step is to get adb and fastboot drivers working.

Then download minimal adb and fastboot (Google it)

You can test adb by typing:

adb devices

from the command prompt you get when you run with minimal adb

You can now boot into fastboot

By typing:

Adb shell su -c "reboot bootloader"

Now test fastboot by typing

Fastboot -i 0x1949 devices

If all works

Then find all the files

Hashcode mentions at the first page of this thread (I think they were around post 545)

Run the commands one by one

If you don't use the latest twrp you will not be able to install cm11 but can cm10

Note: you have to immediately flash a ROM. Twrp goes away every time you boot kindle os..

---------- Post added at 11:48 AM ---------- Previous post was at 11:47 AM ----------

This post helped me get my drivers working:

http://xdaforums.com/kindle-fire-hd...le-fire-2-question-noob-t3206666/post66052428
[Kindle Fire 2 Android Development] mrkhigh:
Bump just so everyone knows these files are here
[Kindle Fire 2 Android Development] pc boy:
I managed to flash bootloader and recovery and managed to boot into recovery once, but I did not flash anything and just rebooted. now my kf2 is in bootloop and the blue logo does not show up so that I can enter recovery mode again.

Please help!!!
[Kindle Fire 2 Android Development] titziano1214:
acer liquid jade z bootloader

can someone tell me how to unlock the bootloader of a acer liquid jade z please I searched all over the internet but I didn't find anything
[Kindle Fire 2 Android Development] atMyOwnrisK:
Would someone be so kind to offer new download links, goo.im website is down for good.

Thanks!!

Edited: just found the post above with different link uploads #562
[Kindle Fire 2 Android Development] atMyOwnrisK:
mods this can be deleted. edited above.
[Kindle Fire 2 Android Development] Galaxyplayerman:
Does this work without a fastboot cable (IE just using a regular micro USB?)
[Kindle Fire 2 Android Development] pakidermo5000:
Thanks man !! You are my hero.

I could flash my Kindle Fire 2 which had the Stock ROM with version 10.5.1 following your indications. Now I have PACRom Up and running.

I will only add some links to download stuff.

How to flash a new ROM in your stock Kindle Fire 2.

I assume you have the "Minimal ADB and fastboot" ready in your computer as well as the drivers.

0- Check that when you connect the kindle in your windows computer, you see "Android Phone --> Android ADB Interface".

Is this not the case, it means your drivers are not OK. Google it.

1- you need root.

download the KingRoot app from here and install it in your kindle. KingRoot​

2- reboot your kindle

3- Now you need to download the files that you will have to flash.

Find them here Freedom boot, twrp, otter2 u boot, and stack --> thanks [MENTION=4992322]mrkhigh[/MENTION]​

4- Download ROM and Gapps

You can choose whatever ROM you like.

I tried LineageOS 12.1 but could not make it work. I could not go pass the wifi bug. Wifi bug .

And the corresponding Gapps. OpenGapps[/INDENT]

And now follow the process explained by [MENTION=5561010]mikeataol[/MENTION]

Boot normally

1- Boot normally your Kindle Fire 2 and copy these files in the /sdcard/ of Kindle fire. The ROM and Gapps will be copied later

adb push [U]stack [/U]/sdcard/
adb shell su -c "dd if=/sdcard/stack of=/dev/block/platform/omap/omap_hsmmc.1/by-name/system bs=6519488 seek=1"

2- Now get in fastboot mode

You only need a normal cable USB cable. If you were able to copy the files to the sdcard, it means you have a good cable. Sometimes, some cables do not work. Try another one.

This command will get you in fastboot mode

adb shell "su -c 'reboot bootloader'"

Once in fastboot mode

Now you will flash the other files that are in your computer

fastboot -i 0x1949 flash bootloader [U]otter2-u-boot-prod-10.2.4.bi[/U]n
fastboot -i 0x1949 flash boot [U]otter2-freedom-boot-10.4.6.img[/U]
fastboot -i 0x1949 flash recovery [U]otter2-twrp-2.7.0.0-recovery.img[/U] --> watch out with this one, check it is the right version

--- If everything was done correctly you will at this point see the bootmenu with a BLUE logo during the reboot

During the blue logo screen press the power button to cycle through options and select "Recovery" to enter TWRP

Once at TWRP

Wipe --> Advance Wipe and Select: WATCH out, this will delete everything you have in the /sdcard/ WE will have to copy ROM and Gapps

x Dalvik Cache

x Data

x cache

x system

x internal storage

Then --> format data
​

The internal memory (/sdcard/) is now empty. We have to copy the files.

Mount --> mount USB as storage

Now in the ADB window type

adb push "Name of the ROM you downloaded" /sdcard/
adb push "Name of the Gapps you downloaded" /sdcard/

Then Install

--> Select the ROM and Gapps.

And wait until it is done. (it takes some minutes)
​

Congratulations. You have a Kindle Fire 2 with a real Android ROM
[Kindle Fire 2 Android Development] Storm.Chaser:
Can I send my Kindle Fire 2 to anyone to have them install a custom ROM for me?

I can't seem to get past the initial fastboot commands....

EDIT: Ive rooted the device and issued the command to reboot in fastboot mode.

So I have fastboot showing on the kindle now. Problem now is there is no driver installed for it in windows. In device manager it says otter2-prod-04.

Does anyone have a link to the correct driver so I can start issuing fastboot commands? thanks
[Kindle Fire 2 Android Development] wcarlson40:
Sweet! I found an old Kindle Fire 2, and can confirm pakidermo5000's post still works!

Storm.Chaser - I had the same issue with the fastboot commands. This video helped (although it's in spanish, you can still follow along): https://www.youtube.com/watch?v=73sJWh6yrsY
[Kindle Fire 2 Android Development] Storm.Chaser:
Thanks brother! That did the trick, now the only question remaining is will I be able to install this custom TWRP and ROM despite the fact I have Kindle fire 2 Version 10.5.1
[Kindle Fire 2 Android Development] wcarlson40:
Ugg, I can't find a ROM where the wifi works... The only Rom I could find was "cm-11-20141112-SNAPSHOT-M12-otter2" It runs fine, but no wifi........ I tried the link to fix the "wifi bug", but it didn't work :(

Does anyone have a link / download for CM 10.2?

---------- Post added at 01:50 AM ---------- Previous post was at 01:47 AM ----------

Yes, I have the same Kindle Fire 2 version, and it seemed to work fine. Even TWRP survives a reboot (I used the 2.7.0.0 version) . But, as I mentioned, finding the ROM's from 6 years ago is the trouble..... :(
[Kindle Fire 2 Android Development] wcarlson40:
I guess I should have kept searching/reading. Lineage OS 11 works just fine on my 6 year old Kindle Fire 2!

https://xdaforums.com/kindle-fire-hd/fire-2-development/rom-lineageos-11-unofficial-otter2-t3864996
[Kindle Fire 2 Android Development] Storm.Chaser:
Okay great. I've downloaded the ROM and started on the installation process, however, I am running into a problem here with the -i usage of fastboot. Can you shed any light on this issue? Do I just need a different version of fastboot?

https://ibb.co/MnJH5C0
[Kindle Fire 2 Android Development] wcarlson40:
Are you in fastboot mode when you run this command? (Is your kindle a black screen with large words that say FlashBoot with red and green dots?)
[Kindle Fire 2 Android Development] Storm.Chaser:
Yes thanks and I sorted that issue out. Turns out some later versions of fastboot did not have the capability for use with the "I" switch. So I downloaded a older version and was able to push the files to the tablet no problem.

I loaded TWRP Version 2.6.3.0 as well and did a through format / cleared all cache, etc.

However, I am running into a new problem when I go ahead and try flashing the actual ROM file. Check this out:
[Kindle Fire 2 Android Development] wcarlson40:
It sounds like you’re almost there! This is my first root/Rom experience, so I’m not an expert, but all I can say is that it worked for me :)

My guess is that you need the newer TWRP (I used 2.7.0.0)

You can also check the MD5 sum on your Rom to make sure you didn’t get a corrupted download
[Kindle Fire 2 Android Development] Storm.Chaser:
Yes I think I am close. In the mean time, I downloaded an older ROM and it worked!

However, I would like something more current. Do you have a link to where you downloaded TWRP version 2.7.0.0 from? Thx
[Kindle Fire 2 Android Development] wcarlson40:
I found the files in pakidermo5000's link here:

https://www.mediafire.com/folder/5oda4fual3ht3/KF2_Boot_and_Recovery
[Kindle Fire 2 Android Development] Storm.Chaser:
Thanks again! I flashed to TWRP Version 2.7.0.0 and installed the latest CM12 (Lollipop) 5.1.1. ROM. Works flawlessly, aside from a minor issue with the Wifi, had to run a script to get that working.

Otherwise, it's working perfectly, and I couldn't have done it without your help!
[Kindle Fire 2 Android Development] powerpoint45:
Loll u funny. Don't worry I'm not lonely lol...hw&music
[Kindle Fire 2 Android Development] iytrix:
Sorry fmkilo, didn't care to quote because your post was long, but you answered my netflix question. Ima flash tonight anyways. Not sure why, I guess I really hate the status bar? Hah. Either way I'm fairly experienced so I'm going to flash without a factory cable since I'm ordering one tonight and I don't mind if I brick. I'll let you guys know how it goes and report any interesting findings.

For fixing the HD codec, will that be a simple fix from within the ROM? If it requires flashing I may as well wait until an update....or maybe not. Flashing is easy I just am always wary when dealing with dangerous and recoveries. Either way, fun inbound! I haven't hacked anything in a year now unless rooting the KF2 counts.
[Kindle Fire 2 Android Development] fmkilo:
If you are going to flash without a cable I would feel better if you came to irc and we walked you through it, since I know exactly the steps to get it done right.

freenode.net #kindlefire-dev
[Kindle Fire 2 Android Development] iytrix:
Oh i'm off work at 0300 PST. I won't be able to do anything until then. I would love to be walked through things though, and you all can see exactly what happens.

On a secondary note, I have a linux, windows 8, and windows 7 setup. The ubuntu and 7 are a dualboot and the 8 my main computer. Is there any I should specifically try it on?
[Kindle Fire 2 Android Development] chrisw05:
I think i got everything to install correctly up to booting into recovery. it boots up gives me the option to open boot menu but when i choose recovery it stays at Booting... at the bottom. is there something i did wrong or missed or does it normally take a long time to load up recovery? If i turn it off and just let it boot up normally it will still go to the kindle homescreen.

EDIT: I got it by reflashing twrp

New Edit: Now it loaded up CyanogenMod optimized the apps and been stuck at the logo with what it looks like a loading animation around were it says CyanogenMod
[Kindle Fire 2 Android Development] fmkilo:
Did you wipe data, system, dalvik and cache?
[Kindle Fire 2 Android Development] Jowyn:
OK thanks everyone for your pieces of advice regarding my missing "fastboot" command. Don't know where I got my sdk from, but in platform-tools I only had adb & a few other commands.

Just downloaded the sdk again from google yesterday, and replaced the first one.

I still have an issue, though: although my device was obvously in fastboot mode, "fastboot devices" wouldn't reply anything, and I had a log like "USBDEVFS_CONTROL cmd fastboot failed".

Anyway I'll go through the different links some of you posted in order to check my config.

In the meantime I'll check this command from my pro windows 7 laptop at lunch time, just in case.

Oh one last thing: is this backup procedure still valid (I'm referring to the backup.sh enclosed file), or should I stick to the one listed in this thread?
[Kindle Fire 2 Android Development] chrisw05:
@Jowyn i wasnt getting anything listed when i typed in fastboot devices but what i did was just went ahead and entered what it says to flash freedome-boot.img and twrp.img commands and it went ahead and flashed them

clearing the cash and everything got everything working for me rooting and anything android has been new to me for the most part i been with ios and got a kindle fire for xmas. so far so good
[Kindle Fire 2 Android Development] Jowyn:
OK many thanks for your feedback!

Hopefully (ie: if I don't mess things up :D) I'll have CM10.1 on my KF2 by tomorrow ;)
[Kindle Fire 2 Android Development] willieboya:
Any chance of making a tutorial in this forum so that all kindle fire 2 owners know how to do so aswell? Although i will be waiting till i get/make my factory cable so i can backup before i flash, its always good to have another option for those who wish to try it without the cable.
[Kindle Fire 2 Android Development] RevMike:
Because I was in the middle of supervising three young children taking showers. :) I didn't stop to think about it until after I had made the mistake. Also, I have been using ClockWorkMod for 3+ years and so the new interface on TWRP meant that all that "muscle memory" went for nothing.

Even experienced people do dumb things now and then.
[Kindle Fire 2 Android Development] iytrix:
Ubuntu gave me issues....

I got everything working but I realized I didn't get the way to fastboot without a cable from you FMKilo. I PMd you though, will edit this with results.

Edit: everything working. Fastboot without a cable seems to work just fine and if you follow the steps all is well!
[Kindle Fire 2 Android Development] chrisw05:
Well im gonna give this a few days at least try to and start over i got everything flashed and started up i get to the homescreen on CM but there is no back button or home button anywhere. Like i said im new to this and think i have it figured out pretty well but its also in its early early stages. Thanks a ton for making this happen
[Kindle Fire 2 Android Development] MisterSir69:
I would love to take advantage of your help and have you walk me through it as well if possible.

On another note, could we not just use the twrp to create a backup of the kindle.
[Kindle Fire 2 Android Development] RevMike:
Bug/Feature report

First of all, a feature that I did not expect to work...

I was able to use the USB host cable that I have for my Galaxy Nexus to access a usb drive. There is an activator program needed - Stick Mount https://play.google.com/store/apps/details?id=eu.chainfire.stickmount - I was surprised and happy to see that the hardware supports it.

Bugs

Nothing so far that interferes with the use of this device as a daly driver. We already know that video support isn't 100% yet.

The power button menu offers to reboot into recovery. It doesn't go to recovery however. You need to catch the device during the "blue" stage of the boot cycle.

In TWRP there is a button that looks kind of like a command window next to the back button on the top line. Pressing that goes to a screen where the following is displayed...

E:Unknown File System: 'datamedia'

Updating partition details...

Then TWRP is locked up and the device needs to be rebooted.

The settings screens don't layout well in portrait.

I'm getting a force close every now and then, but I'm not sure if that it anything to do with the ROM. I'm trying to keep logcat going so I can see if anything interesting happens when I get an FC. It seems to be an occasional issue, not a constant, so it is difficult to tie it to anything.

The camera doesn't work :eek:

Overall this seems to be really solid. That makes a lot of sense, in a certain way. The Kindle Fire is a very "simple" device without a lot of bells and whistles. The biggest, most persistent issues with a lot of devices are things like the cameras, the bluetooth stack, and other bits of hardware like that. Since the KFOT doesn't have that hardware in the first place, there are a lot fewer things to go wrong. The biggest hurdles are around getting the device to boot up in the first place.
[Kindle Fire 2 Android Development] jutley:
Well I had success with this very easy to do just make sure your adb and fasboot drivers are installed enjoy can't wait for updates.
[Kindle Fire 2 Android Development] heldgop:
wow, thanks for all the work, well done!!:good:

is there any difference regarding battery life? thats one of the things is love about the kindle, especially the low consumption during standby.
[Kindle Fire 2 Android Development] padest.com:
Thanks for hashcode!

I find your file in goo.im the day before yesterday.

I'm very exciting!

Thanks!!!
[Kindle Fire 2 Android Development] fmkilo:
That backup is to make sure you can boot it again if you mess something up and twrp don't boot for some reason.

---------- Post added at 09:16 AM ---------- Previous post was at 09:13 AM ----------

I have found.this bug as well. I also know a fix for it. Go into settings -> system -> navigation bar -> reset at the top. It will put your nav bar to the.stock configuration.
[Kindle Fire 2 Android Development] mindmajick:
Is TWRP fully functional?

Edit: confirmed by fmkilo. Yes it is.
[Kindle Fire 2 Android Development] thosferatu:
i followed this till this point but now my kindle just has a black screen, anyone able to help?
[Kindle Fire 2 Android Development] AndreKR:
I also bricked the device, won't turn on at all.

My device is (was) a X43Z60.

What I did:

I used the "bin4ry method" to get root. Pulled the backups, then, using files from https://github.com/jsheradin/otter2_misc/blob/master/README.md, I installed the "stack override" with adb shell su -c "dd if=/sdcard/stack of=/dev/block/platform/omap/omap_hsmmc.1/by-name/system bs=6519488 seek=1". Then I booted to Fastboot with adb shell "su -c 'reboot bootloader'". Then I ran:

fastboot flash bootloader otter2-u-boot-prod-10.2.4.bin
fastboot flash boot otter2-freedom-boot-10.4.6.img
fastboot flash recovery otter2-twrp-2.7.0.0-recovery.img

After long holding the power button to turn it off, the device won't turn on again. Not with a normal cable, not with a fastboot cable. Absolutely black screen, no backlight when charging, nothing.

In the bin it goes or is there something I could still try?
[Kindle Fire 2 Android Development] jutley:
I forgot to do a backup in step one before I done this what can I do if things go wrong do I have a option?
[Kindle Fire 2 Android Development] RevMike:
You'll need to find someone who can give you their copies of the three img files. I have a boot.img and a recovery.img that I can share, but my system.img might have some personalization.

Are you already in trouble, or are you just trying to get these files in case something happens?

If you are in trouble, do you have a factory cable? How far in the process did you get, and what happened?

---------- Post added at 12:23 PM ---------- Previous post was at 11:54 AM ----------

Recovering...

You do have your backups, right? If you don't have all your backups, then you can download this file https://s3.amazonaws.com/kindle-fire-updates/update-kindle-10.2.4_D026_2420720.bin from amazon. It has the extension .bin but it is actually in zip format. Unzip it and you'll find boot.img in the root directory and recovery.img in the recovery directory.

I'm not sure how to get the original system.img at the moment. Did you decide to bail out on the process early? If you never used TWRP to flash CM 10.1 and GApps, then you can skip restoring this partition.

0) Can you get as far as booting into TWRP? If so, then boot to TWRP, choose "Wipe", and then choose "Factory Reset".

1) Plug in your factory cable. You do have a factory cable, right? Hold down your power button until the device shuts off, plug your factory cable into your computer and into your device and start the device up.

2) Now you should be in fastboot mode. Issue the following commands to restore your backup image files.

fastboot -i 0x1949 flash boot boot.img
fastboot -i 0x1949 flash recovery recovery.img
fastboot -i 0x1949 flash system system.img
fastboot -i 0x1949 reboot

On my kindle, I had to restart the kindle after each command. YMMV.

3) unplug the factory cable and reboot. You should be back to stock.

These instructions are from the top of my head, but you may find them useful. Let me know if any corrections are needed.
[Kindle Fire 2 Android Development] powerpoint45:
I hve sparsed stock system image you can fastboot flash

http://goo.im/devs/powerpoint45/MIC/KindleFire2StockSparsedSystem.img
[Kindle Fire 2 Android Development] fmkilo:
The things you probably shouldn't do include un-ticking the use rm -rf instead of formatting,

If you format a partition instead of emptying it, you could potentially end up with a brick

You could always go ahead and use the images from here
[Kindle Fire 2 Android Development] jutley:
Hi first thanks for your reply i already did the whole procedure and it works great loving cm10.1 and i would never want to go back to amazon stock anyway but i completly forgot to do the backup process to my hardrive all i wanted is the 3 files required to flash back incase of a warrenty return.

---------- Post added at 07:16 PM ---------- Previous post was at 07:14 PM ----------

Thank you powerpoint will get the files and keep them safe somewhere.

---------- Post added at 07:17 PM ---------- Previous post was at 07:16 PM ----------

Thank you powerpoint will get the files and keep them safe somewhere.
[Kindle Fire 2 Android Development] fmkilo:
In the case of a warranty return, I would just go ahead and fastboot erase /system /data /recovery and /boot, call amazon and say it doesn't turn on anymore.
[Kindle Fire 2 Android Development] jutley:
Can someone else try to mount usb whilst in twrp i was trying but could not mount unless i am doing something wrong do you need factory cable or normal cable i did only use the normal cable. Just incase my device wont boot i want to be able to copy gapps and cm10.1 or any other rom back onto sd storage so it can be flashed without haveing to boot. And also i cannot find adb debuging setting in the setting menu on cm10.1 has it been removed?
[Kindle Fire 2 Android Development] fmkilo:
Twrp does not like /data/media sdcards, and this is a known bug within the entire twrp community.
[Kindle Fire 2 Android Development] jutley:
So what are you saying that it cant be mounted in twrp in usb mode to transfer data then how can we do that if the device decides it does not want to boot? by the way i am talking about the internal sd storage not a external sd card.