FORUMS

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

3,256 posts
Thanks Meter: 4,163
 
By AndDiSa, Senior Member on 23rd September 2016, 06:11 PM
Post Reply Email Thread

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.3.1-0 for Grouper resp. TWRP 3.3.1-0 for Tilapia
  2. Boot into Recovery
  3. Factory Reset (only needed if you are not already on Android 7.x AOSP)
  4. To get root access, I suggest to use latest Magisk (V20.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 20200303) (md5: 8ddde21862486f1b29bc22aab66071de)
      or
    • Install 7.1.2 Tilapia OTA-Package (Build 20200303) (md5: 300899bcf2c02b64770d54a563ed74b1)
    • 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
  • 20200303 (AOSP 7.1.2)
    • updated with security patches from March 2020

Changelog
[*] 20200208 (AOSP 7.1.2)
  • updated with security patches from February 2020
[*] 20200112 (AOSP 7.1.2)
  • updated with security patches from January 2020
  • 20191215 (AOSP 7.1.2)
    • updated with security patches from December 2019
  • 20191118 (AOSP 7.1.2)
    • updated with security patches from November 2019
  • 20191025 (AOSP 7.1.2)
    • updated with security patches from October 2019
  • 20190929 (AOSP 7.1.2)
    • updated with security patches from September 2019
  • 20190823 (AOSP 7.1.2)
    • updated with security patches from August 2019
  • 20190610 (AOSP 7.1.2)
    • updated with security patches from June 2019
  • 20190516 (AOSP 7.1.2)
    • updated with security patches from May 2019
    • kernel still based on December 2018
    • improved LMK behaviour
    • changed battery charging
  • 20190405 (AOSP 7.1.2)
    • updated with security patches from April 2019
    • reverted kernel to version from December 2018
  • 20190309 (AOSP 7.1.2)
    • updated with security patches from March 2019
    • added missed security patches from July 2018 and October 2018
    • wifi enabled on initial setup
    • occasionally reboot/shutdown issue (hopefully) resolved
    • further improvements on device charging
    • additional patches on the kernel (power management, timer, ...)
  • 20190209 (AOSP 7.1.2)
    • Security fixes for February 2019 applied
    • huge amount of changes in the kernel (for details have a look at Github)
      • bugfixes and optimizations cherry picked from nvidia 3.1 kernel
      • further optimized charging behaviour
  • 20190110 (AOSP 7.1.2)
    • Security fixes for January 2019 applied
    • some bugfixes
      • dex-preoptimization of boot image to avoid boot loops on initial boot
      • debloated (Browser2, Calendar, LegacyCamera, Music apps removed)
    • huge amount of changes in the kernel (for details have a look at Github)
      • bugfixes and optimizations cherry picked from nvidia 3.1 kernel
      • optimized charging behaviour
  • 20181208 (AOSP 7.1.2)
    • Security fixes for December 2018 applied
    • some stablility fixes within the kernel
    • thread title renamed to "[ROM][NZH54D][2018/12/05][Asus Nexus 7 2012 WiFi/3G][F2FS/EXT4]Android 7.x AOSP"
  • 20181112 (AOSP 7.1.2)
    • Security fixes for November 2018 applied
    • re-apply security-fixes for system/bt
  • 20181016 (AOSP 7.1.2)
    • Security fixes for October 2018 applied
    • re-enable ksm
    • minor lmk changes
  • 20180917 (AOSP 7.1.2)
    • Security fixes for September 2018 applied
    • revert to default parameter set for the CFQ IO scheduler
  • 20180809 (AOSP 7.1.2)
    • Security fixes for August 2018 applied
    • zRAM size for Tilapia corrected
    • minor power settings changes (improve device startup from sleep, improve application launch time, etc.)
  • 20180730 (AOSP 7.1.2)
    • headset support which was accidentially removed in the last build, added again
    • fixed OOM issues (thanks to @OlliWi for his support and continuous pushing me to work on this issue)
  • 20180714 (AOSP 7.1.2)
    • Security patches for July 2018 applied (except CVE-2018-9433 which is still not referenced in AOSP)
    • fixed random reboots when connected via IPv6 (thanks to @OlliWi for his support to identify the reason for the reboots)
  • 20180618 (AOSP 7.1.2)
    • Fix for long boot on Tilapia
    • DT2W initialization fixed
    • Added some fixes on system/bt, frameworks/base and frameworks/native which were missed
  • 20180608 (AOSP 7.1.2)
    • June security patches applied
    • DT2W support (thanks to @AICProcks! and @daniel_hk)
  • 20180512 (AOSP 7.1.2)
    • May security patches applied
    • Tilapia slow boot issue fixed (to be verified)
  • 20180409 (AOSP 7.1.2)
    • Crash when starting a video fixed
    • March and April security patches applied
    • changes in power management
    • PerformanceControlApp removed
    • Camera2 app removed
    • huge amount of kernel changes
      • introduction of the cpuquiet framework
      • re-enabled LP overclocking
      • many other patches
  • 20180209 (AOSP 7.1.2)
    • February security patches applied
    • fix screeen unlocking issues (thanks to @Charles IV)
    • huge amount of kernel changes
      • backport of linux kernel namespace support (-> Magisk-hide is now able to work properly)
      • backport of linux kernel seccomp support (-> mediaextractor and mediacodec processes are running in a sandbox)
      • backport of sdcardfs support (currently still disabled, but can be enabled easily by changing the build.prop file)
      • backport of vmpressure and adaptive low memory killer
      • many other security patches and bug fixes
  • 20180112 (AOSP 7.1.2)
    • January security patches applied
    • LP overclocking disabled
  • 20171208 (AOSP 7.1.2)
    • December security patches applied
  • 20171111 (AOSP 7.1.2)
    • November security patches applied
    • intelliactive performance tuning
  • 20171018 (AOSP 7.1.2)
    • further performance optimizations
    • intelliplug disabled again
    • KRACK-attack fixes
  • 20171010 (AOSP 7.1.2)
    • android-7.1.2_r33 (october security fixes manually backported due to missing 7.1.2 updates from Google)
    • slow charging bug fixed (but OTG-charging removed :( )
    • further minor performance optimizations
    • intelliplug re-enabled (please report issues if you find some)
  • 20170923 (AOSP 7.1.2)
    • android-7.1.2_r33 (september security fixes manually backported due to missing 7.1.2 updates from Google)
    • patches for correct calculation of free memory when zram is enabled
    • performance optimizations to fix the lagging
    • intelliplug disabled for now due to kernel oops
    • sdcard_fs support added to kernel
  • 20170811 (AOSP 7.1.2)
    • update to android-7.1.2_r33 (security fixes applied)
    • low memory killer adjusted to be more agressive
    • many changes to the kernel, the most important ones:
      • LP core overdrive up to 620 Mhz
      • LP1 undervolting to 0.95V
      • intelliplug from @faux123 (default setting: balanced profile)
      • adjustments to the intelli_active frequency settings
  • 20170707 (AOSP 7.1.2)
    • update to android-7.1.2_r27
    • minor improvements to intelliactive governor
  • 20170608 (AOSP 7.1.2)
    • update to android-7.1.2_r16
    • changed default governor to intelliactive
  • 20170505 (AOSP 7.1.2)
    • update to android-7.1.2_r10
    • backported patches included into the kernel to fix security issues (CVE-2017-7184, ...)
    • libnvos reverted to the unpatched version, while libGLESv1_CM_tegra.so and libGLESv2_CM_tegra.so are replaced by a patched version to eliminate the need of a shim lib (thanks to @Ziyan , @sheffzor and @csk1jw)
  • 20170410 (AOSP 7.1.2)
    • NFC fixed (was an issue for Grouper only)
    • SetupWizard crashes hopefully fixed, too
  • 20170409 (AOSP 7.1.2)
    • video crashes fixed
  • 20170407 (AOSP 7.1.2)
    • new release based on 7.1.2_r5, April 2017 security fixes applied
    • huge changes / updates in the kernel to improve performance and battery life time
    • PerformanceControl application added (no further need to use Kernel Adiutor)
    • sudden appplication closes fixed
  • 20170308 (AOSP 7.1.1)
    • new release based on 7.1.1_r25, March 2017 security fixes applied
    • several changes in the kernel
      • zRAM 200MB default enabled
      • lz4 compression algorithm for ramdisk
      • optimizations for interactive governor
      • several optimizations
      • usb hostmode changing patch fixed
  • 20170207 (AOSP 7.1.1)
    • new release based on 7.1.1_r20, February 2017 security fixes applied
    • DRM issues (hopefully) fixed
    • several changes in the kernel
      • compiler changed from gcc-4.9 back to gcc-4.8
      • several security patches
      • several optimizations
      • usb hostmode changing patch added
    • ota update script modified so that /system is formatted before applying a FULL-OTA image
  • 20170105 (AOSP 7.1.1)
    • new release based on 7.1.1_r9, January 2017 security fixes applied
  • 20161213 (AOSP 7.1.1)
    • new release still based on 7.1.1_r4
    • tilapia ril issues fixed (thanks to @millosr)
    • Add CUSTOM_BRIGHTNESS support (used the patch from DC-kernel, thanks to @daniel_hk)
    • camera2 fixed (thanks to @aaopt)
    • missing WallpaperPicker project added
    • using widevine libs from Unlegacy (thanks to @Ziyan)
  • 20161207 (AOSP 7.1.1)
    • new release based on 7.1.1_r4
    • Music app no longer crashing
    • stabilzation, almost no FCs
    • Kernel security patch (CVE-2016-8655) applied
  • 20161127 (AOSP 7.1)
    • new release, first release for Tilapia based on 7.1.0_r5 (thanks to @millosr for providing the tilapia device tree)
    • camera working now
    • Music app no longer crashing
    • overall more stable and much less FCs
  • 20161109 (AOSP 7.1)
    • new release, based on 7.1.0_r5
    • security patch for November applied
    • several security fixes in kernel
  • 20161028 (AOSP 7.1)
    • new release, based on 7.1.0_r4
    • security patch for October applied
    • SELinux in enforcing mode now
    • Dirty COW security patch applied
    • integration of performace tweaks based on ParrodMod, thanks to @parrotgeek1
  • 20161019
    • new release, based on 7.0.0_r14
    • security patch for October applied
    • minor bugfixes (NFC, bluetooth, ...)
  • 20160923
    • initial release, based on 7.0.0_r6



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

Downloads

Version from 20200208
Grouper OTA-Package 20200208 Tilapia OTA-Package 20200208
Version from 20200112
Grouper OTA-Package 20200112
Tilapia OTA-Package 20200112
Version from 20191215
Grouper OTA-Package 20191215Tilapia OTA-Package 20191215
Version from 11/18/2019
Grouper OTA-Package 20191118
Tilapia OTA-Package 20191118
Version from 10/25/2019
Grouper OTA-Package 20191025
Tilapia OTA-Package 20191025
Version from 09/29/2019
Grouper OTA-Package 20190929
Tilapia OTA-Package 20190929
Version from 08/23/2019
Grouper OTA-Package 2019823
Tilapia OTA-Package 20190823
Version from 06/10/2019
Grouper OTA-Package 20190610
Tilapia OTA-Package 20190610
Version from 05/16/2019
Grouper OTA-Package 20190516
Tilapia OTA-Package 20190516
Version from 04/05/2019
Grouper OTA-Package 20190405
Tilapia OTA-Package 20190405
Version from 03/09/2019
Grouper OTA-Package 20190309
Tilapia OTA-Package 20190309
Version from 02/09/2019
Grouper OTA-Package 20190209 Tilapia OTA-Package 20190209
Version from 01/10/2019
Grouper OTA-Package 20190110
Tilapia OTA-Package 20190110
Version from 12/08/2018
Grouper OTA-Package 20181208
Tilapia OTA-Package 20181208
Version from 11/12/2018
Grouper OTA-Package 20181112
Tilapia OTA-Package 20181112
Version from 10/16/2018 (7.1.2)
Grouper OTA-Package 20181016
Tilapia OTA-Package 20181016)
Version from 09/17/2018 (7.1.2)
Grouper OTA-Package 20180917
Tilapia OTA-Package 20180917
Version from 08/09/2018 (7.1.2)
Grouper OTA-Package 20180809
Tilapia OTA-Package 20180809
Version from 07/30/2018 (7.1.2)
Grouper OTA-Package 20180730
Tilapia OTA-Package 20180730
Version from 07/14/2018 (7.1.2)
Grouper OTA-Package 20180714
Tilapia OTA-Package 20180714
Version from 08/06/2018 (7.1.2)
Grouper OTA-Package 20180608
Tilapia OTA-Package 20180608
Version from 12/05/2018 (7.1.2)
Grouper OTA-Package 20180512
Tilapia OTA-Package 20180512
Version from 09/04/2018 (7.1.2)
Grouper OTA-Package 20180409
Tilapia OTA-Package 20180409


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 2020-03-20
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170403-205552.png
Views:	80390
Size:	106.9 KB
ID:	4105249   Click image for larger version

Name:	snoopsnitch-Nexus7-20190309.png
Views:	18412
Size:	60.3 KB
ID:	4719891   Click image for larger version

Name:	status-Nexus7-20190309.png
Views:	18374
Size:	57.2 KB
ID:	4719892  
The Following 284 Users Say Thank You to AndDiSa For This Useful Post: [ View ] Gift AndDiSa Ad-Free
23rd September 2016, 06:12 PM |#2  
AndDiSa's Avatar
OP Senior Member
Flag Heidelberg
Thanks Meter: 4,163
 
More
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 would like to flash SuperSU, I suggest you to use SuperSU 2.79 SR3 in systemless mode. Systemless mode is important because otherwise you may run into bootloops.
    To force systemless installation
    • boot into recovery
    • mount the /data partition
    • open a shell and type the following command
      Code:
      # echo "SYSTEMLESS=true" >/data/.supersu
    • close the shell and install SuperSU
    be aware that wipe will remove the .supersu file, too, so you need to create it again!

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
The Following 59 Users Say Thank You to AndDiSa For This Useful Post: [ View ] Gift AndDiSa Ad-Free
23rd September 2016, 07:52 PM |#3  
Anyone have a list of issues? Does video playback in YouTube work correctly on this rom or is it broken like the other 7.0 roms? Have the UI glitches been fixed? Does NFC work?
The Following 2 Users Say Thank You to Nintonito For This Useful Post: [ View ] Gift Nintonito Ad-Free
23rd September 2016, 07:58 PM |#4  
Nexive's Avatar
Senior Member
Flag Brussels
Thanks Meter: 201
 
More
Quote:
Originally Posted by Nintonito

Anyone have a list of issues? Does video playback in YouTube work correctly on this rom or is it broken like the other 7.0 roms? Have the UI glitches been fixed? Does NFC work?

Why not figure it out by yourself?
If you flash this ROM you can create a list of what's working and what's not
Anyway, when I'm home, I gonna flash this ROM on my brother's Nexus 7 and give feedback.

Sent from my Nexus 5 using XDA-Developers mobile app
The Following 2 Users Say Thank You to Nexive For This Useful Post: [ View ] Gift Nexive Ad-Free
23rd September 2016, 08:03 PM |#5  
DSTear's Avatar
Junior Member
Thanks Meter: 8
 
More
Wrong link in the post. Downloaded and flashed the last build on my device. After flashing ROM my device was getting cycle reboots and error with cache partition. Fixed that using ADB. ROM seems unstable and buggy. Getting error with Bluetooth share after booting. Navbar and top bar are always black. Old launcher isn't good. Replace it with any good launcher, please. I hope you'll keep work on it. Thank you, good job!
Click image for larger version

Name:	Screenshot_20160923-185842[1].jpg
Views:	7224
Size:	134.1 KB
ID:	3884176

Click image for larger version

Name:	Screenshot_20160923-185855[1].png
Views:	7090
Size:	22.0 KB
ID:	3884177

Click image for larger version

Name:	Screenshot_20160923-185911[2].png
Views:	7066
Size:	58.7 KB
ID:	3884178
The Following User Says Thank You to DSTear For This Useful Post: [ View ] Gift DSTear Ad-Free
23rd September 2016, 08:09 PM |#6  
AndDiSa's Avatar
OP Senior Member
Flag Heidelberg
Thanks Meter: 4,163
 
More
Thanks, I'll correct the link
Nevertheless your problems I cannot reproduce ... probably because I've done an update installation. I'll have a look at it.
What was the ROM you have had installed before? Did you wipe?
The Following 4 Users Say Thank You to AndDiSa For This Useful Post: [ View ] Gift AndDiSa Ad-Free
23rd September 2016, 08:25 PM |#7  
adrman's Avatar
Senior Member
Flag NYC
Thanks Meter: 638
 
More
When i get a chance this weekend I'm going to try this with Phh Superuser and Magisk. That combo is/was working great on your MM rom.
23rd September 2016, 09:21 PM |#8  
I flashed your ROM with TWRP 3.0.2-0 and after 'Patching system image uncondinionally' i get
Code:
Patching system image uncondinionally...
E:unknown command [log]
E:unknown command [log]
script succeeded: result was [1.000000]
Updating partition detail...
...done
I doublechecked the md5 of the file and reflashed but still no luck.

[Edit]
I rebooted and it seems to run....
[Edit2]
Flashing the plain ROM without the gapps seems to work - but after these gapps it doesnt start.
23rd September 2016, 10:18 PM |#9  
Senior Member
Thanks Meter: 209
 
More
I wiped caches, system and data. I installed Android 7 rom, falls and SuperSU. But went into bootloop. I then just installed rom and SuperSU. But keep getting Bluetooth Share keeps stopping messages after boot up. Thanks.
Trued to get into recovery. Now I am keep on getting the following error messages:
E:Unknown fs_type "f2fs" for cache
E: Can't Mount /cache/recovery/last_locale
I cannot boot to Android or bootloader now. I removed battery and plugged it back in. But the same problem. It seems my device is bricked now.
Any suggestions to get out of this loop? Thx
23rd September 2016, 11:34 PM |#10  
Senior Member
Thanks Meter: 209
 
More
Quote:
Originally Posted by tpuserhp

I wiped caches, system and data. I installed Android 7 rom, falls and SuperSU. But went into bootloop. I then just installed rom and SuperSU. But keep getting Bluetooth Share keeps stopping messages after boot up. Thanks.
Trued to get into recovery. Now I am keep on getting the following error messages:
E:Unknown fs_type "f2fs" for cache
E: Can't Mount /cache/recovery/last_locale
I cannot boot to Android or bootloader now. I removed battery and plugged it back in. But the same problem. It seems my device is bricked now.
Any suggestions to get out of this loop? Thx

I can connect my grouper to my PC and enter adb reboot bootloader command. But I'm not sure what to do next to fix the cache error in recovery. Any suggestions? Thx

---------- Post added at 04:34 PM ---------- Previous post was at 04:18 PM ----------

Quote:
Originally Posted by DSTear

Wrong link in the post. Downloaded and flashed the last build on my device. After flashing ROM my device was getting cycle reboots and error with cache partition. Fixed that using ADB. ROM seems unstable and buggy. Getting error with Bluetooth share after booting. Navbar and top bar are always black. Old launcher isn't good. Replace it with any good launcher, please. I hope you'll keep work on it. Thank you, good job!

Hi @DSTear, I'm running into the same problem on the cache partition as you. I'd appreciate if you could share your method on fixing the cache error in advance. Thx

I was managed to restore the backup and install twrp again.
I think I will retire my grouper on MM now.
24th September 2016, 07:23 AM |#11  
AndDiSa's Avatar
OP Senior Member
Flag Heidelberg
Thanks Meter: 4,163
 
More
As I can see, there are two main problems you ran into:
- you are using f2fs for cache and / or data and the version of twrp you are using is not supporting that file type
- you are flashing gapps / SuperSU /... but the space on /system is not sufficient
I'll update the OP to make aware of those possible issues and give some hints how to prevent them.

Sent from my Nexus 7 using XDA-Developers mobile app
The Following User Says Thank You to AndDiSa For This Useful Post: [ View ] Gift AndDiSa Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes