yashsingh1/xdaforums huggingface dataset:
[Nexus 9 Original Android Development] USBhost:
Just keep trying to get a better Nexus 9

It wont hurt to keep trying!! You know

don't give up the Nexus 9 yet!!

i never liked snapdragon chips

because of that bloody CAF lol

I love the feeling that this kernel will work for every ROM
[Nexus 9 Original Android Development] TotallyAnxious:
I suppose that's true. The tablet was a gift from my dad, and he hates dealing with returns.

Qualcomm is sort of like the Apple of the android chip makers haha

But at least you didn't give up the n9. I'm just a quitter lol
[Nexus 9 Original Android Development] USBhost:
Are you kidding me

The only way they can get my nexus 9 away from me is to

take it from my cold dead nexus fingers lol
[Nexus 9 Original Android Development] USBhost:
r16 hotfix

lol

fixed charging
[Nexus 9 Original Android Development] Asaggynoodle:
Can you please tell me what in the hell this means? lol.

Also, Does this work out of the package for the Stock Kernel?

Just:

fastboot flash boot boot.img

Right? Or do i have to go into TWRP and format a bunch of crap?

Not my first time with kernel installation, just the OP made it sound like there are lots of steps lol.

Thanks. :)
[Nexus 9 Original Android Development] Gormsen:
Language mate :)

Smashed down on the mighty Nexus 9
[Nexus 9 Original Android Development] USBhost:
Lol

because this kernel formats cache to f2fs

And if your going to another kernel

You will most likely get a boot loop

Formating cache back to ext4 should fix it
[Nexus 9 Original Android Development] Gormsen:
I think he is asking how to do it, wouldn't "Fastboot format cache" do the trick or could you just wipe cache in TWRP?

Smashed down on the mighty Nexus 9
[Nexus 9 Original Android Development] USBhost:
O that will work too

But in twrp

You need to manually select ext4

because twrp will format to whatever file system it was set to

normally
[Nexus 9 Original Android Development] USBhost:
tasker is working know cheers!!!!

https://groups.google.com/forum/#!topic/tasker/DiIQm1ctX3w

also there will be an update today with

-Ofast Optimizations
[Nexus 9 Original Android Development] USBhost:
sorry not today

got into git today lol

https://github.com/USBhost/Nexus-9-KFI

im getting it up to date
[Nexus 9 Original Android Development] TotallyAnxious:
Finally got git going! Might help out some if I have time.
[Nexus 9 Original Android Development] USBhost:
Build errors o come on

lol must have missed something
[Nexus 9 Original Android Development] USBhost:
ok guys get ready for awesomeness

Note:

this kernel will no longer support lte version of the nexus 9

and if it did work on lte version it wont now lol

ZRAM wont be supported any more

if people really need zram i can add it again

But ZRAM does take a good amount of space in the kernel
[Nexus 9 Original Android Development] bruce2662:
Failed disable encryption

I tried a millions times

I flash the AOSP new rom

flash fire ice kernel

flash SU

reboot

turn off reboot into TWRP 2.8.2.1 recovery

factory reset

reboot

still encrypted???

Anything's wrong with my steps?

ISN"T THHE KERNEL SUPPORTING DISABLING ENCRYPTION????
[Nexus 9 Original Android Development] USBhost:
Yep everything good

But stock twrp not good

Flash this recovery

https://s.basketbuild.com/devs/USBhost/Nexus 9/recovery

Stock twrp encrypts
[Nexus 9 Original Android Development] bruce2662:
Stock TWRP encrypts?

It shows It is decryping by default password..........

what's the difference between them?
[Nexus 9 Original Android Development] USBhost:
Yep it does

Then you do a factory reset on stock TWRP

Data gets encrypted

So i fixed it in the recovery i gave you
[Nexus 9 Original Android Development] USBhost:
K1 is up

ZRAM completely disabled

no longer support for lte version of the nexus 9

-Ofast optimizations
[Nexus 9 Original Android Development] NicoGa:
Ok thanks for your answer. i will try these settings.

But, when raid 1, I understood that zram needed to not be 0!

OK thanks.
[Nexus 9 Original Android Development] NicoGa:
One more time .... Very annoying!

https://www.dropbox.com/s/dur1bc8x8toxzqn/last_kmsg.20151103T13h11.txt?dl=0

In all these crashes, my CPU is stuck at 100% and disk IO is very high until it crashes.
[Nexus 9 Original Android Development] NicoGa:
Guess what :

https://www.dropbox.com/s/65ve1ya66wwh04j/last_kmsg.20151103T17h12.txt?dl=0
[Nexus 9 Original Android Development] USBhost:
lol sorry man

try this one http://renderserver.net/?dl=530ce07597235f13676744097e286a6e
[Nexus 9 Original Android Development] NicoGa:
OK thanks I let you know. What did you changed ?

Note that for the last crash, i turned the device off after the screen turned black/not responding and it was starting to be very hot!
[Nexus 9 Original Android Development] NicoGa:
Hey don t know what you did but just had one unique lag today but no crash. And my device is more responsive using override with

gfix =1

cswap =100

raid = 1

fs=0

Also, much less 'total failure' (in the sense of catlog) in my logcat. In fact, I just have one for OS monitor that I tried to see ... My device down like that app!

Thanks man!!
[Nexus 9 Original Android Development] USBhost:
Cheers!!! :highfive: no crash

Guess what is Nov 5

Also is anyone using remix with this kernel?
[Nexus 9 Original Android Development] Nikki1993:
I used to use Remix, but switched back to pure Android. Remix is bound to have same problems as other OEMs with Android base, falling behind the upstream.
[Nexus 9 Original Android Development] Bastlwastl2010:
New on Nexus 9 here, comming from my good old Kindle Fire HD 8.9 with CM 12.1. Huuu this is really fast.

After 10 minutes of testing, i unlock the bootloader, installed TWRP and CM 12.1 all fine.

Find this kernel...

Unpack the kernel and edit the 01afterboot to undervolt:

# UV
echo -100 > /sys/kernel/debug/clock/vdd_core_offs
echo -50 > /sys/kernel/debug/clock/vdd_gpu_offs

Is this the right code to uv core -100mV and gpu -50mV ?

Dont find a programm to test it.

Kernel runs fine with the modded 01afterboot
[Nexus 9 Original Android Development] NicoGa:
Another day without trouble. I think you fixed the problem I had :) I got ~5h sot with 10% left.

What do you mean by Nov 5 ?

Welcome to the club :)

I think trickster can show you CPU voltage.
[Nexus 9 Original Android Development] USBhost:
Yep that looks good http://www.overclock.net/t/1566797/guide-howto-undervolt-your-nexus-9

You can also make a file in FI.d

And name it "03UV" then put what you want in it.

Make sure its 755

Nov 5 is my 1 year anniversary of this kernel! Man!!

Can't believe it's been that long WOW!

F.Y.I. K9.8.2 is out

F2fs updated and more.

I have been busy with school this week you know midterms

I will have a proper changelog soon :cool:
[Nexus 9 Original Android Development] stonebear:
Thanks for the update and congrats on your anniversary. I am using it with Craig's new ROM even though it means I lose root. ☺
[Nexus 9 Original Android Development] USBhost:
wait no root...

I got to fix that
[Nexus 9 Original Android Development] b1g.p0ppa:
I have root on craigc's rom. Flashed rom, his posted gapps, supersu 2.62 then fire-ice and all is well.
[Nexus 9 Original Android Development] stonebear:
Yea sorry. It breaks Craigs method of rooting, using superuser and his modded boot.img.

Yea, Supersu works. For some reason I thought it wouldn't. ?
[Nexus 9 Original Android Development] enriquejones666:
Wait, is there a new SuperSU 2.62 build, or is that a typo? I searched around, and could only find the current 2.52 ver.

Sent from my Nexus 9
[Nexus 9 Original Android Development] USBhost:
after looking at Craigs root

it looks like i will not support it because it's system less rooting

and my kernel mods system (you know FI.d) so there will be no point for it and i dont want to make

FI.d static in the ramdisk (user cant change it) also i dont want to break other rooting methods.

EDIT: hmm... i think i can make it work
[Nexus 9 Original Android Development] stonebear:
I think he will probably make the ROM rooted soon and for now we can use SuperSU. ☺

[MENTION=235117]ENRIQUE[/MENTION], yes 2.62 was a typo I think.
[Nexus 9 Original Android Development] b1g.p0ppa:
My bad. 2.52 is correct.
[Nexus 9 Original Android Development] Marky__Mark:
USB, which version is the latest and most stable?
[Nexus 9 Original Android Development] USBhost:
the latest

k9.8.2
[Nexus 9 Original Android Development] Marky__Mark:
Thanks
[Nexus 9 Original Android Development] NYCHitman1:
[MENTION=5501864]USBhost[/MENTION] you wouldn't happen to have your 2.8.7.0 TWRP version backed up elsewhere -- would you?
[Nexus 9 Original Android Development] USBhost:
yep why

https://basketbuild.com/devs/USBhost/Nexus 9/recovery/TWRP/old
[Nexus 9 Original Android Development] Marky__Mark:
Diggin it
[Nexus 9 Original Android Development] USBhost:
what happend
[Nexus 9 Original Android Development] NYCHitman1:
Weird issues on 2.8.7.1, so just looking to go back to 2.8.7.0 temporarily until I have to debug.
[Nexus 9 Original Android Development] USBhost:
https://basketbuild.com/devs/USBhost/Nexus 9/recovery/TWRP/old

I think that has everything
[Nexus 9 Original Android Development] Marky__Mark:
I like your kernel. That's what happened.
[Nexus 9 Original Android Development] USBhost:
don't scare me man lol :silly:
[Nexus 9 Original Android Development] Marky__Mark:
I did some testing today and your kernel uses at least 50mb more system ram than elementalx. Not sure why.
[Nexus 9 Original Android Development] USBhost:
ok guys can you test this one out for system less root

http://renderserver.net/?dl=d381011eb4b3cb90f05b9a0157119395

make sure if you want to test

to not have supersu installed

but if you do have it installed thats also fine

but you wont be testing system less root

this is my first attempt to support system less root and supersu

if you dont have supersu installed system less root should work

#!/system/bin/sh

if [ -e /system/xbin/su ] || [ -e /system/bin/su ] && [ ! -h /system/xbin/su ] && [ ! -h /system/bin/su ]; then
log -p i -t SU: " /system is rooted "
else
log -p i -t SU: " /system is not rooted "
mount -o rw,remount /
mv /sbin/su2 /sbin/su
chmod 755 /sbin/su
/sbin/su --daemon
mount -o ro,remount /
fi
[Nexus 9 Original Android Development] lmulli:
So no Supersu 2.56 required either then? Just about to install a new rom so will give it a try. Thanks.
[Nexus 9 Original Android Development] Nikki1993:
So wait, if we just install the systemless root kernel and then just fire up programs they should be automatically granted root? or what?
[Nexus 9 Original Android Development] USBhost:
you got it

just make sure you flash the superuser apk

if you want to configure them.
[Nexus 9 Original Android Development] b1g.p0ppa:
Can you recommend a superuser apk?
[Nexus 9 Original Android Development] USBhost:
https://www.androidfilehost.com/?fid=24269982086990658

unzip that and install the apk

does root work?
[Nexus 9 Original Android Development] b1g.p0ppa:
Root did not work, but my test was not very clean. I had SuperSU installed so I had it do its full unroot. Then I rebooted to recovery and installed 9.8.3 and rebooted. Root was denied the few apps I tried.

Apps are still first boot optimizing after second attempt. This time I wiped /system, installed craig's rom and gapps then 9.8.3. Will report back

---------- Post added at 04:30 PM ---------- Previous post was at 04:15 PM ----------

Sadly, second attempt failed as well. No root available.
[Nexus 9 Original Android Development] USBhost:
kk thanks looks like I need to do more work

if you can try

logcat | grep SU:

at boot
[Nexus 9 Original Android Development] b1g.p0ppa:
Shoot, I already reverted to twrp backup.
[Nexus 9 Original Android Development] USBhost:
Don't worry

I will do more testing when I get home.
[Nexus 9 Original Android Development] USBhost:
ok i got the root thing fixed

i should now support system less root and supersu.

http://renderserver.net/?dl=d381011eb4b3cb90f05b9a0157119395

lest me know if it works
[Nexus 9 Original Android Development] b1g.p0ppa:
Root still not working for me. logcat | grep SU attached. Hope it's helpful.
[Nexus 9 Original Android Development] USBhost:
do you have the apk installed?

i got root from adb

note: you run

"adb logcat | grep SU:"

at boot
[Nexus 9 Original Android Development] b1g.p0ppa:
I did have the superuser apk installed. Again, I prematurely reverted to twrp backup but I will install again and report back.
[Nexus 9 Original Android Development] USBhost:
if you cant get root from an app

try from adb if that does not work

then in adb

cd /

./SU

tell me what you get
[Nexus 9 Original Android Development] b1g.p0ppa:
shell@flounder:/ $ ./SU

mount: Operation not permitted

rm: /sbin/su2: No such file or directory

mount: Operation not permitted

Also attaching logcat performed the proper way.
[Nexus 9 Original Android Development] USBhost:
thanks i found the problem

one sec
[Nexus 9 Original Android Development] USBhost:
try this one

http://renderserver.net/?dl=d381011eb4b3cb90f05b9a0157119395
[Nexus 9 Original Android Development] b1g.p0ppa:
It's working! thanks!
[Nexus 9 Original Android Development] USBhost:
K9.8.3 is up

K9.8.3

-| Linux: 3.10.93

-| latest from google

-| support: system less root

-| some: makefile changes

Note's:

Systemless root

if you dont know what this is dont worry about it.

for the people that know, my kernel still mods system (FI.d).

now is time to try to fix that garden app FC.
[Nexus 9 Original Android Development] USBhost:
well guys i have some bad news...

Linux 3.10 is going to be EOL bye the end of this year.

https://www.kernel.org/category/releases.html
[Nexus 9 Original Android Development] Nikki1993:
so... where does it leave Android then? o_O I am seriously curious
[Nexus 9 Original Android Development] USBhost:
Linux 4.1 but we will never see 4.1 for our n9
[Nexus 9 Original Android Development] Nikki1993:
Well that means nexus 5x and 6p are also in trouble as they are based on 3.10.73 as far as i know
[Nexus 9 Original Android Development] USBhost:
yep but I would think that Google will continue to support 3.10

after 3.10 goes EOL
[Nexus 9 Original Android Development] Nikki1993:
Yes. I am sure we are covered even until nexus 5x and 6p end of support with the 3.10 kernel branch.

---------- Post added at 11:35 PM ---------- Previous post was at 11:34 PM ----------

Too bad there is no bleeding edge kernel from mainline. Would have been awesome to rock 4.10 :D
[Nexus 9 Original Android Development] USBhost:
i know...

do not tell anyone

https://github.com/USBhost/FIRE-ICE/blob/9.y/Makefile#L1

just change that to a 4 to make one think wer using 4.10
[Nexus 9 Original Android Development] Nikki1993:
Haha xD gg well played!

Sent from my Marshmallow Nexus 9
[Nexus 9 Original Android Development] Bastlwastl2010:
[MENTION=5501864]USBhost[/MENTION]

Have TWRP 2.8.7.1 (latest) a bug in timezone settings?

UTC+1 set the same time as UTC+2, DST settings have no effect

Must set UTC to get the right time
[Nexus 9 Original Android Development] USBhost:
I know it should be fixed by tomorrow

The theme was kinda incompatible.
[Nexus 9 Original Android Development] NicoGa:
while you are a it, here is another small problem of TWRP :

If someone format /data partition though advance wipe to f2fs, and then do a "full wipe" (screen before going to advance wipe), the /data partition is back to ext4 format!

I would think the full wipe should not change the format of partition ( ... or it should be acknowledged somewhere).

On another topic :

I have had other crach while using the device normally using your kernel + stock MM :(

I decided to switch to kernel to further investigate the problem! I'm now on ElementalX but I decided to use interactive governor with your values instead of ElementalX governor which was eating my battery too quickly.
[Nexus 9 Original Android Development] USBhost:
I think it may be LMK, not killing when it should.

Full wipe will format to ext4
[Nexus 9 Original Android Development] NicoGa:
Or maybe the opposite ... i.e. killing right at the moment it show not ?

If it is LMK, I should experience similar problem whatever the kernel, or did you tweaked it a lot ?
[Nexus 9 Original Android Development] USBhost:
Yep I tweaked it a lot lol
[Nexus 9 Original Android Development] oblivianz:
What ROM are most people running this kernel on? Stock?
[Nexus 9 Original Android Development] NicoGa:
OK I see, thanks
[Nexus 9 Original Android Development] Kyuubi10:
Hey dev, I have a feature request.

Would it be possible to add Wheatley governor to the kernel?

It focuses on battery by providing performance, with the aim of finishing the work queue as quickly as possible so it can send the cores back to sleep state sooner.

While on continuous work it ramps down the frequency to use less power.

Thus achieving both battery and performance.
[Nexus 9 Original Android Development] NicoGa:
A new version 9.8.4 with a bugfix in LMK :)

Arg, I need to test it. But first I have to stay a few days with another kernel to make sure crashes were not caused by my device.
[Nexus 9 Original Android Development] USBhost:
sure

man your fast lol

it should be up soon
[Nexus 9 Original Android Development] USBhost:
K9.8.4

-| BUGFIX: lmk killing

-| FI.d: v31
[Nexus 9 Original Android Development] NicoGa:
Eheh! Yes! Is is a big fix you did ? How comes I was the only one to have problem (or to report them)?
[Nexus 9 Original Android Development] USBhost:
every nexus 9 is different?

na its not a big update
[Nexus 9 Original Android Development] USBhost:
R11.T2

-| kernel: updated as to K9.8.4

-| theme: updated
[Nexus 9 Original Android Development] stonebear:
Thanks for the updates. :) Can I ask what peoples settings are in their override files? What's the recommended settings?
[Nexus 9 Original Android Development] USBhost:
oc=1
gfix=1
cswap=150
raid=1
uksm=1

Also running https://github.com/USBhost/FI.d/blob/master/01afterboot#L58

Here are mine
[Nexus 9 Original Android Development] stonebear:
Thanks :) I add that LMK line to the fld file?
[Nexus 9 Original Android Development] USBhost:
It's already there

Just remove the first # from that line
[Nexus 9 Original Android Development] Bastlwastl2010:
Seems still a bug in the time settings...

UTC = UTC+1

UTC+1 = UTC+2

etc.....
[Nexus 9 Original Android Development] tibere86:
Anyone else having the battery bug? I flashed v9.8.4 on both Pure Nexus and Ubermallow ROMs, and after clean installs, my battery percentage is displayed as 3,745%.
[Nexus 9 Original Android Development] dictionary:
Thought it was this kernel!! I'd gone crazy trying to diagnose it. I ended up clean flashing Pure again, and slowly adding everything back except this kernel. That pretty much solidified it for me, but thought it may have been a layers theme. I avoided it so far, so knew it boiled down to that or this kernel. Was running the layer before on the previous kernel with no issues, so just was waiting for someone else to confirm.
[Nexus 9 Original Android Development] MotoFlasher:
I have this problem also. Pure nexus and dirty unicorn ... It's the kernel, unfortunately I do not find the information again which I have read...To help ... Therefore, no "bug message" from me. ;)

With elementalx no problems...

BTW @ your twrp update... No problems here with time zone
[Nexus 9 Original Android Development] USBhost:
will fix this as soon as possible

sorry about the time lol

also recovery time zone works just fine for me

note you have to click Apply for the time to change.
[Nexus 9 Original Android Development] tibere86:
Thanks [MENTION=5501864]USBhost[/MENTION]!
[Nexus 9 Original Android Development] Bastlwastl2010:
After a third try....its works.....
[Nexus 9 Original Android Development] USBhost:
OK guys got it fixed

there will be an update tonight

the problem was in the randisk lol

but why did you guys want me to fix it?

you don't want 3,000%+ battery? lol :angel:
[Nexus 9 Original Android Development] dictionary:
Maybe if it was over 9000 ...
[Nexus 9 Original Android Development] USBhost:
K9.8.5

-| BUGFIX: battery reporting

good bye awesome bug lol
[Nexus 9 Original Android Development] dictionary:
Though it's still showing a crazy percentage next to charging lol
[Nexus 9 Original Android Development] USBhost:
its not working for you?

does it say k9.8.5 in about device?
[Nexus 9 Original Android Development] dictionary:
Oh, I just meant in your screenshot. Next to charging over USB. I haven't flashed the new kernel yet, I'm giving the one in Pure Nexus a try. While it doesn't flash, it keeps the LED on whenever you get a notification (Pure Nexus stock kernel). If you two collab and can get the LED to blink on notification, that'd be superb!!
[Nexus 9 Original Android Development] MotoFlasher:
Thx for the fast update... Everything is great... Keep it up! I like your "kernel experiments". ;) :good:
[Nexus 9 Original Android Development] Hiro Nakamura:
Bootloop

Hello,

i got bootloops on MelloShmallow-MRA58N-v0.16 rom with the newest kernel. K9.8.4 was still ok.
[Nexus 9 Original Android Development] siraltus:
Just upgraded from 5.1.1 to 6.0.0 and the tablet (Nexus 9 LTE) powers itself off right after finishing boot and displaying the home screen on 9.8.5. I just see a "Powering down..." message as if I told it to power off. 9.8.4 works fine.

Also, on 9.8.4, accessing Settings --> Developer Options causes the Settings app to force-close. EDIT: It stopped. Weird.
[Nexus 9 Original Android Development] Nikki1993:
Guys, come on! [MENTION=5501864]USBhost[/MENTION] needs logs to troubleshoot this. It doesn't help just by saying got bootloops as for instance for me it works just fine on PureNexus or Stock ROM.

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

Same here, logs!
[Nexus 9 Original Android Development] siraltus:
How?
[Nexus 9 Original Android Development] Nikki1993:
if you have kernel manager app like Elementalx, it has option of saving kernel logs. For Force Closes use adb logcat you can find instructions on the web. However, it is very rare that system force closes are caused by kernel so you may wanna have a look into the ROM itself not the kernel.
[Nexus 9 Original Android Development] Hiro Nakamura:
It's not even booting. As the former said, it gives a weird sound and then it powers itself off.
[Nexus 9 Original Android Development] USBhost:
can you get an logcat

logcat will work but if it does not

after the failed boot, boot into recovery

and

adb shell

cat /sys/fs/pstore/console-ramoops
[Nexus 9 Original Android Development] Hiro Nakamura:
Using "adb shell cat /sys/fs/pstore/console-ramoops" gives me

"no such file directory"
[Nexus 9 Original Android Development] USBhost:
then try

adb shell cat /sys/fs/pstore/*
[Nexus 9 Original Android Development] Hiro Nakamura:
again "no such file or directory"