yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] OlliWi:
i did that but i cannot boot into the recovery I flashed, i´m stuck in google logo

already tried wiping cache without success

Is there a way to rebuild the cache partition with new filesystem?

/edit: wipe say success but also "Failed to mount '/cache' (Invalid argument)

/edit2: check your email

trying to copy new ROM with adb push also fails:

adb push aosp_tilapia-7.1.2-ota-20220409.eng.ds.zip /sdcard/Download

adb: error: failed to copy 'aosp_tilapia-7.1.2-ota-20220409.eng.ds.zip' to '/sdcard/Download/aosp_tilapia-7.1.2-ota-20220409.eng.ds.zip': remote Read-only file system

aosp_tilapia-7.1.2-ota-20220409.eng.ds.zip: 0 files pushed, 0 skipped. 6.1 MB/s (131056 bytes in 0.020s)
[Nexus 7 Android Development] Baonks81:
I found more smooth this tablet, change Smallest width -> 598 dp in Developer Option. Basically, making it nearby phone GUI
[Nexus 7 Android Development] vishnumrao:
Firstly thanks @AndDiSa for maintaining this ROM. I see latest build is dated 20220311. Thats pretty impressive.

I have a grouper that was running stock 5.1.1. Slow, slow, slow. So I decided to flash your rom.

I flashed TWRP via fastboot recovery twrp.img. Then installed the AOSP ROM and gaps pico version along with the error 70 workaround in your second post. Installation went smoothly. So far so good.

I rebooted. It popped the google logo and then android. after a couple of minutes it came up with the setup screen. Then I get the message that "clock has stopped" and then "Google Services Framework has stopped". I hit close and then i get this recurring message "Google services framework keep stopping".

Due to the recurring message, that pops immediately after closing the error notification, I can't even complete the set up step.

Any steps I missed in my installation ? I did not read through all the comments on this thread. Any guidance anyone can provide?
[Nexus 7 Android Development] :
Did you flash ROM and apps together, i.e.without booting? If so, trying flashing the ROM only* then boot, allow that bit of set up to complete, connect to WiFi etc THEN reboot to recovery and flash Gapps.

*wipe again before reflashing
[Nexus 7 Android Development] vishnumrao:
Yes, I installed them both in one shot, as thats what I have done on other devices like my oneplus and essential phones.

I will try installing one at a time and update this thread.
[Nexus 7 Android Development] vishnumrao:
So I redid the install with the following steps:

1. rebooted into bootloader, flashed twrp

2. wiped all partitions

3. mounted the data partition and then flashed AOSP only.

4. rebooted and AOSP loads.

But unfortunately now I get another error "Launcher keeps stopping". Closing the error message merely brings back the same error message.

Any thoughts?

Edit:

I followed through and installed the gapps package as well. I reproduced the same "google framework keeps stopping" error.
[Nexus 7 Android Development] Vladimir Gor:
Hello everyone, tell me it gives error 64 in tvrp when installing gaps. firmware 7.1 what is better to do, choose another firmware or can I solve it somehow?open_gapps-arm64-7.1-pico-20220503
[Nexus 7 Android Development] devegz:
I tried different ways, but the only solution for a clean install is to install the very first firmware version 20170105. Then the latest one as an update. Then gapps.
[Nexus 7 Android Development] vishnumrao:
Thank you very much. That worked.

Here is what I did:

1. I did a full wipe.

2. I flashed grouper image dated 20170105.

3. booted up the nexus 7 to check all is well.

4. rebooted and flashed the latest image from 20220311

5. rebooted to recovery and flashed gapps (with workaround for Error 70 file)

6. rebooted into Android and voila all is great.

remains to be seen how snappy or slow this ageing tablet is.
[Nexus 7 Android Development] :
Neither snappy nor slow but perfectly usable. I'm glad you got it sorted :)

Credit to @devegz , I wouldn't have thought of that answer. Something for me to remember.
[Nexus 7 Android Development] ayunatsume:
When this happened to me (two years ago?), I formatted my data partition to f2fs (which made everything crash) then back to ext4. That seems to have worked for me that time. MIght work for others.
[Nexus 7 Android Development] Baonks81:
@AndDiSa how could I apply this to grouper init.rc in rom!? I tested running smoothly, so I want to push it default

android7.1.2/ktweak · main · Baonks81 / Nexus 7 2012 grouper Android 7.1.2 kernel parameters and virtual memories · GitLab

Dummy from Android 7.1.2

gitlab.com

android7.1.2/sysctl.conf · main · Baonks81 / Nexus 7 2012 grouper Android 7.1.2 kernel parameters and virtual memories · GitLab

Dummy from Android 7.1.2

gitlab.com
[Nexus 7 Android Development] AndDiSa:
@Baonks81 well ... if you build the ROM from the sources, you can apply the values you would like to modify in the init.grouper.rc file (located in device/asus/grouper) like you are doing it in your ktweak script. Then you need to build the boot.img and you can fastboot flash it, or ... you build the complete ota-package and flash it like it's described in the OP.
[Nexus 7 Android Development] dark0shark:
Flashing brand new Magisk 25.0 and updating the app works like a charm on our Nexus 7.
[Nexus 7 Android Development] AndDiSa:
@dark0shark thank you very much for the info. I'll update the OP accordingly.
[Nexus 7 Android Development] lfs6r:
Cundy crush saga 4.4.4 not supported :D. This rom stable but cundy crush very low fps. :(

Gapps twrp error code 70.

Problem solved, grouper config fixed.
[Nexus 7 Android Development] AndDiSa:
New Versions 7.1.2 (2022-06-05) are available

I uploaded a new release with updated security, i.e. the security paches for Mai 2022 and June 2022

The full list of changes, as always, you can find in my Github repos

The "standard" versions for Grouper / Tilapia are available for download:

aosp_grouper-7.1.2-ota-20220610.eng.ds.zip (MD5: bd7fdf527a62bb057b2d9281fe68efe4)

aosp_tilapia-7.1.2-ota-20220610.eng.ds.zip (MD5: 92fa6fdd5b8a882649026238977edc93)

as well as the MicroG-Patched images:

aosp_grouper-7.1.2-mg-ota-20220610.eng.ds.zip (MD5: 42a922ec928b9b0ea786f88b075244e1)

aosp_tilapia-7.1.2-mg-ota-20220610.eng.ds.zip (MD5: 4e4b94a66cfae79dde1efdc7657ae1a0)

I quickly tested the ROM and didn't find issues, nevertheless I will wait for feedback from the community before I'll add the new version to the OP.

If you report a successful (or unsuccessful :)) installation, please note which version (Grouper / Tilapia, with or without MicroG-patch) you have installed and tested. Thank you very much!
[Nexus 7 Android Development] breaktheblock:
I hope you can help.

I have clean wiped my N7 grouper, TWRP is the latest, I try to install the ROM only, mg or non-mg.

Every time I get a message saying Launcher keeps stopping and makes the N7 unusable.

I clear the dalvik and cache and try f2fs instead but nothing seems to work.

This is the same for the last 10 or so ROMS.

Any ideas how this could be fixed?
[Nexus 7 Android Development] AndDiSa:
Hmmm .. not really. Can you provide a logcat?

I'll try to flash the grouper version on my tilapia device to see whether I can reproduce that behaviour.

@breaktheblock I just flashed the grouper images onto my tilapia without any issues. It must be something related to your device / configuration.
[Nexus 7 Android Development] momentoid:
Quick installed standard Grouper version of 2022-06-05 ROM and latest available (Feb 15, 2022) version of GApps. Everything 👍 Just had to uninstall/reinstall Kindle app. Thanks @AndDiSa!

Short story: It looked like the end of my Nexus 2012 when the tablet stopped charging and the port had a burnt smell. Fortunately, found a replacement charging port on Amazon and my Nexus 2012 lives on🍻😀
[Nexus 7 Android Development] breaktheblock:
Hi AndDiSa,

I agree it must be my device.

I installed Android Studio and manually pasted the text into the attached, unfortunately I wasn't sure which you needed. the N7 does not last very long before it crashes and the logs disappear. Hopefully these will be enough for you to investigate for me.
[Nexus 7 Android Development] breaktheblock:
Verbose log isn't uploading, its 612kb?

Which text do you need?

Verbose

Debug

Info

Warn

Error

Assert
[Nexus 7 Android Development] AndDiSa:
@breaktheblock What's the problem with 612kb? It's almost nothing ... I would need some logs around the crash of the application.

... ok, I just had a look at 5he error.txt and it's full of "permission denied" or "cannot open file".

At least the file system is corrupted, in the worse case your flash memory is going to die ...

I would try to do a file system check on /data and /cache

If that doesn't help, I would try to do a full wipe and re-install everything

If that doesn't help neither ... I don't know
[Nexus 7 Android Development] breaktheblock:
@AndDiSa

Yes I am unsure why my verbose text file won't upload as it is small.

When doing a wipe I advance wipe all options.

I'm not sure why the file system would be corrupted on a fresh install.

How do I check the /data and /cache partitions, can I do it through twrp terminal, if so how?
[Nexus 7 Android Development] :
All okay here on grouper mg (y)
[Nexus 7 Android Development] dark0shark:
Same here with standard grouper and brand new TWRP 3.9.2.
[Nexus 7 Android Development] :
Thanks for the pointer. Downloaded and installed. :)
[Nexus 7 Android Development] melkozerov:
OOPS!

no mirrors found.
[Nexus 7 Android Development] BeeJ1109:
No mirrors on AFH. for Tilapia OTA or mg versions. 20220605

Cheers BJ
[Nexus 7 Android Development] rahimali:
I had that issue as well on my grouper after clean flash. I just went into TWRP and replaced the offending launcher with a more cooperative one ;)

@AndDiSa, unable to download either variant for grouper, can you add mirrors away from AFH please. Thanks!
[Nexus 7 Android Development] BeeJ1109:
@AndDiSa, Still not connecting, left searching for 10 mins.

But AFH Working OK , just downloaded 2 other ROMs, uploaded by other devs, today.

Cheers BJ
[Nexus 7 Android Development] AndDiSa:
@BeeJ1109 sorry, but probably you should complain directly at AndroidFileHost most likely it depends on the country from where you try to download the files.

@rahimali AFH is quite convenient for providing the ROM images and generally their service is quite reliable. Other places are more difficult to manage / more costly. In case AFH will worsen in reliability I'll look for alternatives.
[Nexus 7 Android Development] tbmmbt:
I can't get a working download either. I tried using a VPN for various countries but no mirrors found for any of them. Is the latest Grouper file available to download from anywhere else?

Thanks BTW for keeping it going!
[Nexus 7 Android Development] AndDiSa:
Currently I have the same issues as you ... looks as if they do have some bigger performance issues.

Probably I need to start thinking about alternatives to AFH ...
[Nexus 7 Android Development] BeeJ1109:
Hi @AndDiSa,

AFH has had issues for many months now, it has nothing to do with country user lives, I told you I used AFH to download successfully two other Devs' ROMs on same day as your ROM.

I now see that you are now acknowledging issues, as other Devs have done, previously over the last months, they contact AFH, to report issues, such as Mirrors, not working, but they eventually AFH take notice, and fix up their servers, possibly by rebooting, these servers, become active again.

So I suggest, you should contact AFH, and request a fix, same as, the other Devs, have done, several times already.

Hope that helps you with a solution. Other Devs are @matteo0026, @arco68, & @crazydrive22, whom ALL are Devs on various Samsung devices, whom distribute ROM updates, mainly security patches each month for a few years now, on Android 9, 10, 11, and now 12 platforms.

Cheers

BJ
[Nexus 7 Android Development] rahimali:
Mega is an option. You could always use AFH as a backup/mirror or if you have time constraints, just share them on Mega and I'll share on my AFH account (with your permission of course)
[Nexus 7 Android Development] AndDiSa:
I've re-uploaded the files to AFH ... looks as if this solved the mirror issues:

The "standard" versions for Grouper / Tilapia are available for download:

aosp_grouper-7.1.2-ota-20220610.eng.ds.zip (MD5: bd7fdf527a62bb057b2d9281fe68efe4)

aosp_tilapia-7.1.2-ota-20220610.eng.ds.zip (MD5: 92fa6fdd5b8a882649026238977edc93)

as well as the MicroG-Patched images:

aosp_grouper-7.1.2-mg-ota-20220610.eng.ds.zip (MD5: 42a922ec928b9b0ea786f88b075244e1)

aosp_tilapia-7.1.2-mg-ota-20220610.eng.ds.zip (MD5: 4e4b94a66cfae79dde1efdc7657ae1a0)
[Nexus 7 Android Development] AndDiSa:
... Mega isn't really an option as I really do not like it. May be it's aprejudice but some years ago Mega had massive issues with virus / malware / etc. since then it's a no go for me.
[Nexus 7 Android Development] rahimali:
You could look into mediafire or google drive as alternatives, post new builds there and archive old builds to AFH. Can't really think of any other alternatives off the top of my head, maybe someone else can share some options...

Thanks for all that you do, keeping this dated device alive after all these years! :)(y)
[Nexus 7 Android Development] breaktheblock:
I have managed to get my grouper to install without any launcher errors, took many goes. I think it worked by formatting data then advanced wipe but I cannot be sure.

#comment System keeps unmounting itself in TWRP but this may be normal.

When I flash a zip such as Magisk or FDroid using TWRP with usb-otg they don't appear as apps? It has worked in the past, I am thinking it might be flash going bad as previously raised, but I don't know the code to test this. However how do the ROM's install and not fail installation if flash is bad?
[Nexus 7 Android Development] dark0shark:
And updating Magisk app to 25.1 and after that flashing Magisk from within the app works great, too.
[Nexus 7 Android Development] AndDiSa:
@rahimali

... an additional reason not to use Mega: POC for exploitation
[Nexus 7 Android Development] rahimali:
damn! i was about to create my 12th free mega account :ROFLMAO:
[Nexus 7 Android Development] Baonks81:
My tilapia work good with aosp_tilapia-7.1.2-ota-20220610.eng.ds.zip. Tested

Thanks for support
[Nexus 7 Android Development] Baonks81:
What does /sys/class/thermal/cooling_device0/cur_state mean? @AndDiSa

I saw state which was 0 to 10. I changed 1-10, the cpufreq will throttle freqs step.

And the temperatures warning 80 degree, shutdown at 90 degree in downstream kernel

But in upstream kernel, temperature shutdown was 60 degree. It's quite different
[Nexus 7 Android Development] nikobadboy:
Does anyone know a usable oc kernel for this version of rom ? I want to overclock my nexus 7 2012 cpu from 1300 to 1500 Mhz and i see only old roms with old kernel inside or old kernels for android 6 and nothing usable with this rom. Anyway, i use last update with micro og and it is working very well until now. I installed f-droid and aurora store for lack of playstore and it is fine. The microG version is snappier than playstore version (if you install gapps pico version). I also formatted data and cache to f2fs system file from ext4 and the difference is notable.
[Nexus 7 Android Development] Baonks81:
You must tweak kernel parameters and governors. Overclock will take too hot and brick device, even damaged it. Also I tested f2fs and ext4 on Nexus 7 2012, grouper and tilapia, not improve any speed, the same

This device will pass 60 degrees when it reach 1300Mhz, with normal environment. So don't think it run good at 1500Mhz without fan or throttle frequency
[Nexus 7 Android Development] AndDiSa:
@Baonks81 not sure whether you had already a look at Kernel documentation

Frankly speaking I didn't change anything there (at least not that I was aware of).
[Nexus 7 Android Development] Baonks81:
Oh amazing, thanks for share this link, I didn't know it existed, it's great documents which I will read and researching those cdev0, thermal zone and more lol

I finished ktweak and sysctl.conf which by using Magisk post.d script, nexus 7 2012 run so fast. It was good when Magisk 25 fix all bugs
[Nexus 7 Android Development] AndDiSa:
New Versions 7.1.2 (2022-07-05) are available

I've uploaded a new release with updated security, i.e. the security paches for July 2022

The full list of changes, as always, you can find in my Github repos

The "standard" versions for Grouper / Tilapia are available for download:

aosp_grouper-7.1.2-ota-20220708.eng.ds.zip (MD5: bf8ef2ca5f2900a95aecee5f710759bc)

aosp_tilapia-7.1.2-ota-20220708.eng.ds.zip (MD5: a8ea2207480e7480a5b726a30c1b0bfc)

as well as the MicroG-Patched images:

aosp_grouper-7.1.2-mg-ota-20220708.eng.ds.zip (MD5: 42a922ec928b9b0ea786f88b075244e1)

aosp_tilapia-7.1.2-mg-ota-20220708.eng.ds.zip (MD5: 65699f319d1c78d2e515b045457f9652)

I quickly tested the ROM and didn't find issues, nevertheless I will wait for feedback from the community before I'll add the new version to the OP.

If you report a successful (or unsuccessful :)) installation, please note which version (Grouper / Tilapia, with or without MicroG-patch) you have installed and tested. Thank you very much!
[Nexus 7 Android Development] dark0shark:
Successfully installed aosp_grouper-7.1.2-ota-20220708.eng.ds.zip, thank you!
[Nexus 7 Android Development] :
Dirty flashed mg grouper (plus magisk) - all good. (y)

As ever, thank you. :)
[Nexus 7 Android Development] nikobadboy:
About difference between f2fs vs ext4 take a look at this:

https://xdaforums.com/t/benchmarks-file-system-performance-f2fs-vs-ext4.2697069/
[Nexus 7 Android Development] marty_bebop:
Grouper - July mg Rom, Magisk 25.1, Aurora Store.

All good - many thanks!
[Nexus 7 Android Development] Baonks81:
This is general, theory was right. But Nexus 7 2012 had GPT Tergra partition, so it's older than f2fs release date. If you use new device, f2fs maybe faster lol

Basically, I had Nexus 7 grouper 32Gb eMMC dead, because I ran ubuntu mate 22.04lts on it and temperature 60 degree celsus with cpu freqs throttle. This is quite stock release, still eMMC dead T_T
[Nexus 7 Android Development] momentoid:
Dirty installed 2022-07-05 version of ROM and Feb 15, 2022 (latest) version of GApps. All good. Thanks @AndDiSa.
[Nexus 7 Android Development] dark0shark:
Magisk 25.2 update is published and works fine, first app update then boot image update from within app.
[Nexus 7 Android Development] Badcatalex:
I am having the same issue as he is. Also grouper. Except only having this issue on this rom.

Edit: Should mention- going into the settings (when gapps isn't flashed) shows that what apps are installed are empty. 0kb.
[Nexus 7 Android Development] brewer75:
Just curious, when you did a "clean wipe" did you also format your data in TWRP?
[Nexus 7 Android Development] ayunatsume:
That did happen to me too when I tried to reflash the system after installing gapps. Cleaning everything, system data cache dalvik, was the only way it got fixed for me.

They can also try to format to another FS (EXT4 seems most stable for me instead of F2FS). They can also run a fs check. A full format of everything also may work.

Else, they can try to restore back to stock. Then do everything again.

If that doesn't work, a corrupted eMMC might be causing this and only an unbrick formatter would could solve that by re-initializing the eMMC.
[Nexus 7 Android Development] nikobadboy:
Guys, i installed an old rom from here:

https://xdaforums.com/t/rom-7-1-2-grouper-unofficial-lineageos-14-1-2021-03-13.4112431/

then wipe all and make f2fs partitions again then i installed last MicroG-Patched version from here and this solved my force close problem.
[Nexus 7 Android Development] Badcatalex:
Yes. Wiped all the partitions where it should be flashing.
[Nexus 7 Android Development] brewer75:
No, not just a wiping, but did you choose to do a data format in TWRP?
[Nexus 7 Android Development] Badcatalex:
Yeah that worked
[Nexus 7 Android Development] nikobadboy:
Hi. what worked for you ? Describe steps please. For me only worked doing this: wipe all and install last version of lineage os 14.1 then boot in the system, reboot in recovery, wipe all, format f2fs, then install last version of aosp microg and that fixed the force close problem.
[Nexus 7 Android Development] Baonks81:
Wow, Nexus 7 2012 run amazing with 2Gb zram. Finally, I made it run smooth lol
[Nexus 7 Android Development] LekisOlen:
Does anyone know if there is a way to make the speaker louder? I don't remember it being this quiet. I looked in the mixer file and i don't see any obvious settings that control the volume of the speaker.
[Nexus 7 Android Development] nikobadboy:
You can by using VIPER4Android FX Legacy Materialized version: v4afx-legacy_v4.4.zip and install it in magisk modules. You must have busybox stericson installed for this module to work properly.
[Nexus 7 Android Development] LekisOlen:
Thank you very much!

Oh btw, another issue I've encountered with this ROM - it seems like sometimes, randomly, when I wake the tablet, the touch screen stops responding. The system is active, I can long press and menus show up, but touch screen is not responsive at all. I have to long press to shut it off and boot the device again to fix the issue.

Does this sound familiar? Anything I can do to troubleshoot this?
[Nexus 7 Android Development] Baonks81:
You have to change ondemand governor, and using ktweak kernel optimize, add more size to zram. That's all I knew, and ghost touch screen disappear
[Nexus 7 Android Development] Tatsh:
How you enable zram? Does the kernel support zRam?

Edit: Such a long time I didn't touch my n7, it does have it XD
[Nexus 7 Android Development] Baonks81:
Yes, kernel supported zram, only 256MB. And priority was 60, I changed to 100 swappiness to using all in zram
[Nexus 7 Android Development] dookie23:
Does modifying the zram and swappiness require root?
[Nexus 7 Android Development] Baonks81:
Yes, of course
[Nexus 7 Android Development] dookie23:
Would you mind posting the instructions on how to get this setup?
[Nexus 7 Android Development] Baonks81:
Root your device with Magisk 25.2

Release Magisk v25.2 · topjohnwu/Magisk

Maintenance release fixing various issues. [MagiskInit] Fix a potential issue when stub cpio is used [MagiskInit] Fix reboot to recovery when stub cpio is used [MagiskInit] Fix sepolicy.rules syml...

github.com

Install termux(or any Android Terminal apps), and busybox on F-Droid or Google Play Store

Install root explorer

android7.1.2/ROOT_EXPLORER_V4.9__PAID_.apk · main · Baonks81 / Nexus 7 2012 grouper Android 7.1.2 kernel parameters and virtual memories · GitLab

Dummy from Android 7.1.2

gitlab.com

Download ktweak and sysctl.conf, copy ktweak to /data/adb/service.d

https://gitlab.com/baonks81/nexus-7-2012-grouper-android-7.1.2-kernel-parameters-and-virtual-memories/-/raw/main/android7.1.2/ktweak?inline=false

Copy sysctl.conf to /system/etc

https://gitlab.com/baonks81/nexus-7-2012-grouper-android-7.1.2-kernel-parameters-and-virtual-memories/-/raw/main/android7.1.2/sysctl.conf?inline=false

Download 97zram, and copy it to /system/etc/init.d(create init.d folder if it's not existed) and /data/adb/service.d

https://gitlab.com/baonks81/nexus-7-2012-grouper-android-7.1.2-kernel-parameters-and-virtual-memories/-/raw/main/android7.1.2/tilapia/97zram?inline=false

Edit /system/build.prop, add 1 more code line support in 97zram file

persist.service.zram=200

Reboot device, open termux, run

su
sh /system/etc/init.d/97zram
sh /data/adb/service.d/ktweak
sysctl -p

Install Diskinfo to checking zram size in swap information

https://gitlab.com/baonks81/nexus-7-2012-grouper-android-7.1.2-kernel-parameters-and-virtual-memories/-/raw/main/android7.1.2/DiskInfo-PRO_dlandroid.com_.apk?inline=false

Basically, I made it come to nearby GNU/Linux. Because I success to configure grouper run GNU/Linux smoothly
[Nexus 7 Android Development] Luckz27:
Hello guys, I'm sorry to bother you but I hope you could help me.

Maybe I'm (a bit) stupid but I couldn't find a proper guide online:

How I can keep root and Magisk (25.2) after I installed a new update?

Thanks in advance!