yashsingh1/xdaforums huggingface dataset:
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Quick update and temporary resolution to this problem which appears to be hitting some users.

While ContextManagerWakeLock is the most observable characteristic/metric this appears to be a side effect of the alarm 'com.google.android.gms.location.fused.SEND_LOCATION_IN_SMD_MODE' which recently began firing multiple times per second. Restricting ContextManagerWakeLock only aggravates the problem leading to elevated CPU utilization and delayed entry into deep sleep.

While I'm not a big fan blocking alarms and wakelocks (better to deal with the problem at the source) a temporary workaround is to use Amplify or a similar tool to limit the alarm noted above to an interval that minimizes undesirable side effects. I opted for 600 sec. One consequence is delayed recognition of physical location changes but that is less of an issue on this device (non-LTE) as it lacks a physical GPS chip so it can only provide an approximate location based on Google's understanding of nearby APs. Amplify can also be used to limit the ContextManagerWakelock but this seems unnecessary as it does not appear to drive up CPU activity or wake the device. It also fires less frequently with the associated alarm limited.

The above analysis is very preliminary and may ultimately prove to be flawed. That said, I wanted to share what is working for me at the moment while still searching for a better solution. Hopefully Google fixes this in Play Services as the impact is not limited to Amazon devices.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] ands2:
I've installed this ROM and was confused that I couldn't find any /etc/init.d folder.

So I've created it, created my scripts but it seems that it isn't executed at startup.

Doesn't this ROM include init.d-support?
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
This is not a 'custom rom' in the traditional sense. It is an adaptation of Google's Nexus ROM running on top of an Amazon kernel. If the former doesn't support init-d then it won't be here either.

You can use Kernel Adiutor (spelled correctly) or a similar tool for init-d emulation. Works a treat.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] ands2:
I was a little bit surprised as I've used "HDX_Nexus" the last years and it has this support.

But I've installed this little package and my scripts are now working perfectly - perfect.

http://chromloop.com/2013/07/how-to-install-initd-script-on-nexus-4-with-stock-rom-guide/

Thanks for your note.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Yep - good stuff, and a nice reference for others. HDX Nexus had a few custom tweaks; perhaps init-d support was one. This variant is shared across several Amazon devices (phone, 5th gen 7" Fire, etc) so may be closer to AOSP core.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] BobJayJr:
[MENTION=5749760]ggow[/MENTION] Any chance you can post the 25 May 2016 version of the ROM so we can reflash it For use until the excessive battery issue is resolved?
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
May not fix it. Battery drain is associated with a recent update (June 27th) to Google Play Services and is impacting numerous KitKat devices/roms including my mobile which is stock. Limiting the alarm and/or wakelock noted in previous posts mitigates the battery drain with minimal impact on location services. I'm still tinkering with values to find a happy balance; 300-900 seconds seems to be the sweet spot. Google appears to be working on the problem as I have noticed a reduction in run-away drain on a control device over the past 48 hours. My speculation (which could be entirely wrong) is the alarm/wakelock fire until Google acknowledges receipt of whatever is suppose to be happening. If true it's entirely possible the fix could occur on the back end without release of a GPS update.

Bottom line: this does NOT appear to be a HDX ROM issue.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] berndt_toast:
Here are the wakelocks and alarms to limit (I use amplify to do so):

Alarm: com.google.android.gms.location.fused.SEND_LOCATION_IN_SMD_MODE

Wakelock: ContextManagerWakeLock

This is a temporary fix, will need a permanent fix from Google for this though.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] mcasara:
Hi guys. I have been using this rom for a month already and didn' have any problem but one day noticed a serious battery drain. Rebooted device, recharged several times even reflashed the rom but no progress has been made. Now it has 3:30 battery life instead of 6:30hrs (checked 5 months ago). Could be there any issue with rom or just the device got old. thanks
[Kindle Fire HDX 7" & 8.9" Original Android Develop] unhappybirthday:
2 posts above yours...
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
.....and keep reading for related material (last dozen+ posts). Rather annoying seeing new posts on recent topics that have already been answered.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Parschulke:
hello,

my screen rotation is not working anymore.

I also did a wipe system and data and reflash the rom.

I use TWRP for flashing.

Is there any hint to get the rotation back to work?
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
What do you mean by not working? No rotation at all or upsidedown/wrong rotation in some applications? Have you tried flashing a different rom to verify hardware sensors are working correctly?
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Parschulke:
No Rotation at all. I allready checked other Custom Roms CM11,12,13 but there is the same issue.

I have to use an app to rotate the screen.

Maybe the Hardware Sensors are damaged but I hoped that somebody has a tip for me.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] :
Is this ROM more compatible with Xposed modules than the last one? There are a few Xposed modules I want that didn't work on the previous ROM:

Mock mock locations - Want to use an external BT GPS for pokemon go so I can use it on my Kindle

XGPM

SpotifySkip

Can anyone test if they work on this ROM?

Does this mean updating from older versions of this ROM, or updating from the previous Nexus ROM?
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
I have yet to find widespread Xposed module incompatibility with this rom or its two generational predecessors. Mock locations works fine on latest build. XGPM author indicates several features require LP. I do not use Spotify so can't comment there.

Update procedures vary depending if using Safestrap v4 or TWRP with an unlocked bootloader -and- rom currently installed. If updating from Nexus HDX (now discontinued) or CM11 on Safestrap you'll need to insure Amazon binaries have been updated to 4.5.5.1. That involves flashing a Safestrap compatible version of FireOS 4.5.2 to the STOCK slot, removing Safestrap, allowing a natural OTA update to 4.5.5.1, rerooting, reinstalling Safestrap and (finally!) flashing Fire Nexus. Otherwise follow the OP and 'best practices' (individual preferences) for clean/dirty rom flashes.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] :
Thanks! I'll try this when I get back from my holiday, is there any way to check what version of Amazon binaries I have, without a computer?
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Unfortunately, no. However if Safestrap v4 was installed more than 6 months ago the underlying version of FireOS was likely 4.5.2.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] ands2:
If someone has some minutes, could you please verify the following issue:

Please start/skip any mp3 file you have on your device. Do you also hear the "noise"/"scratch sound" at the beginning of every track? I could not describe it better. But when you have it, you will probably understand what I mean.

The strange thing is that it only happens when I start or skip a track. With fast-forward or when the track ends normally and it starts the next one on the tracklist it doesn't happen.

It seems not to be any software player issue as I've tried 3 different players.

Edit:

And it seems to affect only using headphones. At least using the speakers I can't hear the noise.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Known problem with all custom roms for this device somewhat aggregate by Safestrap and more noticeable with personal headgear. Flashing a Dolby module reduces but does not eliminate the various audio anomalies that have been reported. There is no full solution.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] ands2:
Can I use the Dolby addon from one of the older releases?

http://xdaforums.com/kindle-fire-hdx/development/rom-hdx-nexus-v4-0-1-t3125808

I would give it a try tomorrow.

Otherwise I think I really have to go back to the very old version "thor-nexus-rom-v1.4.3" as it hasn't this issue.

But you say it is caused by Safestrap? I've used the very old version with Safestrap and didn't had this issue. I'm now using the newer versions with TWRP and suddenly have this issue.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Not caused by Safestrap but seems to be a bit more noticeable when SS is involved. My device can run native twrp (unlocked bootloader); while I can hear the audio anomalies they are only bothersome with very high volume levels. Awhile back I loaded up Safestrap with and identical build of Nexus and found the distortions somewhat louder. But that represents a single data point and there may have been related, uncontrolled variables in my simple test.

The Dolby package you linked to should work fine. Be sure to do a full backup in SS before flashing. At minimum the system partition.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] ands2:
The Dolby addon was a great advice. The noise is still there, but it's far less noisy.

Thank you very much!
[Kindle Fire HDX 7" & 8.9" Original Android Develop] :
Ok, I'm back and have got my kindle on 4.5.2 and things appear to be working properly, however, whenever the kindle tries to update it gets to 100% and then nothing happens. When I go into system updates it says "Last update failed" and then tries again - with the same result.

What could be causing this and how can I stop it from happening? I still have safestrap installed and the kindle is not yet rooted, do I need to get rid of safestrap before it updates?

EDIT: Didn't read properly, I should have removed safestrap nvm

EDIT 2: It's still doing it. How are you supposed to remove safestrap properly? I did it through the app but the updates still aren't working, do I need to factory reset?
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Soulreaver1993:
Hi, I have now installed cm 13. I want to try this rom, but I cant install it.

I got the Error code: "Updater process ended with Error 7" (Error installing zip file).

My CM13 backup can I restore flawless. Can anyone help me there?
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Ran into this a few times. Wipe system/data/dalvik/cache and reboot (into twrp). Should flash fine after.

Note to Safestrap users: above is not a solution for you!
[Kindle Fire HDX 7" & 8.9" Original Android Develop] kokkok:
Same error when from CM 12.1. Wipe all before installing but not effective. I unlocked with 13.1.1.0 and not update bootloader. That is the reason???
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Soulreaver1993:
Thanks that works!

Another Question, does GPS works in this rom? And play someone Pokemon GO with the fire HDX? :D

best Soulreaver
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Did you reboot after wiping all? If still no joy:

- update bootloader to 13.3.2.3 (easy)

- update TWRP to v3.x

Post back if you need links (responding from my mobile)

---------- Post added at 04:57 PM ---------- Previous post was at 04:39 PM ----------

This has proven to be a problem for some. Either OTAU functionality remains partially blocked or the contents of the system partition are not as expected. A factory reset typically offers no benefit as it does not touch the system partition. That said, it can't hurt to try provided Safestrap v4 recovery (not just the app) has been fully uninstalled.

If the problem remains the next step (least risky) is to reinstall SS v4, flash a SS compatible version of FireOS 4.5.2, remove Safestrap and repeat the OTAU procedure.

---------- Post added at 05:05 PM ---------- Previous post was at 04:57 PM ----------

There is no diacrete GPS HW in most HDX devices. LTE models do have an integrated chip but it isn't very responsive. This rom does support Google Location Services which offers an approximate location based on cell tower and *known* AP/hotspot coordinates. Obviously only the latter if not LTE equipped. Not sure that would suffice; give it a whirl.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] :
I reinstalled ss4, reflashed the stock 4.5.2 FireOS and removed safestrap again but updates still fail.

So far, in order to remove safestrap I have been rooting and then using the apk but this doesn't feel like the right thing to do as I would guess root is interfering with updates. Is this the way I should be getting rid of safestrap or can I remove it without the apk? Then again, maybe my kindle just doesn't like me.

Thanks for the help so far!

EDIT:

Solved, thanks to hfpop - You have to rename otacerts.zip.orig to otacerts.zip

Looking at older posts it appears it can end with .bak or .old as well
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Then name on your device was a personal choice when your blocked OTA updates after rooting. Could have been anything. The only name your device will recognize is otacerts.zip.

Sorry to have omitted this important detail in my July 9th response. Since you were discussing Xposed modules (advanced topic) I assumed the following phrase adequately implied re-enabling OTA updates; in hindsight that was a big leap.

"allow a natural OTA update to 4.5.5.1"
[Kindle Fire HDX 7" & 8.9" Original Android Develop] flyboy463:
Hey ggow. First off, thanks for the awesome work you've done throughout the years. I've been using your ROMs since I learned it was possible on a HDX. I seem to have run into a bit of a snag though. I know your previous ROMs have had usb and bluetooth tethering, but it seems like there's no such thing in this one. I'm just wondering if this is a known issue (I searched the thread and couldn't find an answer) or if I'm just dumb. Thanks - Flyboy463
[Kindle Fire HDX 7" & 8.9" Original Android Develop] ands2:
Does this ROM supports CIFS? I couldn't find any comment about it in this thread, but older ROM versions seems to had it included.

I wasn't able to find any "cifs.ko" and a test with "mount" throws an "No such device" error, which indicates a missing CIFS support.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Raymodjp:
I just flashed this ROM (with a lot of help from davey) and everything is going smoothly, but it doesn't seem to support WiFi 5ghz. I moved from cm11 to the discontinued version of nexus to get 5ghz. The 5ghz worked, but I also needed location services support. I hoped this ROM would be the answer. Any chance it will be added in a future release?
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Give me a day or so to reverify 5GHz WiFi functionality on recent builds (no 5G networks in my current location). It did work at some point on an unlocked Thor. Possible Safestrap is coming into play and/or 5GHz support was lost in a recent refresh.

---------- Post added at 12:15 AM ---------- Previous post was at 12:12 AM ----------

To my knowledge none of the KitKat based roms for this device have CIFS support. [MENTION=5749760]ggow[/MENTION] recently added it to the Nexus and CM roms for the 5th gen Fire (lollipop) so maybe it can be back ported.

---------- Post added at 12:18 AM ---------- Previous post was at 12:15 AM ----------

I don't believe USB tethering is not possible in this device due to interface limitations. Can't speak to bluetooth.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] flyboy463:
Thanks for the reply. Maybe my memory is a bit fuzzy with tethering. I'll try experimenting with some older ROMs and see if the tethering works as expected.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] paragon1a:
My Apollo (HDX 8.9) has been running the Fire Nexus ROM since April. It does support 5GHz Wifi, but only with band C (149 - 161) and not band A (36 - 48).
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Back home - fired up my 5GHz AP. Connected fine to channel 36. Unlocked Thor running latest build (20160622). Note Apollo and Thor use different SOCs so my finding and [MENTION=7002913]paragon1a[/MENTION]'s experience could both be valid.

I'll try to load Fire Nexus under Safestrap v4 tomorrow to see if that changes things.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Raymodjp:
After another check, my 5ghz is working. I am very sorry for wasting your time on this! I should have double checked. Before my initial post I walked to within 30 feet of the antenna, repeatedly scanned and got nothing but all the neighbors 2.4 signals. I also scanned on the way to and from the antenna. After seeing paragon1s reply, I thought I had better double check. I walked to a different tower and got a signal almost immediately.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] ggow:
I'll put CIFS on my todo list.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Raymodjp:
Ok, I am beating a dead horse at this point, but i have one last question before I give up on the 5ghz and just enjoy my new nexus OS. We have city wide wifi at 5ghz. After installing this ROM, I didn't get a signal the first afternoon i tried, but I did get a signal around midnight. Now I've been to 4 of our cities antennas this afternoon and can't get a signal no matter what i try. I know it's not the Nexus ROM since i did get a signal once, so is this just the nature of 5ghz wifi? I can't get a decent answer from US Internet tech support because they are definitely not tech. They are just barely support.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
5GHz WiFi is not inherently sketchy. It has slightly less 'penetrating' power vs 2.4GHz but is not difficult to see/capture assuming a clear line of sight. Your question is best answered by comparing WiFi APs recognized on another device. Most mobile phones produced in the last 1-2 years have dual band receivers. If your's does not (or you don't own a mobile) a friend's device most likely does.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Raymodjp:
I don't have a cell, I don't want to be that easy to contact. I will find another device and check it out. I also don't have a newer router, but I have a friend with a a/b/g/n/ac so I will see him in a few days to find out what my tablet sees for 5ghz signals. I asked for band / frquency info from USI Wireless and got another unhelpful "answer": "Each node is on a different channel, and they change automatically. What is the reason you need to know this, I cannot think of a single issue that know this information would solve. Maybe there is eomthing else we can do to better assist if we know what you are after. Thank youf choosing USI WIreless."
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
In this instance I concur with the response provided by USI Wireless. Rotating channels allows the provider to optimize delivery by seeking out the clearest channel(s) in real time (if done properly) and is common industry practice. As a client you should not need to know detail channel information beyond (perhaps) A/B/C band designation as some devices can not work with all three.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Raymodjp:
You are right, but band info would have been nice based on paragon1a's previous response. I asked for as much as I could based on the lack of knowledge I encountered in my previous attempts for help. Saying "why do you need to know, I can't think of a reason" is just horrible customer service.

I think the key is "if done properly". It might be my device, I am still waiting for another device to test, but the intermittent signal reception with clear line of sight is... Confusing.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Yep - pretty horrible if a direct quote. I'd be on the horn with that dudes supervisor if treated in a similar manner. That said, most telcos have a near monopoly in the markets they serve and can behave as they choose.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Raymodjp:
Yep, the response i quoted a few up from here was copied and pasted from email. I did contact a supervisor and got a quick response with apology and channels for 2 local antennas. One is channel 132 (dfs), the other is 153. On this ROM I received a signal from channel 153 but not 132, and its hard to duplicate. On 4.0.5, I got a signal on both.

The company in question is installing fiber, so that's where most of their time and resources go. I am looking forward to that but my neighborhood is one of the last areas, maybe 2017.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
You could always backup your current install and reflash HDX Nexus 4.0.5 to reconfirm the signals obtained. I sense you won't see much difference as the rom is not directly involved in WiFi operation. Yes, it plays a role but smaller than you might think.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] paragon1a:
To experiment, I set my router 5GHz Wifi to channel 132. My iPad Mini detects it but not the Apollo HDX8.9.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Raymodjp:
A neighbor noticed me checking the signal and let me test on his stock fire HD 5th gen. Same results, no signal on 132. It did pick up 153 much better than mine. I considered a backup to test 4.0.5, cm11, and 4.5.5.1, but I think I am just going to move on. I might look for a second tablet with 4g.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Fair enough. I am penning this now connected to public 5GHz albeit on channel 36. Hoping to find some time to reconfigure the home router to favor upper bands, specifically channel 132. More out of curiosity to see if Thors share the apparent Apollo weakness. Different SOCs, never know.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] Raymodjp:
I got a new 5 GHz router, and after a few tests I think I have a hardware problem with my refurbished 8.9 hdx. I set it up on 153 and initially the hdx saw both the 5 and 2.4 signals at full strength. I clicked on the 5 GHz signal, but my tablet only saved it. I finally 'forgot' it to try again, but no signal. I tried several other channels, and nothing. Couldn't see 153 again even though I tried several more times. Our laptop easily picked up and connected to the 5ghz signals.

So that explains my lack of a signal from our public WiFi, if not exactly why..
[Kindle Fire HDX 7" & 8.9" Original Android Develop] mrw187:
Does this rom allow functional txting and calls? Or do any of the others?

Thanks.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] DB126:
Not an inherent rom capability. Such services are typically provided via apps and are dependent on device capabilities. That said, I have full text (SMS/MMS), multi-device sync and voice capability using WiFi on this device via a carrier supplied app. Works well.
[Kindle Fire HDX 7" & 8.9" Original Android Develop] mrw187:
Thanks so the infrastructure is there kinda thing just need the right apps?

What txt app are u using?

Is there a dialling over gsm app?

Basically instead of getting a 6.44" xiaomi mi max I was thinking of hmm, why not go all in n go hdx 7" lol if I can txt and call over gsm I most likely will.