yashsingh1/xdaforums huggingface dataset:
[Kindle Fire HDX 7" & 8.9" Android Development] EncryptedCurse:
Here's what I would try:

Reroot using ghettoroot — http://xdaforums.com/showpost.php?p=57659692&postcount=2

Unbrick using r3pwn's method — http://xdaforums.com/showthread.php?t=2793253
[Kindle Fire HDX 7" & 8.9" Android Development] brainwash123:
I already have root (su) and the r3pwn method (which is a rehash of some other method) does not work because I cannot modify the system in any way - cannot access /cache, cannot rename or chmod anything in /system/bin, etc. The only way would have been to be able to flash images from fastboot but I assume with a locked bootloader that's not possible. Lesson learned but I guess each custom rom should carry the warning about:

- make 100% sure you are on the perfect rom version

- unlock the bootloader if possible

- do not run factory reset from within kindle restore

- do not run factory reset from within SS <4.0

- installing a custom rom is unlike any other Android device you've had (and I've had to deal with HTC and Motorola before) so:

- ... be prepared to have a doorstop if you blink twice and are already out of warranty

The bullet points above are what should be stickied to any custom rom topic since the information is all over the place and makes sense only in hindsight.

Thanks again everyone for the help, I hope I will get a new device and I hope more that I can install CM/Nexus on it. FireOS is pretty useless to me.

Offtopic question: does HDX with CM support OTG? It was not functioning under FireOS.
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
3rd gen HDX devices lack HW support for OTG. This seems to be the case for 4th gen devices as well although a slightly different SOC offers some limited hope; that said no one has got it working yet.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
New Build is Up

- Dated 12 Dec 2015

- Change log on Post #2
[Kindle Fire HDX 7" & 8.9" Android Development] zivimo:
Hey,

I am such a hugh fan of your CM port! Fire OS is such a piece of crap.

Anyway, 1st problem I have: the /data/local/userinit.sh doesnt seem to get executed but I really would like to have that feature. As far as I know its getting executed by the sysinit script in /system/bin. I googles a lot and it seems to be connected to SELinux which doesnt allow exec permissions on /data while boot. So:

Is there any chance to have this feature back or does there exist any workaround to execute a script after/at boot automatically?

2nd: The extended reboot menu offers booting right into recovery but if I do so it hangs at "Tablet is going to be restarted..." for a like tow minutes and them turns off. My installed recovery is TWRP 2.8.7.0.

I really know these problems are just minor ones but I would be really glad if you have time too "fix" them.

EDIT:

Ok I found kind of a solution: Since install-recovery.sh launches /system/etc/install-recovery-2.sh I created this file and filled it with:

#!/system/bin/sh

# call userinit.sh and/or userinit.d/* scripts if present in /data/local

if [ -e /data/local/userinit.sh ];
then
log -p i -t userinit "Executing /data/local/userinit.sh";
logwrapper /system/bin/sh /data/local/userinit.sh;
setprop cm.userinit.active 1;
fi;

if [ -d /data/local/userinit.d ];
then
logwrapper busybox run-parts /data/local/userinit.d;
setprop cm.userinit.active 1;
fi;

It seems to work as desired but its unstable. But that might be a problem with the programs userinit.sh executes... anyway someone might find this helpful.
[Kindle Fire HDX 7" & 8.9" Android Development] Udayakiran:
Works fine, except for noise on headphones.

Thanks a lot! The build seems to work fine (though I don't use the tablet for much except seeing videos and reading books).

I do have one issue (which I encountered in the Nexus ROM as well). There is a noise on the headphones (ATH-M50x) similar to the "doop" noise when speakers are switched on. This happens every few seconds though not at regular intervals. This does not happen when any video or music is playing. Reducing the volume does not help. It does not happen on the speakers. This issue is not present in Fire OS.

This issue is pretty irritating because I am sensitive to noise and it gives me a headache. Went back to Fire OS twice because of this, but drifted back. Again planning to go back to Fire OS, because one of the two primary uses of the tablet for me is to watch videos. Unfortunately I can't afford a new tablet and besides, this works fine with FireOS. I don't like buying new devices unless the old one is broken or too slow. Would be great if anyone can suggest a fix to this.

Thanks for all your work guys. It is amazing how much you guys are doing for the community.
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
I do not experience this phenomenon on two thors: One running native TWRP and Nexus v4; the other Safestrap v4 and CM11. I did detect some pops when radios where disabled/enabled but nothing while scanning which was my initial suspicion. Granted, my headgear is nowhere near the quality of yours but I had the volume cranked pretty loud so should have heard something.

Thoughts:

- a few others have reported noise issues on Apollo (8.9") devices (not common)

- you can try flashing a Dolby Atmos (or similar; check OP for compatible images) but I doubt this would help

- might do a deep dive on background tasks/services; one or more may be the source of the interference you are hearing - especially if it is messing with HW components

Good luck.
[Kindle Fire HDX 7" & 8.9" Android Development] Udayakiran:
Thanks! Flashing Dolby Atmos seems to have helped. Now the "doop" noise is pretty rare. It happens at times when starting YouTube. There is now a "tick" noise about every 3 seconds now. But it is not very loud, so I can live with it. Also keeping YouTube open stops the noise for a while.

I have an Apollo device, so I am experiencing the problem that the others complained about. Seems to be a software issue. Or probably a rare hardware issue that Amazon noticed and has fixed through software.

I will try messing around with the software, see if I can find anything.

Once again, thanks for your help.
[Kindle Fire HDX 7" & 8.9" Android Development] Gatam77:
I installed today with your instructions. All is very well .!

I life in Germany and have the LTE Apollo 8.9 HDX. Using E-Plus.

I think even with Fire OS we could make calls ., but I get SMS and so I can use WhatsApp.

Also my Mobile ? Internet Works perfect. ?
[Kindle Fire HDX 7" & 8.9" Android Development] alexilaih0:
Hey, i really like this Rom.

But one little questions is it possible to get the Navigation bar on landscape Mode to the right?? Like let it stay on the Bottom of the Device would bei much more comfortable to use in landscape

Thanks
[Kindle Fire HDX 7" & 8.9" Android Development] brainwash123:
Just got my replacement HDX7, from factory installed with FireOS 4.5.2 (says installed on 30 Jul 2013).

WiFi is off for now and I haven't touched it.

I just wanted to make sure I have the right sequence of steps so that another brick is avoided:

- root with kingroot (or towelroot?)

- unlock BL (python tool? virtual machine?)

- install SafeStrap (is this link ok? http://xdaforums.com/kindle-fire-hdx/development/recovery-safestrap-v4-0-1-t3137840 )

- install CM - this one (11) or the unlocked one (12) ?

Am I missing something? Should I downgrade to another version, if yes, which one?
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
Congrats - your device arrived with the optimal subversion of FireOS v4. You can NOT unlock the bootloader but you can install Safestrap v4 followed by either CM11 (here) or Nexus v4 (here). No other custom roms are supported.

Do you know how to use ADB to copy files to your device and install apks? This is the preferred way to install Kingroot and ES File Explorer without having to activate WiFi and potentially receive and unwanted OTA. You can perform these tasks by quickly toggling WiFi but you need to keep and eye out for OTA updates.

Try Kingroot first. An internet connection is required. Leave WiFi on for no more than 60 sec as Amazon will attempt to download FireOS 4.5.5. If unsuccessful disable WiFi (engage airplane/flight mode) and reboot to trash any partial downloads. Then try Kingroot again - possibly at a different time a day (non-peak hours). There is a another method if you are unable to root with Kingroot. Post back for details.

Immediately after rooting you should block the OTA service to prevent an inadvertent upgrade while grabbing image files, preparing Safestrap v4, etc - even if you ultimately plan to overwrite FireOS with CM11. Use the previously installed ES File Explorer to rename DeviceSoftwareOTA.apk in /system/priv-app/. After that it is safe to enable WiFi.

Keys to a success:

- have a full understanding of the sequence of actions and expected outcomes for each step

- read through the relevant threads linked throughout this post

- keep wifi off until OTA blocked (except when rooting w/Kingroot)

- always keep an flashable copy of CM11 or Nexus v4 on the device for recovery purposes

- only flash roms to the stock slot in Safestrap v4; do not create/populate secondary slots

- ask questions if unsure

- go slow; a HDX is easy to brick and nearly impossible to recover

- never perform a 'factory reset' from the native FireOS recovery menu with Safestrap v4 installed (instant brick)
[Kindle Fire HDX 7" & 8.9" Android Development] johim:
[MENTION=5749760]ggow[/MENTION] I tried installing the latest 12/12 build but it seems that there is something wrong with the video playback perhaps. Every video I try to play via tumlr causes the app to crash. Tried clearing cache, reinstalling the app, same issue. Then I downgraded to the prev version and none of those problems persisted. Any ideas what could be wrong?
[Kindle Fire HDX 7" & 8.9" Android Development] brainwash123:
Got it rooted, blocked OTA and got SS installed.

Ran into a small trap - there are two apk files for OTA: DeviceSoftwareOTA and DeviceSoftwareOTAContracts. If one renames both files the system will not boot!

The solution to this was: adb shell; mv /system/priv-app/DeviceSoftwareOTA.bak /system/priv-app/DeviceSoftwareOTA.apk and reboot.

I have a question, the first post says to perform factory reset from within SS, however everywhere I see the warning 'do not perform factory reset'. Yes, I know there is a difference between SS and Kindle recovery, but is it 100% safe to do 'factory reset' from within SS?

Edit: without wiping from SS the ROM cannot be installed, so there was the answer. Knowing that, I went away and installed CM11 and everything seems to work fine now. Thank you for the support.

A very slight cosmetic issue - rotation from portrait to landscape seems choppy, is there any way to adjust that? All the other animations works fine.
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
Great - happy for the progress you made! In response to your Qs:

OTA: The file to rename is DeviceSoftwareOTA.apk. I am not familiar with DeviceSoftwareOTAContracts and can not speak to the effectiveness of renaming this file while leaving DeviceSoftwareOTA.apk intact. Tip-of-the-hat to your resourcefulness dealing with the noboot. Shelling in would not have been my first thought.

Great question. A 'factory reset' from within SS is perfectly safe. If you look at the top of the screen you'll see a FR is simply short hand for wiping cache, dalvik and data. I normally don't call out the distinction in generic posts as the consequence of executing a FR in the wrong place is disastrous. Too bad they share a common name.

Question back to you - does it make sense why I (hopefully others) strongly recommend leaving a flashable rom on the device at all times when using SS v4 or any version of twrp that does not support external mounts? Just wondering if people take this seriously or blow it off (like backups).
[Kindle Fire HDX 7" & 8.9" Android Development] brainwash123:
I always keep flashable zips on my devices, if I have enough space (I usually do).

I've had bad things happen while I was away from home and with no connectivity and keeping a safe flashable zip and its associated TB files saved my ass. Mostly with Motorola Razr it was an issue but had it with 2 other phones as well.

A stable CM might look like it's going strong for even a week before crapping out.

Now I just avoid using unstable builds on my dependable devices, but still keep a zip file, just in case. And a spare battery, in case of high-drain issues.
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
Yep - similar portfolio of tools depending on device type/capabilities. Add to that a flashable recovery (on/off device), proven data cables and a plain text file containing key information (IMEI, BL unlock code, etc) that is obtainable but often a PiTA to gather on-the-fly or when device is on the fritz. Also in the same camp on stable builds. Too many scars to be screwing around with evolving stuff that offers marginal benefits over mature alternatives. Good wood can be found elsewhere.

Thanks for your response; curious what others did.

---------- Post added at 09:41 PM ---------- Previous post was at 09:31 PM ----------

Haven't experienced that. CPU use may still be high as caches are rebuilt, background services silently auto-update (looking at you Google) and the device 'settles in'. If the problem persists you may want to do a selective cache flush and possibly twiddle governors/schedulers using Kernel Adiutor and a guide such as this. Forget what the defaults are in CM11; Nexus v4 governors were a bit dated. I was able to smooth out a couple rough edges with few simple tweaks among the available

mainstream

choices. Good luck.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
- Is the problem isolated to the tumblr app?
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
Navigation bar placement is integral to the rom. Changing it would be outside the scope of this CM port IMO. You can try a Xposed module like phab7. Some launchers also permit various UI elements to be repositioned.
[Kindle Fire HDX 7" & 8.9" Android Development] alexilaih0:
Wow Thank you!! Phab7 did exactly what i was looking for! :)
[Kindle Fire HDX 7" & 8.9" Android Development] Seraphitas:
Is Bluetooth working ?
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
Yes (a simple search would have surfaced the answer)
[Kindle Fire HDX 7" & 8.9" Android Development] HardOnChairs:
I'm having some really extreme battery drain while the device is asleep. Battery settings attributes most of it to Tablet Idle. Wakelock detector shows it in deep sleep the whole time.

This doesn't happen in fireos so it's not the battery. It's been happening on the November build and on the 12-12 build.
[Kindle Fire HDX 7" & 8.9" Android Development] Vincent Lu:
5G Wi-Fi now work

Thanks for ggow hard work.

My Thor's wi-fi works fine on 2.4G, but cannot scan any AP on 5G channel.
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
You likely installed CM11 into a secondary slot leaving FireOS in the stock slot. While that is the recommended configuration for many Safestrap applications it does not work well with Safestrap v4. High battery drain and poor performance are just some of the symptoms. Read previous posts and the Safestrap v4 thread to learn more. You need to clean flash CM11 to the stock slot overwriting FireOS; once confirmed working delete all secondary slots. Do not attempt to backup you current CM11 install and restore to the stock slot; you will brick your device. Also keep a CM11 (or any SS v4 compatible rom) image on the device at all times. If the OS fails to boot it is often the ONLY way to recover as SS v4 can not communicate with the outside world (USB/OTG/mounts/tethers are not supported). You need a working OS to move files on/off the device.
[Kindle Fire HDX 7" & 8.9" Android Development] HardOnChairs:
Ah, ok, I thought the whole point was to leave the stock slot alone. I will read more about it and try this.

Is it safe for me to restore a backup of the fireOS rom back into the stock slot if messing with the stock slot messes anything up?
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
Although it *should*_ be safe (assuming the FireOS backup was made from the stock slot - v4 only) I would resist the temptation as the backup also contains code necessary to boot Safestrap. If the SS components do not restore correctly your device will not boot and is effectively bricked. My recommendation is to retain slot 1 long enough to verify whatever rom you flash to the stock slot boots/functions correctly. If it doesn't you can always return to your current CM11 installation in slot 1, download the Safestrap compatible version of FireOS v4.5.2 (here; don't use any other) and flash that to the stock slot.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
New Build is Up

- Dated 04 Jan 2016

- Change log on Post #2
[Kindle Fire HDX 7" & 8.9" Android Development] OdlG26:
hey there,

I just switched from hdx nexus to cm11 for the first time. runs very smooth (04-01-2016 build), thanks for the great work! One question: in dev settings it says "ART not supported by CM11, stick with dalvik". Is that message irrelevant or does it really not work?

Thanks in advance :)
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
For most devices ART will not provide a significant benefit over dalvik on KitKat based roms. Performance is sometimes inferior and you'll likely struggle through some compatibility issues (eg: Xposed) and possible loss of optimizations. I have not seen reports suggesting ART is a nogo on CM11. You'll have to see if the dev weighs in on compatibility with the HDX build.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
- I think it's fine to stick with dalvik

- I have not seen any real world advantages to using the ART runtime

- In fact from my earlier experiments on other devices dalvik is definitely faster.
[Kindle Fire HDX 7" & 8.9" Android Development] OdlG26:
okay, on android 5 I definitely felt a difference on my htc one m7, but thats of course also quite a bit slower than the hdx7. i will stick with dalvik then, thanks though :)
[Kindle Fire HDX 7" & 8.9" Android Development] AnyAndroidOSWins:
Hi [MENTION=5749760]ggow[/MENTION] just wondering if CyanogenMod 11/This rom can have the Qualcom v95 adreno /Freedreno drivers (apparently, according to Dolphin Emu for Android's about screen the is rom has v6X). BTW thanks for the great rom:svetius:
[Kindle Fire HDX 7" & 8.9" Android Development] HardOnChairs:
Thanks. I flashed to the stock ROM and now my standby battery is phenomenally better.
[Kindle Fire HDX 7" & 8.9" Android Development] fabische:
Thank you for the excellent work! CM11 runs smoothly on my HDX Apollo. However a couple of apps like eBay classifieds tend to crash. Has anyone else faced this problem?
[Kindle Fire HDX 7" & 8.9" Android Development] W99DEY:
I have a few probs with facebook, it usually the apps fault!
[Kindle Fire HDX 7" & 8.9" Android Development] skeptic1007:
Hello. Can someone verify wether Horizon Go crashes with this firmware? It constantly crashes with Nexus 4.0.5.

Sent from my mobile device
[Kindle Fire HDX 7" & 8.9" Android Development] neverborn:
hello. if i just wanted to wipe all user data (gonna give the hdx to my dad) but want to keep CM11 on, whats the best way to do it?
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
Any of these will work:

- from CM11: Settings -> Backup & reset -> Factory data reset

- from TWRP: Wipe -> Swipe to Factory Reset (slider at bottom)

- from Safestrap Recovery (if applicable): Wipe -> Swipe to Factory Reset (slider at bottom)

If running Safestrap v4 do NOT perform a 'factory reset' from the native Kindle Fire recovery menu as it will brick the device.
[Kindle Fire HDX 7" & 8.9" Android Development] neverborn:
Right. I am indeed presently running CM11 via safestrap v4 (stock slot). I dont have the thing with me now but I'll use the CM11 reset function tomorrow once i do.

Much obliged!
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
Before transferring ownership do your dad a favor and reinstall CM11 to the stock slot (overlaying FireOS). There are signficant problems with secondary slots in Safestrap v4:

- device never enters 'deep sleep' which severely impacts battery life

- only 2 of the 4 available processors are active - and both of those run at 100% at all times regardless of load

- WiFi connectivity is less reliable

- reduction in storage resources available for CM (not a big issue on larger devices or for 'lite' users)

If you opt for this path install a FRESH copy of CM11 in the stock slot, make sure everything is working and then delete slot 1. Do not attempt to backup slot 1 and then restore it to the stock slot; the device will brick. Also pay close attention to which slot is active when you are doing installs/deletes.

A small benefit of reinstalling CM: You won't have to purge personal data. :)

Final recommendation: leave a copy of the latest CM11 installation image on the device. It is the only way to recover if CM11 (or any OS) will not boot but you can still get to Safestrap recovery.

Sorry to complicate your day - but I would be remiss is not pointing out some of the problems with your current config.
[Kindle Fire HDX 7" & 8.9" Android Development] neverborn:
Think i should be the one to apologize - i actually meant the stock slot and not a secondary one. Sorry you had to type all that!

Good advice on storing the ROM though, I'll make sure to do so.
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
No biggie - might help someone else. :)
[Kindle Fire HDX 7" & 8.9" Android Development] mcasara:
Hi everyone.

I was running this cm11 for months smoothly. Now decided to refresh the tablet and did a factory reset from safestrap, flashed the new ROM but actually it appears to have major bugs. When I rotate to landscape mode tablet restarts automatically, also sometimes screen flashes :rolleyes: I've refleshed it several tinmes, did a factory reset but nothing changes. Please help :crying:
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
Strange this behavior has not been reported by others. Thoughts:

- try flashing Nexus v4 to see if problem persists

- could also flash the safestrap compatible variant of stock FireOS 4.5.2 but you need to take extra precautions to avoid an immediate OTA to 4.5.5

- [MENTION=5749760]ggow[/MENTION] will likely see these posts and provide a link to prior versions to help trouble shoot the issue.
[Kindle Fire HDX 7" & 8.9" Android Development] mcasara:
I flashed nexus v4, but it had even more bugs: home button didn't work and even quick settings panel wasn't there, so flashed cm11 again.

__________

Now tablet doesn't reboot while rotating but screen flashes strangly, sometimes while going to recent apps as well
[Kindle Fire HDX 7" & 8.9" Android Development] DB126:
You must flash SuperSU and the GApps package shown in the Nexus v4 OP to obtain full functionality. GApps in particular enables the home button and quick settings panel. The Nexus ROM is a Google property; it should come as no surprise it expects GApps to be present.

You may want to slow down and wait for [MENTION=5749760]ggow[/MENTION] to respond before you make a mistake and end up in a worse place.

Also want to confirm all flashes are going to the 'stock' slot, not a numbered secondary slot.
[Kindle Fire HDX 7" & 8.9" Android Development] mcasara:
Oh yes, how didn't I think that :confused: Yes everything is on stock slot.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
New Build is Up

- Dated 18 Jan 2016

- Change log on Post #2
[Kindle Fire HDX 7" & 8.9" Android Development] uramisten:
error flashing 20160118 rom.

failed to flash. logs from safestrap for installing cm-11-SAFESTRAP-20160118-UNOFFICIAL-thor.zip show:

previous build (0104) flashes just fine.

Is anyone else experiencing this?

Cheers
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
- Uploading a new zip...

- Thanks for the log - spotted the problem quickly
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
- New version for Thor which fixes the installation issue