[ROM][NZH54D][2021/03/05][Asus Nexus 7 2012 WiFi/3G][F2FS/EXT4]Android 7.x AOSP

Search This thread

yuto0214w

New member
Jan 20, 2019
2
0
11
Shizuoka
me.yuto0214w.repl.co

BeeJ1109

Senior Member
Sep 26, 2015
145
39
48
Adelaide
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.
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
 

AndDiSa

Senior Member
Dec 2, 2009
3,477
4,554
268
Heidelberg
@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
 

MacLeod100

Senior Member
Nov 28, 2013
157
45
48
Malmö
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
About battery ...I was having the same problem . Order a new one from ebay ( come from somewhere in Spain ) and problem solved !
 

JesseKnows

Member
Nov 24, 2011
18
8
23
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.
 
Last edited:

MacLeod100

Senior Member
Nov 28, 2013
157
45
48
Malmö
I am following the instructions in OP. 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"

Should I be concerned?
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 .
 

JesseKnows

Member
Nov 24, 2011
18
8
23
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.

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).
 

AndDiSa

Senior Member
Dec 2, 2009
3,477
4,554
268
Heidelberg
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!
 

Hagemanto

Member
Dec 30, 2020
8
1
13
Italy
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
 

AndDiSa

Senior Member
Dec 2, 2009
3,477
4,554
268
Heidelberg
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.
 

Hagemanto

Member
Dec 30, 2020
8
1
13
Italy
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
 
  • Like
Reactions: AndDiSa

Hagemanto

Member
Dec 30, 2020
8
1
13
Italy
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
 

DumF0rGaming

Recognized Translator
Jan 8, 2013
805
667
123
Dubai
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
 
  • Like
Reactions: AndDiSa

metterschling

Senior Member
Sep 29, 2013
141
99
48
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
+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.
 
  • Like
Reactions: AndDiSa

Hagemanto

Member
Dec 30, 2020
8
1
13
Italy
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
 

dark0shark

Senior Member
Feb 17, 2013
249
162
73
Hamburg
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!
Grouper ROM installed, Nexus 7 alive and kicking.
Screenshot_20210214-114214.png
 

Top Liked Posts

  • 1
    @DumF0rGaming
    yesterday I've found some time to include the signature spoofing patch into the latest build. Downloads can be found

    for Grouper: aosp_grouper-7.1.2-mg-ota-20210411
    for Tilapia: aosp_tilapia-7.1.2-mg-ota-20210411

    Please note: it's not tested, so no guarantee that it's really working
    Attention: You should be aware that signature spoofing introduces security risks.
  • 8
    Hi guys,
    thank you so much for your support in this thread, especially the new TWRP and Magisk ... :)
    I just updated the OP with the link to the new TWRP 3.5.2-versions and the ROM-versions with the March security patched.

    and as we are already in April ... here are the new versions with the April 2021 security patches:
    7.1.2 Grouper OTA-Package 20210411 md5: 2d3e71abc15951deb646008706371084
    7.1.2 Tilapia OTA-Package 20210411 md5: 7ab79ee4a84c68180052017b2d486879

    I've updated my repositories on Github, too.
    I suppose you all know it, but for completeness: these version are untested
    The OP will be updated within the next days after I got some feedback from the community.

    Have fun and stay healthy!
    3
    Hi @AndDiSa,

    I'm sorry that I could find the time before, but I finally tested everything and here is the report:
    - all of my 25 apps are working flawlessly, including demanding ones like YouTube and Netflix.
    - OpenGapps and everything Google related (that I'm using) is working.
    - No problem with Wi-Fi and files transfer with Bluetooth is working (in both directions).
    - files transfer with USB OTG is working (in both directions).
    - TWRP 3.5.1 is working. I tested formating cache + Dalvik & backup, I guess I will have to wait your next ROM to test flashing ;-)

    Note about Magisk 22: there is no way to get root back outside of manually flashing the boot image.
    For those unsure how to do it:
    - extract the boot image from the ROM.
    - in the Magisk app, choose "Install" and point to the file boot.img.
    - transfer the patched file to your PC ("adb pull" or with a file explorer).
    - flash it with "fastboot flash boot /path/to/magisk_patched.img"
    After that, root and SafetNet are working as they used to before...

    Keep up the great work AndDiSa, and stay all safe!
    3
    Note about Magisk 22: there is no way to get root back outside of manually flashing the boot image.
    For those unsure how to do it:
    - extract the boot image from the ROM.
    - in the Magisk app, choose "Install" and point to the file boot.img.
    - transfer the patched file to your PC ("adb pull" or with a file explorer).
    - flash it with "fastboot flash boot /path/to/magisk_patched.img"
    After that, root and SafetNet are working as they used to before...

    Keep up the great work AndDiSa, and stay all safe!
    Thanks for the nudge!

    I'd been meaning to sort this out for a few days now, just hadn't gotten around to it. Then I read your post and it have me the kick I needed!

    Just for info, I flashed the patched boot image direct from TWRP recovery and all seems good.
    3
    Magisk 22.1 is out and does it, see screenshots. Also new TWRP 3.5.2.
    Screenshot_20210410-102203.png
    Screenshot_20210410-102905.png
    Screenshot_20210410-110942.png
    2
    Post #2 appears to be missing all of the basic steps about how to install e.g. how do you even get into the stock recovery.

    The summary steps in post #1 are also wrong, because you have to boot into v7.1, set up WIFI, then boot back to recovery and flash gapps.
    Getting into recovery is elementary knowledge; it doesn't need to be explained. It's usually power + volume down from the off-state but for this device it appears to be power + volume up, the former gets you to fastboot. You can easily duck this. I can't say anything about your second comment as I don't own this device.
  • 306
    This thread is about installing and using AOSP 7.x (Nougat) ROM for the ASUS Nexus 7 Grouper / Tilapia devices.

    Asus - Model names

    Grouper = Asus Nexus 7 2012 WiFi
    Tilapia = Asus Nexus 7 2012 3G



    Initial Setup Installation
    1. Update Recovery to TWRP 3.5.2-9 for Grouper resp. TWRP 3.5.2-9 for Tilapia
    2. Boot into Recovery
    3. Factory Reset (only needed if you are not already on Android 7.x AOSP)
    4. Install 7.1.2 Grouper OTA-Package (Build 20210305) (md5: c0a1f205254c49355cca1d350b65e33b)
      or
    5. Install 7.1.2 Tilapia OTA-Package (Build 20210305) (md5: 0801569114aa0531d992f1004c90dc11)
    6. Reboot into recovery
    7. Install Open GApps (arm/7.1/pico)

    [*]To get root access, I suggest to use either Magisk (V21.4) and Magsik Manager (V8.0.7) the "old" version of Magisk, or the new unified Magisk (V22.1)

    Do not install Magisk on initial setup as it might lead to issues. Start the ROM without having root access the first time and install Magisk in a second step.

    If you are already on Android 7.x AOSP, it's sufficient to do the follwowing steps:

    Update Installation
    • Boot into Recovery
      • Install 7.1.2 Grouper OTA-Package (Build 20210305) (md5: c0a1f205254c49355cca1d350b65e33b)
        or
      • Install 7.1.2 Tilapia OTA-Package (Build 20210305) (md5: 0801569114aa0531d992f1004c90dc11)
      • Reboot into recovery
      • Install Open GApps (arm/7.1/pico)
      • Wipe cache/dalvik-cache (optional, but suggested)
      • reboot

    Important: For more detailed installation instructions please refer to the next post
    Important: First boot after upgrading will take a bit longer (stays on ANDROID) because of art optimizations

    flash and use on your own risk!


    CREDITS,
    AOSP/Google, LineageOS, Ziyann for setting up the Grouper-AOSP repository and his Unlegacy Android project, daniel_hk for some hints how to get the 3.1 kernel running with N, timduru for his work on the Asus Transformer, Timur Mehrvarz for his work on the tegra kernel, Francisco Franco for his kernel work in general

    Bugs:
    • please report

    Latest Changes
    • 20210305 (AOSP 7.1.2)
      • updated with security patches from March 2021

    Changelog
    Please refer to the changes found in the github repos

    All ota packages can be found here:
    AndDiSa ROM files repository

    Sources

    https://github.com/AndDiSa

    If you would like to build from the sources, you can do so by cloning and build from repositories:
    but please take in mind that you need to have some free space (>= 100 GB) and some time ...


    XDA:DevDB Information
    Android 7.x AOSP, ROM for the Nexus 7

    Contributors
    AndDiSa
    Source Code: https://github.com/AndDiSa?tab=repositories

    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.1.x
    Based On: AOSP

    Version Information
    Status:
    Stable

    Created 2016-09-23
    Last Updated 2021-03-05
    63
    Please note:
    • the system partition is already quite full which leads to the problem that gapps probably will not install correctly and that may lead to weired problems (apps closing / not showing up correctly / ...). I suggest to use the dynamic gapps package linked above. In addition I suggest you to erase the system partition completely before applying the OTA package
    • If you get "Error 7" when trying to flash the ROM directly after upgrading to TWRP 3.4.0, wipe the Boot, System and Cache partition and clean dalvik-cache, then re-boot to Recovery and try again (you will not loose any data as long as you do not wipe the Data partition).

    Some additional hints
    • If you are in a bootloop which shows to Google logo again and again, it's sufficient to hold vol- while booting. The next bootloop will boot into bootloader.
    • If you are in a bootloop which shows the ANDROID splash screen continuusly, connect your device to your PC and enter
      Code:
      adb reboot bootloader
      After a few seconds the device should show up the bootloader screen
    62
    Hi guys,

    first of all I would like to thank all of you for your support you offered to me in the last days and I really feel honoured that so many of your would like to support / help me so that I am able to continue the development for the Nexus 7.
    I've got many offers for a "new" Nexus device from all over the world which I really didn't expect. I was really torn between continuing and stepping out. I've thought very much about pros and cons and it wasn't an easy decision especially if you get so much positive feedback. Thank you again!

    Finally I've decided to stop development for the Nexus 7 (at least for the moment). There are several other projects (not all of them related to Android) I've in mind and probably this now was a broad hint to start with something different. I've uploaded the sources of the ROMs latest version (inc. security patches for June 2019) to Github and tested together with @fidoedidoe whether all needed repos and changes are consistent and that one can build the ROM from those repos without the need of doing additional modifications or patches. The build should run smoothly after synchronizing everything. I will also support and help everybody who would like to step in and continue the builds.
    I know there are several people interested in building the ROM from sources. Probably there is someone (or probably even a group) who would like to continue ...
    Cheers,
    AndDiSa
    55
    2019/02/05 - release for Grouper and Tilapia uploaded

    I've just uploded the latest version of the ROM for Grouper and Tilapia. As always the Android security issues listed in the latest Android Security Bulletin are patched in this ROM.

    Beside that once again I've worked much on the kernel side. Some features are added (multiple binder devices, alarm timer device, ...) and some bugs have been fixed.
    I am still working together with @OlliWi on the slow charging issue which occurs from time to time. Even if I was able to get charging currents up to 1500mA while the device was connected to a charger, we still have the impression that the cable / charger detection needs to be improved. We are on it ...

    Those of you who are familiar with the installation process of the ROM can download directly from here, otherwise please first read the instructions in the OP

    7.1.2 Grouper OTA-Package (Build 20190209) (md5: 885e601a06a2104628a1e450b73f3a18)
    7.1.2 Tilapia OTA-Package (Build 20190209) (md5: 8e4c0e1955ecc0bb65a51582bb01f779)

    And finally as always: flash on your own risk ... ;)
    52
    New year ... new security fixes (2019/01/05)

    Hi guys,

    I've just uploaded a new version of the ROM for our beloved Nexus 7 (Grouper / Tilapia) having the January 2019 security fixed applied to it.

    Beside that I found a bug causing bootloops on initial install / after wiping dalvik. This was caused by zygote not having enough memory available to create the boot.jar on the fly. To fix this issue, I am doing a dex-preopt for the boot image on compile time now which leads to a slightly larger image but improves initial boot time a bit, too.

    To get more memory free on the /system partition, I debloated the ROM a bit, e.g. removed the Browser2, LegacyCamera, Music and Calendar apps as some of them even didn't work fully. There are several alternatives available in several stores which you can install if you need them. Probably most of you do not even notice that these apps were removed.

    Most changes were applied to the kernel. I tested the changes in the last 4 weeks but as I have a Grouper device only and I cannot test each functionality I cannot exclude that something doesn't work as expected. So please file a bug report (best with logcat and a meaningful bug description) if you find some unexpected behaviour and I will have a look at it.

    The most important fix here is probably the improved charging behaviour (many thanks to @OlliWi who provided with fruitful analysis and hints and pushed me to have a deeper look at this issue).
    To get a faster charging of the device, do not boot with a USB cable connected as this prevents the device to charge with more than 500mA (or at least disconnect and re-connect the cable after the device booted).

    I've updated the links in the OP, so you can download the latest version from there.

    Happy new year to all of you!
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone