yashsingh1/xdaforums huggingface dataset:
[Nexus 9 Android Development] Max128:
Hi,

I am coming from marshmallow , i have flash the firmware.. like before.. i install this rom is work but when i install the gapps ( i choose open gapps) I have every time a force close google play services so the rom is unusable. I have searched a lot here and in google before i write this. I still have not solved the problem.

The Permissions of google play services and google play store are all already enabled by default.. I have made a factory reset in recovery, erasing everything and the problem is still here.
[Nexus 9 Android Development] Max128:
Any help??
[Nexus 9 Android Development] damngood98:
Don't know what Gapps you're using but I'd try something else... Banks, open, pure Nexus
[Nexus 9 Android Development] ipdev:
[MENTION=3963092]Max128[/MENTION]

Start from stock (unlocked bootloader of course)

fastboot boot twrp (do not install twrp. leave stock recovery.)

Advanced wipe - wipe all.

Reboot bootloader and fastboot twrp again.

Sideload rom(check wipe cache and dalvik)

Reboot bootloader. (fastboot twrp again.)

Wipe (Factory Reset)

Sideload opengapps

Wipe (Factory Reset)

Reboot system.

(Some variation of these steps is what I have started using on all my devices again. My n9 is currently idling on stock NRD91D waiting for beta update.)
[Nexus 9 Android Development] Max128:
So.. Everything is stock now.. and the rom stock i have no force close at all.

---------- Post added at 11:51 PM ---------- Previous post was at 11:09 PM ----------

I already said it i use open gapps.

---------- Post added 14th October 2016 at 12:13 AM ---------- Previous post was 13th October 2016 at 11:51 PM ----------

So no problem with the rom stock like i said. I reflash this rom with the open gapps with what you said and is the same problem.. force close google play services.

There is a problem with this rom or gapps.
[Nexus 9 Android Development] Max128:
I solved the problem by taking another gapps. I have got root with Magisk.

SuperSU v2.78 work with android 7.0 but with the nexus 9 is not working anyone know why? because with titanium backup the root is not working like the others here.
[Nexus 9 Android Development] slebit:
SuperSU 2.52 do work with flounder. At least on Tesla. But I haven't figured out why latest SuperSu doesn't work...
[Nexus 9 Android Development] tibere86:
That's because v2.52 is still system based root and v2.78 SuperSU is systemless root. Some apps don't play nicely with systemless root.
[Nexus 9 Android Development] _cab13_:
I don't know if this has already been posted, but for GApps Stock compatibility, you can apply this patch here to fix the WebView FC on the ROM.

Also, nice ROM. Any way I can get full root instead of systemless / magisk ?
[Nexus 9 Android Development] wantowan2:
Sorry, I just gotta check this. Somebody may come along and think that these instructions are the last/best method for flashing this ROM.

To me knowledge, half of this doesn't exist...lol

fastboot boot twrp (Does that work? From term? Where is this twrp to boot from?)
Advanced wipe - wipe all. (ALL??? Probably want to not include internal storage? Unless you are going to unlock or lock bootloader)
Reboot bootloader and fastboot twrp again. ( Are you trying to say with term? Might work but need "OEM unlock" turned on from settings developer options on device. Make sure adb is turned on and device is accepted. To do it from the device that's stock, turn device off then hold power+volume down till the bootloader appears. Then flash the twrp.IMG from term as per instructions inside the flash all .sh file.)
Sideload rom(check wipe cache and dalvik) (Now, your into twrp for the first time! lol I would have the ROM plus gapps on device. Side load tends to fail this early but.. )
Reboot bootloader. (fastboot twrp again.) ( dont have to do whatever this means)
Wipe (Factory Reset)( redundant)
Sideload opengapps( flash from device)
Wipe (Factory Reset)(redundant)
Reboot system.

Just say'n....

I just started taking another look at this. Last I heard, it requires flashing the vendor, SuperSU also? Both can also be don't from device. Having everything on the device is extra helpful if you need to redo something without a PC.

Is this ROM running now? Is it rooted yet?
[Nexus 9 Android Development] ipdev:
[MENTION=4559825]wantowan2[/MENTION]

I agree, this process only works with a computer. (Hence the fastboot and adb commands. :) )

I have had the most success using this method (or variation) for initial installs, regardless the device.

(Obviously different commands and files depending on the device.)

(Personal preference only... Not saying it is the right way or the best way.)

Updating roms I normally just flash from device.

(Factory Reset or dirty flash, again depends on rom and device.)

I normally copy main files to /sdcard/ota/ afterwards so they are there just in case.

And yes su is working... (5G WiFi also.. Do not remember if that was an issue on this rom / device.)

(I have not played around with magisk lately, got distracted by other things - unfortunately, so I am not sure if it works on this build.)

Files used for Nexus 9 WiFi (volantis / flounder)

Factory Images

https://developers.google.com/android/nexus/images

TWRP (Corrected link)

https://dl.twrp.me/flounder

ROM

http://xdaforums.com/nexus-9/development/rom-t3451480

OpenGAPPS

https://github.com/opengapps/arm64/releases

phh superuser

http://xdaforums.com/android/software-hacking/wip-selinux-capable-superuser-t3216394

Installed this three times tonight.

Once from NRD91D, NRD90M and MOB30G.

WARNING : This a log of what I last did. There are some notes in the log but, it was not made to be an instruction guide on how to install. - The easiest was straight flash from NRD91D. The other installs required updating to, if not at least part to, NRD91D. Do yourself a favor and just start from NRD91D.

http://pastebin.com/cXXRQRgn

Now I plan to get back to stock NRD91D and wait for the beta update. :eek: (Glutton for punishment. :) )

Sent from my Nexus 9 usi ng XDA Labs
[Nexus 9 Android Development] Max128:
I am not sure how to put the fix in the gapps.
[Nexus 9 Android Development] jupppo:
I solved my problem with apps not getting root (titanium, adaway) by flashing phhs latest superuser.zip (not the magisk version!) over the whole installation. The tablet runs stable for a couple of days now and keeps root even with reboots.

One problem still remains: the battery indicator is still way of and my fear is that the tablet is still being charged although completly full. This would kill the battery long term.

Any suggestion what this could be?

I wonder also whether this ROM is still being developed.

Greeting J.
[Nexus 9 Android Development] bshiznit:
Thanks! I'll add that commit

Stoked for 7.1.0 hope it's not too painful

I need to get BusyBox working for SuperSU to flash (it needs runparts for the init.d support). I'll keep trying!
[Nexus 9 Android Development] bshiznit:
I'm still here. I was in Mexico with my wife and 4 kids for fall break :) awesome

[MENTION=4684315]flar2[/MENTION] [MENTION=5501864]USBhost[/MENTION] any clue about the charging misreporting weirdness... USBhost mentioned healthd but I've no idea how to implement a fix for that...

Maybe I should stick with Google's prebuilt and link to fire-ice and ElementalX leave it to the pros :)
[Nexus 9 Android Development] USBhost:
I think ElementalX still has the battery problem...

Well anyway...

Using the prebuilt one would be fine but if I remember correctly CM has a patch for this problem.

Try looking into that.

Question do people who use my kernel on this ROM have correct battery?
[Nexus 9 Android Development] liang512:
No kernels, including fire-ice, elementalx, fixed battery percentage issue.
[Nexus 9 Android Development] USBhost:
Thanks I will have a build tonight to fix that

Edit: make that the next update...
[Nexus 9 Android Development] jupppo:
Hey, great to hear. I didnt meant to be pushy, just wanted to know, because it looks like a great base for a great new ROM. I can also confirm that no kernel solves the battery issue so far.

Best thing so far is to let charge while powered down.

Best J.
[Nexus 9 Android Development] liang512:
The new fire-ice kernel 10.5.1 fixed the battery percentage problem. Thanks so much!
[Nexus 9 Android Development] USBhost:
[MENTION=2687658]bshiznit[/MENTION]

https://github.com/CyanogenMod/andr...mmit/f63db167706bb651562a262bc3169c0961769fe0
[Nexus 9 Android Development] jupppo:
Some it bootloops when I try this kernel. Does anyone know whether I need to flash the original boot image before (had Magix V8 before and I am back to no root for titanium and adaway :() )?
[Nexus 9 Android Development] liang512:
Yes. If you switch custom kernels, you always flash stock/original kernel, and then flash the new custom kernel.
[Nexus 9 Android Development] bshiznit:
v0.60

Hey all - v0.60 up - fixes the healthd charging issue reported in the kernel - fixes GApps FCs when flashing Stock. Also now has busybox compiled in correctly - SuperSU flashes successfully.

Up next - this ROM with November security level - THEN 7.1.0... :)

Was so pumped to get sysinit working (thanks [MENTION=4559825]wantowan2[/MENTION] who suggested that on page 3) which fixed SuperSU - I didn't test Magisk at all... So please report back about Magisk if you use it and note it is now up to Magisk v8 (http://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445) - direct link to latest:

http://tiny.cc/latestmagisk

And phh's SuperUser looks to be newer... http://xdaforums.com/apps/magisk/magisk-phh-s-superuser-android-pay-t3435921
[Nexus 9 Android Development] Max128:
Thanks for the update! I have no more FC in stock gapps, Supersu work again also. I have a problem now.. the google camera is always give me force close how to fix it??

EDIT: i have try another camera in the google play and is not working , force close or can't connect to the camera. All working with the stock rom before.
[Nexus 9 Android Development] kernelbase:
exFat/ntfs otg support?
[Nexus 9 Android Development] bshiznit:
Permissions in Settings-->App-->Camera look OK?

Mine have camera, location, microphone and storage all open and it's working OK...
[Nexus 9 Android Development] bshiznit:
Nope... But I do recall seeing a couple platform/build commits related to that. I'll look into it that would be nice to have...
[Nexus 9 Android Development] Max128:
Yes all is ok for the Permissions and not working.

I have the LTE model and i have NRD90R(LTE) vendor.img.

Envoyé de mon HTC 10 en utilisant Tapatalk
[Nexus 9 Android Development] bshiznit:
Cool - LTE data working OK? You are maybe my first LTE device user....

I'll see if I can think of anything regarding camera - LTE and WiFi use the same AOSP device tree - but perhaps there is a commit for the camera I'm missing somewhere.
[Nexus 9 Android Development] Max128:
Yes lte data is working. In the past i also was using wifi rom and lte working. Everything worked normally.

Except now the camera is not working at all.

Envoyé de mon HTC 10 en utilisant Tapatalk
[Nexus 9 Android Development] bshiznit:
Thanks... Can you try fire-ice kernel from original Android development and see if any difference there? Sorry to send you on a wild goose chase... Did not see anything in any other Nexus 9 ROM regarding camera that stuck out...

What steps did you take when flashing?

Wipe data/cache, flash ROM, flash SuperSU, then stock Gapps I'm guessing?
[Nexus 9 Android Development] Max128:
Yes i have wipe, and i have flash what you said. I Will try to flash the fire ice kernel later and i will let you know.

Envoyé de mon HTC 10 en utilisant Tapatalk
[Nexus 9 Android Development] Max128:
Okay i have flash the other kernel fire and ice. The camera is still not working i got the same errors. I have restored my backup of the rom stock 7.0 and everything is working. The camera work also.

Any ideas why the camera is not working with this rom?

Envoyé de mon HTC 10 en utilisant Tapatalk
[Nexus 9 Android Development] enriquejones666:
http://xdaforums.com/nexus-9/development/rom-aosp-7-1-0r4-t3489154/post69411590

(LTE vendor does not have camera updates that are in the WiFi vendor)
[Nexus 9 Android Development] Max128:
Oh i see why now.. thanks for the link! i guess i will need to wait.
[Nexus 9 Android Development] USBhost:
If you need your camera flash the M version.

Because I reverted the camera change on it
[Nexus 9 Android Development] Max128:
You said the apk of camera M version work on this rom?
[Nexus 9 Android Development] USBhost:
The M version of FIRE-ICE
[Nexus 9 Android Development] Max128:
Are you made a vendor hacked for the lte device like you have said in your another threard?
[Nexus 9 Android Development] USBhost:
Not yet I'll try tomorrow night/ Saturday night
[Nexus 9 Android Development] bshiznit:
WOW - that'd be sweet! Thanks as always
[Nexus 9 Android Development] bshiznit:
v0.70 up

All - v0.70 up - added those ntfs-3g and exfat libraries - SuperSU is integrated...
[Nexus 9 Android Development] USBhost:
https://drive.google.com/open?id=0B1cOHQ70J9vlZ0hyYVRHcDlBb3M

here you go... the hacked novemberOctober LTE vendor

do Note i dont have an LTE nexus 9 this may or may not work but it should

it booted fine on my WIFI ONLY N9.

Please get back to me if it works
[Nexus 9 Android Development] glockman4519:
Thank you for the latest update. Working like a charm. : )
[Nexus 9 Android Development] granduke:
Has anyone tried this ROM without updating the bootloader?

I am deployed and don't have a computer.

I won't report any issues or complaints if I am able to install with current bootloader.
[Nexus 9 Android Development] bshiznit:
First - thank you for your service :highfive:

I will try it with the old bootloader and report back. An early cut of this ROM did indeed work OK with the older M bootloader 3.48.0.0135... But since you aren't near a computer I'd like to double check.

Are you using the WiFi device or the LTE one?
[Nexus 9 Android Development] bshiznit:
OK - well went back to the bootloader and vendor from MRA58N - getting "Google Play Services not supported by your device.". Just a preliminary report - bet I need to get this updated to the N vendor image :) Stay tuned - it did flash OK on the older bootloader and booted up just fine.
[Nexus 9 Android Development] granduke:
Thank you for taking your time with this issue.

I appreciate it.

And I am using the wifi version.
[Nexus 9 Android Development] FrankBullitt:
Dude, you're good (like you didn't know it already ;) ).

I just tried AICP latest nightly with your kernel (for N) and this vendor and it's working perfectly. Thanks a lot. (btw, did not test data yet because I don't have a SIM at hand, but the setup recognized the card tray and the SIM abilities and camera is working without any problem).
[Nexus 9 Android Development] bshiznit:
Working fine - I had forgotten to flash GApps! So ignore what I said about Play Services being incompatible. DO update the vendor image - TWRP 3+ (I use 3.0.2-1) has an option to flash images and let's you select the destination partition... WiFi did not work without updating vendor, bet other stuff is broken too if you don't update :) Let me know if you need any help getting the NRD91D vendor.img - I do have it and the bootloader zipped up and linked in OP.

Updating bootloader doesn't look to be required, but updating vendor partition definitely is.

Cheers,

Ryan
[Nexus 9 Android Development] Max128:
Thanks! but i have no try because i am ready today to flash it but when I was on the factory google images the 7.0.0 (NRD91N, Nov 2016) is out for nexus 9 LTE so i got this one. The bootloader have been updated too.
[Nexus 9 Android Development] USBhost:
Cry... O well I learn something new that's good!
[Nexus 9 Android Development] bshiznit:
Thank you [MENTION=5501864]USBhost[/MENTION]! Everybody here should toss a few thanks his way... Helped us with the healthd charging issue and solved the mystery of the broken camera on the LTE model! Thanks!
[Nexus 9 Android Development] FrankBullitt:
Dont cry, it works and its running on my tablet. I didn't realize the vendor image was out from google itself, so I flashed yours and everything is perfect.[emoji1]
[Nexus 9 Android Development] bshiznit:
Yup as of today WiFi and LTE are in sync finally at NRD91N... Took ya long enough Google...

I will be updating my zips that have the latest bootloader plus factory image later today - and get the ROM built with latest AOSP updates too.
[Nexus 9 Android Development] Max128:
Yes everything working now in the rom even the camera. Thanks!

Envoyé de mon HTC 10 en utilisant Tapatalk
[Nexus 9 Android Development] lmulli:
I take it that this didn't happen only the versions available still appear to be the old ones. Ta.
[Nexus 9 Android Development] bshiznit:
Correct still waiting for my November version of this ROM to compile them I'll post all of the files
[Nexus 9 Android Development] bshiznit:
Ugh - I think my HDD may be on its last legs - doing a thorough fsck now - I was about halfway through a 7.0.0_r15 build :(
[Nexus 9 Android Development] albsat:
Sorry. Hope everything goes well.
[Nexus 9 Android Development] bshiznit:
Thanks :) Appreciated. I really need to separate my compiler cache to maybe an SSD or something :'(

fsck seems to have recovered me and I've ran a make clean against the source to be sure the file system corruption won't make it into the AOSP build. 10% through the build now!

After this one I'd like to try my hand at updating to 7.1.0 - but I am hesitant since our device is not in the 7.1.0 table I use to base my builds off of - https://source.android.com/source/build-numbers.html

If I stick to the right ones for the Nexus 9 in my experience we never have to wipe data/factory reset between builds :)
[Nexus 9 Android Development] wantowan2:
Hey! Nice ROM Dev! Everything has really worked out with your most recent work on root etc... All your hard work has distinguished you as the one (or one of the first) to give us N9 users a great N version to flash. Looking forward to your progress!

Ya, I have my Ccache on a totally different drive. (Please tell me you have given yourself the blessing of Ccache??? lol) Some say it might be a bit slower but I don't. Has to pass thru the CPU anyway. Besides, with all the reads/writes going on, why not split the load up and let you 'make -j*( a much higher #). I use i7's so that is 8 logical threads. I can compile @ -j14 all day and finish a build in under 20 min. (While the actual recommendation is 1 -j# / logical thread of your CPU.)

There is a pretty simple method to setting up this second Ccache drive. Including using your setup disk to assign the drive (because you will need root to change owner)

And

Making the drive mount at boot time.

Thanks and good luck

Edit: my gut tells me you won't have problems with the naming convention. The only real problem area is between desert versions. The tree is all the same. I doubt there would ever be a change in the device tree. That is even more stable. Unless of course you have added a bunch of your own separate 'overlays'. But in that case you would likely have your own repo and cherry-pick any changes. Ya, I would say code tweaks in the tree only.

That all said, I always said that if you do dirty flash my ROM, please don't come to the thread for support. Haha That way you keep people stable and know your comparing apples to apples. But I was a HARDA$$! lol
[Nexus 9 Android Development] USBhost:
[MENTION=2687658]bshiznit[/MENTION] if your still having problems I can build the ROM for you.
[Nexus 9 Android Development] bshiznit:
Thank you!

It has built - when creating system.img though:

make_ext4fs -s -T -1 -S /home/ryan/aospout/601r9WORKING_DIRECTORY/target/product/flounder/root/file_contexts.bin -L system -l 2739474432 -J -a system /home/ryan/aospout/601r9WORKING_DIRECTORY/target/product/flounder/obj/PACKAGING/systemimage_intermediates/system.img /home/ryan/aospout/601r9WORKING_DIRECTORY/target/product/flounder/system /home/ryan/aospout/601r9WORKING_DIRECTORY/target/product/flounder/system

error: file_write: incomplete write

Ugh...

Trying make installclean then make again
[Nexus 9 Android Development] bshiznit:
Ha! Thanks man... Been a labor of love. My OG Nexus 7 2012 ROM was too...

Yeah I have ccache and all on 1 partition on a single HDD (spinner)...
[Nexus 9 Android Development] bshiznit:
Updated! November 5th 2016 security... That's all
[Nexus 9 Android Development] maelfilk:
Thank you!

Successfully flashed my N9 LTE version, everything working great. Do you recommend using userspace governor over interactive?
[Nexus 9 Android Development] bshiznit:
Most welcome! I am really glad to hear this works on the LTE model.

Well the kernel's init.rc ends up containing these lines:

write /sys/module/tegra3_emc/parameters/emc_enable 0

#write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 1000000

#write /sys/module/cpu_tegra/parameters/cpu_user_cap 700000

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive

write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 510000

write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 510000

#write /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 700000

#write /sys/devices/system/cpu/cpu1/cpufreq/scaling_setspeed 700000

#write /sys/devices/system/cpu/cpufreq/interactive/boost_factor 2

#write /sys/devices/system/cpu/cpufreq/interactive/sustain_load 80

write /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable 0

So it will at boot set the governors on both cores to interactive, both minimum frequencies to 510000 - and turn off CPUQuiet... I should add some more governors maybe. Back in the Nexus 7 (2012 days) I recall folks recommending OnDemand as the best governor to balance performance vs. battery life...

Anyway it would seem the init settings in the kernel will override any governor I set when compiling the kernel! I'm glad I looked deeper into this
[Nexus 9 Android Development] maelfilk:
One thing however, battery percentage not showing correctly:(

I left the tablet to charge over night, and it showed 91% after almost 8 hours, i rebooted the tablet and it changed to 99%
[Nexus 9 Android Development] bshiznit:
Ugh! Was pretty sure we (me and [MENTION=5501864]USBhost[/MENTION]) had this fixed using a commit from CM!

https://github.com/bshiznit/platfor...mmit/e2fedc9f35ac603baa658b637ac7297ba9d20cb6

Couple questions:

Do you have USB fast charge enabled in Kernel Adiutor or other kernel app?

Are you at NRD91N factory image for LTE linked in OP?

Are you at latest bootloader by flashing bootloader-flounder_lte-3.48.0.0141.img linked in OP?

I'll check my fast charge commits to the kernel, and see if there ary any further platform_system_core or other healthd related commits in the flounder device tree...
[Nexus 9 Android Development] maelfilk:
I use Ex Kernel Manager and USB fast charge is enabled

Latest vendor but 3.48.0.0139 bootloader. Could this be the issue? If so can i flash new bootloader now without ending in a bootloop?

UPDATE: i flashed new bootloader in adb and OS booted. Will take a look if battery % issue is gone
[Nexus 9 Android Development] bshiznit:
Awesome - if not I found some further healthd commits outside our device tree I can include in the next build:

https://github.com/CyanogenMod/android_system_core/commits/cm-14.0/healthd

Thanks for trying that sorry I didn't respond sooner!

Ryan
[Nexus 9 Android Development] albsat:
[MENTION=2687658]bshiznit[/MENTION]

Would it be a good idea to make another version of your rom for 7.1? Like a test build? I would like it to try.
[Nexus 9 Android Development] bshiznit:
Yup! That's my goal is to cp -r my current source try and sync 7.1.0_r6 NDE63V. I'll start the cp command today!
[Nexus 9 Android Development] maelfilk:
After running a few cycles i didn't notice any problem with battery %, thanks!

Also, would be great to have douple tap statusbat to sleep option:fingers-crossed:
[Nexus 9 Android Development] _cab13_:
Do I really need to wipe data to get from an old version of Noougies ?