Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,805,892 Members 42,985 Now Online
XDA Developers Android and Mobile Development Forum

CM10 development for Kindle Fire HD 8.9"

Tip us?
(Last edited by verygreen; 9th December 2012 at 10:04 PM.)
Recognized Contributor - OP
Thanks Meter 2,580
Posts: 1,289
Join Date: Feb 2011
Location: TN

Post CM10 development for Kindle Fire HD 8.9"

Hi all!

Without much ado I am presenting you this repo for CM10 that lets you build somewhat functional CM10 ROM for Kindle Fire HD 8.9".
(Obviously this is not end-user friendly yet. If you don't know how to compile CM10 yourself, you are not a target audience for this yet, sorry. Many things don't work to make it viable main ROM yet anyway)

Build instructions (assuming you met all other CM10 build dependencies).
Download code:
mkdir android/system
cd android/system
curl > ~/repo
chmod a+x ~/repo
repo init -u git:// -b jellybean
wget -O .repo/local_manifest.xml
repo sync -j16
. build/
lunch cm_bowser-userdebug
. vendor/cm/get-prebuilts
mka bacon
In the out/target/product/bowser output dir you'll have two important files generated:
recovery.img and

For the first install only:
Step 0; Connect kindle to your computer, have android sdk installed and adb and fastboot in the path.
Step 1: (very important) Back up raw partitions from kindle responsible for recovery, boot and system.
(this requires root, though root-less installation is also possible, you will need the backups to return to stock!)
adb shell su -c "chmod 777 /dev/block/*"
adb pull /dev/block/mmcblk0p9
adb pull /dev/block/mmcblk0p10
adb pull /dev/block/mmcblk0p11
Save these block images.
Step 2: Prepare and run CWM:
rm -f /tmp/stack; for i in $(seq 1024) ; do echo -ne '\x00\x50\x7c\x80' >>/tmp/stack ; done
adb push /tmp/stack /data/local/tmp/
adb shell su -c "dd if=/data/local/tmp/stack of=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot bs=6519488 seek=1"
adb shell su -c "chmod 777 /cache"
adb push /path/to/ /cache/
adb shell su -c "echo 0 > /sys/block/mmcblk0boot0/force_ro"
adb shell su -c "echo -n 3 | dd of=/dev/block/mmcblk0boot0 bs=1 count=1 seek=4104"
fastboot flash recovery /path/to/recovery.img  -i 0x1949
This last command will stop waiting for the fastboot device to appear. Do not unplug the kindle from USB.
Now reboot kindle: either power it off and on via it's GUI, or do adb reboot from a different terminal session (do not interrupt fastboot command still waiting!)
You'll see a "fastboot mode" on the screen and fastboot command started earlier will finally finish after writing the image onto the kindle.
Reboot kindle again via fastboot:
fastboot reboot -i 0x1949
This will reboot you into CWM recovery
Step 3: In CWM recovery, do install from sdcard and install the file we transferred in the previous step.
the /data/ settings from stock amazon install are not compatible with CM10, but (very important)Do not reformat /data/ and /cache from CWM, this will result in a corrupted filesystem due to 3.0.21 kernel currently used by amazon not having necessary fs features!!!
Instead, clean /data via adb while booted to CWM:
adb shell "mount /data"
adb shell "rm -r /data/*"
Step 4: Now, installation is complete, you may reboot and it will bring you to your freshly-installed CM10 - enjoy.
(note by default this CM10 install starts with adb disabled, so you'll need to enable it in settings again).

How to reflash back to stock
Step 1: Remember where did you put those backups from step 1 during install.
Step 2:
fastboot flash recovery /path/to/mmcblk0p9 -i 0x1949
Now either connect a powered off kindle, or reboot an already connected kindle.
(note: I don't remember if stock rom is smart enough to wipe /data in this case or if it bootloops, so you might want to do rm -r /data/* before the final reboot)
once Kindle enters fastboot mode and recovery image is written, write the other two images too:
fastboot flash boot /path/to/mmcblk0p10 -i 0x1949
fastboot flash system /path/to/mmcblk0p11 -i 0x1949 # This one will take a few minutes
fastboot reboot -i 0x1949
Now you are back to factory stock.

Not so short video on the install starting from somewhere around step 3 for those who cannot perform the steps, but need to ensure this ROM is not for them yet:

Many things don't work yet:
- Sound
- Video playback
- Sensors (no rotation)
- Camera
- BT
- probably some other stuff I have not noticed yet.

Please do send in your patches/fixes.
The Following 25 Users Say Thank You to verygreen For This Useful Post: [ Click to Expand ]
onemeila's Avatar
Senior Member
Thanks Meter 239
Posts: 296
Join Date: Jan 2012
Location: Winchester

Very cool, I'm gonna give this a try when I get some time tomorrow.
fattire's Avatar
Recognized Developer
Thanks Meter 4,393
Posts: 1,523
Join Date: Oct 2010

Sent from my Nexus 4 using xda app-developers app
Junior Member
Thanks Meter 11
Posts: 26
Join Date: Jul 2012
These are some amazing news!
Thanks a lot, verygreen. You are doing a really importaint thing. In my country no amazon services work, so the stock ROM is the biggest problem with Kindle 8.9.
Looking forward for the next builds!
Best regards.
xDecapitator's Avatar
Thanks Meter 11
Posts: 94
Join Date: Jun 2012
Location: Chico
Sorry if this is a stupid/annoying/heard it a million times please shut up already question, but does this mean anything the 7" variant?
reverendkjr's Avatar
Senior Member
Thanks Meter 849
Posts: 891
Join Date: Nov 2009
Location: Cincinnati, OH
Originally Posted by xDecapitator View Post
Sorry if this is a stupid/annoying/heard it a million times please shut up already question, but does this mean anything the 7" variant?
Eventually, this will translate to the Kindle Fire HD 7" as well.
Come visit the REVTV Website


Current Devices: HTC Sensation 4G, Amazon Kindle Fire, HP Touchpad... AND A GOOGLE NEXUS 7
YouTube Channel
Facebook Page
Twitter Page
Google+ Page
The Following User Says Thank You to reverendkjr For This Useful Post: [ Click to Expand ]
Junior Member
Thanks Meter 11
Posts: 26
Join Date: Jul 2012
So, can you tell us what is the status of the build right now? What works fine, what doesn't? When can we see the first build to test?
Thanks for your answers and best regards!
F@@dog's Avatar
Thanks Meter 21
Posts: 76
Join Date: May 2012
Location: Dallas TX
Default This question belongs in general discussion not Development

Originally Posted by Witcher_Kh View Post
So, can you tell us what is the status of the build right now? What works fine, what doesn't? When can we see the first build to test?
Thanks for your answers and best regards!

I am not the first to answer your question in the following manner and I am sure I won't be the last. These developers spend hours of their free time developing code so that people like you and I can use it without paying unless it is through a donation to the developer. They typically don't have time to answer every person who asks when will the code be ready. so for you and others who are not developers your answer is:

"The next release will be ready when it is released and not until."
iMJets's Avatar
Senior Member
Thanks Meter 47
Posts: 129
Join Date: Sep 2012
Location: New York

Early stages with such promise, hoping for a HD 7" inch variant

Sprint Samsung Galaxy Note 3 X-NOTE 16.0
Amazon Kindle Fire HD - Kinology 7.4.8
Ouya - CM 10 Experimental.
Samsung Galaxy Tab S - Stock Rooted

Samsung Moment - 4.0 Test Rom
Sprint Samsung Galaxy S2 Epic 4G Touch CM 10.2 Nightlys
Sprint Samsung Galaxy S3 Android 4.2.2 Dirty Unicorns v3.6
Sprint Samsung Galaxy S4 CM 11 Nightlys
Amazon Kindle Fire HDX - Stock Rooted
Nook HD + - CM 11 EMMC
Thanks Meter 5
Posts: 36
Join Date: Nov 2007
I'm assuming that with CM10, you won't be able to use all the special Amazon services like Amazon videos, lending library, etc. Doesn't that take away the whole point of buying a Kindle fire HD?

cm10 rom development
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes