yashsingh1/xdaforums huggingface dataset:
[Nexus 5X Original Android Development] flar2:
Update!!!

Only kernel change is a fixup for LED colors

As I announced a couple weeks ago, the installer has now been completely revamped to deal with increasingly tight security on Android N and for better compatibility with various ROMs. The new installer will apply your settings even without root and keeps everything in the boot.img. It does not create any files or modify /system or /data except to add /sdcard/.elementalx.backup so the express installer can keep your CPU frequency settings. From now on, /data/data/elementalx.conf will no longer be available. To change your settings, you will have to reinstall or use EX Kernel Manager (best option because you get notified of updates and can use the express installer and it supports the many hours I spend developing this).

This includes the July security updates, do not install on earlier builds!

Download

ElementalX-N5X-1.17

Changes:

-LED fixup

-update installer
[Nexus 5X Original Android Development] ulxerker:
+ it is the easiest and most comfortable way to manage your kernel, I use it since the beginning and its really worth it!
[Nexus 5X Original Android Development] ulxerker:
installation + boot-up went smooth and kernel runs stable, as always. :)
[Nexus 5X Original Android Development] airon11:
I always asked myself why with this led that seems to be rgb not all colors were available... May i ask for some documentation or something about what is the fix to color led? Just for my reading..to understand it.

Thanks
[Nexus 5X Original Android Development] drbawb:
I can't seem to get TWRP (3.0.2) to decrypt my phone w/ pattern unlock on Android N DP4.

Is there any other way to install EX without decrypting my userdata to get TWRP working?
[Nexus 5X Original Android Development] Flyview:
Nope! Only way to decrypt is to wipe, and after that you have to be careful to flash SuperSU after any kernel changes to make sure the phone won't encrypt on first boot.
[Nexus 5X Original Android Development] SlimSnoopOS:
Per this guide over in the 6P forums by [MENTION=6807382]asj0422[/MENTION], fastboot flash the latest Marshmallow Vendor.img then you can use TWRP while encrypted. Make sure to flash the DP4 Vendor.img before booting into the rom.

Note, do not download anything that gets posted in that thread. It is NOT for the Nexus 5X.

http://xdaforums.com/showthread.php?t=3410906

There's actually another way if you read the guide above.
[Nexus 5X Original Android Development] drbawb:
I don't want to permanently decrypt my userdata. TWRP 3+ was able to decrypt and mount encrypted userdata partitions in 6.0.1 but it no longer works w/ NPD56N.

What I'm looking for is a way to get TWRP to run the AROMA installer even though I can't get past the screen to mount userdata.
[Nexus 5X Original Android Development] flar2:
I haven't tried on the 5X, but I run DP4 encrypted on my 6P.

I used CF autoroot to install SuperSU, then installed Flashfire and used it to install ElementalX. Worked perfectly.
[Nexus 5X Original Android Development] Flyview:
Yea there is no way to do that on Preview 4. However the poster above me seems to have found a workaround.
[Nexus 5X Original Android Development] Meandi51:
Noob question: What's the improvement when decrypt the phone?
[Nexus 5X Original Android Development] gpvecchi:
As N5X uses software encryption, speed.
[Nexus 5X Original Android Development] :
[MENTION=4684315]flar2[/MENTION] what's the difference between touchboost and input boost? Is there a way to turn off input boost?

What's the difference between using zram and ksm? Any pros/cons?

Thanks for helping!
[Nexus 5X Original Android Development] flar2:
touchboost and input boost do basically the same thing, they boost the freqency when you touch the screen.

touchboost is triggered by a userspace service (similar to the old mpdecision) and boosts all cores for one or two seconds. You can disable it if you want,

input boost is part of the cpu boost driver, which is a bit more subtle and only boosts for I think 40ms by default (can't remember offhand) and can be done per core. You should leave it so the system is more responsive, or possibly increase it if you turn off touchboost.

ZRAM and KSM can both be used.

ZRAM uses part of your memory as compressed swap space, which effectively increases the amount of memory available with only a slight performance penalty (since the CPU is fast and memory is fast, it can compress/decompress RAM quickly).

KSM scans through the memory looking for "pages" from different processes that are the same. It then merges them so both processes use the same page in memory, effectively increasing the memory available to the system. This costs a bit in CPU cycles, but it's a good tradeoff. We might as well put our powerful CPU to work.
[Nexus 5X Original Android Development] dickenam:
do you run your kernel on your 6P encrpyted? bc that's all I want to do on my 5X.
[Nexus 5X Original Android Development] Flyview:
I wanted to update everyone that since switching back to the stock kernel I am no longer getting any reboots. I was seeing reboots about 1-2 times a day with ElementalX kernel set to all stock settings. Please let me know how to help if I am to try it again!
[Nexus 5X Original Android Development] khanjui:
I'm using it since few months and never had any single reboot or freeze because of kernel. You should post logs after facing with problems and see if they related with the kernel.
[Nexus 5X Original Android Development] Flyview:
On Marshmallow or Android N? Right, which is why I'm asking what logs are needed and how and when to get them?
[Nexus 5X Original Android Development] kojak1989:
Elemental have kcal ?

ok i check and it have :)
[Nexus 5X Original Android Development] Meandi51:
What's the benefit of kcal?
[Nexus 5X Original Android Development] Psychofrantics:
You can calibrate your display. Opt for slightnly cooler screen. By default, N5X LCD has quite warm colors
[Nexus 5X Original Android Development] Meandi51:
Within EXKM, right?
[Nexus 5X Original Android Development] Psychofrantics:
You can use EXKM.
[Nexus 5X Original Android Development] kojak1989:
Color presets for display.
[Nexus 5X Original Android Development] Smultie:
By default the N5X has a perfectly calibrated screen.
[Nexus 5X Original Android Development] khanjui:
True. People think warm is not good because they never used calibrated screen before. Most of phone screens are really cold.
[Nexus 5X Original Android Development] gpvecchi:
Perfectly calibrated, I'd say no... Color temperature is almost fine (the yellowish), but gamma and RGB values are not correct. I tried to calibrate it with a colorimeter, but it seems that the values don't adjust what's they supposed to...
[Nexus 5X Original Android Development] Danielsson:
Anyone have good configuration for better batery life ? ;) thanks for reply

Wysłane z mojego Nexus 5X przy użyciu Tapatalka
[Nexus 5X Original Android Development] Lancez:
just got my 5x as a backup device, but after i rooted and flashed EX kernel, I got security warning at boot up. How do I get rid of that warning? TIA
[Nexus 5X Original Android Development] SlimSnoopOS:
What does the security warning look like?
[Nexus 5X Original Android Development] Lancez:
I took it with my n6, sorry about the quality tho.
[Nexus 5X Original Android Development] joetheshmo:
It just means your bootloader is unlocked. You can skin the bootloader to hide that like I do.

http://xdaforums.com/showthread.php?t=3298420
[Nexus 5X Original Android Development] Lancez:
on my N6, i can get rid of it by flashing EX kernel, i guess it's different on 5x?
[Nexus 5X Original Android Development] nathanchance:
That warning is built into the bootloader, unlike on the Nexus 5 and 6 where it was built into the kernel. Just something you'll have to live with. You can press the power button twice to get past it faster but it will always be there with an unlocked bootloader.
[Nexus 5X Original Android Development] Lancez:
I see, thanks for the info
[Nexus 5X Original Android Development] pitt93:
why big core are always online?
[Nexus 5X Original Android Development] Midomad:
http://xdaforums.com/showthread.php?t=3240052

Just flash the zip you want from recovery.
[Nexus 5X Original Android Development] peltus:
Why shouldn't they be online?
[Nexus 5X Original Android Development] pitt93:
I think power saving and heat up. But i'm not sure. I would like to know it.

I think that big core have to turn on only with a heavy load and turn off when theire power isn't needed
[Nexus 5X Original Android Development] flar2:
That's essentially how they work. They go into a low power state without the need to go completely offline.

They need to be ready to handle tasks when their power is needed, hotplugging has too much latency for that. That's why the big cluster cores are always on by default in all the big.LITTLE phones. They only hotplug if temperatures are high.
[Nexus 5X Original Android Development] gpvecchi:
Like the one in post 65...:D
[Nexus 5X Original Android Development] Midomad:
Sure [emoji4]
[Nexus 5X Original Android Development] pitt93:
thank you!

that's exactly what i need to know!

i use your kernel and your app since when i have the hammerhead
[Nexus 5X Original Android Development] Bicet:
Thanks a lot for the led fixup :)
[Nexus 5X Original Android Development] Smultie:
What changed on the ButterFly profile?
[Nexus 5X Original Android Development] piccit:
Just on a quick glance, it was changed back to v1?
[Nexus 5X Original Android Development] thrutheeyes:
How would I go back to stock kernel from this. i am on Preview 4.
[Nexus 5X Original Android Development] SlimSnoopOS:
Use fastboot or TWRP and flash the DP4 boot.img. You can download the factory image and pull the boot.img from Google's Nexus factory image page.
[Nexus 5X Original Android Development] Midomad:
[MENTION=4684315]flar2[/MENTION]

I wonder the same!?
[Nexus 5X Original Android Development] Mrcactuseater:
Check the interactive governor thread for the 5x.
[Nexus 5X Original Android Development] flar2:
Apparently the version of Butterfly that I previously bundled in the app was not stable.
[Nexus 5X Original Android Development] pairedprototype:
I want to try out this kernel but I noticed there may be a WiFi bug? I was just wondering if you have a list of other bugs?
[Nexus 5X Original Android Development] SlimSnoopOS:
There is no WiFi bug with this kernel. Google updated the stock MTC19Z kernel with some patches that cause issues if your rom is not updated to the July MTC19Z OTA. ElementalX and EVERY custom kernel updated in July are *incompatible with any OTA or rom based on June or earlier.

*Edit: Incompatible meaning the failure to connect to WiFi may not be the only issue observed if you mismatch the kernel and rom.
[Nexus 5X Original Android Development] pairedprototype:
Ah thanks for clarifying. I think I'll try the previous version then first, because it's effort to pull out the laptop for flashing the July rom.
[Nexus 5X Original Android Development] flar2:
I'm not even sure that there are any wifi incompatibilities on this device. It's definitely something to watch out for on the Nexus 5 and 6P
[Nexus 5X Original Android Development] KiD3991:
Does N DP5 work with this build? I need people to try out. :D
[Nexus 5X Original Android Development] khanjui:
Why you are not trying?
[Nexus 5X Original Android Development] 0.0:
I doubt it will work. We will need to wait until it is updated for DP5
[Nexus 5X Original Android Development] Gafanhotz:
The actual only reason I haven't updated to DP5 yet. Can't live without a decent kernel. (And the DP4 one doesn't works.)
[Nexus 5X Original Android Development] lexcyn:
I updated to DP5 but miss elemental x. Especially to change the thermal throttling.
[Nexus 5X Original Android Development] ulxerker:
as soon as the source gets released, flar2 will provide a kernel for DP5 immediately. as always :)
[Nexus 5X Original Android Development] Giorgos Chatziioannou:
i will wait for 7.0 release to install EX kernel, i will probably stick with stock rom though... maybe install a debloated stock one, i bought nexus to get away from bloat so i am quite sensitive to it :p
[Nexus 5X Original Android Development] ulxerker:
Gia sou, ti kanis? :)

same here, I'm running stock rom with EX and AmanuensisOne_b profile, very good combination for me in terms of performance and battery life.
[Nexus 5X Original Android Development] Yao JunYu:
Can I flash it over itself?
[Nexus 5X Original Android Development] Stevica Smederevac:
Yes.
[Nexus 5X Original Android Development] dialga13:
Is this kernel already set to permissive?

Enviado desde mi Nexus 5X mediante Tapatalk
[Nexus 5X Original Android Development] nathanchance:
No it is enforcing.
[Nexus 5X Original Android Development] dialga13:
Thanks :D do you know any permissive kernel for bullhead?

Enviado desde mi Nexus 5X mediante Tapatalk
[Nexus 5X Original Android Development] nathanchance:
You can make any kernel permissive if you flash this zip (or this zip if you are on Android N).
[Nexus 5X Original Android Development] HesThatGuy:
Just a heads up for you folks, jollaman's kernel works on Dev Preview 5 and it uses sources that are for Dev Preview 4, so flar's Android N kernel should boot and work just fine for Dev Preview 5 as well.
[Nexus 5X Original Android Development] mprziv:
Bit the bullet and tried 3.03 kernel on DP 5, it works fine.
[Nexus 5X Original Android Development] Giorgos Chatziioannou:
καλησπερες :p

i believe i have seen this profile, though i have no idea where. could you post a link please? :)

what i did to improve battery is deleting facebook and messenger app (use the desktop site version with push notifications), setting viber wifi option to "follow stock" (or something like that), and my wifi setting to be disabled when phone sleeps.

i get around 1.3% drop per hour in the night. not bad for stock everything ;)

what i need EX for is the thermals, google is a bit overcautious probably because of the fingerprint sensor, but still sub 40 limits? my room is 30+ xD
[Nexus 5X Original Android Development] aamadorj:
This is the thread for Advanced Interactive Governor Tweaks for Nexus 5X: http://xdaforums.com/nexus-5x/general/guide-advanced-interactive-governor-t3269557.

You'll find AmanuensisOne profiles there, as well many others to try out.
[Nexus 5X Original Android Development] Midomad:
http://xdaforums.com/showthread.php?p=67127126
[Nexus 5X Original Android Development] Giorgos Chatziioannou:
oh yes, i remembered. thx for that :)

i planned using that guide anyway, just was too busy till now. also dont want to go off topic, but if someone could check the above thread and answer my question there i would be very thankful :)

thank you too, sir :)
[Nexus 5X Original Android Development] khanjui:
Advanced battery saver settings are problematic in EX Kernel Manager. For example, I'm setting the max CPU limit to "960" but it's still going higher to "1248" which is default one.
[Nexus 5X Original Android Development] lexcyn:
Same here, the thermal throttling profile is brutal on stock. The "heavy" customized one is what I use for gaming on my phone.
[Nexus 5X Original Android Development] atefi:
Works fine on DP5 THANKS
[Nexus 5X Original Android Development] ashatter:
FYI, wifi will be always on until reboot when you turn on then turn off wifi under Pure Nexus.

It won't happen to CM13 though.
[Nexus 5X Original Android Development] kevtrysmoddin:
Great work [MENTION=4684315]flar2[/MENTION], rocked elemetalx on my Nexus 5 now rocking it on the 5x
[Nexus 5X Original Android Development] Immortalis:
I've encountered screen flickering when playing Ski Safari. After few minutes screen freezes or starts flickering and to make it work normally, I have to press volume button or rotate the phone by 180 degrees. The problem doesn't appear when on stock CM kernel.
[Nexus 5X Original Android Development] flar2:
Cm makes a lot of changes from stock. Elementalx always follows stock. I would suggest a different ROM based on stock.
[Nexus 5X Original Android Development] enrunn:
Could anyone provide me the 1.15 eas version of this kernel?

I have deleted the file but would like to install it again. I have battery issues since i updated to the July update. Maybe its not the kernel but I have to test one change after each other.

Gesendet von meinem Nexus 5X mit Tapatalk
[Nexus 5X Original Android Development] ulxerker:
sure, here you go: https://www.androidfilehost.com/?fid=24580941124993123
[Nexus 5X Original Android Development] Giorgos Chatziioannou:
hey guys. i try to install on dp5 but it results in bootloops. i even wiped everything and flashed fresh rom, it works fine, but the moment i install EX it goes back to bootloops. i am not sure what i might be doing wrong, i even let all default settings except swipe to sleep which i want it disabled
[Nexus 5X Original Android Development] ulxerker:
did you use another custom kernel before flashing EX? if so, first flash the kernel (boot.img) that came with your rom, after that you can flash the EX - zip.
[Nexus 5X Original Android Development] kevtrysmoddin:
Did u flash SuperSU after ex?
[Nexus 5X Original Android Development] ulxerker:
Nope. First SuperSU, after that EX on top. This is important as EX does some necessary changes to the ramdisk.
[Nexus 5X Original Android Development] kevtrysmoddin:
I've tried flashing 2 kernels using dp5 and none boot unless SuperSU is flashed after the kernel
[Nexus 5X Original Android Development] ulxerker:
oh, I'm running MM stock latest, not DP5. but EX 3.03 is told to work with DP5, too.
[Nexus 5X Original Android Development] dfryer1193:
SuperSU *must* be flashed AFTER any other mod that modifies the ramdisk, since SuperSU has to modify the ramdisk live.

You may notice that after a successful flash of SuperSU, there is a single bootloop. This is SuperSU patching the ramdisk.
[Nexus 5X Original Android Development] Giorgos Chatziioannou:
Nope, just after stock rom and twrp :/

But i did not flash supersu, i wanted to not root the phone. Is there no way to avoid bootloops without root?
[Nexus 5X Original Android Development] lexcyn:
Have they released the source yet for DP5? I haven't seen any custom kernels for it yet.
[Nexus 5X Original Android Development] flar2:
It should work without root. Let me check tonight.
[Nexus 5X Original Android Development] Giorgos Chatziioannou:
i gave in and flashed supersu after EX. worked on first try...

oh well, i need root for the kernel manager anyway, so nvm and thank you for the hard work :)

i also pm you the install log, maybe it could help you with something you need (?)
[Nexus 5X Original Android Development] flar2:
SuperSU probably reverted you to the stock kernel.
[Nexus 5X Original Android Development] kevtrysmoddin:
It doesn't
[Nexus 5X Original Android Development] Giorgos Chatziioannou:
nope checked and its elementalx 3.03

i edited my previous post too late :P
[Nexus 5X Original Android Development] Gafanhotz:
Same here, I even reported that it didn't work at first, but when I flashed it and rooted... Well. There it is.
[Nexus 5X Original Android Development] tohtorin:
[MENTION=4684315]flar2[/MENTION]

I know you replied earlier to somebody that fingerprint sensor is not kernel related thing, but I made a lot of research and testing and after flashing elementalx fingerprint sensors gets little more delay. I dont know does it have to do something with waking up the device rather than fingerprint sensor itself, but its only there there when using elementalx. Have not tried with other kernels tho. The difference is so small that it does not probably need any attention, but it annoys little when using imprint unlocking. Can you test it out?

Other question, does ramdisk modify /data anyway? Install configs etc? Installer seems to only install boot.img which is very good.

Discussed here as well:

http://xdaforums.com/nexus-5x/help/fingerprint-reader-delay-caused-root-t3376971
[Nexus 5X Original Android Development] flar2:
I don't have delays, I'm quite sure it's settings or memory related. Perhaps tpuchboost is off or something.

The sensor is part kernel and part system. I know there's no kernel delay because I've been playing with the driver a bit for a possible new feature so I have debug messages in the irq handler.

As for the installer, the old version installed a config file in data but the new version doesn't/won't. The installer has never touched system partition.
[Nexus 5X Original Android Development] Giorgos Chatziioannou:
i dont notice any delay, i did not have enough time to test ofc, but i feel it might even be faster (probably because of less lag in the phone than the actual sensor timing)
[Nexus 5X Original Android Development] tohtorin:
I made this with completely stock elementalx and stock kernel. Also tried to play with settings, but they does not seem to have any effect on delay. Phone generally run 10 times more smoothly with elementalx but delay is there. I dont know did google use proprietary driver for fingerprint sensor in stock kernel and opensource in aosp?

But like I said the delay is so small that it should not be considered as priority bug fix :)
[Nexus 5X Original Android Development] fisher6:
Been installing new updates from the phone automatically whenever when I get the notification. Noticed today that my security updates says February 2016 despite having version ElementalX-N5X-1.16. Am I missing something?
[Nexus 5X Original Android Development] ulxerker:
currently the N5X is on security level of July 2016. the security level of the phone has nothing to do with EX in the first place. if you have a rooted phone with a custom recovery you'll have to flash the updates manually as OTA isn't working with a custom recovery.

to do so, download the most current factory image here and flash it according to this tutorial.
[Nexus 5X Original Android Development] flar2:
You also need to install the updated system images.

The patch level shown is for the ROM (system)
[Nexus 5X Original Android Development] flar2:
Impossible. The fingerprint is handled 90% in firmware. The kernel only handles the irq. I already told you I've debugged the irq handler and it responds instantly. I make absolutely no change to the kernel that would affect this. And I've never noticed a delay.

I will also add that settings can affect how responsive the fingerprint sensor is. If your big cores are offline, it will respond slower. If you disable perfd or touchboost, it will respond more slowly, etc...
[Nexus 5X Original Android Development] tohtorin:
I believe you. I was wondering is it just random or in my head. OR does it have something to do with temperatures, when SoC is warmer sensor is slower or something.

Whatever it is or not, lets forget this issue :)

Thanks flar2 for your extraordinary work with kernels. Before N5X I had LG G4 and I missed your kernel a lot. Using it since n5.
[Nexus 5X Original Android Development] flar2:
Also, see what I added in the post above about things that could make it slower.

I am still going to check it out, I've been working mostly on my 6P, which has the same sensor setup.
[Nexus 5X Original Android Development] tohtorin:
Yes there might be multiple reasons for it. But when I ran with stock it seemed to have same sort of delay sometimes and sometimes not.
[Nexus 5X Original Android Development] fisher6:
Thanks, that explains it. Totally missed that.
[Nexus 5X Original Android Development] gpvecchi:
So, as I have butterfly profile with touchboost disabled, I have a slower Imprint?
[Nexus 5X Original Android Development] fedexist:
Hello, lately I've been getting at least one random reboot a day. Here's the log from the latest https://dl2.pushbulletusercontent.com/qNlYN12ZAx0h1NSJIwD6bfpvbitMKImC/last_kmsg.txt

I'm using GhostPepper Settings if it can be helpful
[Nexus 5X Original Android Development] flar2:
Can you disable KSM and see if it helps over the next few days?

There are a few errors, but that is the top one.
[Nexus 5X Original Android Development] fedexist:
Ok, I will try to see if it makes a difference.