yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] PeterKheim:
Hello @barbaros

i formatted ext4 for system and the others all in f2fs

read it like this here

Before that I had created all partitions with an OTG USB stick via TWRP with the backup function. A backup took about 9 minutes and was 2.6 GB in size. I had formatted the stick before with the Nexus 7 3G 8 GB in FAT32 see photo. I didn't use the fuse but it calmed down

all the best Peter
[Nexus 7 Android Development] barbaros:
Thank for the help Peter. Much appreciated.
[Nexus 7 Android Development] itbauer:
Hi,

i had the same problem. After switching WLAN security on the router from WPA3 back to WPA2 WLAN works fine.

Regards, Klaus
[Nexus 7 Android Development] BitburgBonzo:
Hi, I'm wondering if the following sounds like I've bricked my Nexus 7 or is it possible to recover from here?

It's been sitting in a drawer unused for many years now. I charged it and installed updates but it was very sluggish with most apps crashing, so I tried following the first post in this thread. I got as far as updating the recovery to TWRP via adb (to step 5 in this guide - fastboot reboot) but there hasn't been much life from the device since.

PS C:\adb> .\fastboot flash recovery twrp-3.4.0-0-grouper.img
Sending 'recovery' (9566 KB) FAILED (remote: 'Bootloader is locked.')
fastboot: error: Command failed
PS C:\adb> .\fastboot oem unlock
(bootloader) erasing userdata...
(bootloader) erasing userdata done
(bootloader) erasing cache...
(bootloader) erasing cache done
(bootloader) unlocking...
(bootloader) Bootloader is unlocked now.
OKAY [ 39.835s]
Finished. Total time: 39.837s
PS C:\adb> .\fastboot flash recovery twrp-3.4.0-0-grouper.img
Sending 'recovery' (9566 KB) OKAY [ 1.187s]
Writing 'recovery' OKAY [ 0.394s]
Finished. Total time: 1.674s
PS C:\adb> .\fastboot reboot
Rebooting OKAY [ 0.018s]
Finished. Total time: 0.021s

(^^ the oem unlock command wasn't mentioned in the guide, I found it from another search)

After that I briefly saw the Google logo and the boot animation, but it's been a blank screen ever since.

Connecting it to my Windows 10 PC gave me an unknown USB driver error. I tried installing Google drivers but that didn't do anything. Something I read suggested it could be a hardware error, so I opened it up and resat cables.

Now when I connect it via USB it's showing in Device Manager as Other devices > APX (with the yellow no driver installed symbol). Searching for solutions to this brings up people suggesting a variety of button press/hold combos, drivers to install, or some saying the device is completely bricked and unfixable now. Hopefully I can get an answer here either way.

Thanks!
[Nexus 7 Android Development] PeterKheim:
Hi @BitburgBonzo

that sounds like APX mode, hold the power button for a long time for more than 30 seconds

or even longer

I hope it's still going well and good luck with it

then start in recovery mode and get started

Hold power on plus volume down

LG Peter
[Nexus 7 Android Development] few__:
Is it possible to boot fastboot?

And does it respond with [ fastboot devices ]?

I'm sorry that I don't speak English very well.
[Nexus 7 Android Development] Flounderist:
It looks like you rushed a little in the process of unlocking and flashing recovery.

You should have better:

- unlock the bootloader

- reboot to system and complete setup

- re-allow USB debug from developer options

- reboot to bootloader and flash TWRP

- reboot to recovery using command fastboot reboot recovery

If you are stuck in APX status, try to get off from it, then double check if you can access to bootloader again.

If device is being recognized by fastboot but it doesn't turn on, reflash the latest firrmware and then restart from scratch.
[Nexus 7 Android Development] few__:
If you can boot fastboot, please try the following steps.

(Successful on nexus 7 2012, 2013)

1. Flash the firmware.

fastboot flash system system.img

fastboot flash boot boot.img

fastboot flash userdata userdata.img

fastboot flash cache cache.img

fastboot flash recovery recovery.img

2. Reboot the system.

fastboot reboot

3.After the boot is finished, start fastboot.

4.Lock the bootloader and reboot.

fastboot oem lock

fastboot reboot

5. Boot fastboot after the end of boot.

6. Unlock bootloader and reboot.

fastboot oem unlock

fastboot reboot

7. install TWRP (optional)

fastboot flash recovery twrpimage.img

fastboot reboot-bootloader
[Nexus 7 Android Development] Flounderist:
I wouldn't give the lock bootloader command and so on, it's redundant.

Just flash the firmware images and reboot.
[Nexus 7 Android Development] BitburgBonzo:
Thanks for the replies!

@PeterKheim - I've tried holding the power button for 60+ seconds and nothing comes up on the screen at all.

@few__ - Do you mean by holding power and vol-? Nothing happens when I do that. If I try fastboot devices (and adb devices) in PowerShell nothing comes up there either.

@Flounderist - Seems like I did rush into it! I've no problems taking things apart for hardware problems, but I'm inexperienced with rooting and command line stuff on Android. Apologies if I ask silly questions.

How do you get out of APX mode? Is it to do with specific drivers? I downloaded the one direct from Asus and it's giving me 3 options (ADB Interface, Bootloader Interface, Composite ADB Interface).
[Nexus 7 Android Development] AndDiSa:
Do not lock / unlock if you are already unlocked. Locking / unlocking wiil always trigger a wipe of the device and might activate FRP ...
[Nexus 7 Android Development] few__:
I had recommended it because it had been successful so far.

I'm sorry...
[Nexus 7 Android Development] AndDiSa:
Never mind. It was only for information. Normally it's better to keep the state unless it's really needed to change. That's especially valid for flashing e.g. flashing bootloader ... ;-)
[Nexus 7 Android Development] Flounderist:
Have you tried this way?

https://xdaforums.com/t/q-nexus-7-in-apx-mode.1789135/post-30002160
[Nexus 7 Android Development] guiski:
Thanks to everybody for the suggestions, I've just resolved setting PMF=0 as described in the following post:

https://xdaforums.com/t/rom-nzh54d-...droid-7-x-aosp.3467514/page-220#post-83804659
[Nexus 7 Android Development] AndDiSa:
New versions with security patches for January 2021 are available for testing

Happy new year to all of you!

I hope you and your families stay well. Having some free time the last days I prepared the the versions for Nexus and Tilapia having the security patches for January 2021 applied. I've just updated my Github-repos and here are the OTA-packages for Grouper and Tilapia:

7.1.2 Grouper OTA-Package 20210109 md5: 6bc4f0e6db77e90e982a5b45339298bf

7.1.2 Tilpia OTA-Package 20210109 md5: 8967cc0d4d8c7435f79acea08ad6eef4

As always, please note, that these versions are untested. I'll wait for some feedback from the community before I'll update the OP.

Have fun and stay healthy!
[Nexus 7 Android Development] BitburgBonzo:
Thanks, that didn't work unfortunately.
[Nexus 7 Android Development] Flounderist:
I am running out of ideas -___-
[Nexus 7 Android Development] :
I'm getting 'insufficient space' errors on install pico GAPPS or NanoDroid. Does the new ROM use significantly more system space?
[Nexus 7 Android Development] PeterKheim:
do I have to install them again? am on the December version

are my apps and settings WiFi etc. all gone again ??
[Nexus 7 Android Development] :
You don't have to install the new ROM at all if you don't want to. It's only an update for latest security patches. I do it but, in all honesty, it's probably not necessary given what I use my Nexus for.

But if you do install it, you will have to reinstall apps and redo system settings, but maybe not individual app settings.

It doesn't t take so long and I consider it 'fun' to do. It probably takes me maybe 30 minutes to be up and running again after a clean flash.
[Nexus 7 Android Development] AndDiSa:
No, there is / should be almost no difference.
[Nexus 7 Android Development] :
Ok, I'll give it another try. (y)
[Nexus 7 Android Development] PeterKheim:
if I do an update as described in OP 1, apps and settings should be retained. (without factory reset and formatting)?

then pico GAPPS must still do as described there or it will be enough to overwrite the ROM only ??
[Nexus 7 Android Development] dark0shark:
With Open GApps pico and a few other apps installed I have some space left in filesystems, see screenshot.
[Nexus 7 Android Development] :
I've installed it with Pico GAPPS now, no problems.

Last time, I think what happened was I installed the NanoDroid zip and that failed. I then tried GAPPS and that too failed. I think the NanoDroid failed install must have left remnants of itself behind, taking up space. Once I clean flashed the ROM again, pico GAPPS installed correctly.

I've backed everything up and I'm going to try Nanodroid again.
[Nexus 7 Android Development] perisdr:
Hello everyone,

Just wanted to thank AndDiSa and everyone providing help troubleshooting problems for the amazing work.

I had the nexus on my shelve for many years, getting dusted. A few years back I had upgraded it to Lollipop where due to the lags (20-30 seconds) the tablet was rendered useless. I even went to the trouble of reading a few guides to downgrade it back to 4.4 just to be functional.

Now with the COVID, my girlfriend had an idea to give the tablet to a poor student (since we do not use it anyway). Families now need several devices for work and study during the lockdown. The government is not able to provide tablets for the whole school, so it was a great opportunity to give the tablet to someone in need.

Unfortunately webex is not available for KitKat and I was frustrated to see after upgrading to lollipop again that it is not available for that version either. That's when I searched for custom roms and found several videos and guides pointing to this thread.

I have now successfully flashed the December image to the tablet and I am really shocked by the performance! It 's like new! I can't believe how smoothly this 8 year old hardware runs Android 7. I am also extremely pissed at Google for bricking the tablet with the Lollipop version. That's one of the reasons I distanced myself from the Android ecosystem. All it 's left now is to make a few calls with webex and check everything works and it will be on its way to someone that really needs it.

Thank you AndDiSa for the time and effort, its highly appreciated. If there 's any way I can buy you a coffee/beer please let me know. It 's a small token just to show my appreciation for bringing a device back to life.
[Nexus 7 Android Development] HerrT:
Hi @AndDiSa,

finally I had time to update my old Nexus again (version of your ROM installed was from 2019) and the installation worked exactly as described in the OP.

The few Apps that I use on the device are still working, so no issues for me.

Thanks for all your effort & support

Herr T.
[Nexus 7 Android Development] Baonks81:
I updated 20210109 patch for tilapia, it run well, no error. Thanks @andisa
[Nexus 7 Android Development] username one:
Yup, everything seems fine. Grouper and Gapps tested.
[Nexus 7 Android Development] NikoNik7:
How it can be downloaded?
[Nexus 7 Android Development] rahimali:
links here -> https://xdaforums.com/t/rom-nzh54d-...s-ext4-android-7-x-aosp.3467514/post-84256911
[Nexus 7 Android Development] -Tiz-:
Thank you so much for taking care of this device. I dirty flashed the 20210109 for grouper and it seems to work just fine. I also installed SuperSU but did not installed any Google apps.
[Nexus 7 Android Development] AndDiSa:
@-Tiz- I suggest you to use Magisk instead of SuperSU.
[Nexus 7 Android Development] Baonks81:
New versions with security patches for January 2021 are available for testing

Happy new year to all of you!

I hope you and your families stay well. Having some free time the last days I prepared the the versions for Nexus and Tilapia having the security patches for January 2021 applied. I've just updated my Github-repos and here are the OTA-packages for Grouper and Tilapia:

7.1.2 Grouper OTA-Package 20210109 md5: 6bc4f0e6db77e90e982a5b45339298bf

7.1.2 Tilpia OTA-Package 20210109 md5: 8967cc0d4d8c7435f79acea08ad6eef4

As always, please note, that these versions are untested. I'll wait for some feedback from the community before I'll update the OP.

Have fun and stay healthy!
[Nexus 7 Android Development] AndDiSa:
I've just updated the OP with the links to the latest version so it should be more easy now to find the latest version.

In addition I've added the links to TWRP 3.5.0 for Grouper/Tilapia. Many thanks to the TeamWin project for still supporting Grouper and Tilapia and to @dark0shark for giving me the hint and beeing the early bird in testing it.
[Nexus 7 Android Development] AndDiSa:
Updated the OP with links to Magisk 21.3 and Magisk Manager 8.0.6.

Many thanks to @dark0shark for testing and suggesting the new version.
[Nexus 7 Android Development] Flounderist:
I can confirm that TWRP 3.5, ROM and magisk 21.4 are working on device. (y)I was even able to flash latest pico gapps without exhausting system partition space.
[Nexus 7 Android Development] AndDiSa:
Magisk links updated to 21.4 and Manager 8.0.7 ... :-)
[Nexus 7 Android Development] marty_bebop:
Thanks to everyone for keeping the Nexus 7 alive.

Mine is working very well, used daily. Nothing heavy - internet radio, audiobooks & so on.

I find that running trimmer (fstrim) regularly seems to help with 'lag'.

I have upgraded the ROM, OpenGapps & TWRP so many times, it's second nature.

Cheers.
[Nexus 7 Android Development] perisdr:
Hello everyone,

The tablet works just fine. The only issue that I can find is that there is no camera installed. I used webex to join a call but the camera wouldn't work. I tried installing this app Camera Nexus 7 (official) but I keep getting the message:

Camera has stopped

Is there any easy fix for this? It's not I cannot live without it but since the tablet is going to be used for tele-education it would be an added bonus if the camera is working.

Thank you
[Nexus 7 Android Development] Bakica:
Camera JB+ working fine
[Nexus 7 Android Development] yuto0214w:
(First of all, I can say that it's great. It's lighter than Android 5, and it feels lighter than Android 4 :))

It seems it occurs only to me(?), but I can't connect to the internet.

The problem is only connecting, it can search wi-fi and list wi-fi.

It connected successfully on Android 4.

(By the way bluetooth is working, so I connected internet from that)
[Nexus 7 Android Development] few__:
https://xdaforums.com/t/rom-nzh54d-...s-ext4-android-7-x-aosp.3467514/post-83546153

Try to stop pmf
[Nexus 7 Android Development] yuto0214w:
Ohh it worked! Thanks!
[Nexus 7 Android Development] BeeJ1109:
Hi AndDiSa,

Have been using Tilapia latest Jan ROM Build since release, after installing ROM a month ago. Latest TWRP 3.5 updated from 3.4.

Suddenly battery from fully charged, just sitting not used, battery fully discharge overnight. Tried several times over last couple of days, same discharge rate.

Where as Prior Nov Release ROM & TWRP 3.4. Battery lasted a few days.

Any ideas. I could roll back ROM or TWRP separately to find out what is causing issue.

Another point, you do not save recovery partition in your TWRP. WHY???

Also Magisk Root needs reinstalling, after BOOT partition is being updated with new Latest ROM Dirty Flashed.

Other Ops TWRP Versions being 3.4 and later 3.5 Backup both Boot and Recovery Partitions.

Another issue I cannot use TWRP Helper v1.0 to save internal memory, photos or downloads are not saved. Gives me failure result on trying to install via Magisk Module Download options. Fault code is 123.

Any ideas.

Thanks again for your effort to keep the old Nexus 7 3G tablet going.

Cheers

BeeJ1109
[Nexus 7 Android Development] AndDiSa:
@BeeJ1109 I don't think that TWRP 3.5 has an influence on battery discharging rate, but I have a few questions to you:

is the discharging rate constant, or does is drop suddenly?

in the first case you should have a look at Google synchronizing services. I had several times the issue that if for whatever reason synchronization is failing battery drains very fast

In the second case it might be that your battery is no longer at the top. One or two cells might be broken and due to that the voltage suddenly drops and the device switches off

What do you mean with "your" TWRP? TWRP is a custom recovery built / maintained by the TeamWin Recovery Project, it's not related to the ROM itself and you are free to install a different version than the one which is suggested in the OP

Regarding Magisk you need to consider that the latest versions are focussing on Android >= 8.x so there is a big chance that not all of the functionality is available on / compatible with Android 7.x
[Nexus 7 Android Development] MacLeod100:
About battery ...I was having the same problem . Order a new one from ebay ( come from somewhere in Spain ) and problem solved !
[Nexus 7 Android Development] JesseKnows:
I started with the official Android 5.1.1. Performance was unbearably slow.

I unlocked bootloader, and installed TWRP 3.5.0_9-0.

When wiping partitions I get the error

"failed to mount ./data (invalid argument)"

After going ahead and installing AOSP from the link I get the same error as well as

"Unable to mount storage"

After completing the install I rebooted. I see the unlocked bootloader splash screen, then the "android" text with left to right fading gray scroll. That seems to be stuck forever.
[Nexus 7 Android Development] MacLeod100:
I don't remember exactly but a long time ago was having the same problem.

I remember that i ignore the message and tablet was working fine .
[Nexus 7 Android Development] JesseKnows:
Replying to my own question:

I followed the instructions here (found by searching for 'twrp "failed to mount ./data (invalid argument)"') to reformat the /data partition. That overcame the error. Subsequent installation of AOSP and gapps succeeded and my Nexus is booting to 7.1.2!.

The responsiveness is overwhelmingly better than the 5.1.1 (which was unusably glacial).
[Nexus 7 Android Development] rori1977:
Just here to report the successful upgrade from Nov20 to Jan21 for grouper. All good, as usual. Thanks, @AndDiSa
[Nexus 7 Android Development] j8a:
Hi, @AndDiSa , I did the OTA upgrade yesterday and everything went fine. Great Job!
[Nexus 7 Android Development] AndDiSa:
New versions with security patches for February 2021 are available for testing

Hi guys,

I've just updated my Github-repos to the latest version of the ROM having the security patches for February 2021 applied to it. Here are the OTA-packages for Grouper and Tilapia:

7.1.2 Grouper OTA-Package 20210213 md5: a2df9719f81967ebde84f9993b8af95e

7.1.2 Tilapia OTA-Package 20210213 md5: 819e8425b972bbebe5d63670c854e759

As always, please note, that these versions are untested. I'll wait for some feedback from the community before I'll update the OP.

Have fun and stay healthy!
[Nexus 7 Android Development] Hagemanto:
Hi people, I need help. I used my nexus with no matter for months, last update was December one, so far no matter. Suddenly yesterday happened that I left tablet on my desk, half an hour later it was off (or frozen?), so I rebooted but froze immediately, after that didn't boot at all. I tried to reinstall rom, I formatted system and cache and reinstalled, nothing. Stuck on android logo. What else can I try? Thanks in advance
[Nexus 7 Android Development] AndDiSa:
@Hagemanto can you provide with a logcat? It's difficult to understand what might be the reason without any hints.
[Nexus 7 Android Development] Hagemanto:
Where can i find It? It's not booting, but in recovery
[Nexus 7 Android Development] AndDiSa:
If you can boot to recovery you could e.g. get

cat /proc/last_kmsg

in recovery mode which should dump the kernel messages from your last boot.

Better / in addition connecting the device to a PC over usb while it boots and getting the logcat with

adb logcat | tee log.txt

Beside showing the log it gets written to log.txt, too.

Commands working on Linux having ADB drivers installed and ADB enabled on your device.
[Nexus 7 Android Development] Hagemanto:
Ok, I finally restored the stock rom and returned to this one. It seemed to be ok until I installed Google apps (chrome, maps, gmail, etc). While using one of these, tablet froze. I erased each google app but play store, now seems to be ok (just one episode while using play store). I do t know the reason, but since it works it's ok
[Nexus 7 Android Development] Hagemanto:
No, not true. 12 hours later it's freezing again, randomly, sometimes while booting, sometimes while I'm using (surfing on firefox, checking settings, no matter what I'm doing). I will try to keep on stock rom, to understand if it's a hardware matter or else
[Nexus 7 Android Development] DumF0rGaming:
Google services are such a cancer, not a single 1Gb RAM device can handle them anymore. I can strongly suggest to use microG and related alternatives like Aurora store and NewPipe
[Nexus 7 Android Development] metterschling:
+1 here, Grouper is significantly more responsive with MicroG than with Gapps. Nevertheless I would anyway always prefer it due to privacy reasons. A distribution like Nanodroid makes it even easy to get Play Store installed in case you depend on in-app payments.
[Nexus 7 Android Development] Hagemanto:
Thanks for the answers, people. Sadly, I think my tablet is broken. As I was working on it, trying microg and setting it up, it kept freezing, at reboot didn't go past google logo screen, I tried many times to get to recovery mode screen but it was stuck at the splash screen of twrp. I tried to flash with wug, but also during this it stopped working, failing the operation. I gave up, I really think this is the end for my beloved Nexus 7
[Nexus 7 Android Development] dark0shark:
Grouper ROM installed, Nexus 7 alive and kicking.
[Nexus 7 Android Development] marty_bebop:
Grouper: I have installed the latest ROM with open gapps pico, wiped cache etc then reinstalled Magisk. Like clockwork. I'll report any issues. Much obliged.

---

Trimmer seems to have stopped working, about 2 weeks ago. It runs, is granted superuser rights and immediately reports back having trimmed nothing. I have removed and reinstalled it. The tablet seems noticeably laggy. This not related to latest build - any ideas?
[Nexus 7 Android Development] ^[GS]^:
I tested a lot of OS and my device dont wanted start (stuck In Google logo screen). Then I installed it by sideload.

1. Power + Down Volume, [Recovery Mode]

2. [Wipe] -> [Format data] -> yes

3. Back, back, [Advanced Wipe] -> Choice all the options

4. Plug the USB into PC

5. In TWD home go to [Advanced] -> [ADB Sideload]

6. In the PC (Windows) open a console (cmd)

7. Run "adb devices", sideload can be appears

8. (Download the images, if you dont have it already) (aosp...zip, open...zip)

9. Run "adb sideload aosp_grouper-7.1.2-ota-20210109.eng.ds.zip", in the folder with the images... and wait to upload

10. When finish, run "adb reboot bootloader"... choice [Recovery Mode]

11. Again go to [Advanced] -> [ADB Sideload], check Wipe options

12. Now run "adb sideload open_gapps-arm-7.1-pico-20210213.zip"

13. Run "adb reboot bootloader"... choice [Start]

Welcome! :D
[Nexus 7 Android Development] :
All working fine here. Grouper + microG. Thank you (y)
[Nexus 7 Android Development] marty_bebop:
I tried installing an app via adb and got the following message - not a problem, I just reinstalled an earlier version of the app.

----------

Performing Streamed Install

adb: failed to install Smart_AudioBook_Player-Full-v7.6.2_build_30762-Mod.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1260430403.tmp/base.apk (at Binary XML file line #0): Requires newer sdk version #30 (current version is #25)]
[Nexus 7 Android Development] AndDiSa:
@marty_bebop that application runs only on Android 11 upwards, so no chance to run it on Android 7.1
[Nexus 7 Android Development] marty_bebop:
Thanks!
[Nexus 7 Android Development] mikeataol:
jusr popping in to say installed fine, and to say thank you once again. (ROM/Pico Gapps/Magisk21)