yashsingh1/xdaforums huggingface dataset:
[Nexus 9 Original Android Development] flar2:
I'm going to hold off on an official kernel update for tonight.

Chainfire's current root solution will likely change soon, as it's a work in progress. He says there is a possibility of a factory reset if your data partition is encrypted. I don't want people losing valuable data when they flash the kernel. At the very least, there could be bootloops.

For now, if you want system rw, flash this modified version of ElementalX-N7-4.00

https://www.androidfilehost.com/?fid=24052804347831454

The only change from yesterday's release is ro.secure=0 (incsecure boot.img)
[Nexus 9 Original Android Development] v12xke:
Confirming that with the modified kernel I now have write permissions to /system. I still get the red "corrupt" boot warning but I'm pretty sure how to get rid of that. Backup, reset and restore. Thanks!
[Nexus 9 Original Android Development] flar2:
The warning is dm_verity. If you flash Chainfire's boot.img before flashing EX, you can get rid of it. But I will do something about that in the next release.
[Nexus 9 Original Android Development] STB2010:
adb sideloading this Kernel and r/w /system works fine. Adaway is working.

Now I'm also waiting for a fix for the corrupt boot message and a working TWRP.

Great work, flar2!
[Nexus 9 Original Android Development] v12xke:
Nexus 9 LTE unencrypted. Per [MENTION=4684315]flar2[/MENTION], flashing su beta 2.50 first, then EX 4.0 (mod version) did get rid of the red "corrupt" boot warning. Did not reset or wipe anything. TiBu, Adaway, Root. Explorer all working. Full rwx access to /system. Super SU is definitely still a work in progress, but we're 90+ % there. Hang on and be patient. My N6 is next up.
[Nexus 9 Original Android Development] EMK2000:
If you press "cancel", can you use it normally except perhaps you cannot mount /data?

If it is the case, do the following:

1. At the password screen, press "cancel"

2. Go to "Wipe" and then do a Factory Reset

3. Go to "Wipe" again and press "Format Data", type "yes"

After all, there should be no password and you can mount /data as normal.

Reference: http://xdaforums.com/google-nexus-5/help/twrp-password-t2511049

Using these steps, I was able to solve the same problem on my Nexus 9.
[Nexus 9 Original Android Development] flar2:
Update

For Android 6.0 Marshmallow

I removed the permissive hack, this kernel is back to selinux enforcing

You NEED SuperSU-2.50 for this one!

I'm not pushing it to EX Kernel Manager quite yet, because many people may be unaware they need to update SuperSU

This will also get rid of the corruption warning on boot.

And system will be writable

Download:

ElementalX-N9-4.01 BETA

Changes:

-selinux enforcing

-sepolicy mod and dm_verity removal from Chainfire
[Nexus 9 Original Android Development] WhammyDroid:
Thank you!

Is a insecure boot image needed also?
[Nexus 9 Original Android Development] flar2:
No
[Nexus 9 Original Android Development] House.m.d:
Thanks for the update. Installing Beta Kernel and SuperSu 2.50 and Adaway make no Problems.
[Nexus 9 Original Android Development] Holer Togni:
Thanks a lot for sticking to the N9!!
[Nexus 9 Original Android Development] Holer Togni:
My N9 won't accept the PIN to unlock the screen with 4.01 Beta and SELinux set to enforcing. However if I set SELinux to permissive (via adb while the screen is locked), the PIN is accepted.

I'm on the factory image (clean install) with SuperSU 2.50. Also flashed Chainfire's most recent boot image before ElX in order to remove the triangle warning message.

Obviously, if I flash back 4.00-sysrw the PIN is accepted and vice versa.
[Nexus 9 Original Android Development] topjohnwu:
[MENTION=4684315]flar2[/MENTION] could you include SELinux permissive mode in aroma just like you did in M8? Some particular apps require it.

This is a really nice kernel, thanks a lot!!
[Nexus 9 Original Android Development] flar2:
Use the permissive zip, I think there is a link in the OP.

I guess it wasn't posted there. Here it is:

https://www.androidfilehost.com/?fid=23991606952602503
[Nexus 9 Original Android Development] EMK2000:
Using EX 4.01 with SuperSU 2.51 (not 2.50) works. In Root Explorer, it show that /system can be mounted R/W, however it failed to edit build.prop...so weird:confused:
[Nexus 9 Original Android Development] flar2:
Some root apps may have to make changes. Also, SuperSU with selinux enforcing is still being worked on.
[Nexus 9 Original Android Development] PhilDX:
I hit the thanks button by accident...

I noticed this with root explorer too but build prop editor in the play store by j rummy works fine
[Nexus 9 Original Android Development] frontalot:
How do I undervolt the CPU? Clicking the CPU voltage offset line in EXKM doesn't do anything? I can undervolt the GPU just fine, by the way.
[Nexus 9 Original Android Development] flar2:
Undervolting is deprecated on newer chips. Does more harm than good
[Nexus 9 Original Android Development] Kubens1pl:
Hi, that's great kernel. Thanks for that.

I have got one question. How can I disable fast charging? I have enabled it during installation process. I tried to disable that feature via ElementalX app from play store, but i don't know how i can check that fast charging is actually disabled.

I used Ampere app, but it still indicates charging current above 1100mA :/

I have also tried type in terminal: su echo 0 > /sys/kernel/fast_charge/force_fast_charge, but it also didn't changed anything in Ampere measurements.

Thanks in advance for your help
[Nexus 9 Original Android Development] flar2:
Fastcharge is only while charging from a usb port, it doesn't affect charging from an ac adapter.

If you change fastcharge setting while it's plugged in, you have to unplug and replug for it to take effect.
[Nexus 9 Original Android Development] Kubens1pl:
[MENTION=4684315]flar2[/MENTION] thanks for answer. I have got one more question. What does actually do 'Apply on boot' option in ElementalX app?

When i should use it?

Can i enable/disable features on the fly, or should i reboot device every time?
[Nexus 9 Original Android Development] flar2:
Settings are changed on the fly, click the apply on boot button to apply them every time the device boots.
[Nexus 9 Original Android Development] Holer Togni:
For what it's worth, after upgrading SuperSU to 2.52, I still couldn't pin-unlock the screen after the first boot up with ElX 4.01 and selinux enforcing. So I switched to permissive, disabled the lock screen, went back to enforcing and enabled lock screen again. Now it works.
[Nexus 9 Original Android Development] corkiejp:
New to using a Custom Kernel!!

New to using a Custom Kernel!!

Got introduced to this kernel when I was rooting my Nexus 9 on Marshmallow.

So I thought I would try it out!

Can anyone link me to guides for using it?

Or recommend some settings I should be using, pretty much went with the default settings when installing it! What settings are others finding useful etc?

I got the "EX Kernel Manager" : - https://play.google.com/store/apps/details?id=flar2.exkernelmanager

Thanks in advance for assistance.

Regards

John
[Nexus 9 Original Android Development] capt730:
The combo of marshmallow and this kernel is very nice. I bought the ex kernel mgr a while back and glad I did. Very nice work.
[Nexus 9 Original Android Development] flar2:
Update

For Android 6.0 Marshmallow

-no changes to the actual kernel

-if you are stock and not rooted, you must flash Chainfire's boot.img and use SuperSU 2.52 or later

-if you are stock rooted or on a custom ROM, just flash

-recommended to reflash your ROM before flashing this

Download:

ElementalX-N9-4.02

Changes:

-better compatibility for custom ROMs
[Nexus 9 Original Android Development] corkiejp:
Is this just for custom ROMs?

If I'm on stock ElementalX 4.01, is there any need to flash this version?
[Nexus 9 Original Android Development] flar2:
No need to update if you're on stock

And users of custom ROMs should reflash the ROM and then flash the update
[Nexus 9 Original Android Development] chrmica:
Hi are there any sixaxis issues with this kernel trying to use ps4 controller with it and its not detected with 5.1.1 on nexus 9 had no issues
[Nexus 9 Original Android Development] jolinnard:
Hi flar2,

I flashed 4.02 over 4.01, I'm running MelloShmallow by [MENTION=2687658]bshiznit[/MENTION] but new kernel cause some weird issue applying iptables (it says that some rule already exist), and it doesn't finish boot (these iptables messages appears in logcat over and over again):

10-17 15:44:07.270 5912 5912 I Netd : Netd 1.0 starting
10-17 15:44:07.270 5912 5912 D TetherController: Setting IP forward enable = 0
10-17 15:44:09.137 5912 5912 V NatController: runCmd(/system/bin/iptables -w -F natctrl_FORWARD) res=0
10-17 15:44:09.147 5912 5912 V NatController: runCmd(/system/bin/iptables -w -A natctrl_FORWARD -j DROP) res=0
10-17 15:44:09.158 5912 5912 V NatController: runCmd(/system/bin/iptables -w -t nat -F natctrl_nat_POSTROUTING) res=0
10-17 15:44:09.167 5912 5912 V NatController: runCmd(/system/bin/iptables -w -F natctrl_tether_counters) res=0
10-17 15:44:09.177 5912 5912 V NatController: runCmd(/system/bin/iptables -w -X natctrl_tether_counters) res=0
10-17 15:44:09.186 5912 5912 V NatController: runCmd(/system/bin/iptables -w -N natctrl_tether_counters) res=0
10-17 15:44:09.196 5912 5912 V NatController: runCmd(/system/bin/iptables -w -t mangle -A natctrl_mangle_FORWARD -p tcp --tcp-flags SYN SYN -j TCPMSS --clamp-mss-to-pmtu) res=0
10-17 15:44:09.826 5912 5912 E Netd : netlink response contains error (File exists)
10-17 15:44:09.827 5912 5912 E Netd : Can't add IPv4 default route to dummy0: File exists
10-17 15:44:09.828 5912 5912 D MDnsDS : MDnsSdListener::Hander starting up
10-17 15:44:09.828 5912 6164 D MDnsDS : MDnsSdListener starting to monitor
10-17 15:44:09.828 5912 6164 D MDnsDS : Going to poll with pollCount 1
10-17 15:44:12.239 6169 6169 W init : type=1400 audit(0.0:31): avc: denied { execute_no_trans } for path="/system/xbin/daemonsu" dev="mmcblk0p29" ino=1573 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=0

Back to 4.01 and all is working. Flashed ROM+Gapps, also I tried to wipe system... Still it doesn't boot.
[Nexus 9 Original Android Development] flar2:
There is absolutely no difference between 4.01 and 4.02 on the kernel side

On the ramdisk side, there is also no difference installing 4.02 over 4.01. Each and every file will be identical.

Did you try wiping caches?
[Nexus 9 Original Android Development] jolinnard:
Just forget my words... I'm feel like a noob :eek:
[Nexus 9 Original Android Development] BigJPNut:
Do we stick to su 2.50?
[Nexus 9 Original Android Development] flar2:
Use the latest, which is 2.52
[Nexus 9 Original Android Development] flar2:
I'll look in the config and see if I enabled it.

Edit: looks like it's enabled, it should work. Anyone else try it?
[Nexus 9 Original Android Development] dan04103:
Ps4 controller works fine out of the box here.
[Nexus 9 Original Android Development] chrmica:
With sixaxis ? because I have been trying for a few days now and on another rooted phone it works perfectly with 5.1.1, if so is there anything I need to check on Nexus 9 Marshmallow\elementalx to get sixaxis working. Thanks
[Nexus 9 Original Android Development] flar2:
Update

For Android 6.0 Marshmallow

No changes to the actual kernel, therefore no need to update. This will make clean installs easier

Stock ROM, already rooted:

-just flash EX

Stock ROM, not rooted:

-just flash EX, but make sure you install SuperSU 2.52 if you want root. Chainfire's boot.img is not necessary

Custom ROM:

-just flash EX

-if it bootloops or you want selinux permissive, flash this permissive zip

Sorry, I am not adding a permissive option to the installer due to the problems I had with Google a few months ago

Download:

ElementalX-N9-4.03

Changes:

-autodetect proper sepolicy for stock
[Nexus 9 Original Android Development] arunkr:
Hi is anyone able to create WiFi hotspot using their N9...pls help...I am not able to switch it on..it automatically switches off then again tries to connect.. This goes on like a loop... Using latest ex kernel and saosp ROM..
[Nexus 9 Original Android Development] lolpok:
Really speeds up my slow nexus 9
[Nexus 9 Original Android Development] sjesudasan:
I have a nexus 9 WIFI model and I'm unable to connect and transfer media files through Xender... Wonder if that's related to this kernel now...
[Nexus 9 Original Android Development] v12xke:
Are you running the stock 6.0 ROM? Are you running the LTE or Wi-Fi version? The "Tethering & Portable Hotspot" option is completely missing from my settings (LTE model), so not sure how you are toggling it on. I'd be interested in learning how to enable Hotspot on my LTE N9 on the stock ROM. Better off posting this in General or Questions thread where it will get more exposure.
[Nexus 9 Original Android Development] 850RPM:
after installing this kernel, I have an error message from time to time saying

Google play service error, and for few minutes the top bar of touch screen, in portret mode, is non responsive.

any way to solve this?

PS: I started from stock 6.0, and only unlocked bootloader, then install twrp, kernel and su beta
[Nexus 9 Original Android Development] jupppo:
I am running on noobuild MM ROM. Unfortunately I can't get this kernel to boot up. Everytime I try to install I end in a never ending boot animation. Any idea why?
[Nexus 9 Original Android Development] Renejo:
Did you try the flashable zip for permissive mode ?
[Nexus 9 Original Android Development] jupppo:
nope I didn't, since I run SE moderat. I will try tonight.

Thanks
[Nexus 9 Original Android Development] joeyddr:
I get the same thing even with permissive zip.
[Nexus 9 Original Android Development] flar2:
Chainfire boot.img and permissive could be needed.
[Nexus 9 Original Android Development] stonebear:
Flashing Chainfires boot.img then flashing EX kernel worked for me. :)
[Nexus 9 Original Android Development] Ltdrev:
Flashing kernel in a couple minutes any counter indications for today's build? ;p

Edit;

Final Edit about Last edit,

Yes I just didn't knew double tap 2 wake was supported doh.

>_<
[Nexus 9 Original Android Development] jupppo:
Yep, for me as well. ty
[Nexus 9 Original Android Development] arunkr:
I'm running my LTE+Wi-Fi N9 on simple aosp 5.1.1 ROM, I have options in the settings for USB, Bluetooth and Wi-Fi tethering. Bluetooth tethering is working fine, but WiFi has the issue I described earlier.
[Nexus 9 Original Android Development] anomalous3:
I needed to flash chain fire's boot.IMG to avoid a bootloop but once I did that...holy crapballs this thing is FAST. Night and day difference even from the ubermallow version I was using.
[Nexus 9 Original Android Development] BladeRider:
Hi [MENTION=4684315]flar2[/MENTION], I am about to get Nexus 9 LTE. I would like to root it and maintain stock ROM. I understand that I need to flash the chainfire boot.img but I could not get the modified boot.img for MRA58N (N9 LTE). Are there any other way that you could recommend?
[Nexus 9 Original Android Development] flar2:
Wait for my next release
[Nexus 9 Original Android Development] flar2:
Update!!!

-installer does not touch /system partition at all

-enforcing/permissive is now optional. Permissive.zip is no longer needed if you uncheck "Enforcing" during installation.

You don't need to flash Chainfire's boot.img anymore.

For stock ROM, it will automatically add the correct sepolicy.

For custom ROMs that need permissive mode, make sure you uncheck "Enforcing" in the installer options.

Download

ElementalX-N9-4.04

Changes:

-enforcing optional

-installer updates
[Nexus 9 Original Android Development] BladeRider:
[MENTION=4684315]flar2[/MENTION], thanks for the update!!! Loving it :)
[Nexus 9 Original Android Development] corkiejp:
I am assuming that this will allow you to root with both system and system-less methods?

And also for both wifi and lte models?

Thanks for the update.

Regards

John
[Nexus 9 Original Android Development] flar2:
Yes to all
[Nexus 9 Original Android Development] cancertoast05:
So Installed this last night. In the app, do I have to turn these features on using the blue power buttons?? Or are these features I selected during setup automatically on? Also swipe to sleep, how the hell does that work?
[Nexus 9 Original Android Development] flar2:
The settings take effect immediately.

The blue circular button is apply on boot.

Sweep2sleep is activated by sweeping alng the edge of the screen, where the nav buutons are.
[Nexus 9 Original Android Development] cancertoast05:
So there is no need for me to activate the blue buttons then, correct? Thanks for the swipe to sleep information!
[Nexus 9 Original Android Development] flar2:
You activate the blue buttons if you change the setting and need it to stick whenever the phone boots up.
[Nexus 9 Original Android Development] andybones:
If I am already on the stock ROM running v4.0.3 (flashed TWRP, then v4.0.3, then SuperSU v2.5.2 to get root) is it fine to flash 4.0.4 over 4.0.3, or should i re-flash to stock factory image and then flash TWRP the kernel and re-root?
[Nexus 9 Original Android Development] ricco333:
Just dirty flash the new kernel version and you should be ok, no need to do anything else, what you have is exactly the same as what I have, just pay attention when the installer gets to SElinux part, in my case I chose permissive in order to install V4A. No need to re-root either, SuperSU survives.

Hope it helps.

Erik
[Nexus 9 Original Android Development] flar2:
It's okay to flash 4.04 over 4.03

You don't need to reflash /system

The only concern is if you are using the latest stock (MRA58N) and you flashed Chainfire's boot.img, then you should flash the factory boot.img. Chainfire's boot.img uses MRA58K. Not a big deal, but might as well have everything up to date.
[Nexus 9 Original Android Development] andybones:
Thank you, Sir. Much appreciated.
[Nexus 9 Original Android Development] WhammyDroid:
Edit: Wrong thread. Meant for N6 thread.
[Nexus 9 Original Android Development] NicoGa:
[MENTION=4684315]flar2[/MENTION] and you all :)

Which set of param would you advise to render your kernel more battery friendly beside lowering maximum freqs ? (Not gaming)

... such as a set of param for your governor ?

Should we see an effect by changing to interactive ?

What about interactive using Fire-Ice kernel values (if applicable) ?

Any comments are welcome !
[Nexus 9 Original Android Development] NicoGa:
Now on Interactive with FIre-Ice values. Will report how it goes.
[Nexus 9 Original Android Development] jordinho:
Flashed 4.04 today, made my nexus 9 laggy. Reverted back to 4.03 and its back to normal.
[Nexus 9 Original Android Development] flar2:
There were no changes to the kernel that would have done that.
[Nexus 9 Original Android Development] ricco333:
I didn't see any difference going from 4.03 to 4.04, business as usual, all snap and zero lag.

Erik
[Nexus 9 Original Android Development] NicoGa:
So nobody to comment ? Not I even the dev of this nice kernel !?

Well OK I did not bought your app .... but, I would have think more people would be curious to know!

To report back after a full 24h of use : everything works nicely. Well, not as smooth as with default settings, but I have had absolutely no notable lags, just few shutter.

The best part is that I have 4h of SOT (browsing, email, video, kiosque, ...) and still have 43% left of battery. For the same SOT with default settings and a similar usage I had 10% left yesterday!

This is a freaking 33% difference!
[Nexus 9 Original Android Development] flar2:
My recommendation is always the default settings, I ship what I think is the best balance.
[Nexus 9 Original Android Development] NicoGa:
Ok thanks!

But not all users are the same ;)
[Nexus 9 Original Android Development] notfaded1:
Works great 4.04 on stock cf 2.42 su

Super legit kernel flar I see many others use lots of your commits which says a lot! I bought the n9 after getting my 6p on sale from htc. Since my nexus10 isn't getting any legit mm I figured wth right? Kernel development isn't trivial exactly so I appreciate the time you must put in. The n9 definably needs all the help out can get with this soc. I'd think it would be different than qc socs in many ways... Esp the graphics cores... How different is it really? I mean is it like night and day or just a little different as far as kernels go? I'm only asking because it's interesting and you seem to have done a bunch of them. :victory:

Nice installer and se policy works great.
[Nexus 9 Original Android Development] NicoGa:
Managed slightly more than 6h sot with 10% left! [MENTION=4684315]flar2[/MENTION]: your kernel is pretty stable. Thanks!

Now trying with elementalX for

gboot_min freq = 1020Mhz

Input_min_freq = 612Mhz

[MENTION=4684315]flar2[/MENTION] is there a place where elementalX governor parameters are explained ? Wasn't t able to find!

Thanks
[Nexus 9 Original Android Development] milestone2mod:
So which settings are you using exactly? I'm used to tuning kernels, been doing that ever since my first android device, but I don't have the time to do that on my mom's Nexus 9, and she's getting only around 3h SOT with webbrowsing and slight gaming (angry birds mostly).
[Nexus 9 Original Android Development] stonebear:
Which setting would I use, permissive or non-permissive for Craigs Marshmallicious ROM if I wanted to use his systemless rooting? Or does permissiveness have nothing to do with that?

Maybe I should be asking is this kernel compatible with sytemless rooting?
[Nexus 9 Original Android Development] NicoGa:
Here are two options I tried.

The first is based on interactive governor with Fire-Ice kernel values. It is very battery friendly and works well but the device is less snappy. CPU freq ram less. I m sure we can do better with a similar battery life

I m now testing elementalX governor (because it may work better with this kernel!). I like the followings settings. They are clearly more battery friendly than default, and the devices is very snappy and smooth. CPU freq still ram a lot, but it may this helps tasks to finish faster thus using less battery (well I try to convince me ...). Anyways, for a first cycle, I am at 5h SOT with 20% battery left, not that bad!

NB : I have air plane mode activate to turn off cell network that I do not currently use. Wifi and NFC are activated.
[Nexus 9 Original Android Development] notfaded1:
Got ur tuner a little confused where all the volume and faux snd support comes from... Any how hopefully I can use on 6p too. Thanks for smooth kernel install. Defaults seem fine.
[Nexus 9 Original Android Development] Freak07:
[MENTION=4684315]flar2[/MENTION]

Thanks for your hard work!

To make things short. Dirty unicorns implemented led support for our n9. Any chance you could add this to your kernel? :)

I flashed your kernel and lost led functionality unfortunately.

With kind regards.
[Nexus 9 Original Android Development] flar2:
I thought I had that already. Will add it to my list
[Nexus 9 Original Android Development] Freak07:
Well I was a bit fast.

The light for notifications is working but not for charging.

Sry. Hope you read this before you'll work on it.
[Nexus 9 Original Android Development] AL2000EX:
Tried the systemless method on encrypted device, supersu says i have no libs installed :confused: Has anyone got it to work? Or is it better to stick to traditional su for now?
[Nexus 9 Original Android Development] flar2:
Haven't tried it my self, but it should work just fine with EX.
[Nexus 9 Original Android Development] NicoGa:
From what I understand, for system-less root, you have to use superuser or a late version of SuperSU (2.56 I think, but not both at the same time).

Have a look to marshmallicious rom thread. I can not tell you more ... but I plan to try it when I will have the occasion
[Nexus 9 Original Android Development] oblivianz:
Are there any downsides to unchecking enforcing when installing?
[Nexus 9 Original Android Development] ricco333:
From a performance point of view, none at all, I have Elemental on permissive and I haven't had any problems, honestly if it wasn't for Viper4Android I will keep it enforcing.

Erik