yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) Android Development] nbehary:
Builds of Android Nougat for our beloved Nexus 7 2013.

This is, again, a fork of [MENTION=4318865]DevSwift1[/MENTION]'s original AOSP port (http://xdaforums.com/nexus-7-2013/orig-development/p-aosp-n-7-0-google-shame-t3448008), for totally different reasons. This time because he is MIA and it would be a good idea to update with the October Security Update and beyond.

What works:

Audio

Brightness

GPU Acceleration

Bluetooth

Wifi

NFC

GPS

Location services

Camera and video recording

Video playback

MTP

Sensors

Bugs:

- Play TV and Movies DRM broken (Wildvine)

- poor 1080p video recording quality.

- Can't install Play Games (through Play. May work through opengapps aroma if you pick just that and what is in micro. Maybe one or 2 others) It can be sideloaded.

Change Log:

v0.10.0.1 (Flo only, not applicable to Deb)

- Fixed GPS.

v0.10 (0.8.9999 was "0.9")

- 7.1.1_r4, including December Security Patches (except items in the kernel)

v0.8.999

- Partial Nov Security Update. (Everything but the kernel)

v0.8.1

- Fix for CVEs: 2016-5195, 2016-5340, 2016-7117, 2016-3903, 2016-3934

- That should address all of applicable kernel patches from the Oct Security Update plus Dirty Cow.

v0.8

- Update to 7.1.0_r4 complete, and apparently fine. (well, as good as 07.2)

Download:

Flo: 0.10.0.1

Deb: 0.10.0

Old just in case, since 0.10 is a big jump:

Flo: 0.8.9999

Deb: 0.8.9999

Gapps: http://opengapps.org (micro version recommended)

If you have trouble installing Gapps, try rebooting (right back into recovery, not system) between flashing the ROM and Gapps.

Micro is a bit more than just recommended. It is the largest package that will fit in the system partition. This is basically a universal issue with Nougat that can't really be worked around without very risky tweaks to mess with the partition sizes which I'm not even sure are actually possible. (not happening)

You can install smaller packages, or "larger" using a custom config or the Aroma installer. And only slightly "larger" there. That is more useful to pick and choose to find a balance that works for you. You won't fit much more. (I do that on my Moto E which has the same issue.)

Sources: https://github.com/nbehary/manifest (the n-mr1 branch is 0.8. and master is basically untouched and still 0.7.2. I'll make master v0.8 later. )

Kernel Sources: https://github.com/nbehary/android_kernel_google_msm

Credit

[MENTION=4217103]zaclimon[/MENTION]

[MENTION=4318865]DevSwift1[/MENTION]
[Nexus 7 (2013) Android Development] nbehary:
Two development things to mention:

- right now I'm forking as little of msm8960 as I needed to to apply the security patch. Only platform_frameworks_base and platform_system_core in my repos are current. (platform_build_core may or may not be, but it more or less is and doesn't matter for 99% of anything) I had forked them all before, but the rest aren't up to date. If you'd like to submit pull requests to help in any other repo, msg me first and I'll fork it first. (This will change over time. The manifest is the best guide for which I've updated. If I'm using mine there, it is current)

- I did ignore one of [MENTION=4318865]DevSwift1[/MENTION]'s commits in system/core, since it was just pulling in my fork of it. No point, except to keep the history intact, but I was lazy. They were the same.

(ETA: oh, 3. The kernel sources are also up to date, and more current than the one in msm8960, even though the commits are backwards. He never merged the CVE patch. )
[Nexus 7 (2013) Android Development] jerethi:
Is it possible to dirty flash over DevSwift1's version?
[Nexus 7 (2013) Android Development] nbehary:
Probably. Sorry, forgot to mention that in the OP.

I know that dirty flashing the test version I posted in the other thread a few days ago over that works, and this over the test does. So, it should work fine.
[Nexus 7 (2013) Android Development] gangrenius:
We don't have to flash gapps again if we are updating from .6 do we?
[Nexus 7 (2013) Android Development] nbehary:
You may. I always do, and didn't test without. My gut feeling is that you will need to. (I get mixed up though, the build I'm using on my Moto E always needs it, and I can't remember if here did too)
[Nexus 7 (2013) Android Development] gangrenius:
I know I don't when I flash an updated systemm of rr remix on my phone . hmmm guess we'll see

---------- Post added at 06:01 AM ---------- Previous post was at 05:44 AM ----------

Can u add in that build prop edit they shared online into this so we can use google assistant?
[Nexus 7 (2013) Android Development] simplyme2908:
just in case i want to build using your trees and kernel sources, will it be a prebuilt kernel or from source?
[Nexus 7 (2013) Android Development] nbehary:
Prebuilt, but the one the manifest currently pulls, from my repos, is built from the sources posted here. It is entirely current. (despite the fact that I built it weeks ago.)
[Nexus 7 (2013) Android Development] miki67:
Is root lost after dirty flashing over 0.6?

Inviato dal mio Nexus 7 2013 (AOSP Nougat 7.0) con Tapatalk 6
[Nexus 7 (2013) Android Development] paed808:
For me, dirty flashing this over DevSwift1's version works.

Thanks for keeping this tablet updated! :)
[Nexus 7 (2013) Android Development] bmakk2055:
Thanks for continuing to update this rom
[Nexus 7 (2013) Android Development] vince2008:
Yes, I have to root again.
[Nexus 7 (2013) Android Development] paed808:
With your build the video recording doesn't work at all in any camera app. See screenshot below of google camera

Please note I dirty flashed this on top of DevSwift1's version.
[Nexus 7 (2013) Android Development] jerethi:
Has anyone installed EX on this? How does it perform?
[Nexus 7 (2013) Android Development] Hackerlacka:
[MENTION=3286382]nbehary[/MENTION]

What I've found not working so far

When I try to add my google account to Google Keep, the app force closes.

When trying to install Google Play Games from the Play Store I get the following error message (see image below).

Device is reported as Google Nexus 7 2012 model when logging in with your Google account.

Other than that ROM is stable and smooth! Love Android 7.0 :D

Great work! :good:

Edit: Installed from scratch (clean install)
[Nexus 7 (2013) Android Development] rudolph323:
Does it matter which version I currently have ?

I'm doing this for the first time, using this tutorial - http://androiding.how/how-to-install-a-custom-rom-using-twrp-recovery/
[Nexus 7 (2013) Android Development] rudolph323:
I tried to install gapps together with ROM, but GAPPS shows: "Incompatible device detected"

I downloaded ARM64 GAPPS

ERROR:

Camera error: Can't connect to the camera.

And photo quality is also bad, very grainy..
[Nexus 7 (2013) Android Development] paed808:
Don't use Arm64, Nexus 7 is 32-bit. So you want Opengapps 7.0 arm gapps

And yeah same camera issue, hopefully it gets fixed.

Otherwise good ROM.:good:
[Nexus 7 (2013) Android Development] Ranbato:
Is the webview patch applied?

http://opengapps.org/blog/post/2016/10/06/nougat-webview/
[Nexus 7 (2013) Android Development] Startrek852:
That's nice. :) :)
[Nexus 7 (2013) Android Development] nbehary:
Missed the added post. You need to be more specific. What are you doing with it when it does that?

I'm sure Doze is working fine. Maybe not the new "super" Doze stuff necessarily, but I have an almost flat line over the last 3 hours. I haven't noticed it being worse when actively using it (also, if you are on Deb, that could fall into things I really can't look into. I make the Deb builds, but can't support things that are unique to it if that is)
[Nexus 7 (2013) Android Development] Antitype:
Night mode is missing in v0.8.0_pre2 unless I am looking wrong. Could you add it back please?
[Nexus 7 (2013) Android Development] Nevermindthelabel:
Think Google removed it
[Nexus 7 (2013) Android Development] foxdog66:
Having some strange issues with dirty install of pre2. Probably something I'm doing but anyway, is there a way i can check to see if I'm on pre2 as apposed to the pre1 build? Maby the kernel version or build number
[Nexus 7 (2013) Android Development] Ja_som:
As [MENTION=5996385]Nevermindthelabel[/MENTION], Google removed Night Mode from Android 7.1, it is only on Pixels now...
[Nexus 7 (2013) Android Development] drewski_1:
Build date is embedded in the Build Number. What does it say?
[Nexus 7 (2013) Android Development] drewski_1:
Location is working for me. Deb pre-1 :good:
[Nexus 7 (2013) Android Development] Mysterion1:
Try CF.Lumen, the app is great and it let's you set the time when nightmode activates/deactivates + many more settings.
[Nexus 7 (2013) Android Development] Byooxyde:
0.8.0 pre_2 , it is compatible with "app shortcuts"?
[Nexus 7 (2013) Android Development] lexxington35:
Hey,

First off, great job! Using this since the beginning and it works like a charm.

I have a problem with the Google Now Launcher though. I flashed pre2 clean, and installed the nano Gapps. Then i downloaded the GNL but when i want to set it up it does not appear in the Home App selection.

Any other launcher can be installed and appears there (currently Pixel Launcher) except for the GNL.

Somebody has same issues and knowd how to get the GNL to work?
[Nexus 7 (2013) Android Development] Byooxyde:
​

I had the same problem but you install a gapps with GNW included, it work ;)
[Nexus 7 (2013) Android Development] lexxington35:
[MENTION=7813507]Byooxyde[/MENTION] Thanks, that worked!

Now everthing's perfect!
[Nexus 7 (2013) Android Development] Byooxyde:
You have a "App Shortcuts" by pressing at the icons?
[Nexus 7 (2013) Android Development] klaust58:
Yes.
[Nexus 7 (2013) Android Development] Byooxyde:
Ok go to install

---------- Post added at 04:42 PM ---------- Previous post was at 04:06 PM ----------

In 0.8.0pre_2 the bluetooth does not work maybe is my nexus 7

othewise no problems
[Nexus 7 (2013) Android Development] anthi01:
Hi, I'm on AOSP 7.0.0 v 0,6 and I've tried a clean flash of the pre2 with open gapps 7.1 micro. But by flashing the gapps I've got an error."the installer cannot found"

Has anybody an idea?

Gesendet von meinem Nexus 7 mit Tapatalk
[Nexus 7 (2013) Android Development] foxdog66:
Ah OK looks like it did install 20161025.112519
[Nexus 7 (2013) Android Development] nbehary:
Bad News! No v0.8.0_pre2 for deb :(...........

.....Because instead last night I built what I decided would be v0.8 if no major issues were reported by the time I was home from work today, which is now. (and ran the same for Flo before leaving for work). So,

V0.8 (final)

Flo

Deb

As predicted, it is just about 0.8.0_pre2, which is just about 0.7.2 but on 7.1. One addition I threw in last night was the WebView Patch that lets things other than the default AOSP WebView be used. (That may have been in previous builds, but I didn't see anything adding it while I was merging things.)

Let me know what's broke.

Assuming things stay stable, in a "I don't unnecessarily run make clean chasing a bug caused by me being an idiot" way, so everything is mostly built all the time, I will try and post updates for both devices at the same time, or very close, like within an hour of each other until 7.1.1. The first build of that will probably be Flo only for about half a day. (That could happen before too. No promises)
[Nexus 7 (2013) Android Development] nbehary:
Try v0.8 (oneish posts up from this or on the main page.) Just tried a clean flash of that and it works fine.

(also everyone, clean or dirty from 0.7.2 or the pre's should work fine)

Make sure you are actually doing a factory reset. I'm 99.9% sure it is necessary coming from before 0.7.2. (Though it shouldn't cause that I'd think.....other problems)
[Nexus 7 (2013) Android Development] anthi01:
I will try it?

Gesendet von meinem Nexus 7 mit Tapatalk
[Nexus 7 (2013) Android Development] klaust58:
I had a little problem yesterday evening during the setup-process of the pre2. I always choose "restore from previous installation" (or similar) but get a blank screen after setup the wifi-connection. So i go back and choose "set up as a new device" and this works.
[Nexus 7 (2013) Android Development] Byooxyde:
Hi, stock gapps work?
[Nexus 7 (2013) Android Development] lollyjay:
Open GApps link in OP. Use correct one for your ROM.
[Nexus 7 (2013) Android Development] Byooxyde:
Ok but last day, stock gapps not want to installer because storage eror, something that
[Nexus 7 (2013) Android Development] lollyjay:
If you are using v0.8 then use GApps ARM 7.1 micro

If v0.7 then use ARM 7.0 micro

After you flash the ROM, reboot TO RECOVERY (NOT SYSTEM), then flash GApps.
[Nexus 7 (2013) Android Development] Byooxyde:
Thx, I have micro gapps now, i juste wanted to know if other works (mini, full, stock)
[Nexus 7 (2013) Android Development] lollyjay:
No. Only enough room for micro.
[Nexus 7 (2013) Android Development] Byooxyde:
Ok thx
[Nexus 7 (2013) Android Development] harise100:
I did a clean install of 0.8 with 7.1 Gapps.

At first TWRP didn't allow me to install Gapps. Said:' don't have a 7.1 ROM'. :confused:

After a reboot I was able to install them.
[Nexus 7 (2013) Android Development] lollyjay:
Yes I have found that a reboot to recovery before flashing GApps is needed.
[Nexus 7 (2013) Android Development] SergioA:
DEB v0.8 working fine

A great thank you from a DEB user, dirty installation over "pre1" went smootly and all is working fine, including LTE connections.

Grazie mille!!!
[Nexus 7 (2013) Android Development] mikaole:
All fine here. Thx for bringing 7.1 to flo.

Is this pure AOSP or did you change something in build.prop?

Just asking before I try to tweak a bit.
[Nexus 7 (2013) Android Development] bd177:
Dirty flashed v.8.0 flo and now the "Bluetooth Share" keeps force closing. Anybody else?
[Nexus 7 (2013) Android Development] nbehary:
There is this in build.prop. (though it isn't picking up the overrides apparently (which I still don't understand the point of. Should probably figure that out though.)

As far as being pure AOSP more generally, as much as possible. Only android_build and device stuff aren't either just aosp or forked straight off it. (I think. frameworks_base and system_core weren't before 0.8, but are now)
[Nexus 7 (2013) Android Development] Startrek852:
Add

qcom.bluetooth.soc=smd

to build.prop and reboot.
[Nexus 7 (2013) Android Development] nbehary:
I lied. 0.8 is 0.80_pre2 (but still 0.8 final). The WebView thing was in there, but in a overlay in the device tree (which I didn't need to touch) rather than directly in frameworks_base. Not sure why swift put it there, but it doesn't really matter. Me putting in that patch didn't change anything is terms of what comes out of the build.
[Nexus 7 (2013) Android Development] drewski_1:
reduce # of apps with .gapps-config file

n7 only has ~800mb system partition

edit- or use smaller GApps. I like Stock because it replaces AOSP equivalent apps so u can cram more GApps into /system :fingers-crossed:
[Nexus 7 (2013) Android Development] nbehary:
[MENTION=7813507]Byooxyde[/MENTION] To be specific, there is about 78mb of that left after installing micro (10-25) and this ROM. That's not enough for anything larger than Micro. As mentioned you can tweak the config of a larger package (or use the Aroma Installer) to add more or change what you are installing, but you are limited to at most 78mb more. Not even sure it is a good idea to fill that up completely. (you will have issues if the Rom grows later,obviously)

And there is no way that is safe, or maybe even possible for me to fix that to allow more. (not gonna try)
[Nexus 7 (2013) Android Development] Byooxyde:
Me

---------- Post added 27-10-2016 at 12:01 AM ---------- Previous post was 26-10-2016 at 11:57 PM ----------

Okey, i keep micro gapps
[Nexus 7 (2013) Android Development] nbehary:
Since it came up last time, [MENTION=2315302]bd177[/MENTION] and [MENTION=7813507]Byooxyde[/MENTION] (or anyone), here's a flashable zip that does that for you. (This is for 0.8, and this ROM only)

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

I'll add that in next build.

EDIT: Important! That is also for Flo only. If someone needs a deb one, I can make one.
[Nexus 7 (2013) Android Development] bd177:
Added that line to the build.prop but Bluetooth share still fc's on reboot.

Also flashed supplied buildprop.zip and it still fc's. Something else going on.
[Nexus 7 (2013) Android Development] lightningzsoul:
I'm testing out the latest build out which is v8.0, I can't get Google Keep to run it FC's and I can't install Google Play Games from the Playstore. One more thing I've seen the Miscellaneous show up on my battery stats, but more than that I'm very happy with the 7.1 update to flo, keep up the good work you rock!
[Nexus 7 (2013) Android Development] gangrenius:
Flashed .8 with just a system wipe and caches wipe and flashed 7.1 play store gapps with SuperSU zip running great.
[Nexus 7 (2013) Android Development] lightningzsoul:
Here is a screenshot showing Miscellaneous showing up on battery stats
[Nexus 7 (2013) Android Development] gangrenius:
Hmmm. Spyware??
[Nexus 7 (2013) Android Development] nbehary:
Google Keep is weird. I'm not sure what it is doing exactly since it is targeting at least API 23, but nothing in the system treats it like it is using the MM Permission system, so it never asks. You have to manually go to Settings-> Apps -> Google Keep -> Permissions and turn everything on. I need to put that on the main page. The really odd thing is it should be doing that everywhere, but isn't. (It runs fine without permissions granted on my phone.)

What is on the main page is Play Games. You can only install it through Gapps, using some custom way such as editing the config or the Aroma installer since there isn't a package that includes it that will fit, or side loading. (side loading is better)

7.0 introduced all sorts of weird things with battery usage reporting. Most make sense. I haven't seen Misc yet, and that high is odd. I'll see if I can reproduce.
[Nexus 7 (2013) Android Development] lightningzsoul:
Thank you for a very quick reply to the problems I encountered it solved the problems I mentioned, please keep up the good work as always. I do have to wonder though if you could integrate Google Assistant into the OS, plus I do know about the other methods posted on XDA and I'm kinda curious if such method would allow me to use the voice "OK Google" to work because with previous versions of this ROM it didn't work and every time I tried to retrain the voice model in Google app it would FC :fingers-crossed:
[Nexus 7 (2013) Android Development] DorianX:
You just need to change ro.build.type=userdebug to ro.build.type=user in build.prop to fix the miscellaneous battery "drain"

Enviado desde mi Nexus 7 mediante Tapatalk
[Nexus 7 (2013) Android Development] nbehary:
YW, and Thanks.

I won't integrate Google Assistant in the ROM because it involves changing the device name in build.prop and I don't think that should be incorrect. The way I see it, if you are flashing this already, it is easy enough to do what you need to to enable it.

I have only messed with it on my phone and while I don't see the issues you do exactly, Ok Google is buggy all around I've seen reading trying to get it to work. I just use the home long press then mic (which, I'm pretty sure is how they demo'd it at the event earlier this month.) It is crap on my phone since it is slow as hell. I may play with it on the N7 a bit. If I find anything that works with Ok Google I'll report back here.
[Nexus 7 (2013) Android Development] gangrenius:
How do you know that?
[Nexus 7 (2013) Android Development] nbehary:
Yeah, I'm curious too.
[Nexus 7 (2013) Android Development] lightningzsoul:
Awesome and a whole lot of thanks! :svetius:

---------- Post added at 07:34 AM ---------- Previous post was at 07:31 AM ----------

Awesome and a whole lot of thanks! :svetius:
[Nexus 7 (2013) Android Development] atifsh:
was using pre2 with aroma gapps. man i loved this ROM. a pure Nexus like experience. only issue i had was sudden hang \ unresponsive tablet for a minute and restart (not random reboot) else everything's smooth.

---------- Post added at 12:50 PM ---------- Previous post was at 12:47 PM ----------

about Google assistant, i don't see the need, OK Google already doing conversation style work.
[Nexus 7 (2013) Android Development] DorianX:
http://bfy.tw/8PWt

Enviado desde mi Nexus 6P mediante Tapatalk
[Nexus 7 (2013) Android Development] aringler:
hi!

i also want to install N on my nexus 7 now.

But I'm still on android 6.

Do I also have to flash a new bootloader, radio and maybe something else?

if yes where can i get them?

thanks a lot in advance!
[Nexus 7 (2013) Android Development] Byooxyde:
You must uncklock bootloader and install à custom recovery(twrp 3.0.2-0 is the best for me)

---------- Post added at 03:38 PM ---------- Previous post was at 03:02 PM ----------

Hi, in 0.8.0 bluetooth works ?
[Nexus 7 (2013) Android Development] jrk190:
Out of curiosity, does the new 0.8 have the proper system UI colors?
[Nexus 7 (2013) Android Development] atifsh:
without replying to specific posts...

so many posts regarding issues.

people you are doing something wrong because i have zero issues no FC, no hiccup's.

only issue i have is i still get random reboot that comes after a minute of tablet stuck. once today, once yesterday.

my setup

latest 7.1

opengapps 7.1 aroma install.
[Nexus 7 (2013) Android Development] aringler:
thanks for your reply.

But while flashing i get the error message for 2 times and after that there is no OS installed....

E: unkown command [log]

E: unkown command [log]
[Nexus 7 (2013) Android Development] Ja_som:
I'm also one of the lucky. I have no issue, I was on v0.6, wiped system, flashed v0.8, unsu, Gapps 7.1 nano (I also had this on v0.6), SuperSU 2.78 SR1

BT works also...

[MENTION=4916833]aringler[/MENTION] ignore it ;)

Reboot to recovery and install Gapps
[Nexus 7 (2013) Android Development] Byooxyde:
Ignore it, reboot système
[Nexus 7 (2013) Android Development] Badgerino:
I saw those same errors when I flashed it but mine seems to have worked fine.
[Nexus 7 (2013) Android Development] DorianX:
Same here, everything's working without fc's

Enviado desde mi Nexus 7 mediante Tapatalk
[Nexus 7 (2013) Android Development] SergioA:
Same here, reboot and no problems

Inviato dal mio SM-G930F utilizzando Tapatalk
[Nexus 7 (2013) Android Development] anthi01:
Hy,

Is there any possibility to install AdAway?

I've tried the systemless zip from the forum but nothing happened.

Also I can't install Google note. When I check my email sign in the app closed.

The rest is running very smooth?

Gesendet von meinem Nexus 7 mit Tapatalk
[Nexus 7 (2013) Android Development] aringler:
try this here:

http://xdaforums.com/nexus-5x/general/adaway-android-n-100-t3406512
[Nexus 7 (2013) Android Development] siqwell:
in my N7 all servises has stoped, what can i do?
[Nexus 7 (2013) Android Development] anthi01:
Thx AdAway is installed now?

Gesendet von meinem Nexus 7 mit Tapatalk
[Nexus 7 (2013) Android Development] nbehary:
Yeah, except at least what I looked at was 6.0, and I thought it had been properly re-named to "Overcounted" or something like that, since it is on my phone, and Misc was something new again.

The other issue is that isn't a "fix", it just hides that and it is actually useful information. (maybe, it seems to be wrong in its counts, maybe)
[Nexus 7 (2013) Android Development] DorianX:
What I can tell is that on stock firmware that entry is always set to "user" not to "userdebug" don't know why your build have that entry set to "userdebug" maybe to enable some "hidden settings"? On 6.0+ enables multiwindow mode but shows the "miscellaneous drain"

Anyway I not a dev I just google that some time ago... And thanks for keep alive our beloved Nexus 7 ?

Enviado desde mi Nexus 7 mediante Tapatalk
[Nexus 7 (2013) Android Development] ryanexec:
MultiROM kexec-hardboot kernel patch

Annoying question: would there be any chance of merging the kexec-hardboot patch to this AOSP Nougat kernel, or offering an optional patched kernel on the side, for MultiROM support, without having to go offtrack with some other custom-patched kernel?