yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] joeboy00701:
I ve experienced these problems as well in the last days. Sometimes right after forced reboot by starting an app. I was hoping someone would have a solution in this forum. I ve tried also to logcat to see what causes this freezes. But unfortunately I couldn't catch the incident of freezing when having logcat running on pc.

My Grouper did become also so slow, that I'm not sure is it still running or already frozen.

I've downgraded to April​ release just now. But I don't know if it's the release itself or the not trimmed ext4 filesystem
[Nexus 7 Android Development] shaggyskunk:
I believe that what most people are doing is this: Boot into TWRP Recovery 3.1.1-0 - Factory Reset - Advanced in TWRP - Manually Wipe System - Data and Caches - Flash Rom and REBOOT - Boot back into TWRP and Flash Open Gapps 7.1 Pico - Flash SuperSU - Reboot and Setup.

This method works for me for a couple of months now ;)
[Nexus 7 Android Development] asmodeoux_RU:
I've been facing the same for a long time

The problem is that old N7 doesn't like deep sleep at all, and turns off every time it tries to sleep

You can download an app called "Wake Lock" with a lightning bulb on icon and select an option of "partitial wake"

After that tablet will lose it's charging faster, but won't die every 5 minutes ^^
[Nexus 7 Android Development] joeboy00701:
I'm afraid it's not the deep sleep. The tablets hangs/freezing even when I'm using it

But now I've problems with the pico gapps. After putting my credentials into the wizard. The wizard closes and didn't save the credentials
[Nexus 7 Android Development] asmodeoux_RU:
Ouch, that is much worse than I thought

I currently cant setup gapps as idk why but tab doesn't wish to connect to my WiFi
[Nexus 7 Android Development] AndDiSa:
[MENTION=7075350]joeboy00701[/MENTION] [MENTION=8298790]asmodeoux_RU[/MENTION] can you explain how you installed the ROM, what kind of application you have installed / you are using, how you probably restored your applications? It looks to me as if there something went wrong during installation / the setup. Please keep in mind, too, that trimming storage has a huge performance impact on Grouper / Tilapia devices. If storage isn't trimmed and/or there is too few space available the device blocks easily during write operations ...
[Nexus 7 Android Development] asmodeoux_RU:
I see the automatic reboot every time it tries to sleep since I installed stock lollipop update

But wakelock fixes it, so np in this, but I currently can't connect to wifi

Aiplane mode or reboot didn't succeed, so I'll try to reinstall the ROM today
[Nexus 7 Android Development] AndDiSa:
I guess you have a hardware problem ...
[Nexus 7 Android Development] asmodeoux_RU:
With deep sleep u mean? Maybe, because I bought this tablet at start of shipping and found it in winter 2017

So it wasn't used for several years and just spent a lot of time in cold place, heh

If you are about wifi - I don't think so, it has been working on previous ROM (Lineage)

UPD: it doesn't connect to wifi with password, i had to disable pw and make wifi hidden, but it works
[Nexus 7 Android Development] joeboy00701:
My Grouper was working fine since January with this ROM (not rooted). But in the last weeks it became laggy. I had problems to root with SuperSU so I installed su addon from lineageos. But the trimmer app didn't work properly. Yesterday I did a dirty downgrade to an older release of this ROM and the pico gapps. But with the same behaviour that the tablet randomly freezes. And now I've installed SuperSU systemless. At first I can trimm with Twrp "fstrim /data", right?
[Nexus 7 Android Development] asmodeoux_RU:
After 2 days of using it I can say that its probably the most stable ROM i ever used on N7. I noticed only one FC during trying to open Downloads app, and currently it works ideal for 5-year device. Thank you for the ROM!
[Nexus 7 Android Development] AndDiSa:
[MENTION=7075350]joeboy00701[/MENTION] you must not mix up components of different ROMs. That will lead to unexpected bahaviour and nobody is able to help you further. To install SuperSU systemless(!) (which is very important) please read post #2 of this thread.
[Nexus 7 Android Development] n3kf:
Not really ROM related. I have been using this wonderful ROM for quite a while. Just recently the battery will not charge when the device is on. It shows it's charging, but it slowly loses power. If I turn it off, it charges OK, but takes very long. Have tried multiple charges, cables, etc with the same result. Is my battery finally failing or could this be the USB charging port? Any way to determine?

Thanks. AndDisa if inappropriate let me know and I'll delete.
[Nexus 7 Android Development] AndDiSa:
[MENTION=6824216]n3kf[/MENTION] I have issues with charging, too. Not as massive as you probably, because I do not need to switch off the sevice to charge it. I am using 3C battery monitor to check the charging current. Sometimes I have to plug / unplug several times until the device is really charging. Charging current is also not very stable. It depends much on charger / cable / ...

I am not sure, but I have the impresssion that since I merged the patch from Timur regarding OTA-charging it became worse. Probably I should try revert the patch and do some tests.
[Nexus 7 Android Development] n3kf:
Thanks for the idea of 3C battery monitor AndDisa. When I plug in the chargers it still shows a drain even though it shows it is connected to AC and charging. The USB port has been loose, but still worked. Looks like a simple job and it's cheap, so I'll replace the port.
[Nexus 7 Android Development] aolins:
Hi, for me it works fine if Zram is somewhere between 120 to 240 Mb. But I suppose it depends much on how you use your tablet. Currently Zram on my tablet is set to 120 Mb.

And, yes, for me it made quite a difference when I flashed the Parrotmod, regardless of the fact that most of the optimizations are already included in the ROM itself. You can try it yourself. I just flashed through recovery the old (latest, by the way) universal with no issues.
[Nexus 7 Android Development] shaggyskunk:
It could be a hardware issue as you mentioned or the battery... mine is the original battery and it seems to charge "normally"...

Charging rate is 1% at 4 minutes & 26 seconds - I would have uploaded the screen shot...But...
[Nexus 7 Android Development] n3kf:
Decided to replace USB port. 90% sure that is the problem.
[Nexus 7 Android Development] shaggyskunk:
Yeah that could well be the problem - Non Removable batteries are also a potential issue - either a technologically adept user or a Service center to replace the battery... If it's even worth it...?
[Nexus 7 Android Development] aaopt:
Almost anyone who can handle replacing the USB port can probably also handle the battery.
[Nexus 7 Android Development] AndDiSa:
Probably there is not even the need to change the USB port. Today I've only removed the screws of the USB-connector, controlled the connector and re-fixed it. Now the charging rate has just doubled, I.e.800-950 mA on a 1A charger ...
[Nexus 7 Android Development] tajga:
Not charging , battery empty... what now?

After installing 7.1.2 Tilapia OTA-Package (Build 20170507) (md5: a3e3ce27ad997e91d8785e3446ec1182), Gapps for 7.1.x (I used Mini_Dynamic_GApps-7.1.x-20170415.zip) and SuperUser v2.79SR3 ...my Nexus 7 (GSM, 2012 version) stopped charging and soon after drained the battery out.

What can I do now?
[Nexus 7 Android Development] AndDiSa:
[MENTION=2473502]tajga[/MENTION] power down the tablet put it on a charger and let it charge ...?

If this doesn't help, have a look at my blog where I explained how I revived my tablet from that situation.
[Nexus 7 Android Development] tajga:
Before it went out, I wasn't able to get it charging (when the battery was still at 10%), no matter what I've tried (changing several USB cables/power adapters, changing USB port setting from charging to MTM, audio... and back).

This started after the ROM was uploaded, I just noticed it when only 10% was left. Also, the "charging battery" icon is non-existent, despite trying several suggested ways to get it charging again. Is this most likely a software issue (mentioned ROM) or something hardware-related (USB port giving in or battery - cable plug was also checked - it's firmly plugged in)?
[Nexus 7 Android Development] AndDiSa:
[MENTION=2473502]tajga[/MENTION] if the tablet does not even charge when switched off, then there are two possibilities:

1) the charger /cable / USB port is damaged resp. do not provide enough power

2) the battery is in a kind of 'hibernation' state which unfortunately happens quite often for our device. In that case unplugging the battery can help. To get it charging again unplug the battery and replug it. Try to boot into bootloader mode and from there power off the device immediately. Now the battery is in the right state again and can be charged while the device is powered off. At the beginning you'll see the charging, too, later on the screen is switched off.
[Nexus 7 Android Development] slybunda:
how is this rom for general use? my son uses the nexus 7 now for youtube and few games but it does lag a lot on the stock android 5.1
[Nexus 7 Android Development] br3wski3:
Honestly, my experience is excellent. Of course, it will vary by use case. Lollipop stock was not a great experience for me so, I am extremely grateful for this work that brings new, and current, life to this aging tablet!
[Nexus 7 Android Development] Ahkah:
Anything is better than the original Android 5, which is a real pain.

You should either install this OS, which seems to be quite stable and sufficiently fast, or alternatively an older original Android 4.x. At least from 4.1 I can tell that it feels noticibly faster than any other OS I tried, even the boot time is extremely short. On the other hand these old OSes might lack some features and have lots of security vulnerabilities.
[Nexus 7 Android Development] slybunda:
yea lollipop is lagging badly i got to use the file system trimmer app manually all the time and it helps some but still not great.

is it worth using a marshmallow rom or should i just switch over to this nougat one?
[Nexus 7 Android Development] Ahkah:
Beanstalk 6 combined with ParrotMod runs quite nicely, but I think you should directly go to this one. It's not only newer, but you also do not have to install ParrotMod. On the other hand it's somewhat spartanic compared to Lineage or Cyanogen or other "custom ROMs"
[Nexus 7 Android Development] slybunda:
how does this rom look like? is it stock android? i prefer the stock android nexus style of roms.
[Nexus 7 Android Development] AndDiSa:
June security patched version uploaded

I just uploaded the new version with the June security patches applied to. Links for downloading them are provided in the OP.

I know, some people will kill me now for an additional change I've made in htis release ... ;)

I was not very happy with the battery consumption of the ROM, especially when using the device the battery usage was quite high. Due to that I looked for alternatives and I think I've found a good compromise: The default governor is set to 'intelliactive' now. In my tests I had quite a good experience with it. The overall performance probably decreases a bit in respect to interactive, but power consumption is reduced quite a bit. Please share your experiences.

[MENTION=2556761]slybunda[/MENTION] it's completely stock
[Nexus 7 Android Development] ufa:
Thank you
[Nexus 7 Android Development] aaopt:
I see you also updated charging code. Have you noticed a difference in that area?
[Nexus 7 Android Development] aolins:
Hi [MENTION=2188693]AndDiSa[/MENTION], in the opening post I see a link to the latest OTA just for the grouper device. Have you created the package with June security patches for Tilapia​, too? If so, where from the one can be downloaded?
[Nexus 7 Android Development] AndDiSa:
[MENTION=5773494]aolins[/MENTION] the tilapia build is linked there, too, Tilapia build

... I didn't put the link in the download section but only in the installation instruction part, sorry.
[Nexus 7 Android Development] AndDiSa:
[MENTION=3729448]aaopt[/MENTION] no, I didn't see any changes due to the new patches. I saw them when I compared my code with some old code from metallice or foux but I didn't notice any difference in charging. As I wrote some posts ago, I noticed a difference when I re-fixed my USB-port, but charging rate is still < 1000mA/h ... more in the average of 650-750mA/h
[Nexus 7 Android Development] oldman_58:
You are the best... Thanks for all you do.
[Nexus 7 Android Development] Charles IV:
As to the slow charging issue, I got this when I was still on stock 4.4 (even though 5 was released).

I found taking out the io cable by the usb port, giving it a blow and plugging it back in worked ... For a while.

Some people said the dock worked, so I cut open a cable and held it against the metal things at the side. Of course I couldn't stay there and use the tablet, but ampere recorded up to 1200mA, of course it wasn't always up there, but it only dropped below 700mA occasionally (if I remember correctly).

One thing that definitely worked was undervolting with m kernel, which is why I tried porting it (but for some reason uv doesn't work)

Finally I bought a 0.5m 20awg cable of juiceblidz from Amazon (cheaper from juiceblidz :'( ). Similar story to the dock, and I think it was charging in about two hours, but I honestly don't use it enough to see if it still does.

I will try the usb port thing [MENTION=2188693]AndDiSa[/MENTION] did.

I'm posting on my phone, and this looks very long, but here are my experiences.
[Nexus 7 Android Development] n3kf:
Got the headphone/USB assembly off eBay. It's an ASUS part. $3.50 including shipping. Did the deed today. Tedious (especially for old guy eyes!,), But took all of 15 minutes. More then likely with small long nosed plyers I could have tightened the port back up, but for $3.50 why? Charging normal again.
[Nexus 7 Android Development] aaopt:
I ordered a couple USB ports without speakers a few months ago but didn't try to put them in yet. Two for about that price. Good to know about this though because one of the tablets my kids use has the speakers not working.
[Nexus 7 Android Development] AndDiSa:
Regarding the charging issue: today I used a new USB cable in combination with the original charger from ASUS and for the first time after a long time charging rate was higher than 1000mA/h ...

Still not the maximum we could get but in my opinion this proves the observations from [MENTION=591147]Entropy512[/MENTION] : the AICL is very sensitive in respect to charger / cable combinations and it's a kind of lottery to get the optimal one.
[Nexus 7 Android Development] akashkyh:
I installed the ROM with the latest Gapps BeansGapps-Mini-7.1.x-20170610.zip embedded with the latest June patches

Works flawlessly
[Nexus 7 Android Development] slybunda:
thanks for the replies. im going to install this rom now.
[Nexus 7 Android Development] kepaware:
Same here. Only charge when shutdown teblet.
[Nexus 7 Android Development] slybunda:
I don't see a 7.1.2_r16 for the wifi only version which is Grouper. only older version showing?
[Nexus 7 Android Development] Charles IV:
what cable did you get?
[Nexus 7 Android Development] adstraylight:
After a long series of trial and error type experiments, I found the only way of charging reliably was via an original Asus dock. Quite expensive if you can find one (I've had mine for about three years now, and it was a rare thing then), but worth it in the long run.

I charge at a rate of at least 30% per hour with the screen off, using the original cable/charger feeeding the dock.

I have a feeling that Asus knew about this potential issue at the time of release, and this is why they included such a short cable, as a shorter cable causes a smaller drop in voltage from the charger.
[Nexus 7 Android Development] AndDiSa:
[MENTION=2556761]slybunda[/MENTION] download links are corrected now
[Nexus 7 Android Development] AndDiSa:
[MENTION=7211583]Charles IV[/MENTION] I've got an USB cable from an older Lenovo tablet device which I found in my bin ... it has a ferrite bead to prevent interferences. I never thought that this might help in increasing the charging rate.
[Nexus 7 Android Development] Charles IV:
[MENTION=2188693]AndDiSa[/MENTION] although it's not a fix, just a workaround, undervolting the cpu worked for me, back on stock 5.1.

I applied the patch you sent me to the ads-7.1.0-mod branch on my kernel tree, yet undervolt is the only thing that doesn't work, oc and touchdemand work fine.

I think something in the device tree is blocking it, and on the cm-14.1-mod branch on my device tree, i modified the init.grouper.rc file to use the touchdemand governer by default, due to the kernel having it as default not working, yet i can't find anything to allow uv.

I'm syncing your aosp build with my kernel, because it should work, and I'm going to see if i have the same issues, and if it's a problem with kernel source, or indeed the device tree.
[Nexus 7 Android Development] aaopt:
Other charging-related threads here pointed me at Monoprice gold-plated cables which have a slightly larger plug and also happen to have a ferrite core. Pretty cheap when ordered directly from Monoprice; a bit more on Amazon. At least one of the N7's in custody of my kids won't charge with anything else.
[Nexus 7 Android Development] slybunda:
ok so whats the verdict with this rom? I don't want to install it if it stops my device from charging.?
[Nexus 7 Android Development] AndDiSa:
[MENTION=2556761]slybunda[/MENTION] the charging issues discussed here are not related to the ROM itself but related to the hardware of the Nexus 7 and the very sensible AICL of the smb347 chip used to controll the charging. First threads discussing the "slow charging" issue go back to 2012/2013 just a few month after the device was released.

For those are interested in the technical details: Deciphering the Nexus 7 Automatic Input Current Limit (for chargers)
[Nexus 7 Android Development] Charles IV:
It's unlikely that this rom alone will stop your device from charging, I don't think it could be caused by this rom.

If your device does start charging slowly, try a few of the many suggestions posted.

edit: whoops! sorry, was on my phone, and it took me a while to type, so i didn't see anddisa's post
[Nexus 7 Android Development] n3kf:
I've decided to put a QI charger receiver in my device to save the new USB port. I've seen where people have successfully done it. I may have to remove or put the receiver where there is not any shielding. The easy way is to just hook it up to the POGO pins internally. So it will think it's docked when charging but I don't care. It does require soldering skills. I'll post my results back and take a few pictures so if it works, others can see what I did.
[Nexus 7 Android Development] slybunda:
whats the best way to install this rom? im on stock lollipop rom but I am rooted.
[Nexus 7 Android Development] dalanik:
Hello guys, just flashed this ROM (Needed Nougat for Google Assistant) and everything is OK but I can't get front cam to work? Is it supposed to work? And any clues how to get it to work? Thanx!
[Nexus 7 Android Development] AndDiSa:
[MENTION=1665438]dalanik[/MENTION] the cam is working and cou can use it e.g. for Hangouts. If you need a camera app, you need to install a camera app, (e.g. a better camera) from play store, the build in camera does not work because it relays on a newer api which is not supported by the old Nexus 7 camera drivers.
[Nexus 7 Android Development] dalanik:
I already figured out it kinda works but is unable to run camera ith standard camera apps (NExus 7 cam apps on Play store). I don't need it to be displayed, I use camera motion detector app to turn the screen on when camera detects motion/change, it is enough for me.

Thanx for your reply!
[Nexus 7 Android Development] slybunda:
how is this rom for ram memory management compared to stock lollipop?
[Nexus 7 Android Development] DrCheesecake:
Hello. Been trying to build this excellent ROM at home for my tilapia. I've re-sync the repos for 7.1.2_r16 and applied the patches. Now the build process crashes towards the end. I've looked at the command that fails but I'm not sure how to diagnose (log attached). Wrong linux (Ubuntu 16.04 LTS [within VirtualBox])? Not enough RAM (8GB)? Any suggestions welcome. Many thanks.
[Nexus 7 Android Development] AndDiSa:
[MENTION=8033133]DrCheesecake[/MENTION] That's quite easy ...;)

The Tilapia-build is based on the nAOSP-device tree from [MENTION=6754437]millosr[/MENTION] Unfortunately there are overlay definitions in there which do not exist in AOSP and those are the errors you are seeing on your build. It shoulb be sufficent to delete those entries and the build will succeed. I've done this, too, but as I do not want to maintain a tilapia device tree (I don't have a tilapia device available) I've not commited these changes to the github repository.
[Nexus 7 Android Development] Charles IV:
ahh, forgot about the patches, is could that why my build (for grouper) didn't work?

Sorry, i ahven't given any info, but is it likely that not applying the patched will result in a build error
[Nexus 7 Android Development] AndDiSa:
[MENTION=3530008]ufa[/MENTION] did you grant all the needed permissions to the twitter app? Looks to me as a permission issue ...
[Nexus 7 Android Development] ufa:
It should ask for permissions, doesn't it?

I did storage and account permissins, but it does not start
[Nexus 7 Android Development] AndDiSa:
Not sure ... You can go to apps/permissions and check what permissions are not granted to the twitter app.
[Nexus 7 Android Development] ufa:
A lot of permissions aren't granted. It was working that way before the latest upgrade.

---------- Post added at 10:14 PM ---------- Previous post was at 10:02 PM ----------

Fixed. Reinstalled the app to resolve permissions hell:

https://github.com/microg/android_packages_apps_UnifiedNlp/issues/87
[Nexus 7 Android Development] indexftw:
There's an issue with gifv format in browser and apps. It loads a couple of frames per video so it looks more like a bad slideshow that only shows the first slide.

Edit: Thought sd maid clean up fixed it but only a portion of gifv are playable anything with higher bitrate is unplayable, you can skip through every second but it never plays smoothly.
[Nexus 7 Android Development] pehlm:
Hi @AndDiSa, I've now installed the 0608 OTA, it's good as always. Thanks very much! :)

I'm curious about if you have had time to look at if it's possible to backport the namespace mount thing into 3.1 kernel, for the Magisk hide support? Is it possible whatsovever or do you think it's too much work for an old device from 2012?
[Nexus 7 Android Development] AndDiSa:
[MENTION=7682126]pehlm[/MENTION] I did some investigations but there are several parts of the kernel which changed ... even between 3.1 and 3.4 (for which I've found a set of patches). I am not sure whether it's worth to investigate so many time into it especially as we have a working 3.4 kernel from [MENTION=2633638]Ziyan[/MENTION]

Probably integrating the patches into that kernel would be much easier than back-porting it to 3.1 ... :(
[Nexus 7 Android Development] pehlm:
So you mean that we can use the 3.4 kernel by @Ziyan on your ROM for Grouper? In that case it would be great. It would be cool to have Magisk hide working on Nexus 7, especially as @topjohnwu is working hard to get v.13 of Magisk out. :D
[Nexus 7 Android Development] fidoedidoe:
Apologies in advance if this is the wrong thread for this question..but is there a recognised / endorsed approach to use the 3.4 kernel from [MENTION=2633638]Ziyan[/MENTION] with this rom (for example should I modify this roms .zip, inserting the 3.4 kernel into it, before installing; or extract the kernel and create my own zip to flash just kernel after flashing rom)..I've flashed kernels before on other devices .. but only when they had their own flashable zip. So this will be new to me. Thanks!