yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] AndDiSa:
New build is available on OP

I've just uploaded the 20171018-builds for Grouper and Tilapia. Most important changes are:

- KRACK attack fixed

- intelliactive adjustments to optimize battery life and performance

- dd1e85c300acb766b171f21b2ae7fb7c6f5048be grouper: Fix pinmux init race condition reverted to support Tilapia again

Sources are not yet uploaded to github but will be done this evening.
[Nexus 7 Android Development] b4b4.4l1:
Yay. Finally mobile network is back! :D

One thing though, why is it I always can't flash gapps right after the rom? I flashed them together in one go but after initial boot, gapps are not installed. I always have to reflash it again. Do I miss something about this? Not a complaint though.

Will report back for other stuffs :)

EDIT : I can't get Performance Control app to work with Magisk 14. It gives me warning "Root access failed or busybox was not found." I've checked with Magisk Manager, root access is given to the app(it's checked). :confused:
[Nexus 7 Android Development] Ahkah:
audio play problems still there

Thanks for the new version!

Unfortunately the audio problems are still the same, i.e. extremely low volume and broken FLAC support.

Here is a logcat created when trying to seek to a position inside a FLAC audio file:

10-19 10:43:00.755 846 915 I vol.Events: writeEvent active_stream_changed UNKNOWN_STREAM_-1
10-19 10:43:06.222 169 1047 D NuPlayerDriver: seekTo(0x41220a80) 266482 ms at state 5
10-19 10:43:06.222 169 1047 D NuPlayerDriver: notifyListener_l(0x41220a80), (7, 0, 0), loop setting(0, 0)
10-19 10:43:06.234 4930 4930 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 4930 (mediaextractor)
10-19 10:43:06.235 4929 4929 W : debuggerd: handling request: pid=4930 uid=1040 gid=1026 tid=4930
10-19 10:43:06.248 4930 4930 F libc : failed to resend signal during crash: Operation not permitted
10-19 10:43:06.258 148 148 I ServiceManager: service 'media.extractor' died
10-19 10:43:06.260 169 4988 D NuPlayerDriver: notifyListener_l(0x41220a80), (4, 0, 0), loop setting(0, 0)
10-19 10:43:06.260 4810 4850 E MediaPlayer: error (100, 1)
10-19 10:43:06.260 4810 4810 E MediaPlayer: Error (100,1)
10-19 10:43:06.263 169 903 D NuPlayerDriver: reset(0x41220a80) at state 5
10-19 10:43:06.263 169 903 D NuPlayerDriver: notifyListener_l(0x41220a80), (8, 0, 0), loop setting(0, 0)
10-19 10:43:06.276 169 4988 W AMessage: failed to post message as target looper for handler 0 is gone.
10-19 10:43:06.276 169 4988 D NuPlayerDriver: notifyResetComplete(0x41220a80)
10-19 10:43:06.277 169 903 D NuPlayerDriver: reset(0x41220a80) at state 0
10-19 10:43:06.290 4810 4810 E MediaPlayer: pause called in state 1, mPlayer(0x0)
10-19 10:43:06.290 4810 4810 E MediaPlayer: error (-38, 0)
10-19 10:43:06.314 4810 4810 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
10-19 10:43:06.314 4810 4810 E MediaPlayer: Error (-38,0)
10-19 10:43:06.316 149 149 W SurfaceFlinger: couldn't log to binary event log: overflow.
10-19 10:43:06.318 4810 4810 E MediaPlayer: pause called in state 0, mPlayer(0x0)

PS: I could "downdate" to the July version and repeat the test, if that might help.
[Nexus 7 Android Development] mausbock:
[MENTION=2188693]AndDiSa[/MENTION] and [MENTION=6754437]millosr[/MENTION]

Many Thanks to bring mobile data back to life for tilapia.

CPU usage is still very high but overall performance seems to be good. More about this and battery life I will report after testing this ROM for a couple of days.
[Nexus 7 Android Development] andynroid:
On the GAPPS thingy...I do faced the same flashing the ROM then GAPPS after reboot PlayStore is missing....re-flashed it and it does not work well.

FYI had tested on Pico and Bean GAPPS.
[Nexus 7 Android Development] AndDiSa:
[MENTION=4815682]b4b4.4l1[/MENTION] regading the root / Magisk-14 issue: there is a bugfix for Magisk in the queue (14.5-beta should work fine): Currently Magisk from time to time 'forgets' the root access for some applications. Try to re-flash Magisk and root access should be granted [MENTION=5917730]Ahkah[/MENTION] thanks fro the logcat, I'll have a look at it [MENTION=6755201]mausbock[/MENTION] cpu usage is high the first time due to background optimizations, with the current release I was getting 0.3% battery consumption per hour while device was sleeping and 10% per hour while using the device (browsing / reading / ...)

regarding GAPPS, I am not sure for reason of the issue, but I am doing always a reboot into recovery before flashing the GAPPS and that is working fine for me.
[Nexus 7 Android Development] 239:
In the meantime you could use a proper player like VLC or PowerAmp, no problems with FLAC files.
[Nexus 7 Android Development] Ahkah:
As I am developing my own player, which relies on a working OS, that is no valid option for me.
[Nexus 7 Android Development] b4b4.4l1:
Mine works well after reflashing gapps after initial boot. No issue so far.

Thank you for the information on Magisk. I had tried uninstalled and reinstalled but still failed. Root access is granted, as the checkbox in Magisk Manager is checked. Pop up notification is also there in Performance Control app. No problem though as I don't use the app. Not a power user anyway.

For gapps, I'm ok with current solution. Works well so far.

Still no solution for slow charging issue? :confused:
[Nexus 7 Android Development] NIK3SH:
Hello All,

I am planning to install this ROM on my tilapia device.

Presently its running CM with EXT4 partition.

Please let me know if this ROM supports all partition as F2FS or only system one ...

It would be appreciable if someone can navigate me to exact steps from making partition to F2FS and flashing ROM

Thanks in advance
[Nexus 7 Android Development] b4b4.4l1:
I've read and also tried it, not much benefit from using F2FS partition. Just flash with EXT4 and install FSTrimmer and set it to auto trim everyday or as necessary.
[Nexus 7 Android Development] NIK3SH:
Thats really weird.

Technically performance or atleast app opening speed must be improved in F2FS.

but still if we assume its same in both,

Just to save FSTrimmer app schedule to be run in EXT4,

F2FS will be a good option..

Right ?
[Nexus 7 Android Development] b4b4.4l1:
You can search the thread for F2FS discussion from other users. From what I read, yes, this rom is compatible with F2FS, but it doesn't really affect the performance of the rom. Besides, our tablet is old and we know there will be always stuttering here and there.
[Nexus 7 Android Development] NIK3SH:
Hi All,

I just flashed it with F2FS and all working fine.

Will keep you posted if I come across any issue.

Mentioning complete Install Guide herewith for Global reference.

1. Make sure you have the latest version of TWRP 3.1.1+ installed.

2. Reboot to recovery.

3. Go into Wipe/Advanced Wipe

4. Select "System", click on "Repair or Change File System"

5. Click on "Change File System"

6. Select "F2FS"

7. Swipe to Change

8. Repeat Steps 4-7 first for "Cache" and then for "Data" Partition (data must be last)

9. Connect Tablet with OTG to your USB having all ZIP

10. Go back to the main menu of the recovery and select "Reboot"/"Recovery" (this will detect OTG Properly)

11. Navigate to Advance / File Manager / Change Storage / USB & copy all ZIP to sdcard partition Of device

12. Navigate to main menu of recovery / Install & Flash ROM, then Gapps and Root Application Package

13. Wipe Dalvik & Cache Partitions

14. Reboot Device and wait for 20 Min to get first boot process complete...
[Nexus 7 Android Development] Dark Obsessions:
I erased system ,cache ,dalvik , data and internal storage to do a clean instal

I have access to bootloader and twrp recovery but whenever I connect my device to the pc or to otg cable nothing happen , tried to delete and reinstall the drivers with weg tool with no luck [emoji22]
[Nexus 7 Android Development] NIK3SH:
Connect your usb thru OTG (when device is off)

Start device and go to recovery.

Go to twrp / install section

Click "Select Storage" at bottom left corner

Select USB storage

Navigate to ZIP and flash 'em

Done...

Happy Flashing... ?
[Nexus 7 Android Development] BLewis4050:
tablet shuts down during sleep

Have I missed something -- is this a known problem?

I'm running the latest Grouper build, 7.1.2 - 20171018.

It doesn't happen every time it sleeps, but often enough to be frustrating.
[Nexus 7 Android Development] AndDiSa:
[MENTION=5825218]BLewis4050[/MENTION] I've never had such a problem. I can not even imagine, why the device should shut down because on e.g. a kernel oops it would re-boot. If it is possible for you, you could probably send me a the log of /proc/last_kmsg then I might have a look at it.
[Nexus 7 Android Development] BLewis4050:
Attached
[Nexus 7 Android Development] zikario507:
i m trying to install this rom with open gapps, and never show the apps in the main display after rebooting.

why....?
[Nexus 7 Android Development] ffejy462:
It has a small system partition. Choose one of the smaller gapps packages. Make sure that you're using the correct gapps for the device (arm, not arm 64) and Android version.
[Nexus 7 Android Development] AndDiSa:
[MENTION=5825218]BLewis4050[/MENTION] but this is not the dump from /proc/last_kmsg, it's from /proc/kmsg, is it?
[Nexus 7 Android Development] BLewis4050:
Correct, the last_kmsg, from previous boot does not exist.
[Nexus 7 Android Development] b4b4.4l1:
Which one did you use? If I remember it correctly, we can only use nano or pico version cause of partition size restriction.

Also, after rom installed, do the initial boot first, then reboot to recovery and flash gapps and supersu/magisk for root.

I also want to report this build is less stable then Millosr August build. It freezes quite often, even when opening Speedtest app. I also face random shutdown during usage. Not the instant shutdown type, but proper shutdown sequence with the powering down message. I've face this kind of shutdown issue before with other build. Charging is better than previous builds.
[Nexus 7 Android Development] AndDiSa:
unfortunately in kmsg you cannot find the shutdown reason ...
[Nexus 7 Android Development] zikario507:
thanks you so much, i have the correct 7.1nougat gapps.. also i notice that i dont have any sms app, dialer/phone app, and many apps are hidden.. also the file manager app is hidden how can i fix that

thanks you friend, what version did you recommend, also with my tilapia nexus the dialer phone, sms, and other apps are hidden, i cant use, i cant make call. how can i fix
[Nexus 7 Android Development] mausbock:
[MENTION=2188693]AndDiSa[/MENTION]

After testing some days I have to say that CPU Usage is still very high and the UI lags the more days I am using the new version.

Here is a Screenshot of the CPU usage with the latest tilapia build. I have the same high usage since august build. Every version before august does not have this high usage. You will see the difference if You flash an earlier ROM and run the monitor app again.
[Nexus 7 Android Development] AndDiSa:
[MENTION=6755201]mausbock[/MENTION] can you have a look into the PerformanceControl app in the frequencies part? I've attached a screenshot of my tablet an I cannot reproduce your issues ...
[Nexus 7 Android Development] mausbock:
[MENTION=2188693]AndDiSa[/MENTION]

The PerformanceControl App is crashing every time on my device, so I deactivated it. Meanwhile I tested some other monitoring apps and it seems, that a system process is responsible on my device. Unfortunately since Android 7 it is not easy to identify it because Google disabled the access to /proc.

Do You have any advice for me, how to get the CPU usage of system processes e.g. using adb or root?
[Nexus 7 Android Development] AndDiSa:
[MENTION=6755201]mausbock[/MENTION] PerformanceControl is crashing if you do not give root permissions to it.

Regarding running processes sometimes I had the issue that Google Services are consuming much battery / cpu power due to synchronization problems. Try to have a look at your Google account and on the synchronization settings.
[Nexus 7 Android Development] mausbock:
Ok, thanks for clarification. I did not ever enabled root after flashing Your ROMs. Until now there was no need for it. [emoji6]

Regarding sync, only Gmail is activated and deactivating is not reducing usage.

Tha strange thing is, if I flash Your ROMs before august or the b04 ROM from millosr, the CPU usage is as low as Your posted with Your screenshot. May be this is depending on tilapia and does not occur on grouper.
[Nexus 7 Android Development] ffejy462:
Use a gapps package with the dialer and messages. Or just download both from the play store.
[Nexus 7 Android Development] n3kf:
I just use a boot app (autoboot) to reboot my grouper every night. That helps with the UI lag for me. Again I find as time goes on and run apps, memory starts disappearing. When I first boot, if I use a task killer, I have about 550m of free memory. As I use the device that number slowly decreases. When I get a bad lag, free memory is usually around 50m and running the task killer does not give very much free mem. I know Android handles memory, but this device seems to get very slow if free memory gets low. Anyway, the daily reboot keeps my device running pretty good.
[Nexus 7 Android Development] b4b4.4l1:
I had mentioned it on my previous reply to you. It's either nano or pico version. I myself use pico version as I don't really use google apps much. As for dialer or messaging, they are not included in this rom. It's rom related apps, not from gapps. And since when we can use our tablet for calling bro?_?
[Nexus 7 Android Development] mausbock:
[MENTION=2188693]AndDiSa[/MENTION]

I now realized that the Simple System Monitor app also has a view like PerfomamceControl and the statistics look very similar to Yours.

The high CPU usage occurs only if screen is on, not when tablet is unused with screen off.

My next step to analyze this is to use BetterBatteryStats for measuring battery usage of all runnimg processes with screen always on. I will report results.

Edit: I attached a second screenshot and there are two system processes, that are responsible for the CPU usage. Any advice for inspecting this deeper?
[Nexus 7 Android Development] Ler0y:
Hello dear friends !

In 20171018 (AOSP 7.1.2) build, battery drain from 3G-network fixed ? (Tilapia)
[Nexus 7 Android Development] AndDiSa:
[MENTION=6755201]mausbock[/MENTION] mobilesrepublic is consuming too much power 25 minutes of CPU time.
[Nexus 7 Android Development] mausbock:
[MENTION=2188693]AndDiSa[/MENTION]

I know, that mobilesrepublic was consuming but I was using it actively for the whole time. But "system" and "surfaceflinger" were also consuming a lot and that is new since august build.
[Nexus 7 Android Development] AndDiSa:
But 25 minutes CPU time within 41 minutes device run time? What's so CPU consuming within that app?
[Nexus 7 Android Development] mausbock:
I was reading news for about 25 minutes in mobilesrepublic but CPU time was only 4:27.

I will do a clean flash tomorrow, with only BBS installed and post again a new screen.
[Nexus 7 Android Development] AndDiSa:
[MENTION=6755201]mausbock[/MENTION] I do not know the tool you are using, but normally sys - reports the time the CPU is system services triggered by the application and usr is reporting the CPU time the application is using for its "normal" execution ...
[Nexus 7 Android Development] mausbock:
[MENTION=2188693]AndDiSa[/MENTION]

Normally I would fully agree with You.

But counting the totals of all entries from my screenshot would give me more than 60 minutes user time and 40 minutes system time.

May be BBS is counting other things. ;)
[Nexus 7 Android Development] AndDiSa:
But we have up to four CPUs ...:)
[Nexus 7 Android Development] mausbock:
[MENTION=2188693]AndDiSa[/MENTION]

I will give up ... I flashed Your latest build, did a wipe /data, installed only micro CPU monitor and BBS. Then set screen timeout to 30 minutes and calculated CPU usage using BBS for 30 minutes with only showing home screen. During this the monitor app was showing 50 percent CPU usage in average.

Then I did the same using Your build from june and the monitor app was showing 0 to 5 percent usage. But BBS was counting the same CPU usage like for the latest build ... very strange.

Since august build my device is definitely not as snappy as it is using builds from april to june and the back cover of the device is warm while having screen. I have no ideas anymore for analyzing this issue and for now I switched to millosr b05 build.

But anyway, thanks for keeping Nexus 7 alive for such a long time!
[Nexus 7 Android Development] slybunda:
odd after digging into the high cpu usage a bit more i believe the rom may have an embedded bitcoin miner in it..
[Nexus 7 Android Development] abhifx:
fantastic! we can become rich if we use this rom and then buy new tablet with the money earned.
[Nexus 7 Android Development] hailahaiela:
What !! Is that even possible??

Please do enlighten.

I meant the embedded mining without user noticing.
[Nexus 7 Android Development] slybunda:
if its done clever enough so it doesnt use 100% of the cpu resources then yes it is possible for it to go unnoticed.
[Nexus 7 Android Development] AndDiSa:
[MENTION=2556761]slybunda[/MENTION] that's really a good idea ... but probably it would be mor convenient on a Pixel device ;)

Jokes by side ... do you notice the high CPU usage on a Grouper or a Tilapia device? As I already explained to [MENTION=6755201]mausbock[/MENTION] on my Grouper device I cannot reproduce high CPU load. Probably somebody can post a logcat ...
[Nexus 7 Android Development] slybunda:
just checked on grouper wifi only device im not seeing the high cpu usage. but on my tilapia device i do see the high cpu usage and its draining battery. hmm. so its probably linked to the 3g radio side.
[Nexus 7 Android Development] slybunda:
also sound volume seems to be low in general. also that pre-installed app called performance monitor doesnt work keeps crashing on start
[Nexus 7 Android Development] AndDiSa:
[MENTION=2556761]slybunda[/MENTION] performance controll needs root access to work correctly otherwise it crashes
[Nexus 7 Android Development] slybunda:
that explains that than i dont have root enabled.

also overnight it used 1% battery so sleep power consumption is decent.
[Nexus 7 Android Development] Alex_Lyt:
So what build is the most stable for now?
[Nexus 7 Android Development] AndDiSa:
[MENTION=7844548]Alex_Lyt[/MENTION] for Grouper I would say the latest, for Tilapia I don't know ... The latest is working but some people complain about battery drain and high CPU load. You can give it a trial otherwise I would suggest the July version for Tilapia.
[Nexus 7 Android Development] Alex_Lyt:
I have grouper. Thank You!
[Nexus 7 Android Development] slybunda:
so far latest is greatest
[Nexus 7 Android Development] Bakica:
Latest build for Grouper is excellent, very stable, no battery drain and without high CPU load, but still slow charging persist (almost 4,5 hours to full charged).

Anyway, thanks a lot for the great ROM.
[Nexus 7 Android Development] aaopt:
That's not slow charging really. Some of the groupers in my household take nearly 10 hours. I bought a couple replacement USB ports but haven't taken the time to install them yet.
[Nexus 7 Android Development] AndDiSa:
[MENTION=5871663]Bakica[/MENTION] 4.5 hours is great ... that would result in an average charging current of about 1000mA

That's probably the peak value for my device but never got that charging rate as an average.
[Nexus 7 Android Development] adstraylight:
If you can find one, I really recommend charging via a dock, I've been able to charge my tablet in around 3hrs for quite some time now, as long as I make sure the system registers that it is charging on ac before I leave it. Clearing recents can help too.
[Nexus 7 Android Development] temuulenchoi:
Hi there, is there any way to disable the "bluesleep" wakelock? It is draining my battery quite a lot. Bluetooth is off; cleared data of Bluetooth MIDI Service and Bluetooth Share, still no change; device restart also didn't help. Thanks! :D
[Nexus 7 Android Development] Bakica:
I already replaced an USB port few months ago and full charging was about two and a half hours. I have impression that some of the previous versions had faster charging, yet less stable than latest.
[Nexus 7 Android Development] AndDiSa:
[MENTION=5871663]Bakica[/MENTION] partly it has to do with governour settings, too. I am still trying to optimize the battery consumption / snappyness a bit. Probably the November release will bring some further optimizations ...
[Nexus 7 Android Development] temuulenchoi:
Disabled WiFi and Bluetooth scanning, will update on results
[Nexus 7 Android Development] Tangofied:
How does the update install over an existing installation?

I've installed the previous version (Build 20170923), now I'm ready for the new update 7.1.2 Grouper OTA-Package (Build 20171018). Do I need to go through entire install again as described on your first post or will the system partition be updated without wiping out my custom settings, gapps and superuser? What about apps I've installed to the data partition? What should I wipe before starting the upgrade?

ROM is great. Only problem I had was with the system app MTP Host, which closed randomly. I disabled it.

Thanks much for your effort. My tablet is now usable again. Google's Lollipop 5.1.1 was a complete disaster.

Thanks again.
[Nexus 7 Android Development] AndDiSa:
[MENTION=8682028]Tangofied[/MENTION] for an upgrate you need to boot into recovery and install the new OTA package. After that you need to re-install the gapps which were formerly installed on the /system partion as they are overwritten by the new system image. After that your probably wont to (re-)install Magisk or SuperSU.

All your data and all the applications which are not installed on /system remain as they were before the update. The same is valid for Gapps which were updated via Play Store in the meantime.
[Nexus 7 Android Development] juliaiksdea:
Hi! Yes, ROM is really great. Thanks a lot. As well only one problem I have with the system app MTP Host, which closed regularly. Tilapia, July version.

Has the Groupper version got WiFi tethering and Hotspot option? I need it for web server on nexus.

I had read about problems with new tilapia rom versions. What should I do for flashing Groupper rom on Nexus 3g? Or just flash and everything will go okey?
[Nexus 7 Android Development] vishnumrao:
Trying to install a custom ROM on a Nexus 7 that was stock so far.

Flashed twrp-3.1.1-0-grouper.img and then flashed grouper image (aosp_grouper-7.1.2-ota-eng-20171018.ds.zip) and gapps (open_gapps-arm-7.1-pico-20171028.zip), through the recovery. But after 1st boot up I am unable to go past the first screen for the setup. Keep getting and error saying "app crashed".

Note: For the gapps, I went with the opengapps pico version (open_gapps-arm-7.1-pico-20171028.zip) since I wanted only the most basic minimump. The referenced gapps in the instructions is mini. I don't know if this makes a difference. Also I flashed aosp and gapps one after the other.

Any ideas what could have gone wrong?

How can I download an older version of the aosp image? I see some references to a June build as being very stable.
[Nexus 7 Android Development] GullRaDriel:
It's all due to your wifi not being enable at first boot time. I encountered the problem and got around using a trick mentionned by AndDisa (IIRC)

All you have to do is freneticly trying to swipe down the quick access menu just after choosing to restore from cloud, or start with a new install. It will take you a few try before getting it. Once you got the menu, activate the wifi and connect it, and when it's done the crashing menu will not crash anymore.
[Nexus 7 Android Development] hoangpv.han:
Good rom
[Nexus 7 Android Development] lkjsoiuew:
I can't get any filemanager to see files in /sdcard or /storage/<...> even when rooted, also not an ftp server
[Nexus 7 Android Development] vishnumrao:
Thank you. Your tip worked. I was able to complete set up and the tablet works now.