yashsingh1/xdaforums huggingface dataset:
[Nexus 9 Android Development] k8C:
[MENTION=5501864]USBhost[/MENTION] in your FIRE-ICE kernel thread there's fsync options, how do I disable fsync in this rom?

How can I keep my apps in system/priv-app after a rom update? Use Addon.d?

I'm using microG as a replacement for Google Play Services and its related Gapps, it's great that tons of google background services is gone but other apps that rely on them are still working fine. However I have to deodex system/framework and patch framework.jar to enable signature spoofing so as to use microG but everything's gone after an update. Can you just enable signature spoofing by default like some other roms?
[Nexus 9 Android Development] wantowan2:
Here I see evidence that "last_kmsg" was of course working at some point. And I remember kmsg there too.

Below found on line 323 of /init.rc

#change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
chown root system /proc/kmsg
chmod 0440 /proc/kmsg
chown root system /proc/sysrq-trigger
chmod 0220 /proc/sysrq-trigger
chown system log /proc/last_kmsg
chmod 0440 /proc/last_kmsg

Just now, it was simple. Device just went black.

So usually with something like kernel panic or battery too low, It says the device has to shut down. With a pop up, progress circle, 5 seconds etc...

This is all very sensible and allows the OS time to write stuff down. Like reasons why in the last_kmsg. It might be something stupid like the ROM needs to start off with a blank file named "last_kmsg" in /proc. Along with perms in perms.

While your right, it does look like a driver problem so why not dmsg. But like it says above, "#change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks".

So looking at sysrq-trigger to make sure its viable would be key.

Maybe try running a live log thru ADB (adb logcat) and fire off sysrq-trigger on the device. With term emulator or maybe even root explorer.

I know android and compiler don't like just creating files without explicit instructions.

At any rate, I haven't seen any real hard habit at a certain battery level when this all happens. It said 26% battery in recovery...

EDIT: I forgot to mention. This was on a clean flash, everything new to start with...
[Nexus 9 Android Development] brutalv4:
You can try this [XPOSED] [NOUGAT] [WORK] [CAN UNSTABLE] Xposed SDK25/24 for all arch and this FakeGApps ;)
[Nexus 9 Android Development] USBhost:
"/proc/last_kmsg" is no longer used "/sys/fs/pstore/console-ramoops-0" use this one instead.

last_kmsg is just leftovers from the old days... dont worry about that.

That random shutdown is quite rare considering i only know of two, that happened to me.

One of them my bat was at 15% playing youtube like all day.
[Nexus 9 Android Development] wantowan2:
Just in case this is useful to you.

Same old. Out of nowhere, 17% Batt. nothing too intense going on.

https://pastebin.com/DeD6NGin

Edit: answer me this. Why isn't it there all the time? Is it some effort to avoid scrolling through reams of log spam?
[Nexus 9 Android Development] USBhost:
New version is up with:

WakeBlock

FIRE-ICE K10.6.8.1

BTW read the op if you want to try out WakeBlock
[Nexus 9 Android Development] nyvled:
Have you tried it yourself? If so, any observations on its effects? Asking cause I see this to be quite useful for my phone.. Just not too sure with my tablet as it's just usually sitting at home and I only use it at night for YouTube/Twitch and it currently lasts me for three days without charging.
[Nexus 9 Android Development] FrozenPea:
There's no file in your folder :(
[Nexus 9 Android Development] b8842dc0:
USBhost, thanks for this work! One question about the patch that introduces support for flashing gapps, I looked through the bug report referenced on the patch page, but I'm not clear on what this patch is seeking to address. When I've compiled AOSP for my flounder and flashed the pico gapps package in the past, I always get non-stop FCs on Google Play Services. Something like "Unfortunately, Google Play Services has stopped." Is this patch addressing this issue? Or something different? I've never been able to figure out if I'm doing something wrong to cause this (and yes, this happens to me after a full wipe, flash of my rom, and immediate flashing of pico gapps).

Thanks.
[Nexus 9 Android Development] USBhost:
Yes this commit will fix your Google play FC

https://github.com/TeamExodus/frameworks_base/commit/9c36be651e83fb039a262682839bd920b033007a

The problem was when google added permission control to android 6 up.

Because of that gapps did not get there needed permissions granted so they end up FC
[Nexus 9 Android Development] maelfilk:
Sorry but i can't seem to find the nav bar tuner:confused:

---------- Post added at 07:32 PM ---------- Previous post was at 06:41 PM ----------

Okay so i installed it on lte and camera doesn't work (i flashed latest lte vendor)
[Nexus 9 Android Development] USBhost:
It's In system UI tuner

You will need to enable it.

In your notification bar tap and hold on the gear for settings for like 4 seconds...

O... Right... Looks like I need to make that hacked vendor...

Because the October update changed how the camera worked
[Nexus 9 Android Development] maelfilk:
Yeah i guess it's because LTE version didn't get october vendor. Maybe it's easier simply to wait for novermber update.
[Nexus 9 Android Development] b8842dc0:
Awesome! Thanks!
[Nexus 9 Android Development] albsat:
What vendor should I use for WiFi version? It keeps notifying on error during the boot.
[Nexus 9 Android Development] USBhost:
You sure?

Just the latest... Android 7.1 is not out for our device

Having that error is perfectly normal
[Nexus 9 Android Development] liang512:
Should I use your system mode SuperSU SR1, or the latest SuperSU SR2? Thanks!
[Nexus 9 Android Development] USBhost:
Try the latest SR2
[Nexus 9 Android Development] albsat:
I am amazed that such a pure rom with simple features has improved so much my N9. Don't see any closing of chrome browser anymore.
[Nexus 9 Android Development] Choochter:
[MENTION=5501864]USBhost[/MENTION]

Is it OK to flash your ROM on top of Pure Nexus or do I need to flash the latest bootloader first?
[Nexus 9 Android Development] USBhost:
Bootloader I don't think so But... I recommend you update it.

flashing it first is probably the best.

You will need the latest vendor.
[Nexus 9 Android Development] dabanhfreak:
I can't seem to boot this ROM, it gets stuck on the boot logo.
[Nexus 9 Android Development] USBhost:
Are you on the latest vendor?
[Nexus 9 Android Development] dabanhfreak:
Yes, I flashed it beforehand.

I even flashed the latest full stock image, same problem.
[Nexus 9 Android Development] USBhost:
Can you get an adb logcat while it's booting?
[Nexus 9 Android Development] dabanhfreak:
Boot up your AOSP?

I'm not sure if it will actually do anything. When I refer to 'Boot Screen' I mean, it doesn't actually leave the 'Google' logo.
[Nexus 9 Android Development] USBhost:
Still try :fingers-crossed:

You should be on the latest bootloader also :good:
[Nexus 9 Android Development] glockman4519:
It booted just fine here. No issues with the rom at all. For some reason it installed stick recovery on my device but that was easy to fix.

I should have said that some hiw I got the stock recovery on it. I am not implying that this rom did it...lol...
[Nexus 9 Android Development] USBhost:
Sorry... I uploaded it to the wrong folder...

Now it should work!
[Nexus 9 Android Development] USBhost:
Off hand I haven't had the need to.

But in the past it could have helped.

But I do agree it would be more helpful there.
[Nexus 9 Android Development] nyvled:
Don't mean to be a downer here, just really curious about WakeBlock. But after realising that Greenify and all the other battery-saving apps took more battery than they saved on my phones I realised that I had to steer clear of all these things (I used to have a HTC One X - the battery on that is.. Horrendous.). Perhaps I'll try this out! Thanks for your reply!

Also just want to add in that although I've tried other ROMs with the N9 (even one with substratum support for night themes) but I have since last week returned to your ROM. I like the simplicity and how clean the software is - no this feature that feature that I will never use. I've never dared to install custom kernels on all my other devices for fear of a hard brick; however with your kernel this tablet has never been so smooth even when it was on stock. Extremely grateful for what you've done here and huge thanks to you. :good::good:
[Nexus 9 Android Development] USBhost:
As to what I understand of it. It will only block an service from waking up the device.

Like when you look at your battery history you see a bunch of little lines telling you when your device woke up. This wakeblock can prevent that so in theory this can allow your device to have a wakeless sleep saving a lot of battery. Or if you have a certain app that doesn't like to let your device sleep like some of those GPS apps for an example wakeblock would be vary helpful here. Although if you think about it it's very closely, it may add some overhead on every time an app requests wakelock. Because it will call the Wakeblock app just search to see if it was disabled or not. How much power that will use I do not know.

I only added it because it was a very minimal/small thing to add plus I wanted to try it out.

You can't let all those Nexus6P users have all the fun right?

PS. Thanks for the kind words
[Nexus 9 Android Development] nyvled:
Exactly. Well I'll try it out! Thanks!
[Nexus 9 Android Development] varun.gid:
Which is the latest Vendor.img? the OP provided the link to the Dirty unicorn page and it has only till may june vendor images.

I get internal error when i boot. please point me to the latest vendor :D
[Nexus 9 Android Development] USBhost:
https://developers.google.com/android/images#volantis

7.1.1 (N9F27F, Jul 2017)

Do Note: if your using volantisg you will get that startup error even if your using the right month
[Nexus 9 Android Development] chugger93:
Installed. but searches for wifi endlessly. Wont find any network. What gives??
[Nexus 9 Android Development] USBhost:
Go flash the N version of my kernel.

If you still have problems then it's hardware related.
[Nexus 9 Android Development] chugger93:
I installed your kernel, and booted back up. Still sits there and scans wifi. Odd though, I just came from another rom of 2 years and the wifi was fine on that rom. I just decided to switch because I got random lockups and such. Trying to rule out hardware problem or not. HOwever WIFI did work fine on other rom.
[Nexus 9 Android Development] dictionary:
Update bootloader and vendor files
[Nexus 9 Android Development] USBhost:
Gerr I never thought of that!

Thanks.
[Nexus 9 Android Development] wantowan2:
Happens everyday to me. This time the vibe stayed on too, scared the crap out of me! lol I'm thinking less and less that its battery related. Happened at 43% the other day. Based on what you stated earlier, do you think webview could need a look at? A selective revert maybe? Maybe look at other garrets or something. Other then aosp. Like cm, slim, aokp, DU, etc.... Might be easy even.

Edit: I also notice that there is no alternate vebview implementation available in settings/developer/webview....
[Nexus 9 Android Development] USBhost:
AOSP webview is only available when no other options are available.

chrome, chrome dev, chrome canary, google webview.

But I think it's something more hardware related.

Considering I've only got it recently within the last few months.

And just yesterday when I opened camera just at boot I got it.

I think our hardware is getting old. Day one N9 group....

The more it happens the more I'm getting concerned.
[Nexus 9 Android Development] wantowan2:
I have developed devices that get old. They begin to diverge from the source. Its still very possible so dont give up! I managed great ROMs for the Samsung II skyrocket for soooo long. As this IS a nexus device it should be way easier. The key will be with things like:

-alternate sources

-alternate and compilable vendor source Like "TheMuppets" on github.

-detach device from certain dependencies. Like vendor build versions. (That's why you'd compile them with the ROM)

-if you came across an issue, so did somebody else. Find those patches.

-best way to search XDA, from google with XDA tag.

-contact other Nexus 9 Devs found on garret, github and websites. Also, find and get google to translate Russian device support pages. They have some rock'n Devs over there and often find solutions before we do.

-maybe a tester can try to replicate and then flash stock and test. Then root it and flash your kernel. Sneak up on it.

Were those logs helpful? Need more?

Good luck....
[Nexus 9 Android Development] USBhost:
That's all normal stuff...

And all that (Tainted) is webview. :rolleyes:
[Nexus 9 Android Development] USBhost:
New plain old security update.

OT: i cant wait for O!
[Nexus 9 Android Development] madbat99:
Got my fingers crossed that it will build and function on this bad boy. Actually, I'm pretty sure it's a girl. I can tell by the way she treats me. OT as well, sorry.
[Nexus 9 Android Development] USBhost:
Oreos do taste good!

Looks like tonight ill be busy baking cookies and hoping that they come out fine!

Edit: yep she is something! my Osora (Nexus 9 Girl) Will sing the songs of Oreo! [MENTION=5752019]madbat99[/MENTION]
[Nexus 9 Android Development] albsat:
Cooking is a very good thing, especially sharing the food with the community which is hungry.
[Nexus 9 Android Development] USBhost:
Well it looks like it won't be as easy as I thought...

After battling an uphill battle with release tool..

I am left stranded in an island where's the only one message saying: "Gralloc2: gralloc-mapper must be in pass through mode."

I will continue this battle tomorrow... Eyes are tired.

1:33AM ...
[Nexus 9 Android Development] iason747:
How's the battle going?

( Don't get me wrong I'm not asking for a ETA,I'm just curious)
[Nexus 9 Android Development] USBhost:
Haha np.

At the moment we are stuck at least for our device stuck at a kernel panic just at the lock screen.

The higher ups got it to that point.
[Nexus 9 Android Development] USBhost:
News update: it seems (most likely) like this ROM have reached its dead end.

Android 0 will need a lot of changes... deviating from the original reason for this ROM (staying stock)

Note: When LineageOS 15 is out and i still cant make it work then this ROM will officially end.
[Nexus 9 Android Development] albsat:
Only 2 devices non - Google ones have oreo running. I have a feeling nexus 9 will be the next. :)
[Nexus 9 Android Development] USBhost:
For the most part Oreo is working on our Nexus 9 its just Hardware acceleration does not work and NFC doesn't load.

What devices? [MENTION=4413706]albsat[/MENTION]
[Nexus 9 Android Development] albsat:
Xiaomi Redmi Note 3 (pretty stable) and Asus Zenfone 5 (alpha status) as far as I have read on xda forums.
[Nexus 9 Android Development] dictionary:
Do we need hardware acceleration to actually run the device though? I care not about NFC, so would totally be interested in playing around with a build, if it's out there to be shared. Don't use my n9 much anymore
[Nexus 9 Android Development] USBhost:
well here you go!

https://drive.google.com/open?id=0B1cOHQ70J9vlWXlrN0l3QkxfXzA

1: BACKUP

2: flash rom

3: flash the kernel in that link or it wont boot

playing games will probably work just as it always would have. but just not HW on video (also videos in chrome/firefox etc..).

Audio HW works tho.
[Nexus 9 Android Development] Monazite:
Boot successfully! Thank you!:good:
[Nexus 9 Android Development] dictionary:
I'd be assuming gapps included? Thanks again
[Nexus 9 Android Development] USBhost:
Nope || np!

One of the reasons why it's because I haven't found a good one.

Sometimes it would flash sometimes not and all the time it would hang recovery.
[Nexus 9 Android Development] dictionary:
Same with the n6. It hangs in recovery but actually flashes
[Nexus 9 Android Development] albsat:
I think I will wait for a better release, if that would be possible.
[Nexus 9 Android Development] iKirby:
Wow. Thanks for the build, it runs smoothly on my device. :good: Haven't tried games or videos tho.

For gapps I found this package: https://androidfilehost.com/?fid=745425885120757578

and flashed without any issue.
[Nexus 9 Android Development] dictionary:
Bootloops on me.
[Nexus 9 Android Development] nyvled:
Sorry I don't really understand - does this mean videos cannot be loaded if viewed through chrome?

Edit: Did a quick Google search once I was home and came past this: https://plus.google.com/+DianneHackborn/posts/2FXDCz8x93s
[Nexus 9 Android Development] goast:
Same for me doesn't pass Google logo and TWRP is gone as far as I can tell..Idk will wait and see

Didn't see the kernel part will do this later thanks
[Nexus 9 Android Development] millosr:
Great Job!!!

I have successfully booted it.

I have installed both files from the link, aosp_flounder... and FIRE-ICE.... I'm using latest 7.1.1 vendor (from august official nougat).

I have tried to build Oreo for Nexus 9 and I have stucked at:

Gralloc2: gralloc-mapper must be in passthrough mode

So I found this thread :)

Can you please share your changes?

Cheers :)
[Nexus 9 Android Development] USBhost:
https://github.com/USBhost/android_device_htc_flounder/commits/master
[Nexus 9 Android Development] albsat:
Could the gapps be incorporated in the testing oreo rom to bypass the problems?
[Nexus 9 Android Development] iason747:
I have used these gapps and they work just fine, except I hangs in twrp after installation. Hold the power button for ten seconds to exit, gapps have already finished installing after it hangs.

https://androidfilehost.com/?fid=745425885120757578
[Nexus 9 Android Development] albsat:
Well I couldn't resist and installed the ROM . The Gap's didn't work for me. It didn't connect with Google . a good change I saw was that there is battery percentage option with numbers that is easily read . The unpleasant change for me was the removal of navigation bar buttons order option.
[Nexus 9 Android Development] iason747:
Deleted
[Nexus 9 Android Development] didnt1able:
What kernel is preferred here elementalx or fire and ice?
[Nexus 9 Android Development] USBhost:
You can choose whatever. But take caution treading on f2fs when changing kernels after boot.

Unless your talking about the O build then

You will have to use the kernel in the link.
[Nexus 9 Android Development] didnt1able:
Are you on the o build?
[Nexus 9 Android Development] sabrdawg:
The gapps worked for me after I played around with things for a bit. I tried flashing them before the kernel, and that didn't work, and then tried flashing them after the kernel, rebooting to TWRP by pressing power and volume down, and then clearing the caches and fixing contexts, and it eventually worked! :)
[Nexus 9 Android Development] USBhost:
No.
[Nexus 9 Android Development] goast:
I'm up and running no issue! Thanks Dev!
[Nexus 9 Android Development] nyvled:
[MENTION=5501864]USBhost[/MENTION],

I can't seem to boot either your O build nor a backup of your 7.1.2 build. Wanted to get logs but I can't seem to get them through adb? Right now after turning the device on I just get stuck on the Google logo; I don't even see the android boot animation nor does the device ask me for my pattern password to start the device.
[Nexus 9 Android Development] Monazite:
Flash vendor.img again. TWRP has problem when back up and restore vendor.
[Nexus 9 Android Development] albsat:
What gapps version are you using?
[Nexus 9 Android Development] nyvled:
Well silly me accidentally wiped internal storage (again! how many times must I make this mistake?!) and thus lost the backup... I'm trying a fresh boot of the Oreo build now..

Thanks!

Edit: Flashed the 7.1.1 factory image, wiped and installed the O build, booted now so alls good! :)
[Nexus 9 Android Development] stanislavskiy:
Hello. I found this topic because my boot stuck on this error too. Can you please tell me how did you fix the error?
[Nexus 9 Android Development] goast:
The ones linked 2 pages back.
[Nexus 9 Android Development] deathrowz_sri:
I got it to work using gapps few pages before. It initially failed. Then I flashed ROM, kernel, gapps. Same error but booted. But cudnt sign in. Then did a factory reset and BOOM! I find it much more snappier than Nougat but bugs such as no HW acceleration mentioned is quite evident especially in YouTube and Maps. Going back to Nougat for now but will definitely be back to taste sweetness of Oreo!!! Thanks for your great work [MENTION=5501864]USBhost[/MENTION]!!!
[Nexus 9 Android Development] didnt1able:
I'm sorry for being a little slow but I can't find the link to the android o build. Could someone please point me in the right direction?
[Nexus 9 Android Development] iason747:
Last post in page 41
[Nexus 9 Android Development] Super-Veloce:
How do YouTube and Maps work?
[Nexus 9 Android Development] sabrdawg:
Has anyone on Oreo tried Substratum yet? It keeps saying something about the overlays being outdated despite the app and themes being up to date. It crashes when I try to apply a sound pack, too. I guess it's to be expected, though, as this is a brand spanking new build :)
[Nexus 9 Android Development] dictionary:
Try Swift Dark. Haven't had a chance to play with my device since I flashed the ROM
[Nexus 9 Android Development] nyvled:
YouTube is laggy at times. As I use my tablet primarily for videos currently I am now back to 7.1.2
[Nexus 9 Android Development] Super-Veloce:
Guess I did wrong..

Made backup first.

Wiped N9

Flashed O build, kernel, Gapps

After long time, it booted, but got error system and again android logo

Tried restoring my backup, hangs on Google

Tried reflashing 7.1.2.. hangs on Google

Tried flashing kernel.. still hangs on Google..

Tried flashing 7.2.1 and O after that, hangs at Google

Guess I'll have to try to make it back stock??
[Nexus 9 Android Development] USBhost:
Which did you backup?
[Nexus 9 Android Development] Super-Veloce:
Almost everything I could select.. except for data
[Nexus 9 Android Development] USBhost:
Data was the most important part.

You can try giving me a logcat of boot up but chances are there isn't really much I can do to help you.
[Nexus 9 Android Development] Super-Veloce:
I just flashed August factory image from Google, my N9 LTE works again.

I can flash TWRP and make a back-up now, what should I select?

After that I can flash the O build+kernel+gapps.

Is a wipe needed or just ota over current rom?
[Nexus 9 Android Development] albsat:
[MENTION=5501864]USBhost[/MENTION]

Could this thread be of any help? Just posting it.

https://xdaforums.com/oneplus-one/orig-development/rom-aosp-oreo-oneplus-one-t3666741
[Nexus 9 Android Development] albsat:
Almost all the roms with oreo, have gapps incorporated in the rom. It's a bit strange.
[Nexus 9 Android Development] USBhost:
Sadly not much... But thanks anyways.

The problem seems to be more tegra related.

Anyway I'm taking a break from all this ROM stuff...

Remember I'm a noob when it comes to that stuff.

I will be resuming my kernel work.
[Nexus 9 Android Development] albsat:
You might call yourself a noob, but for me your nougat Rom is one of the very best roms and the one I use daily.
[Nexus 9 Android Development] Super-Veloce:
Flashed O ota, kernel and gapps over stock rom, after boot I get systemUI stopped.. can't do anything, sometimes only press ok, other time I get Android logo again..

What to do?
[Nexus 9 Android Development] albsat:
I would suggest to return to nougat version. This oreo rom without hw acceleration is half baked.
[Nexus 9 Android Development] Super-Veloce:
Yeah I guess I'll have to go back to 7.1.2 and just wait for a proper O rom for my N9 LTE.
[Nexus 9 Android Development] USBhost:
A New O build is up. Hand Warmer Edition

NOTE: video will work now but it will be in SW not HW.

So this is a mostly working release.

https://drive.google.com/open?id=0B1cOHQ70J9vlWXlrN0l3QkxfXzA

1: backup

2: flash ROM

3: Flash my Kernel: K10.6.9 supports O now

4: flash everything else you want