yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] beppemila:
I checked and provided all permissions to all google apps. SOme of them were not activated.

Regardless, I still kept having the 'Google Play services keeps stopping' message.

So I decided to factory reset again and move to the latest 7.1.2.

Installed everything including superSU. Rooted ok.

Granted all permissions to all google apps.

Nothing.... same annoying message. The logcat is attached.

What I do not understand is how I get this behavior now despite the factory resets while I never had any issue after installing the 7.1.1 version of the ROM the first time...:confused:

Thank you a lot for your support.:good:
[Nexus 7 Android Development] 123x:
Does this ROM support DRM?

How is its performance compared to CM12.1 official?
[Nexus 7 Android Development] AndDiSa:
[MENTION=4793590]beppemila[/MENTION] it's still the same issue ... can you have y look at your location settings and probably enable / change temporarily location settings?

Google's play services are trying to get your location but don't have a permission to do so which then is causing a crash of the Google play services ...
[Nexus 7 Android Development] AndDiSa:
[MENTION=6760088]123x[/MENTION] I do not have problems with DRM, but really speaking I am not using it such much. Performance for me is quite good, much faster then with the latest official 5.1, but it depends much on the applications and services you are using. The more apps / services are running in background the slower the tablet is responding, e.g. you always notice when google play store is looking for / innstalling updates ...
[Nexus 7 Android Development] AdriK:
[MENTION=4793590]beppemila[/MENTION]

Did you follow the instruction on page 1 exactly when flashing the image?

The important step is NEVER to boot android, before installing Gapps.

I use the Mini_Dynamic_Gapps, recommended on the first page and never had any problems with all version of the firmware.
[Nexus 7 Android Development] CutGlass:
Er sorry but I disagree entirely, the only way I got 7.1.2 installed without the wizard crash and any other issues by installing and booting and then installing gapps pico, I wrote very detailed instructions here

https://xdaforums.com/nexus-7/devel...sp-grouper-t3467514/post71826263#post71826263

based on the work of [MENTION=7682126]pehlm[/MENTION]
[Nexus 7 Android Development] beppemila:
[MENTION=7981445]CutGlass[/MENTION] I can confirm I had to reboot after Rom installation to avoid setup wizard crash

---------- Post added at 03:10 PM ---------- Previous post was at 03:06 PM ----------

I enabled high accuracy location settings and rebooted but I still got the same error... weird...
[Nexus 7 Android Development] MarkyboyUK:
Have you tried in this order?

1) Full wipe

2) Flash ROM in TWRP

3) Reboot tablet straight back into TWRP recovery (NOT the normal reboot)

4) Install Gapps

5) Reboot
[Nexus 7 Android Development] oldman_58:
I just built a home brew version of this ROM.. Thanks [MENTION=486859]AnDiSa[/MENTION] for your assist..

Feel free to remove this post if you don't want people trying this themselves.

How to build Tilapia and Grouper from Source

Ubuntu 16.04 LTS

Load Oracle Java

sudo add-apt-repository ppa:webupd8team/java

sudo apt update; sudo apt install oracle-java8-installer

javac -version

sudo apt install oracle-java8-set-default

Now load Git
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo

sudo apt-get install git-core
sudo apt-get install gnupg
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install gperf
sudo apt-get install build-essential
sudo apt-get install zip
sudo apt-get install curl
sudo apt-get install zlib1g-dev
sudo apt-get install gcc-multilib
sudo apt-get install g++-multilib
sudo apt-get install libc6-dev-i386
sudo apt-get install lib32ncurses5-dev
sudo apt-get install x11proto-core-dev
sudo apt-get install libx11-dev
sudo apt-get install lib32z-dev ccache
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libxml2-utils
sudo apt-get install xsltproc
sudo apt-get install unzip
sudo apt-get install schedtool

sudo gedit .bashrc

Add these lines at the end of the “.bashrc” file

cd nexus7 (YOURDIECTORY_NAME)
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx8g"
./prebuilts/sdk/tools/jack-admin kill-server
./prebuilts/sdk/tools/jack-admin start-server
ccache -C

git config --global user.email “YOUREMAIL@Domai.XXX”
git config --global user.name "YOURNAME”

Save and close
(After you do this close Terminal and re-open)

==========
Open a terminal window and make sure your in the directory you created

Then run:
repo init -u https://github.com/AndDiSa/platform_manifest-Grouper-AOSP.git -b ads-7.1.0

repo sync

#You can go to lunch while repo Sync is building#

...Make Sure you run the patches...
cd build
patch -p 1 < ../.repo/manifests/build.patch
cd ..
cd frameworks/av
patch -p 1 < ../../.repo/manifests/frameworks_av.patch
cd ../..
cd frameworks/base
patch -p 1 < ../../.repo/manifests/frameworks_base.patch
cd ../..
cd frameworks/native
patch -p 1 < ../../.repo/manifests/frameworks_native.patch
cd ../..
cd hardware/ril
patch -p 1 < ../../.repo/manifests/hardware_ril.patch
cd ../..
cd packages/apps/Music
patch -p 1 < ../../../.repo/manifests/packages_apps_music.patch
cd ../../..
cd system/core
patch -p 1 < ../../.repo/manifests/system_core.patch
cd ../..
cd system/sepolicy
patch -p 1 < ../../.repo/manifests/system_sepolicy.patch
cd ../..
. build/envsetup.sh
lunch 9 # for making grouper 7 use 9 for tilapia
make -j otapackage
[Nexus 7 Android Development] Codster314:
Yea I think you should try what MarkyboyUK said above... If you read the first page, it clearly says "Reboot into recovery" AFTER you Flash the rom, then you flash GAPPS and such. You do not have to do a full reboot into the system, just a reboot into recovery. If you go to TRWP, and click "REBOOT" there is even an option to just "Reboot to Recovery" automatically. You should do it after the ROM Flash, and you won't have any GAPPS issues I think.
[Nexus 7 Android Development] AndDiSa:
[MENTION=7056085]Codster314[/MENTION] generally you are right, especially if you are only doing an update, but there is an issue with 7.1.2 and gapps which leads you to the situation that the setup wizard is crashing when you are installing for the first time or wiped before.

Probably booting the ROM, skipping the setup, configuring and switching on WiFi, rebooting into recovery, installing gapps and rebooting into the ROM will do. I never tried it by myself and I suggest everybody to check app permissions for Google apps afterwards to prevent force closes ...
[Nexus 7 Android Development] williamlaw:
I have flashed Grouper on my Tilapia.

I found mobile signal drain much battery.

Is any fix ?

Thanks
[Nexus 7 Android Development] beppemila:
I tried, no luck :( still getting the Google play service FC...

---------- Post added at 12:08 AM ---------- Previous post was at 12:05 AM ----------

I tried but no luck.

I honestly don't know what to try.

Do I have any more 'radical' option?

---------- Post added at 12:09 AM ---------- Previous post was at 12:08 AM ----------

I tried but no luck.

I honestly don't know what to try.

Do I have any more 'radical' option?
[Nexus 7 Android Development] CutGlass:
Only install AOSP. If that works move forward. Seriously, you need to reduce the variables to the bare minimum, standard debugging practice.
[Nexus 7 Android Development] beppemila:
[MENTION=7981445]CutGlass[/MENTION] ok I'm willing to do that. Can you just guide me through the key steps/links. I can't understand exactly what 'install AOSP' means in practice. Thank you for helping :)
[Nexus 7 Android Development] kwsam9:
[MENTION=4793590]beppemila[/MENTION] Just wanna share some observation/suggestion.

1. Have you tried installing 7.1.1 again ? If it works, then the problem may be with 7.1.2.

2. What version of TWRP are you using ? I notice that with 3.1.0, when you wanna to do a clean install by wiping the system partition, you will have problem booting back into recovery immediately after flashing the ROM. It will always boot into the OS, you don't have a choice. You won't be able to flash GApps before the first boot into the OS. However, if you did not wipe the system partition, you can boot into recovery after flashing the ROM. Version 3.0.2 doesn't behave this way. I encountered this on both my N4 and N7. You may wanna experiment with this to see if it helps.
[Nexus 7 Android Development] CutGlass:
Input from other users would be appreciated as to the file system type

Wipe everything off in TWRP using the advanced feature as in don't install factory image.

Wipe out the cache/ dalvik.

Other users may advise you to format the partitions as either ext4 or f2fs

Reboot into TWRP (recovery) and it should complain that you have no operating system installed.

Put on only the AOSP image from this thread.

Reboot and see if you have a working tablet.
[Nexus 7 Android Development] 48ZMoK:
Regarding the setup Wizard crash, just to say that after reading this thread backwards most of the workarounds involving rebooting into recovery before flashing Gapps did not work for me. However this workaround worked great and allowed me to complete the setup wizard:

(A reboot into system before flashing Gapps does work but skips the setup wizard entirely.)
[Nexus 7 Android Development] TuxVinyards:
[MENTION=4793590]beppemila[/MENTION] You are getting good advice from [MENTION=7981445]CutGlass[/MENTION]. In fact +1 to him for earlier postings which helped me too.

There is always the possibility of hardware incompatibility. Newer kernels can sometimes cause unexpected problems on older hardware. My N7 has revision 9 of the standard A7a core and 16Gb. Different fabs could have different board chips too ....

However, seeing you ask/explain to [MENTION=7981445]CutGlass[/MENTION] " I can't understand exactly what 'install AOSP' means" makes me wonder if you followed the procedure correctly. What happened when you put the on first ROM. Did everything work correctly at that stage? Did you test your internet/WiFi with webview maybe?

Knowing if stage one, the AOSP rom, installs and works correctly is the first step.
[Nexus 7 Android Development] beppemila:
Hi [MENTION=8237904]TuxVinyards[/MENTION], my first installation of the 7.1.1 feb release was perfect. I came form 6.0 and followed the procedure step by step with no issues at all.

Then I decided to upgrade to 7.1.2, again with the same procedure and that got me the Google play services issue.

I then factory reset and reinstalled multiple times with different sequences according to the kind suggestions on this thread but without any luck.

Now I'm just backing up my data before a full wipe of the tablet and trying to reinstall 7.1.2 from scratch. Let's see how it goes. I will report results here of course.

UPDATE: Tried all the steps above... same Google Play Service force close... Now... going from 7.1.1 to 7.1.2 I upgraded TWRP from 3.0.2 to 3.1.0... I'll switch back to 3.0.2 and repeat everything
[Nexus 7 Android Development] beppemila:
[MENTION=2188693]AndDiSa[/MENTION] [MENTION=7981445]CutGlass[/MENTION] I was finally succesfull in installing the 7.1.1 february version of the ROM.

I've tried different combinations but this this is what worked for me:

1. Wipe everything and format data

2. Install the AOSP ROM+GAPPS+SuperSU exactly following the steps in post #1

3. Go trough the SEtup Wizard succesfully and enjoy

For your info, the same process with the latest 7.1.2 give me the Setup Wizard crash. Rebooting to system after the AOSP installation and then installing Gapps and SuperSU gives me the Google play services FC.

Anyway, I'm happy with 7.1.1. No big deal.

[MENTION=2188693]AndDiSa[/MENTION] how can I import in my current 7.1.1 the kernel settings included in the latest 7.1.2 version? I'm very much interested in the optimizations you made.

Thank you a lot to all the people here that were willing to support me during these tests.
[Nexus 7 Android Development] AndDiSa:
[MENTION=270777]bepe[/MENTION]milla but if you now have a running system you should be able to upgrade without running into the setup wizard issue ... as long as you do not wipe data. I suggest you to do a nandroid backup of your current installation and then try to do an update installation to 7.1.2. If you run into issues you can always go back to the backup ...
[Nexus 7 Android Development] Theyrealone:
works. used command and signed to wifi.

don't work in a dark room, auto brightness is on and it sets the screen to complete blackness
[Nexus 7 Android Development] Apekaas:
Hello all, first off what a great rom this is! Blown back life in my old Grouper again ?

Does any of you have experience with the game Riven: Sequel to Myst? https://play.google.com/store/apps/details?id=com.noodlecake.riven

Bought it last night but the game runs with a black screen, however with sound and user interface. Do you think there is a fix for it or is the hardware of the Nexus 7 too outdated to run a game like this?
[Nexus 7 Android Development] igor1st:
[MENTION=2188693]AndDiSa[/MENTION]

Tilapia builds seems to be out of sync with grouper. For instance zram isn't activated - swap size is 0. fstab and init content looks like before Dec 2016.
[Nexus 7 Android Development] aaopt:
If you go into a less dark room and then set the brightness a bit higher, the dark room should be OK, at least enough to adjust brightness further.
[Nexus 7 Android Development] beppemila:
I tried, but it always crashes...
[Nexus 7 Android Development] AndDiSa:
... and you are flashing gapps again?
[Nexus 7 Android Development] AndDiSa:
[MENTION=7655286]igor1st[/MENTION] thank you for the hint, I didn't realize that millosr changed the branch. I've just updated the sources and the next build will fix this issue.
[Nexus 7 Android Development] breaktheblock:
Sorry but I am still having problems with Google Chrome if anyone can help?

Chrome crashes after a short time and saying aw snap! and Google gives a few suggestions but none work. I am using using grouper with 20170410 and gapps pico to give you an idea of what is on the tablet (very little).

I have ruled out my Internet connection by trying others.

I have restarted the tablet, still the same problem.

Cleared the cache, cookies and browsing data, still the same problem.

So I tried the last of Google's suggestions, closing tabs, it is still happening with 1 tab (I previous had 4/5 open and was crashing, but still crashing instantly with 1 tab) I suspect that the RAM is getting filled up or something within the android partitions (sorry I don't know I'm a noob maybe system data?)

---------- Post added at 10:47 PM ---------- Previous post was at 10:44 PM ----------

A strange thing happened today. I attempted to connect to a home WiFi router the password was being authenticated (I was sure I put the correct one in) the tablet failed to connect crashed, reset itself and when it came back it said "UI could not be loaded" stop or wait.

I ended up wiping and flashing the ROM again as I could not get past this.
[Nexus 7 Android Development] shaggyskunk:
Did you try uninstalling Chrome - Reboot and reinstall Chrome?

I had some difficulties with the latest Build - Solution for me was to uninstall apps that were crashing and reinstalling them from the Store. 04/29 Open Gapps Pico.
[Nexus 7 Android Development] 123x:
When there is an update, can I just flash the new ROM via TWRP without losing data or do I have to do anything else like wiping or reinstalling Google Apps?
[Nexus 7 Android Development] Codster314:
When a new version of the rom comes out, it would be great if it enabled "Night Light" under the display settings. This is a standard "Android" feature. Not a custom setting or anything like that. Just a standard 7.1.2 feature. :)

http://www.androidcentral.com/how-use-blue-light-killing-night-light-google-pixel
[Nexus 7 Android Development] shaggyskunk:
You probably should at least go to the Advanced tab in Wipe and wipe System and Caches - You will have to Flash Gapps as well as the Rom - But you won't lose any of your downloaded apps from the store or your settings... If however you have any issues - BEFORE reporting them - Perform a Full Clean Flash - ie: Factory Reset - Advanced in TWRP 3.1.0-0 - Manually Wipe System - Data and Caches - Flash Rom - Reboot - Reboot again into Recovery and Flash Gapps 7.1 - Reboot and Setup.
[Nexus 7 Android Development] breaktheblock:
Unfortunately this did not work. Gapps Pico 04/30. The only way I can see to solve this is to use another browser, which isn't preferable.
[Nexus 7 Android Development] shaggyskunk:
I don't know what to say - Its working on my Nexus 7 2012
[Nexus 7 Android Development] DrCheesecake:
[MENTION=2188693]AndDiSa[/MENTION] Thanks for that. I retried applying all of the patches (including hardware_ril.patch, I have checked and the -1 line has been inserted) and 3G still won't work. I tried to look for an error message in the build output, but I'm note sure what I'm looking for as there are quite a few warnings and notes. I'm still quite keen to get it building and understand Android a bit more. Do you have any suggestions?
[Nexus 7 Android Development] 123x:
Hi, TWRP asks whether it should install the TWRP app. I didn't, because I thought it would need too much space. Should I install it?
[Nexus 7 Android Development] CutGlass:
Nah, it doesn't appear to serve much practical purpose. If you have a stable TWRP use that and then forget about (I have installed it, uninstalled it, added new Release candidates and always end up going to whatever was saved on my hard drive from months ago, if it works and is stable then don't rock the boat).

LineageOS are trying to work with an update script to get TWRP to install updates but that's not applicable in this case, so no big reason to change.
[Nexus 7 Android Development] pearsonpsh:
I'm so glad I updated from OctOS M from last July to this ROM.

I've had the f2fs file system for a while, I think a little over a year ago I got to the point where this tablet seemed like it couldn't handle the load of Gplay services so I was desperate to find a fix for my once beloved, battery sipping tablet.

Even after I switched to f2fs, it was still unusably slow with the ROMs I tried.

This ROM brought my Nexus 7, my first of three (maybe soon to be 4, I might get the 6P because paying iPhone prices for any phone is stupid), back to life.

Only problem I have: Google play services fc's and shows the fc message for a while, but they can be silenced after a few of the pop ups. This isn't really a problem for me, on my old ROM Google play services moved so slowly Chrome, YouTube, or any other google app would be unusable, and the force closes it does have don't seem to impact use.

Great ROM!
[Nexus 7 Android Development] frankusb:
[MENTION=2188693]AndDiSa[/MENTION] do you plan on removing the shim and removing GL_EXT_unpack_subimage as done here?
[Nexus 7 Android Development] namerke:
That patch set is not merged yet and therefore probably not tested wildly. But if it's a cure to force closes without the shim's performance drop on the UI it's more then welcome.
[Nexus 7 Android Development] AndDiSa:
[MENTION=3771488]frankusb[/MENTION] I will have a look and will do some tests. If everything is going well it will be included in the next release.
[Nexus 7 Android Development] AndDiSa:
New version based on android-7.1.2_r10 is uploaded

I just uploaded the new version of the ROM based on android 7.1.2_r10. There are not too many changes in respect to the previous version, mostly security fixes and stability improvements:

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 [MENTION=2633638]Ziyan[/MENTION] , [MENTION=4619263]sheffzor[/MENTION] and [MENTION=5799877]csk1jw[/MENTION])

The Tilapa-Version is now based on the nAOSP-7.1.2 branch from [MENTION=6754437]millosr[/MENTION] as I do not have a Tilapia device I was not able to test this version, please report issues if there are some!
[Nexus 7 Android Development] dark0shark:
Just flashed the 20170505 build, runs smooth and stable as always, great - thanks a lot [MENTION=2188693]AndDiSa[/MENTION]! Used the Open GApps (arm/7.1/nano) from http://opengapps.org/ instead of the in the OP suggested Beans GApps: after installation they leave 41.3 MByte free in /system, see screenshot of "df -h". So it's ok to take them, too.
[Nexus 7 Android Development] igor1st:
[MENTION=2188693]AndDiSa[/MENTION]

One serious problem with tilapia build is the same one I reported about in UA thread - radio dies after several hours of uptime in sleep. millosr added a workaround today (commit). Can you make the new build with it for tilapia?

Also now we have small cosmetics issues - in display settings we got options for Ambient display and Tap to wake, that he uses for his builds.
[Nexus 7 Android Development] Troublicious:
Best rom ever for our Nexus 7: thank you for your work AndDiSa ! !

I had some random reboots, little stutters and freeze when too many apps where launched on the april version, but this 0505 build corrected all of these !

What i use that works perfectly: firefox, youtube, molotov, DjiGo … ?
[Nexus 7 Android Development] AndDiSa:
[MENTION=7655286]igor1st[/MENTION] thank you for the hint with the new patch in hardware/ril. I've added it to my sources now and it will be included within the next build for Tilapia. For those building the ROM from sources, I've already commited the change to my repo.

Regarding the other options Tap2Wake and AmbientDisplay: those are features not included within the ROM and currently I don't have the intention to add them.
[Nexus 7 Android Development] mausbock:
I have huge battery drain since flashing the new talipa version. I used only flight mode and Wifi on.
[Nexus 7 Android Development] igor1st:
No, I don't want them to be included. It would be nice to hide them somehow, because they can confuse some users - they are present in settings, but don't work (at least Tap to wake). This is minor cosmetic problem, which I decided to tell you about. Your builds are excellent as is now, because of clean AOSP code.

Can you make new build for tilapia in the coming week, as replacement for current and as an exception? Problem with radio death is quite serious, I can't at the moment build from sources, and I'll have this tablet and test software for it only for another week. It would be great if you could.

Can't confirm this. Uptime 14h, deep sleep 96% of time. Wifi and radio are enabled. But I saw some problems recently with new google play services (10.5.x) and android 6.0, so started to flash opengapps pico 20170301, which includes 10.2.98 version of GPS.
[Nexus 7 Android Development] AndDiSa:
[MENTION=6755201]mausbock[/MENTION] The values for 'Sonstiges' and 'Ruhezustand' are much too high. I suppose there is an application holding a wakelock, but without any additional information it's a bit difficult to say. Can you e.g. provide with a logcat?
[Nexus 7 Android Development] capounet:
Updated strictly according to AnDiSa OP instructions. Tested during one hour with my usual apps. Everything ok . Very fluid. No battery drain.

One again thanks for this work. Regards, Philippe
[Nexus 7 Android Development] AndDiSa:
[MENTION=7655286]igor1st[/MENTION] sorry, but I do not have them on my device. Your are probably comming from a different ROM and did not wipe before? Or you restored system settings from another ROM by e.g. Titanium?

Btw.: the new Tilapia build will be uploaded most likely tomorrow
[Nexus 7 Android Development] igor1st:
Oh, maybe what I wrote earlier isn't very clear (sorry for my bad english). This settings comes from updated millosr's device tree, that you uses for tilapia. So they appeared in your last build for tilapia.