yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] LazyLucretia:
I'm also using Open Gapps pico 7.1. I have a logcat but it's like 20k lines long, do you want me to send it or is there another way to take a shorter one?
[Nexus 7 Android Development] LazyLucretia:
Btw, ViPER4Android is not working for me.

Driver status:

Driver Version: 2.3.4.0

NEON Enabled: No

Status: Abnormal

Audio Format: Unsupported

Processing: No

Sampling Rate: 0

Anyone else has this issue?

---------- Post added at 10:56 PM ---------- Previous post was at 10:08 PM ----------

Play Store reboot issue probably has something to do with Google apps in general. I just installed Google pdf reader and Google Play Books. They both soft reboot whenever I try to open a pdf or a book. I can open the same pdf using Adobe Reader without any issue.
[Nexus 7 Android Development] millosr:
Can you send me whole log file. You can zip it, upload to some cloud storage (google drive, dbox, ...) and share the link.

I'm also having the issue. I will try to fix it in b03.
[Nexus 7 Android Development] Torgar:
Trying to send a link to logcat file, but then get this message:

To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!
[Nexus 7 Android Development] LazyLucretia:
Sorry, I've been really busy for last 3 days. I realised that this reboot issue has something to do with fullscreen mode. Play Store displays images in fullscreen, Play Books displays books in fullscreen, Google PDF causes reboot when I start scrolling which causes app to go fullscreen and lastly I discovered that Youtube app causes reboot when I try switch a video to fullscreen.

Here are logcats: https://drive.google.com/drive/folders/0ByEnZx9_Vsp9LWh3Y0hqSGJqRDg?usp=sharing
[Nexus 7 Android Development] millosr:
nAOSP 7.1.1-b01 released

android-7.1.1_r4 (December security fixes)

Performance improvements (thanks to [MENTION=2188693]AndDiSa[/MENTION])

Themes: Pixel blue by default (thanks to [MENTION=6043081]mickybart[/MENTION])

Pixel like Launcher3

Fixed Viper4Android

Fixed Camera (Hangouts video calls)

Added double tap to wake (thanks to [MENTION=4948627]daniel_hk[/MENTION])

For this version I have completely change device/vendor trees to the new ones based on AndDiSa ones, with added nAOSP features. So far I have test this rom it feels stable and fluid like AndDiSa Android 7.x AOSP ROM . Since ROM performance/stability is improved now it is no longer in BETA status.

This ROM has now Pixel like look because of new pixel blue theme and pixel like launcher. I will post screenshots in the OP.

Camera is working fine, except for recording videos. Video calls are working.

Double tap to wake can be turned on/off from Settings/Display.

Download:

Nexus 7 (2012) WIFI: nAOSProm-7.1.1-grouper-b01.zip

md5: 0eb8fbdaec6d3405ea18dff5b4dc45f8

Nexus 7 (2012) WIFI+3G: nAOSProm-7.1.1-tilapia-b01.zip

md5: c168b9169e3e64775a44e23a6183c978

EDIT: I have tested this dirty flashed over 7.1 and clean flashed with OpenGapps pico 7.1 arm and I didn't have any permission issues.

If you have them please do clean flash (ROM + OpenGapps pico 7.1 arm) before reporting.

From this version ParrotMod is not necessary any more since it's features are embedded in the ROM (thanks to [MENTION=2188693]AndDiSa[/MENTION]). Since SuperUser is already embedded in the ROM SuperSU is not necessary either.
[Nexus 7 Android Development] robgriff:
I've installed it and it looks good, works fast but it reboots if I play YouTube in Fullscreen and also if I click on a picture in Google play that opens in Fullscreen. I've been using andisa ROM 7.1.1 since it came out and this never happened...
[Nexus 7 Android Development] millosr:
That didn't happen to me with the nAOSP. Can you please send me full log?

After turning on/restarting the tablet, connect it to pc and do the:

adb logcat > logcat.out

and then do the action on the tablet that cause the reboot. If it is hard reboot logcat will stop, and for soft reboot you have to stop logcat with ctrl+c.
[Nexus 7 Android Development] robgriff:
https://www.dropbox.com/s/u5k9zajy5c82ifi/logcat.out?dl=0

I did YouTube first, it rebooted and ADB didn't stop so I then tried Google play and it rebooted then I stopped adb
[Nexus 7 Android Development] frov:
Just installed 7.1.1 B01, clean flashed, using these files:

nAOSProm-7.1.1-grouper-b01.zip

open_gapps-arm-7.1-pico-20161217.zip

SuperSU-v2.79-201612051815.zip

Xperia_Keyboard_7.3.A.0.54.zip

Installed like before: /data again reported some files were corrupt or so. So I again formatted /data from TWRP and copied over all files.

From there on it went fine: installed OK, booted OK and TitaniumBackup is restoring OK.

Thanks for the good work!
[Nexus 7 Android Development] millosr:
It seems that there is some issue with ImmersiveModeConfirmation Cling Window :

12-18 20:27:43.275 537 559 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.ui
12-18 20:27:43.275 537 559 E AndroidRuntime: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class android.widget.RelativeLayout
12-18 20:27:43.275 537 559 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #16: Error inflating class android.widget.RelativeLayout
...
12-18 20:27:43.275 537 559 E AndroidRuntime:	at com.android.server.policy.ImmersiveModeConfirmation$ClingWindowView.onAttachedToWindow(ImmersiveModeConfirmation.java:289)

I don't know how to reproduce this, but I compared immersive_mode_cling.xml files from the nAOSP and aosp and they differ. So I rebuild framework-res with immersive_mode_cling.xml from aosp: https://www.dropbox.com/s/9fzkc5q10klxjwi/framework-res.apk?dl=0

Can you please do the following:

Download framework-res.apk from the link above

Reboot into twrp, mount system

Backup original /system/framework/framework-res.apk ( adb pull /system/framework/framework-res.apk framework-res.apk.orig)

Push new downloaded framework-res.apk (adb push framework-res.apk /system/framework)

Make sure framework-res.apk has 644 (rw-r-r ) permissions:

adb shell

ls -l /system/framework/framework-res.apk

and eventually do : chmod 644 /system/framework/framework-res.apk

Reboot to system and try if this works. I hope you have grouper - since this is built for grouper, but this should work in case of tilapia also.
[Nexus 7 Android Development] millosr:
Thanks for the report :) Can you report your impressions after later after using it a little bit more.
[Nexus 7 Android Development] robgriff:
That fixed it thank you, I tried both and no reboots. Brilliant[emoji41]

---------- Post added at 01:49 AM ---------- Previous post was at 01:17 AM ----------

And yes I have a grouper
[Nexus 7 Android Development] frov:
I also applied this fix for Youtube and that worked perfectly: now I have no reboot any more when going full screen. :good:

For the rest, the ROM is rather smooth; at least comparable now to what I remember when running Android6_with_Parrotmod. So good job indeed! :D
[Nexus 7 Android Development] millosr:
I have created incremental ota packages with the fix for the reboots. These packages just replace framework-res.apk , so there is no need to clean caches or anything else after it.

It's just more convenient way than manually replacing the file. Those with the grouper that already replaced framework-res.apk don't need to flash this fix.

You can apply this fix only if you installed nAOSProm-7.1.1 b01.

Download:

Nexus 7 (2012) WIFI: nAOSProm-7.1.1-grouper-b01-reboot-fix.zip

md5: 87131fd270fdab8ccbabad5b83bd885d

Nexus 7 (2012) WIFI+3G: nAOSProm-7.1.1-tilapia-b01-reboot-fix.zip

md5: 17d7b4c2e8b82e20e2d0bb4c1a62bc33
[Nexus 7 Android Development] robgriff:
Double tap to wake is hit and miss, more miss! It can take 4 or 5 times to wake and it fails to wake more often than succeeds. I'm using the default launcher and I don't have any other screen based apps that could interfere.
[Nexus 7 Android Development] frov:
I just tried DT2W some times and for me on this N7 it works rather ok.
[Nexus 7 Android Development] robgriff:
I wonder if I've got a bit of a dodgy screen like some of these can get it's not gone wrong before but maybe it's just up to go because I've noticed a couple of apps where I had to tap a bit harder to open the message I guess I'll just have to watch it and see what happens

---------- Post added at 07:13 PM ---------- Previous post was at 07:08 PM ----------

I've just cleaned the screen and rebooted and double tap to wake now works in the short term I'll keep testing
[Nexus 7 Android Development] LazyLucretia:
I tried to flash the grouper zip to my Nexus 7 Wi-Fi and it gave me an ERROR: 7. Do you have any idea why? I double checked and the zip is the correct one.
[Nexus 7 Android Development] robgriff:
Did you try rebooting back into twrp after you wipe system? I always now do this because I've had problems flashing the ROM and lots of problems flashing gapps if I don't reboot after wiping system and others have had similar problems too
[Nexus 7 Android Development] LazyLucretia:
I first tried to flash the fix right after Gapps and it failed, then I booted the tablet, rebooted to recovery and tried again and it failed again with the same error. However, I fixed my issue by manually replacing the framework-res.apk via adb.
[Nexus 7 Android Development] millosr:
Did you "wipe" system?

This is incremental ota, you shouldn't wipe anything if you're just installing that.

If you did that than you can try to install 7.1.1-b01 first and than to install incremental ota over that. Gaps should be also installed.
[Nexus 7 Android Development] STEF SPICA FR:
[MENTION=6754437]millosr[/MENTION]

Hello,

First of all ... I want to say that it is excellent work

Rom works well, very smooth ; D

But I have a problem, I can not apply the reboot fix

Always the same error message: '' error code 7 ''

I tried solutions from previous posts, but with no success.

Could you help me ?

Thanks

Stéphane
[Nexus 7 Android Development] millosr:
You can also try to replace /system/framework/framework-res.apk with the one from zip file:

extract framework-res.apk from zip

boot phone to recovery and connect it to pc

mount system

do the following from command prompt on pc:

adb push framework-res.apk /system/framework/

adb shell chmod 644 /system/framework/framework-res.apk

adb reboot
[Nexus 7 Android Development] STEF SPICA FR:
[MENTION=6754437]millosr[/MENTION],

Sorry but I don't have a PC

Another idea ?
[Nexus 7 Android Development] 2ndHouse:
Just a little more info on the framework-res zip not installing correctly, I had to just copy over the file myself also...

error#7

mount ( ) expected 4 arguments but got 5

Or something very similar to that, I tried installing it both with mounting and unmounting /system through TWRP, but received the error no matter what.
[Nexus 7 Android Development] millosr:
Strange, I looked at the updater-script in full ota package and in this fix and in both cases mount has 5 arguments.

Which TWRP are you using? If it's not 3.0.2 you can try to upgrade it.

You can also try to extract framework-res.apk on the phone and copy it to /system/framework/

You will need terminal emulator to mount system as rw:

su

mount -o rw,remount /system

cp /sdcard/framework-res.apk /system/framework/

You can use some file manager to extract framework-res.apk. Commands above assume that file is extracted to /sdcard/ directory.

After this, reboot the system to apply the change.
[Nexus 7 Android Development] 2ndHouse:
Yeah I'm using 3.0.2. I just copied the file using TWRP from download folder to system/framework and then ran chmod 644. It seems to be working, as can go into fullscreen apps without rebooting. I'm not sure why other and I are having problems with the zip installation.
[Nexus 7 Android Development] millosr:
I will try to investigate what is the problem with the mount.

I have uploaded framework-res.apk for the convenience:

Grouper: framework-res.apk

md5: 0f60164ff36f94a2e882d4bb0113e237

Tilapia: framework-res.apk

md5: b9e425318af12ec546ff52ca0de76d62

[MENTION=2921451]STEF SPICA FR[/MENTION], You can also use TWRP (Advanced > File Manager) to copy the file to /system/framework, but you have to mount /system first.
[Nexus 7 Android Development] ItsBen:
Hi,

Does anyone know if it's possible to wipe a partition using F2FS via ADB? I know about the wipe command but that defaults to EXT4 & I can't find any info on how to change it / if it can be changed.

I'm blind so doing it via TWRP's GUI isn't an option for me - I need a way of doing it via a PC.

Cheers.
[Nexus 7 Android Development] STEF SPICA FR:
[MENTION=2921451]STEF SPICA FR[/MENTION], You can also use TWRP (Advanced > File Manager) to copy the file to /system/framework, but you have to mount /system first.[/QUOTE]

[MENTION=6754437]millosr[/MENTION],

Thank you, successful manipulation :D

Your Rom works really well

What will be the next improvements?
[Nexus 7 Android Development] millosr:
It will be some UI additions :

Pixel like Navigation Bar buttons

Battery icon style / percentage text customization in status bar

Quick Settings layout - number of QS columns
[Nexus 7 Android Development] millosr:
How do you wipe ext4 partition? Do you need to convert it to f2fs, or you already have f2fs and you need to wipe it?

Cheers!
[Nexus 7 Android Development] techjunkie2099:
Thanks for your efforts millosr and for bring my Nexus 7 2012 back from retirement. I have tried to get screen casting working with app ezcast no such luck, just force closes. so if anyone can confirm this besides me with another casting app and hardware, I would add that to not working list if its not the app.
[Nexus 7 Android Development] millosr:
Can you check the logcat?

You can send me the log / share on cloud storage.
[Nexus 7 Android Development] frov:
I tried using the N7_711 with my Chromecast Gen1: screen casting indeed fails consistently.

I also try screencasting from Nexus9_711 and that works fine.

Also tried XperiaS_711_B01 and screencasting there also works fine.

I tried to start screencasting on the N7 from Settings and from the Google Home app and both same result, it fails:

it starts to make a connection and then imm. stops casting.

I will see that I get a logcat from the N7.

EDIT: https://www.dropbox.com/s/9fliuhd0wvkxo9e/alogcat.2016-12-28-12-40-15+0100.txt?dl=0
[Nexus 7 Android Development] techjunkie2099:
OK this Is for Ezcast app

crash line starts around line 306

here is logcat just when it loaded, connected to wifi, displayed the screen and then popup for force close, wait or restart.

https://www.dropbox.com/s/r57ldauclzlgpcw/ezcast_forceclose2016-12-29-05-59-42.txt?dl=0
[Nexus 7 Android Development] ItsBen:
I need to convert to F2FS. Thanks!
[Nexus 7 Android Development] snoeky:
Ik did it the same way as you but ik have a restart when using kodi
[Nexus 7 Android Development] frov:
Then I reckon you need to apply the fix for the full screen bug. Read my other posts after it.
[Nexus 7 Android Development] millosr:
In both logs there is this part like this:

12-29 05:57:49.822 E/OMXNodeInstance(211): getParameter(d3002a:Nvidia.h264.encoder, ParamVideoAvc(0x600000d)) ERROR: InsufficientResources(0x80001000)

12-29 05:57:49.822 E/ACodec (3377): [OMX.Nvidia.h264.encoder] configureCodec returning error -12

12-29 05:57:49.822 E/ACodec (3377): signalError(omxError 0x80001001, internalError -12)

12-29 05:57:49.822 E/MediaCodec(3377): Codec reported err 0xfffffff4, actionCode 0, while in state 3

12-29 05:57:49.824 E/MediaCodec(3377): configure failed with err 0xfffffff4, resetting..

I think there is lack of memory on N7 which causes this to happen. It seems that sony XS handles memory better or has more video memory so it is not failing.

I've tried to cast some videos from tablet to android tv stick with EZ cast (EZ screen on the stick) and that was successful. But those were lower res videos - 480p and 720p. Can you try to cast some lower res videos?

EDIT: I have analyzed logs a little bit more and it seems that color format is not supported on N7:

E/OMXNodeInstance( 207): setParameter(cf0046:Nvidia.h264.encoder, OMX.google.android.index.storeMetaDataInBuffers(0x7fc00007): Output:1 en=0 type=3) ERROR: BadParameter(0x80001005)

E/ACodec ( 1576): [OMX.Nvidia.h264.encoder] storeMetaDataInBuffers (output) failed w/ err -2147483648

W/ACodec ( 1576): do not know color format 0x7f000789 = 2130708361

https://developer.android.com/refer...fo.CodecCapabilities.html#COLOR_FormatSurface

What are you trying to cast? Was that working on previous android versions?
[Nexus 7 Android Development] millosr:
You can use mkfs.f2fs to convert partitions to f2fs .

For the cache partition use:

mkfs.f2fs /dev/block/platform/sdhci-tegra.3/by-name/CAC

and for the data:

mkfs.f2fs /dev/block/platform/sdhci-tegra.3/by-name/UDA

Converting data partition will erase/format it and /sdcard will also be deleted. If you have something important on it do the backup first.

Cheers :)
[Nexus 7 Android Development] techjunkie2099:
What are you trying to cast? Was that working on previous android versions?[/QUOTE]

yes on 5.1 but not 100% just video, it would not cast audio only the mirror display, so I was outputting the audio with mic jack as work around, So I was hoping for a audio and video mirror display cast on newer version of android.. As 5.1 android is really slow on my nexus7 so just not enough ram I see, prob just to old to install newer androids.

(I've tried to cast some videos from tablet to android tv stick with EZ cast (EZ screen on the stick) and that was successful. But those were lower res videos - 480p and 720p. Can you try to cast some lower res videos?)

what I tried:

I was trying to mirror the screen to the device not a H264 movie directly streaming.

I was just trying to cast the N7 display to the TV what ever is running on the tablet a ezcast app + mirror cast app to the dongle.

but I don't get far enough, it crashed right after connecting to the ip of the ezcat dongle then flashed the ezcast's colored bar screen and then the system popup after the app crashed or forced closed popup.

OK thanks for your research and troubleshooting!., I will try some more tests.

EDIT: I have analyzed logs a little bit more and it seems that color format is not supported on N7:

E/OMXNodeInstance( 207): setParameter(cf0046:Nvidia.h264.encoder, OMX.google.android.index.storeMetaDataInBuffers(0x7fc00007): Output:1 en=0 type=3) ERROR: BadParameter(0x80001005)

E/ACodec ( 1576): [OMX.Nvidia.h264.encoder] storeMetaDataInBuffers (output) failed w/ err -2147483648

W/ACodec ( 1576): do not know color format 0x7f000789 = 2130708361

I think there is lack of memory on N7 which causes this to happen. It seems that sony XS handles memory better or has more video memory so it is not failing.

EDIT: I have analyzed logs a little bit more and it seems that color format is not supported on N7:
[Nexus 7 Android Development] snoeky:
reboot fix doesnt work for me have random problems after flashing, got also error code while trying to flash it.

dont know how to pull tru adb so ill waith untill tis fixes are inside next update
[Nexus 7 Android Development] frov:
So far so good

Just wanted to say that after quite some days running the N7_2012 with 711_B01 is quite a good experience. Also I do not feel the need any more to flash in Parrotmod, so kudos for including that. We know there are a few issues in B01, but in normal-day use this ROM is quite fine for this device. Now looking forward to a next B02 or so (when/if it comes, all fine) since I am just about to flash XS_711_B02 into 2 devices. You dev guys rock and many thanks for that! :D
[Nexus 7 Android Development] millosr:
nAOSP 7.1.1-b02 released

android-7.1.1_r9 (January security fixes)

Quick Settings: Number of columns configurable

Status bar: Battery style / text customization

Navbar: Pixel style

Fixed crash when hiding navbar in some applications

Launcher3: Search bar not displayed anymore for those without search provider. ([MENTION=6043081]mickybart[/MENTION])

Eleven, Gallery, ...: Switch from CM to LineageOS repos

This version includes crash fix and brings some UI additions as I mentioned before. Quick Settings columns and battery styles can be configured in Settings / nAOSProm options.

I haven't succeeded to reproduce and fix bug with ez cast / chrome cast streaming.

Download:

Nexus 7 (2012) WIFI: Dropbox - nAOSProm-7.1.1-grouper-b02.zip (suspended)

md5: 45b3126d2927ef623755076928cb66b8

Nexus 7 (2012) WIFI+3G: Dropbox - nAOSProm-7.1.1-tilapia-b02.zip (suspended)

md5: 9a0bf937415fa5df1cc7dfe3fc987367

Starting with this build automatic OTA updates should work. Go to Settings / About / Updates and you can download and update nAOSP automatically.

Since ROM has addon.d support GApps flashing is not necessary in Post update (if gapps support addon.d like opengapps).

If you use SuperSU it can be added to Post Update, but it can be flashed manually later. You can also uninstall SuperSU and use built in Superuser :)

EDIT: Alternative download links:

Nexus 7 (2012) WIFI/WIFI+3G Android File Host

Nexus 7 (2012) WIFI: Yandex.Disk - nAOSProm-7.1.1-grouper-b02.zip

md5: 45b3126d2927ef623755076928cb66b8

Nexus 7 (2012) WIFI+3G: Yandex.Disk - nAOSProm-7.1.1-tilapia-b02.zip

md5: 9a0bf937415fa5df1cc7dfe3fc987367
[Nexus 7 Android Development] robgriff:
I've just updated my grouper I tried to do it through the updates (3 times) and everytime it had finished downloading the zip it said the Updater has stopped and when I looked in the download folder it was still appended with partial.zip. but once I downloaded it from Dropbox and then used the update option in settings it worked fine. I have previously used open gapps Pico and SuperSU.zip but this time I didn't flash them and I can confirm that it all works properly and the inbuilt superuser worked fine with the only Superuser app I have so big thumbs up and thank you
[Nexus 7 Android Development] frov:
Good stuff indeed!

Just flashed my N7_2012 from B01 to B02. Did a clean flash. I used these files for flashing:

nAOSProm-7.1.1-grouper-b02.zip (good stuff!!)

open_gapps-arm-7.1-pico-20170109.zip (worked flawlessly)

SR2-SuperSU-v2.79-SR2-20170103215521.zip (why not)

Xperia_Keyboard_7.3.A.0.54.zip (because I like this keyboard)

Flashing went fine and fast.

After that I restored my apps using TitaniumBackupPro. Also went fine and fast.

Also the N7 feels fine and fast :)

I like the updated navbar icons and the middle one that shows coloured Google dots when pushing it. :good:

Thanks for this excellent ROM :D
[Nexus 7 Android Development] JoL1hAHN:
Unfortunately these links don't work right now, Dropbox gives the following error: "This account's links are generating too much traffic and have been temporarily disabled!" :(
[Nexus 7 Android Development] millosr:
Thanks for the report. I'm uploading files to Android File Host now, I will share new links soon.

EDIT: Alternative download links:

Nexus 7 (2012) WIFI/WIFI+3G Android File Host

Nexus 7 (2012) WIFI: Yandex.Disk - nAOSProm-7.1.1-grouper-b02.zip

md5: 45b3126d2927ef623755076928cb66b8

Nexus 7 (2012) WIFI+3G: Yandex.Disk - nAOSProm-7.1.1-tilapia-b02.zip

md5: 9a0bf937415fa5df1cc7dfe3fc987367
[Nexus 7 Android Development] melkozerov:
Excellent firmware. Very smooth and no brakes. Thank you. Respect
[Nexus 7 Android Development] frov:
Small issue

I noticed a small issue in the launcher itself: long press on eg AppStore does not show the Fast Menu button.

This is one of the new features in 7.1.1. I noticed this a few times on the N7. This issue occurred a few times for me.

And I just ran into this issue on a friends N7_2012 that I just flashed over to B02. Also my own N7 showed the issue.

I run the same nAOSP ROM on N9 and XS, but am now not sure whether I saw this issue on these other devices.

When the launcher is in this mode, then the pull-up can be done, as the normal app select. That all works like b4.

A reboot fixes the issue.

BTW, so I just flashed B02 on another N7: this one is now also revived and I have a happy owner standing here next to me :o

Also thanks from him!