yashsingh1/xdaforums huggingface dataset:
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Hello Cpasjuste,

Glad you like the ROM :)

The lights module seems ok, there just seems to be some disconnect between the light sensor and the screen brightness. The amazon way of doing screen brightness doesn't seem to be standard but have no way of knowing for sure. Amazon's source code drops are very poor indeed.

I am building from source, I'll put together a zip file of my device tree files. Sorry for not having a github but as you probably remember my internet connection is almost non existent - having to use my mobile phone for everything online is not ideal.

Basically from the codeaurora.org I used a 4.2.2 branch and compiled using msm8974. I think it's "lunch 16" for the msm8974 build.

I too started dabbling with CM11 and yes, it's going to be a great deal of work to get it working. I was also investigating whether or not I could hijack boot up in the same way that Safestrap does to enable boot of kitkat or lollipop with 13.3.2.4 but at the moment this is conjecture until further investigation is completed.
[Kindle Fire HDX 7" & 8.9" Android Development] Cpasjuste:
Thanks for the informations and tree ! Else you can find my wip on my github (cpasjuste) if you ever need it. Nothing fantastic for now as I said, can only show bootanimation and very slow (vsync problem with hwcomp and co).
[Kindle Fire HDX 7" & 8.9" Android Development] cdub50:
WiFi battery drain seems to be more excessive. I see this in log cat a lot.

11-08 21:57:11.427 D/WifiNative-wlan0(8789): doString: SIGNAL_POLL

Screenshot attached
[Kindle Fire HDX 7" & 8.9" Android Development] boi2kmall:
Same here.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Same here, I'll take a look into it.
[Kindle Fire HDX 7" & 8.9" Android Development] DQEight:
Holy crap. Who do I have to murder to get Lollipop on an HDX? :P
[Kindle Fire HDX 7" & 8.9" Android Development] Fallingwater:
Do we have a changelog for 2.01? I'm trying to figure out why I should upgrade but so far I can't see any compelling reason.
[Kindle Fire HDX 7" & 8.9" Android Development] EncryptedCurse:
You can always find the changelog in the OP.
[Kindle Fire HDX 7" & 8.9" Android Development] rootnooby:
14.3.2.6 - rooted. No safestrap installed.

Am I able to use this rom with 14.3.2.6? I am overall happy with this version and was able to root with towel root.

Would love to install safestrap and try out this rom.

If it doesn't work with 14.3.2.6 today, are there plans to update it? It's never really clear whether development will continue on this tablet or not.

Always happy to donate for all the great work.
[Kindle Fire HDX 7" & 8.9" Android Development] EncryptedCurse:
As far as I know, it needs to be exactly on 13/14.3.2.4.

There's a thread for downgrading here: http://xdaforums.com/showpost.php?p=55743191&postcount=195
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
As far as I'm concerned, development for Apollo / Thor will continue :)

Probably will not port the ROM to .3.2.5 or .3.2.6 as the next move will likely be kitkat or lollipop.

You will need to be on .3.2.4 to run this ROM at this time.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Hi [MENTION=503571]Cpasjuste[/MENTION],

Amazon have posted the source code for the Saturn device here in which the kernel source seems to include Apollo and Thor kernel configs. Looks like the kernel has been updated to 3.10 too.
[Kindle Fire HDX 7" & 8.9" Android Development] Cpasjuste:
W00t ! Good news, ill take a look.
[Kindle Fire HDX 7" & 8.9" Android Development] rootnooby:
Thanks. I'm going to stay with 3.2.6 and forego the rom for now. Reason is that I had some minor issues using floating windows (xposed framework) on 3.2.4. Works better on 3.2.6.

---------- Post added at 04:31 PM ---------- Previous post was at 04:29 PM ----------

Thank you for the response. Good to hear that development will continue.
[Kindle Fire HDX 7" & 8.9" Android Development] Cpasjuste:
For now I do not have more success booting the new kernel/dtb even when compiled from sources and with dtb backward compatibility. I don't get it :x
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
I was just taking a look myself. I have just fixed up .3.2.4 to build. Now onto 4.2.5... That is strange that it won't boot...

Just going to fix up 4.2.5... It's a wonder that whenever there is a code drop from amazon the kernel source they provide never builds without error. They must have a magical compiler that fixes the errors.
[Kindle Fire HDX 7" & 8.9" Android Development] Cpasjuste:
True, they are crap :/

Else the kernel compilation is easily fixable. The problem seems to come from the new dtb stuff which seems to be incompatible with our bootloader. I tried to add a few options to the kernel enabling old bootloader support for dtb without success :( Tomorrow I will diff old and new dtb stuff to see if I can find what's changed concerning this problem.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
I had a look the bootloader code included. On initial look it looks identical to the 3.1.0 and 3.2.4 code which leads me to believe this published code isn't what is running in our devices.

They may have changed signatures or something in the chain of trust boot sequence?
[Kindle Fire HDX 7" & 8.9" Android Development] Cpasjuste:
That was a good idea. There's also not a lot of change in the dts/dtb files. There's maybe just a new way to load dtb with this kernel version which make our old bootloader unbootable. We have to find it out :)
[Kindle Fire HDX 7" & 8.9" Android Development] uhraman:
battery drain so fast

Dear all,i just install rom hdx nexus 2.0.1 im last 3 days and found that the battery drains very fast(about 40% in 6h) in idle state (at night).i used wakelock and gsam to find out which is the cause and it may be due to the wifi but i am not very sure. do you guys encounter this issue?

By the way, thank ggow very much for your effort in making a wonderful rom for a device like this!
[Kindle Fire HDX 7" & 8.9" Android Development] Cpasjuste:
That's sad because I can see some qcom stuff that was missing on the old kernel for compiling CM with caf-new ! I'm thinking to update why bootloader and search/wait for a root exploit but well, this is a big decision to take :)
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
I was thinking the same, but I don't want to lose the unlocked bootloader :(

I would wait before upgrading and investigate a bit further for other solutions.

If we're left with no choice then we should upgrade when a root exploit has been found.

I would upgrade, if I had any experience finding root exploits.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
[MENTION=545808]cdub50[/MENTION], [MENTION=5834261]boi2kmall[/MENTION]

I have been running some tests and have managed to get 2% drain overnight.

Try this, in Settings:

Go to Wi-Fi -> Advanced Wi-Fi

Then set "Keep Wi-Fi on during sleep" to Never

Works for me on both Apollo and Thor.
[Kindle Fire HDX 7" & 8.9" Android Development] rubinho:
No battery drains here on 2.0.1. Use Greenify, thats solved your problem.

--Edit--

I suspect the YouTube app, for these problems.

Change the YouTube app to a user application and let them switch off by greenify

But just a guess

[MENTION=5749760]ggow[/MENTION]

"Keep Wi-Fi on during sleep" have I set to always ;)

--Edit--
[Kindle Fire HDX 7" & 8.9" Android Development] boi2kmall:
I already have that setting in my tablet. I don't have battery drain while the tablet sleeps. The only problem in mine is that the battery drains faster when in use than the previous versions.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
I'll try this out. Thanks :)
[Kindle Fire HDX 7" & 8.9" Android Development] johnwaters:
ROM is excellent but battery is pathetic. 10% for 15 minutes use....
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Could you try Greenify as [MENTION=279255]rubinho[/MENTION] suggested and let me know if it helps.
[Kindle Fire HDX 7" & 8.9" Android Development] johnwaters:
Already set it up. Doesn't seem to help for some reason. Maybe I need to greenify more things.....

---------- Post added at 09:35 AM ---------- Previous post was at 09:24 AM ----------

Maybe location services is killing it. I'll switch it off and test.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Which apps did you greenify?
[Kindle Fire HDX 7" & 8.9" Android Development] rubinho:
Here is a screenshot of Greenify ...

I dont have installed any google apps except youtube and I have installed currently no mail client. "Google synchronisation" is deactivated.

It is only Tapatalk, Firefox and Davdroid installed with activated synchronistation.
[Kindle Fire HDX 7" & 8.9" Android Development] Demonoid111:
I'm having the same problems with Xposed as mentioned before.

Every time I reboot I get a black screen.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Which version of xposed do you have installed?
[Kindle Fire HDX 7" & 8.9" Android Development] Demonoid111:
2.7 experimental 1

I found out what the problem was. Once I disabled the amplify plugin for Xposed, I stopped getting the black screen.
[Kindle Fire HDX 7" & 8.9" Android Development] johnwaters:
I'm doing a bit better I think. Network location appears to be at least one culprit.
[Kindle Fire HDX 7" & 8.9" Android Development] uhraman:
I did the same as you said before and Greenify, and now Disable Services some services but the situation is the same. I am looking for the main cause, but I suspect it may come from Google Play services. I will report the cause and solution later if I find it.

Thanks for your suggestion and your rom.
[Kindle Fire HDX 7" & 8.9" Android Development] EncryptedCurse:
I think it may have something to do with syncing accounts; i.e. Twitter, Gmail, etc.

I checked Amplify and the SyncLoopWakeLock is abnormally higher compared to all the other ones.
[Kindle Fire HDX 7" & 8.9" Android Development] cdub50:
Still seeing a high drain from WiFi. uninstalled YouTube to test and screenshot attached that shows WiFi almost using same percentage as screen. This is while screen is on that I see the high usage. Only thing that I see in log cat is wifi constantly polling

11-11 22:01:09.119 D/WifiNative-wlan0(8789): doString: SIGNAL_POLL

Almost 20 times per minute in logcat
[Kindle Fire HDX 7" & 8.9" Android Development] gqukyo:
When I had this rom installed, I had horrible battery life and I did the wakelock terminator and greenify and they didn't do anything. Google play services was still draining the battery. Gave up root to get on sangria and happy with it. Miss the root, rom and google play store apps but it'll do until sangria gets rooted if that ever happens...
[Kindle Fire HDX 7" & 8.9" Android Development] uhraman:
Dear Ggow, I found that this wakelocK; Msm_hsic_host wakelock of the kernel is the main cause. It prevents the system going into deep sleep. A googling show this: ""The msm_hsic_host wakelock is because the 3G modem is connected to the phone as an external USB device controlled by the hsic host controller. When the modem wakes up for any reason (apps sync, location, tower ping, etc...) the wakelock is requested. The problem is that the hsic host controller doesn't go back into suspend mode properly, this is a problem with the kernel. The result is that because the hsic host controller isn't asleep the phone wont enter deep sleep while it waits for the hsic host to suspend.".

I would like to ask if I need to do/install anything with stock rom beside rooting and install safestrap? for example, do I need to go to stock rom and install xposed framework and hdxposed on stock rom?
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
There would only be sense installing xposed if there was a module that could make a patch to rom taking into account the bug in the kernel.
[Kindle Fire HDX 7" & 8.9" Android Development] uhraman:
do you know possiblly why I encoutered that battery drain and you and some others not? If it comes from the kernel, then all should see the same problem!!!
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
There are so many variables in everyone's devices like apps installed and the like. It's hard to tell. I'm looking at how wifi works right now... From kernel and rom... Will let you know if I find anything.
[Kindle Fire HDX 7" & 8.9" Android Development] Arashkage:
Many thanks [MENTION=5749760]ggow[/MENTION]. I was on Apollo 1.3 and I successfully upgraded to nexus 2.0.1 .

No drain battery. Smooth and perfect.
[Kindle Fire HDX 7" & 8.9" Android Development] blade22:
My Kindle HDX is on 13.3.2.3.2

can I install this RoM :confused:
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
No, upgrade to stock 13.3.2.4 first.
[Kindle Fire HDX 7" & 8.9" Android Development] blade22:
Alright :D and also it won't wipe my Apps and Games (+data) in the stock ROM right?
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Follow the upgrade guide linked in the OP and be sure to install HDX Nexus ROM in a new ROM slot and all will be fine.
[Kindle Fire HDX 7" & 8.9" Android Development] uhraman:
I also upgraded from 13.3.2.3.2 to 13.3.2.4 and then flash hdxnexus 2.01. THese are the steps I have done, please check it with others topic in this forum once again to be sure (i am not responsible for bricking):

1. download hdxtoolbox 0.94 or 0.95

2. install adb driver on your computer

3. forget your wifi network (to prevent ota)/eanable airplane mode

4. re-enable ota using hdxtoolbox (I tried this but I do not know why it did not really work, so to be sure, you should do this one too:

"Figured it out by looking at the source code for HDXposed. HDXPosed is disabling a few things and all we need to do is re-enable them.

So, assuming we've got ADB up and going:./adb shell

su

pm enable com.amazon.dcp

pm enable com.amazon.dcp.contracts.library

pm enable com.amazon.dcp.contracts.framework.library

exit

exit

Bingo! OTA updates are back alive (as are updates via a download of the bin file)."

5.disable/uninstall hdxexposed and xposed framework

6. enter Supersu and tick full unroot

7. reboot your tablet

8. Reset your tablet (lost root)

9. Download stock rom bin file 13.3.2.4 from amazon (search xda to get link) onto your pc

10. Put rom into your tablet

11. Enter Settings->Device->update

12. Reboot

13. Root your tablet again

14. Install safestrap and do what hashcode asks (create rom slot, activate it...) (you can refer to youtube video from androidcowboy about using safestrap and install it)

15: flash hdxnexus rom on your new rom slot.

Please be very careful if you do not want to brick your device

---------- Post added at 11:13 AM ---------- Previous post was at 11:07 AM ----------

So the main idea is to revert what you have done before (rooting,xposed,diasble ota) and then update 13.3.2.4 then root again, install safestrap, use safestrap to flash hdxnexus rom.
[Kindle Fire HDX 7" & 8.9" Android Development] blade22:
Ok...here what I have currently

1. HDX version = 13.3.2.3.2

2. Its rooted via Toolkit earlier

3. OTA disabled

so can I follow this:

1. upgrade to 13.3.2.4 (via .bin file)

2. Root the 3.2.4 version by toolkit

3. Install Safestrap and create ROM slot

4. Install HDX Nexus ROM
[Kindle Fire HDX 7" & 8.9" Android Development] uhraman:
You should revert back all you have done (disable wifi first). Just to be sure that there is no problem happening, you should reset 13.3.2.3.2 before upgrade to 13.3.2.4. After you have 13.3.2.4, it's simple.
[Kindle Fire HDX 7" & 8.9" Android Development] lennV:
I've been using the 2.01 for about a week and has no problem with battery drain. But every time I reboot, the date and time reverts back to 8:00 a.m. July, 30 2014. I'm using the clock that comes with the ROM.
[Kindle Fire HDX 7" & 8.9" Android Development] uhraman:
I reseted the rom. it happens that the rom is not rooted by default(?!), I installed supersu and gained root automatically, using greenify with root right, I do not have battery drain anymore until now (after 2 days).

About the time problem, I also saw the same. I went back to stock rom Fire OS and change time there, then went back to HDXNexus and do not see that problem anymore. You should try it.
[Kindle Fire HDX 7" & 8.9" Android Development] lennV:
Thanks, uhraman. I'll give your suggestion a shot. I just wanted to make a note of this as a potential bug and have mentioned it in the bug report.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Please delete this post #644, I accidentally double posted because of my internet connection not responding.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Update

Been investigating the reason why WiFi seems to be draining the battery in the last week.

I have found several issues in the framework side of the ROM which could account for why the battery is draining so quickly.

Now currently fixing this up.
[Kindle Fire HDX 7" & 8.9" Android Development] karlosavvy:
Thank you for your effort!

Dear ggow,

I had been following this thread and I would like to thank you for your effort in helping this community of HDX users.

I recently got this device as a gift and I want to try loading your ROM as I do not like being forced into the amazon "eco-system".

Would like to check with you whether my device is compatible.

Currently, it is running on Fire OS 4.1.1. I could not seem to find what is the kernel version (You mentioned that need .3.2.4 kernel. Where do I get this information? My device does not seem to show anything with regards of this information).

Does my device need to be rooted before being able to install your kernal?

I tried rooting my device using the instructions stated here.

(fire.wonderhowto.com/how-to/root-your-amazon-kindle-fire-hdx-less-than-5-minutes-0156633)

However, it says that it does not support my OS.

Also, what is the difference between apollo Nexus Rom vs Thor Nexus ROM? How do I check if my device requires Apollo or Thor?

Any advice is greatly appreciated. Cheers!
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Hello karlosavvy,

In answer to your questions:

Unfortunately, .4.1.1 is a completely new beast which isn't rootable yet so there is no way you can downgrade at the moment to .3.2.4 which is a requirement.

Because the device has an locked bootloader you cannot currently flash an arbitrary boot.img. Instead we can only move between the different stock roms which are signed.

Apollo Nexus is for the 8.9 inch device and Thor Nexus is for the 7 inch device.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
I have checked the source code for our kernel and it does include a patch from the caf sources which was related to this problem. There must be something I'm missing on the ROM side of things to cause this. Looking into it.
[Kindle Fire HDX 7" & 8.9" Android Development] uhraman:
Thank you for your enthusiastic. I resetted my rom and install apps one by one. Finally, I found out that VIBER is the main culprit of draining instead of WIFI. Using Greenify with root access I could stop battery draining to 2%/night. That is good. Thank you.
[Kindle Fire HDX 7" & 8.9" Android Development] icedtrip:
This makes sense. Started looking into it and saw that viber was using a lot of data, and I rarely even launch the app. Deleted it for now and will see how battery life improves.
[Kindle Fire HDX 7" & 8.9" Android Development] Fallingwater:
Great, looking forward to the new version. Thanks again.

I've flashed 2.0.1 in the meantime, but I haven't had a chance to use/test it yet. As soon as you release a battery-optimized version I'm wiping everything and installing that. :)
[Kindle Fire HDX 7" & 8.9" Android Development] icedtrip:
Running a test on this today. Last night I removed Viber and DS Battery, but left Greenify installed and enabled. No other apps stood out as data hungry, but there could always be other apps I have installed that others don't. This is mainly to see if Viber was my big battery draining app due to WiFi usage. My WiFi is set to only connect in sleep mode when it is plugged in. Had a full charge this morning when I left for work and unplugged the HDX. I'll report back tonight when I get home to see what kind of charge I have. Should be a good 12 hour test by the time I check on it.
[Kindle Fire HDX 7" & 8.9" Android Development] Droid_1:
Had also huge battery drain.

Installed Greenify, set wifi to disable in standby.

Then did the following:

Unplugged my HDX this morning (100%).

Now after 14 h Im at 97%.

Using v2.0.1.
[Kindle Fire HDX 7" & 8.9" Android Development] icedtrip:
You did a bit better than me. 10h 35m took me from 100% to 96%. Not bad.
[Kindle Fire HDX 7" & 8.9" Android Development] pentiger:
install question

I am on 13.3.0.5. How can I install this ROM.

Tried the usual wipe all and install but it gets stuck on black screen.

It's unclear to me if I have to upgrade it first before installing this version 2.0.1

thanks.
[Kindle Fire HDX 7" & 8.9" Android Development] ptrsnshane:
You have to upgrade to 13.3.2.4 first.
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Bad news

The touch sensor for my screen has stopped working. As a result I can do no dev work at the moment.
[Kindle Fire HDX 7" & 8.9" Android Development] kudoz83:
Oh no, mate! Sorry to hear! Were you in the middle of a flash or something? ADB access doesn't come up until SafeStrap boots does it?
[Kindle Fire HDX 7" & 8.9" Android Development] icedtrip:
That's not good. Hardware failure or testing something on the software front that somehow jacked up things?
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Not sure at the moment whether it's a hardware or software failure - was testing a kernel. The touchscreen seems to respond but there is a huge offset / scaling problem for touch position. The whole thing is unusable. Even if I boot into the recovery the problem still exists.

It could be that the new kernel overwrote some calibration values etc on another partition. That's what I'm hoping is the problem. I always thought a full recovery partition was completely isolated and not dependant on anything else.

Still investigating the problem, if anyone has any ideas then please let me know.
[Kindle Fire HDX 7" & 8.9" Android Development] Cpasjuste:
I really dont know what happened to you :/ Did it happen when you tried to append a dtb yourself ? Did you sometime use a zip to flash ? You maybe flashed a blob by inadvertance ? As you said its strange that some values changed on the board.

A similar problem : http://xdaforums.com/showthread.php?t=1002683&page=37

Of course you are sure you are using a working/old recovery ?
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
I think I know exactly when it happenned, I appended the 3rd DTB entry to the zImage of 4.1.1 and success the kernel boot but after the touch screen calibration seems messed up.

Leaning more towards it been software related issue.
[Kindle Fire HDX 7" & 8.9" Android Development] Cpasjuste:
Yes its strange because I tested the second and third dtb entry without this problem.
[Kindle Fire HDX 7" & 8.9" Android Development] Fallingwater:
I'm curious, what did you want to accomplish with this kernel you were testing?
[Kindle Fire HDX 7" & 8.9" Android Development] ggow:
Update

I have managed to rescue my device.

The synaptics dsx firmware or the config had become corrupted.

Check this post for the solution.

http://xdaforums.com/showpost.php?p=56986107&postcount=22
[Kindle Fire HDX 7" & 8.9" Android Development] Fallingwater:
Yay! :D

---------- Post added at 03:46 PM ---------- Previous post was at 02:51 PM ----------

I'm suddenly having a problem - the play store says to check my connection. If I click retry, it just repeats the message. I have cleaned its data and cache and cleaned the cache of the google services, and the problem persists. I have rebooted, and the connection is definitely present (opera loads pages just fine).

How do I get it working again?
[Kindle Fire HDX 7" & 8.9" Android Development] uhraman:
The problem may be due to wrong DATE AND TIME!
[Kindle Fire HDX 7" & 8.9" Android Development] Fallingwater:
Huh. What do you know, it thought it was July, for whatever silly reason. Set it to the proper date and now everything works again. Thanks!