yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] guitarn00b:
screenbrightness ui to minimum triggers persistent offline

nexus 7 booting showing time and unlock screen then going black immediately

1)

twrp

trimmed /system

>200meg freed

rebooted

*problem remains

2)

twrp

wiped art/dalvik, cache

rebooted

*problem remains

3)

twrp

wiped art/dalvik, cache, data

terminal >sync

reboot, system

*apparent fix, boots into new system setup

***Initial configuration and Prior activities

the nexus7 grouper started with;

twrp-3.3.1-0-grouper.img

everything was wiped, data and cache were set to f2fs

then sidedloaded using twrp with;

aosp_grouper-7.1.2-ota-20200508.eng.ds.zip

open_gapps-arm-7.1-pico-20200529.zip

new system setup went ok, although stability was not perfect and occasionally the system setup app needed to restart.

as there is a corner screen crack i use a OTG-cable and mouse, alternated with charging cable (i dont have a charging usb hub currently)

wifi logs in.

setup completes with a successful google account creation and signin

google play store logs in and installs Google Docs

Google Docs opens and runs correctly, browses my online docs

try installing more apps from google play store

vlc, google drive, chromium browser...

while these are installing i dim the screen, to leave the nexus7 unattended.

just before the *BUG* happened it was working fine

then i turned the screen brightness to its lowest.

as i slid it towards the left, lowest,

it dimmed and then suddenly went black

i assumed it had crashed, although may

have just have gone dark

** Ive just successfully redone the new setup, after wiping art/dalvik, cache, and data

about to attempt recreation of bug !

time 12:22pm 30/5/2020

brightness goes up and down within the interior of the range

NING

as soon as i go to the very left it goes DARK

bug reproduced !!!

reboot and it comes up with google logo, then android logo, then apparently boots displays the time and unlock screen, and then immediately goes BLACK

sometimes just goes BLACK

adb shows the device is offline through the boot process

~~~~~~~~

ive found that if you choose, 'skip for now' during setup this avoids the bug. later you can connect to wifi, add a google account in settings, and then playstore works. this was, sliding the screen brightness to the very left does not cause the device to go offline and from then on to boot up and immediately go offline. (never come online as i could tell with adb)
[Nexus 7 Android Development] sdmc303:
Thank You

Hi all - just wondering.. There are 426 pages to this thread over years of work.

Is there a current clear findable set of instructions that one can view easily to make this work?

I see many posts on what did and didn't work etc.. The original OP has done an amazing job by the looks of it.

Just wondering if - here on this last page - someone could link to or post the up to date current set of instructions for rooting the 2012 Nexus 7 Wi-Fi version. That would be greatly appreciated! Thank you!!

..also is it possible to instal a different ROM like Viper etc? To have a deeper experience and help it last even longer?

:good:
[Nexus 7 Android Development] Jeffdaddy:
I just installed it on my nexus this week and it works great, post # 1 is updated with newest instructions with links to software. I had a few hiccups from not really paying attention but it works
[Nexus 7 Android Development] sdmc303:
Thank you for clarifying that. I'll head back to #1 and start attempting it. Cheers:good:
[Nexus 7 Android Development] reganEZ:
Hello, I can't believe I am still using this device after all these years. Thanks to all the developers keeping this alive.

A quick question, is it possible to run this rom without gapps? If yes how do I do it? Do I need to flash microG or sone other alternatives? I don't mind not having gplay in this device as I use it to read ebooks and some utube music streaming.

Any help is appreciated. Thanks in advance
[Nexus 7 Android Development] TureX:
HI! If you don't care about gapps, you can install microg (patcher and microg package)
[Nexus 7 Android Development] reganEZ:
Thank u for the reply.

Do I install microG from twrp?

As in install the rom then flash microG?

What if I don't want Google services at all? Newpioe instead of utube and sideload some apps for reading books. Is it possible to just flash the rom and maybe magisk?

Thank u for your help.
[Nexus 7 Android Development] TureX:
Yes flash like a rom. If you want you can just install magisk and download or sideload the apks that you prefer.
[Nexus 7 Android Development] reganEZ:
Thank u very much for your assistance.

Have a great day
[Nexus 7 Android Development] HTCDreamOn:
If you want to install Newpipe I'd also recommend installing the F-Droid app, sort of like an open source 'appstore'. Then it will automatically update Newpipe to the latest version instead of you having to check for a new apk to sideload every time.
[Nexus 7 Android Development] SGH-i200:
Instead of manually sideloading of PlayStore apps not provided via F-Droid I use this: https://f-droid.org/de/packages/com.aurora.store/

"Aurora Store is an alternate to Google's Play Store, with an elegant design, using Aurora you can download apps, update existing apps, search for apps, get details about in-app trackers, spoof your location and much more."
[Nexus 7 Android Development] spudje:
Wanting to revive my Nexus 7 as a Home Assistant display and google assistant and this ROM seems suitable for that..

Unfortunately I can't get Google Assistant to work. I can't enable Voice Match, it's greyed out. And also permissions of Google Assistant are greyed out, so I can't check whether it has access to the mic.

What am I missing?

Ok so I apparently have make the Google search app a system app. However this requires at least 180 mb in /system which there isn't. What can I remove? I already removed some apps and ringtones. But still not enough space.

In the end I succeeded using an older and smaller version of the Google search app. That made it work also when updating with a newer version outside /system.
[Nexus 7 Android Development] AndDiSa:
Hi guys, I need to dissapoint those of you who are waiting for a new version with the June 2020 security fixes: there won't be a new version this month ... on the other side all aplicable patches which were e.g. added to LineageOS this month are already included in the May release :)
[Nexus 7 Android Development] rockuman_ex:
my grouper can't be detected when plugged in to my pc anymore.

Any idea?

---------- Post added at 09:01 AM ---------- Previous post was at 09:00 AM ----------

my grouper can't be detected when plugged in to my pc anymore.

Any idea?
[Nexus 7 Android Development] TureX:
HI! Are you able to go to recovery? Have you unlocked bootloader? Did you tried on another pc/cable/USB port?
[Nexus 7 Android Development] :
Hey, no worries. Our aging device is more up to date then most other devices out there, thanks to you sir. I don't think a month is going to hurt! :)
[Nexus 7 Android Development] BunkerBert:
hey! ty for this rom! how can i fix the safetynet status?
[Nexus 7 Android Development] mrkela:
flash this magisk module

https://xdaforums.com/apps/magisk/module-magiskhide-props-config-t3789228
[Nexus 7 Android Development] fsw_informatrix:
On my grouper, I have this ROM + OpenGapps Pico installed and I simply rooted it with Magisk a long time ago. SafetyNet is working here, without the need of any extra modules or whatsoever, as you can see on the joined pictures...

So it seems that something is not right if you fail the test, perhaps it would be better for you to erase everything manually in TWRP and start over nice, fresh and clean ?
[Nexus 7 Android Development] :
re SafetryNet, if it's not passing then try toggling the 'Magisk Hide' option in settings.
[Nexus 7 Android Development] fsw_informatrix:
I think you're right, there's indeed something toggled in Google Play Services that I absolutely forgot :-O [MENTION=2652923]BunkerBert[/MENTION]: forget what I said before and try that first!
[Nexus 7 Android Development] TimeWalker75a:
Is there any way to get offline charging working with this ROM?
[Nexus 7 Android Development] mikeataol:
You mean wireless charging? Inductive charging?
[Nexus 7 Android Development] TimeWalker75a:
Nah, ignore me, I'm a big numpty. Kept plugging the tablet to the computer and it wouldn't show up with the charging indicator when it's switched off but instead turned itself on. Plugged it to charge via a wall wart and it came up as I'm used to seeing with the lightning bolt followed by the jumping battery level.
[Nexus 7 Android Development] CamoGeko:
Just FYI it will charge fine when turned on as well. ;)

Sent from my PH-1 using Thebear Blue XDA Labs
[Nexus 7 Android Development] k ahangar:
Hi guys

Hi [MENTION=2188693]AndDiSa[/MENTION]

What is the fastest and smoothest version for tilapia?

Does installing security patches slow down?

my tilapia is on August 2018 Android security and My use is multimedia and car navigation and the speed of the device is important to me. Do I need an update???

Tnks
[Nexus 7 Android Development] Flounderist:
I finally replaced my LCD screen but it doesn't turn on :crying:

I can hear system sounds from speaker but screen is dark.

Weird enough, even the old cracked screen doesn't turn on if I swap for a double check.

I checked the short LCD cable and it looks fine. The twin ribbons linked to the motherboard are in place as well.

Do you have any hint by chance?
[Nexus 7 Android Development] MacLeod100:
Any screenshot about how you configuration ?
[Nexus 7 Android Development] AndDiSa:
I've just updated the OP with the links to the latest TWRP recovery (3.4.0-0) for Grouper and Tilapia. Thank you for the hint [MENTION=5128593]dark0shark[/MENTION] !
[Nexus 7 Android Development] fsw_informatrix:
Go back 7 posts before yours and you will find a screenshot of mine ;)
[Nexus 7 Android Development] MacLeod100:
? Thanks but if you read better I was talking about settings not the result like in your screen shots ;)
[Nexus 7 Android Development] fsw_informatrix:
I've made 2 posts the 18th of June, the first indeed with results of SafetyNet (2 screenshots) and the second one with my MagiskHide settings for Google Play Services, that was the one I was talking about... I even counted the number of posts for you, so I think that you are the one that need to read better, not me ;)
[Nexus 7 Android Development] MacLeod100:
Well i see that too but is not working
[Nexus 7 Android Development] fsw_informatrix:
Then I'm sorry for you, as I can't see how I can help you more that what is already in my two posts. Perhaps you should follow my advice in the first one...
[Nexus 7 Android Development] MacLeod100:
Don't be ! I just read on xda an article about changes in safety net and for now is no solution Untill the devs find a workaround
[Nexus 7 Android Development] fsw_informatrix:
Thank you for the tip :good: I've just read it and made the hardware activation test from Displax (Magisk General Support thread / post #40370) = the value ils still "BASIC" on my device :) you should do it too... If you see "BASIC, HARDWARE_BACKED", that will be indeed the reason why it doesn't work for you...
[Nexus 7 Android Development] Ahkah:
In fact I think it loses USB connection, i.e. the connection will not be loose, but, however, I have lots of experiences regarding USB OTG memory:

1. With some previous ROM version from 2018 I did not manage to get the OTG adapter work, i.e. the USB stick was not detected.

2. After having updated my Nexus 7 device to the March 2020 version, OTG works. Thanks to the developer!

3. My devices running Android 6, 7 or 8.1 usually detect USB sticks, but programs need the SAF mechanism to access them. See below.

4. My devices running Android 9 "mounted" the sticks, i.e. they are treated like SD cards.

5. I do not have any device running Android 10, but Google documents state that USB stick handling was improved from 9.

So what about "mount" and "SAF"?

"Mount" means that your files are visible through the "normal" file system, usually "/storage/emulated/0" for internal memory and "/storage/abcd-defg" or similar for SD card or USB OTG memory. Android's media scanner handles these devices, and all dumb straightforward Android player applications find and play the music. Same with pictures and movies. My investigations showed that one needs Android 9 or later.

"SAF" means that any application that is able to handle Google's strange and proprietary "Storage Access Framework" can handle the files, or partially handle, because SAF is ... somewhat ... ähhh ... imperfect. There are some really good file manager applications with SAF support, otherwise you need Android's built-in, very basic file manager (accessible through the "Settings" application).

Of course it's possible to play music from SAF storage (which also can be some server share, via SMB or SFTP or similar), but the application must be able to handle it. The only application I know of (but here might be more) is that one I wrote. It's available in F-Droid and Play Store, but it's still very basic (under development). If Google's search works, just try searching for "music player with SAF support". You should then find any (not only mine) application that can handle this.

PS: I remember that I once tested various USB sticks with my Nexus 5, and some did not work while others did. Maybe the not working ones draw too much energy from the USB port (so called vampire sticks).
[Nexus 7 Android Development] xdadevboss:
WiFi?

I want to thank AndDiSa for maintaining a smooth, functional, workable ROM for such an old device even in 2020. God bless you!

I just have one query- Is the WiFi drop issue solved yet in the latest build (20200508)? I searched the thread but couldn't find anything recent about it.

Thanks so much!
[Nexus 7 Android Development] fxsheep:
After flashing this rom on grouper, the battery doesn't charge anymore. Neither in Android, nor in offline charge! In offline charge mode after short pressing the power button, bootloader should display a charging animation, but the device just boots.

Rebooting to TWRP and charging will work, as well as offline charging mode.

Booting into the rom broke it again.

I guess some later changes by google in kernel caused this, as kitkat roms never has this problem.
[Nexus 7 Android Development] HTCDreamOn:
I think this has been covered 1 page back and AnDiSa has explained it too. Maybe try these suggestions. The N7 is very picky about charging.
[Nexus 7 Android Development] rockuman_ex:
I'm trying to transfer files into my pc, but it won't detect the tablet, help?
[Nexus 7 Android Development] Flounderist:
Try while in recovery mode.
[Nexus 7 Android Development] CamoGeko:
Check device manager and make sure your drivers are installed properly.
[Nexus 7 Android Development] js-xda:
It isn't detected at all or not as drive? In the latter case, set your USB connection settings to data/file transfer (not only charging or similar) on the tablet.

For troubleshooting: Is the tablet charged when connected via USB cable? This should be the case for any software related issue. If not charging, it might be due to a hardware issue.
[Nexus 7 Android Development] Jeffdaddy:
I have the same issue, I have to go into recovery mode to be able to add movie to watch on my nexus. It'll show up in "this pc" as a drive
[Nexus 7 Android Development] js-xda:
While running system, does it show up on your PC as device or not at all? See my previous post.
[Nexus 7 Android Development] Jeffdaddy:
It doesn't show when the system is running, even eith usb debugging turned on
[Nexus 7 Android Development] js-xda:
Is it also not showing up as device (e. g. unknown device?) in the device manager? I assume you refer to Windows Explorer ("This PC") so far, right?
[Nexus 7 Android Development] Jeffdaddy:
Correct, I get zero recognition of the nexus on my windows 10 system when its NOT in recovery mode
[Nexus 7 Android Development] 117micc:
First time with a nexus 7 tablet here, found it online for $25 looks brand new! Anyways, I unlocked the bootloader and installed twrp, and this Rom with gapps flawlessly. After set up I installed magical, updated everything and hid root from Google services so I could install Netflix etc.

What I can say about this Rom, wow! This thing is snappy, it is quick, for an 8 year old tiny tablet this thing will work perfect for late night Netflix, HBO max, Amazon prime video, Hulu, YouTube and Disney+ even works on here! I also plan to use it on road trips for my 5 year old to watch something lol.

I sat down and set everything up, downloaded and installed all those apps, probably 3 hours on the battery and when I plugged it in, I was still at 72%!!! I'm very happy with this build!

I did install Pico gapps so no camera app was installed, still trying to find a compatible one but I don't really plan on using the camera all that much so I'm good!!!

Thanks for a solid build and my new daily driver on this resurrected piece of hardware! :)

EDIT::

Well I spoke too soon. Right before writing this I put it on the charger and decided to get it back out and watch some Netflix, maybe download a card game I like to play. So I unplugged the charger, there was a flash of the lock screen, and it went black. I started tapping the pet button thinking the screen timed out.

Nope, it will not start up now. I can power it on and I'll get a flash of the lock screen and bam it powers back off. I tried clearing cache and dalvik, still nothing... I knife it seemed too good to be true :(

It powers on and the second the lock screen shows up, bam it powers off. I might try uninstalling magisk, or factory resetting or something. This is crazy, it was just running flawlessly and now this, for literally no apparent reason :-/
[Nexus 7 Android Development] AndDiSa:
New version with security patches for July 2020 available

just a few minutes ago I've added the security patches for July 2020 and pushed all the changes to the Github repos, too.

Here are the links for the new builds:

Grouper OTA-Package (Build 20200708) (md5: 5947a5ed22484dfafc4f69ec6d6c8870)

Tilapia OTA-Package (Build 20200708) (md5: 480d27ca04967728ba3c29c9865f7f2b)

The builds are untested yet and as always I'll wait a few days to collect feedback from the community before I will add them to the OP.

Stay healthy!
[Nexus 7 Android Development] angriest:
Working fine on grouper - a clean install having dug my Nexus 7 out of a drawer in order to see if it still works. No problems so far, the install was problem-free using gapps Pico.

Thank you! Amazing to see that the Nexus 7 is still getting some love in 2020.
[Nexus 7 Android Development] BLewis4050:
The build works fine, but I had to back down to TWRP 3.3.1, as 3.4.0 could not install it.
[Nexus 7 Android Development] AndDiSa:
Thank you for the information. Others can confirm this issue? In that case I will update the OP, too.
[Nexus 7 Android Development] angriest:
I upgraded to 3.4.0 and it installed fine for me.
[Nexus 7 Android Development] :
It works perfectly, I haven't encountered bugs or performance issues. Thanks!

It's nice to know that the ROM maintainers are very proactive in terms of security.

I just hope that one day we'll be able to enjoy newer Android OSes on the Nexus 7 that are stable
[Nexus 7 Android Development] andynroid:
You need to reboot to recovery after wipe data / factory reset before flashing this rom.... Correct me if am wrong...

TWRP 3.4.0 btw
[Nexus 7 Android Development] :
Same here. I was getting error 7 on 3.4.0 but after reflashing 3.3.1 (thank you for the tip :svetius: :) ) I was able to flash the ROM.

All now installed OK and am testing. Looks good so far.

Edit: grouper btw

edit edit: just looking at the updater-script, I think I got error E1001 first time I tried to flash, error 7 was the 2nd attempt (also clean)
[Nexus 7 Android Development] dark0shark:
No problem here, image installs fine with TWRP 3.4.0-0, see photos attached. After that I reboot into recovery again and install latest gapps pico and magisk 2.4 - all well.
[Nexus 7 Android Development] akillenb:
No problem with twrp 3.4.0. installed and runs fine.
[Nexus 7 Android Development] tbmmbt:
Thanks for the update, working fine on Grouper here.

I'm still getting battery drain when it's on charge (I've even bought a new battery) but I guess probably nothing can be done about that. Thanks for your work :)
[Nexus 7 Android Development] metterschling:
If you get "Error 7" when trying to flash the July ROM directly after upgrading to TWRP 3.4.0, wipe the System partition, then re-boot to Recovery, then try again.

I got the error with the sequence "Flash TWRP 3.4.0 image->reboot to Recovery->wipe system->flash July ROM", but that additional reboot solved it.

BTW: July build works well, thank you so much [MENTION=2188693]AndDiSa[/MENTION] !
[Nexus 7 Android Development] AndDiSa:
[MENTION=5463045]metterschling[/MENTION] thank you very much for this hint. I've added it to the 2nd postof this thread.

Edit: Updated the hint in the second post.
[Nexus 7 Android Development] metterschling:
Digging a bit deeper it might also have been the Cache partition wipe (I wiped System, Cache and Davik cache in one operation) that helped to resolve the issue. According to the recovery log the last operation before the error occurred was an attempt to write to the cache partition:

creating stash /cache/recovery/a17e17409e7dadc490d34ea9a9551fb777e878a1/
script aborted: E1001: Failed to update system image.
E1001: Failed to update system image.
error: 1001
cause: 101
Updater process ended with ERROR: 7

So you are on the safe side by recommending to "Wipe System, Cache and Dalvik Cache", followed by a reboot to recovery to resolve this particular error 7 condition.
[Nexus 7 Android Development] :
Thank you for the tips [MENTION=5463045]metterschling[/MENTION]

I don't know if there's a problem with TWRP 3.4.0 After flashing back 3.3.1 and flashing the (July) ROM, I reflashed 3.4.0 All went well but then my Nexus started to slow down and slow down and then I got 'device full' warnings... I'd 16Gb of stuff in the $Trash$ directory! Some of that stuff was what looked like partition backups (.winxxx files etc) - these can only come from TWRP (on my device anyway). I deleted them and all seemed ok... then the Nexus started to slow down. Reboot got my stuck in a boot loop. I booted to recovery (3.4.0) and I could see more files were in $Trash%. So I deleted them again and have reflashed 3.3.1. It's booted fine and I'll see how I go.

My phone is also running TWRP 3.4.0 and I saw files accumulating in trash there too. Again, I'll keep an eye on it.
[Nexus 7 Android Development] metterschling:
Are you sure that the Trash folder originates from the Android platform? I never saw such a folder on an Android (AOSP|CM|Omni|Lineage) device, neither on the N7 and a phone I have running with TWRP 3.4.0.

Are you attaching the devices to a (Windows|MacOS) PC? Is the Trash folder created on the root of your internal SDcard? If so, you might investigate if the PC OS is causing these effects. I can't tell because no Windows or Mac systems over here ;)

BTW: I really like the possibility to save the TWRP backups to USB OTG, so TWRP never writes to the N7 Sdcard. The N7 is too low on disk space anyway ;)
[Nexus 7 Android Development] :
I use only Unix but I guess the .$Trash$ folder in the Nexus could come from there. I've not seen it before tbh, it's a new one on me. If the directory didn't contain some backup files, I wouldn't even suspect TWRP. I also create backups to USB OTG (or space reasons) so how they got into that directory, I don't know.

The trash directory was created at the root of the internal card, I have the 32Gb model and I (usually) have most of my music stored on it.

It really does baffle me and I am keeping an eye on it.