yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) Android Development] followmsi:
Well spotted .. target_copy_out_vendor was my mistake - Thanks.

Need to define it in boardconfig too ..

TARGET_COPY_OUT_VENDOR := system/vendor

Let's check the graphics now ..

In Oreo we had to use this fix .. not sure if related now.

https://github.com/followmsi/platfo...mmit/c9f8f811955429b57297d3bca76a9f7a57a15e5a

Thanks for pushing Android Pie !

Cheers
[Nexus 7 (2013) Android Development] abhifx:
Cant believe how much things are getting pushed within few days only. I have yet to flash as i was waiting for wifi fix. if anyone can upload the latest build i can go ahead.

also, is there an easier method to repartition? since my usb broke i cant risk the unlegacy method to repartition.
[Nexus 7 (2013) Android Development] followmsi:
v2 - some more Pie testing .. and first deb ROM ..

One Pie ROM for deb as well .. hopefiully RIL will work as it should ..

Finally I have tested the flo ROM myself .. dirty install on top of latest Oreo ROM.

Upgrade was quite smooth .. no issues at all.

Except for the device related problems ..

- We have the graphics issues mentioned by [MENTION=8199534]emmett.tsai[/MENTION]

- Hardware Graphics is not working .. like no video in Youtube app - just sound.

- Video works in chrome browser .. software decoding.

- As it looks like Bluetooth is not working.

- GPS is working .. slow like before.

flo-Classic_12-2018_AOSP_9.0.0_r21_followmsi_v2.zip

deb-Classic_12-2018_AOSP_9.0.0_r21_followmsi_v2.zip

Enjoy :p
[Nexus 7 (2013) Android Development] clarkgable:
Is Wi-fi working now? I have successfully re-partitioned. :D
[Nexus 7 (2013) Android Development] followmsi:
Yes .. wifi works fine.
[Nexus 7 (2013) Android Development] emmett.tsai:
About graphic issue,

because android_kernel_google_msm: Revert "msm: mdp: Update sync pt. behaviour" cause MSMFB_BUFFER_SYNC value changed.

After update qcom kernel header, fix broken view issue.

msm8960: update msm_mdp.h

msm8960: hwc: remove retire fence
[Nexus 7 (2013) Android Development] lollyjay:
On v2 with my flo. A little wonky but pretty usable.
[Nexus 7 (2013) Android Development] a8ksh4:
I'm having the same prob; Android Auto won't start saying, "Something went wrong. Google Play service doesn't seem to be working right now." I've tried clearing cache/data for the play serivces app, as well as android auto, reinstalling, and starting other google apps that use play services (e.g. play games) to look for issues or clear out auth stuff. Also tried enabling all permissions for Android Auto. No luck so far.

When I run CatLog, it doesn't report any log messages from Android Auto. Is there another way to get debug messages that we can use to help root-cause the issue here?
[Nexus 7 (2013) Android Development] followmsi:
Very good .. will merge and test the changes on the weekend.

Cheers
[Nexus 7 (2013) Android Development] lollyjay:
[MENTION=5480152]followmsi[/MENTION] I would like to volunteer to test alpha versions. Your v2 is very snappy and only things things I have found so far are

1 bluetooth not working

2 videos videos do not show (but sound works)

3 some ui rendering problems (but improves after time)

4 Google setup will not copy files, settings etc

Again, thanks to you and [MENTION=8199534]emmett.tsai[/MENTION]
[Nexus 7 (2013) Android Development] emmett.tsai:
About Camera issue

I write some test patch let camera work,

test function: front/back camera take picture, work on:

aosp android-9.0.0_r21: Camera2

apkmirror: com.peace.SilentCamera_2018-12-15.apk

apkmirror: com.perracolabs.cpd_2018-12-17.apk

apkmirror: com.google.android.GoogleCamera_4.2.035.141213305-41025813_minAPI25(armeabi-v7a)(nodpi)_apkmirror.com.apk

gapps: open_gapps-arm-9.0-stock-20190106: Camera

Because there are some hard-coded and worse code, these patches just for test only and need to find a better solution.

debug_note

1. GPIO 4 (CAMIF_MCLK) always in use, cause open camera fail.

after deviceAdded error, no call gpio_free in kernel.

E CamPvdr@2.4-external: deviceAdded open v4l2 device /dev/video0 failed:Device or resource busy
...
D gpio_request: gpio-4 (CAMIF_MCLK) status -16
E msm_camera_request_gpio_table: 562 camera gpio request failed

frameworks/base patch: do not open device in deviceAdded.

hardware/interfaces patch: do not open device in deviceAdded.

2. after fix gpio

get StreamConfigurationMap fail, stallDurations is null (NullPointerException)

hardware/interfaces patch: hardcode set value (get from flo android N image)

frameworks/base patch: hardcode set value (get from flo android N image)

3. after fix stallDurations null

set Exif fail, flashMode is null (NullPointerException)

packages/apps/Camera2 patch: do not get flashMode value

Edit:

2G system partition test rom

shared folder: flo/pie/2G system partition/AOSP_android-9.0.0_r21_full_flo-ota-eng.emmett_20190106-102818.zip

1. merge wifi patch from [MENTION=5480152]followmsi[/MENTION]

2. apply graphic patch (MSMFB_BUFFER_SYNC)

3. apply camera test patch

Fix Pixel Launcher crash (Caused by: java.lang.SecurityException: Permission Denial: setShelfHeight()) without framework patch (need root):

adb root
adb remount
adb pull /data/system/packages.xml
#modify packages.xml , see below
adb push packages.xml /data/system/packages.xml
adb reboot

add android.permission.STATUS_BAR for com.google.android.apps.nexuslauncher package

<package name="com.google.android.apps.nexuslauncher" codePath="/system/priv-app/NexusLauncherPrebuilt"
...
<perms>
...
<item name="android.permission.STATUS_BAR" granted="true" flags="0" />
</perms>
[Nexus 7 (2013) Android Development] followmsi:
Like mentioned above .

- Hardware Graphics is not working .. like no video in Youtube app - just sound.

- Video works in chrome browser .. software decoding.

(VLC app works for watching movies.)

Point 3 was fixed by [MENTION=8199534]emmett.tsai[/MENTION] - fix will be in next ROM too.

Still a lot to do ...

Cheers
[Nexus 7 (2013) Android Development] followmsi:
Hi

Tested your patch for graphics .. seems to work fine. Nice.

Tested front camera only (without your patch) .. taking and saving picture works for me.

But recording video gives unexpected reboot :(

Tested CAF libbt-vendor and changed BT config .. Bluetooth still not work.

Pixel launcher is common pie issue .. not sure if permission should be fixed thru opengapps installer later on.

[MENTION=4473793]yattodettaman[/MENTION] has made lineage 16 for Duma device .. maybe we can use some ideas from him.

https://github.com/yatto/android_device_duma

Cheers
[Nexus 7 (2013) Android Development] abhifx:
I am getting error 7 while flashing the build through twrp

Edit. Classic seems to be working. It seems either partition or emmet built has some assertion issue
[Nexus 7 (2013) Android Development] a8ksh4:
Looking to install the 9.0.0 build on deb. Which gapps package is everyone using for the 9.0.0? Or is it recommended to re-partition? I've heard that's an option for larger system, but haven't taken the time ti figure out how to do it yet.

9.0.0 looks great, BTW! LTE works. Will try a bunch of other stuff once I get the google services working.
[Nexus 7 (2013) Android Development] abhifx:
I avoided all the partition and gapps headache and flashed Pie over Oreo and things went smooth. this is the first time upgrading to major version with dirty flash worked.

bear in mind i flashed [MENTION=5480152]followmsi[/MENTION] 's build as [MENTION=8199534]emmett.tsai[/MENTION] build is having some issues with my tab which i have yet to figure out.

---------- Post added at 12:49 PM ---------- Previous post was at 12:48 PM ----------

I avoided all the partition and gapps headache and flashed Pie over Oreo and things went smooth. this is the first time upgrading to major version with dirty flash worked.

bear in mind i flashed [MENTION=5480152]followmsi[/MENTION] 's build as [MENTION=8199534]emmett.tsai[/MENTION] build is having some issues with my tab which i have yet to figure out.
[Nexus 7 (2013) Android Development] followmsi:
Cool .. LTE works .. Good to know !

Thanks for testing !
[Nexus 7 (2013) Android Development] emmett.tsai:
I test camera video, reboot too. :(

last_kmsg dump some kernel panic msg. I'll try analyze them.

not sure these message can help to find out reason

Thanks for get me this information. Hope opengapps can fix it later. :)

I'm not found such nexuslauncher or STATUS_BAR keyword in android_device_duma. And I did not have duma device, so unable to test it.

EDIT:

update camera issue

I found the patch camera: fix/hack static metadata reporting by [MENTION=2633638]Ziyan[/MENTION] from LineageOS device tree can fix camera nullpoint issue.

gpio issue still looking for better solution

I try revert my three camera test patch, wipe and flash image again.

first time open camera success and taken picture ok from back camera,

then I press button to switch to front camera, app close, and after, I open camera always fail even I reboot device.

---------- Post added at 03:51 PM ---------- Previous post was at 03:24 PM ----------

My build not like [MENTION=5480152]followmsi[/MENTION]'s or other's rom, maintain from old project. May have a lot of issue.

I usually base on a pure aosp code base, try to pick minimum amount of patch let device can boot to test other function.
[Nexus 7 (2013) Android Development] followmsi:
[MENTION=8199534]emmett.tsai[/MENTION]

I have pushed my manifest today .. to see all my differences to "pure" aosp.

But all my branches were based on pure 9.0.0_r1 .. just updated to r30 for January.

https://github.com/followmsi/manifests/tree/flo-deb-aosp-p

The following commits/workarounds from platform_build should solve assert issues in twrp. (error 7)

https://github.com/followmsi/platform_build/commit/9d53942aa977d67c05a12b974b0f22454c23d252

https://github.com/followmsi/platform_build/commit/fbe11ccb84228a089808d2b123ad02c949c03e0f

https://github.com/followmsi/platform_build/commit/a60a4d0619b64160be005bb102929cbd844e38be

And stuff like this is missing in "pure" AOSP ..

https://github.com/followmsi/platform_build/commit/d35e9779897be005c2cca5d8eedd14fc43ccd8bf

Sorry, I missed one empy line .. in my previous post.

The DUMA device has nothing to do with permissions for any launcher :)

The permissions should be entirely fixed by opengapps installer .. in my opinion.

But this duma device is a kind of copy from "deb" device but with larger screen.
[MENTION=4473793]yattodettaman[/MENTION] and me were in contact since Oreo and before, exchanging flo/deb/duma knowledge.

He had the same problems .. unexpected reboots with video .. and bluetooth was not working either .. etc.

He fixed plenty of the open issues.

For this reason it makes sense to look into his lineage-16.0 branches .. even he is using CAF sources and does inline-kernel building .. etc.

I will start a new 9.0.0_r30 build soon .. including January security patches.

But no device related changes .. no more time for troubleshooting right now. :(

Cheers
[Nexus 7 (2013) Android Development] jhford:
9.1.0

I have two debs and I'm running 8.1.0. I see there are links to 9.1.0 in this forum. Is it ready for prime time or should I wait to flash it?

Thanks
[Nexus 7 (2013) Android Development] followmsi:
There is no 9.1.0 .. just 9.0.0 .. anyway it's still BETA quality ..

Dirty upgrade from Oreo should work fine .. but not all is working in Pie.

You have to decide yourself.

Cheers
[Nexus 7 (2013) Android Development] followmsi:
Pie BETA testing - January 2019 ..

flo-Classic_01-2019_AOSP_9.0.0_r30_followmsi.zip

deb-Classic_01-2019_AOSP_9.0.0_r30_followmsi.zip

Working:

- Wifi

- Audio

- GPS (still slow)

- Video (software decoding only)

- LTE (deb version only)

Not working:

- Camera (works partially only)

- Video (harware decoding is not working)

- Bluetooth

- Battery life is not brilliant either.

etc.

Not sure about the progress in the next time .. pls be patient.

The January Oreo build will come later this month.

Again .. when Google stops tagging Oreo I will stop all my AOSP Oreo builds too.

Thanks to [MENTION=8199534]emmett.tsai[/MENTION] for pushing Android Pie ..

Enjoy :p
[Nexus 7 (2013) Android Development] emmett.tsai:
Thanks, Very helpful!

I looking again from [MENTION=4473793]yattodettaman[/MENTION] repo.

Found the patch media: drop QCOM avc.secure decoder (Actually, remove avc encoder in code) can fix camera reboot issue.

But I need drop both of avc encoder/decoder for flo to ensure decode video work on device. I test camera's picture and video function work fine on flo.

If only remove avc encoder, there are some problem for play video on device (copy to PC can play normally):

1. if no install gapps packge, or install gapps without camera app (I only test pico)

play video will all black screen

2. if install gapps with camera app (I only test stock)

play video always play with same frame (like preview thumbnail)
[Nexus 7 (2013) Android Development] lollyjay:
[MENTION=5480152]followmsi[/MENTION] thank you for your continued support of these Nexus 7s. I am up-to-date on r30. It is truly amazing to me that my old flo is on Android P. As you have said, there are still a few things that need attention but I use my flo a little every day.
[Nexus 7 (2013) Android Development] mrchambo:
100% agree, lollyjay! Many thanks to [MENTION=5480152]followmsi[/MENTION] for his knowledge and dedication to us diehard N7 users!
[Nexus 7 (2013) Android Development] abhifx:
are you also looking at bluetooth error as it seems to cause huge battery drain? It seems duma has that working.

Thanks a lot for reviving Flo
[Nexus 7 (2013) Android Development] a8ksh4:
[MENTION=5480152]followmsi[/MENTION] - deb-Classic_01-2019_AOSP_9.0.0_r30_followmsi.zip is remarkably snappy, even w/o hardware video. Dirty flash over 8.1.0 after installing gapps and logging in worked well.

Is there anything you can use logcat output from to help w/ development?

* I've tried starting up Android Auto and it triggers a reboot, and a lot of log ouput; not sure yet if it's trying to use bluetooth or hardware gfx accell or something, that it catn't live without.

* voice input and assistant works.

* neat!
[Nexus 7 (2013) Android Development] followmsi:
Thx for the update .. will check/test your changes in my next flo time slot :)

Cheers
[Nexus 7 (2013) Android Development] FletchF:
Anybody using the "swipe up on Home" gesture on the Pie version? I can swipe up to switch apps, but getting to "all apps" is inconsistent at best. Is there a trick to it, or is it just broken?
[Nexus 7 (2013) Android Development] dealpapa1:
oh my god

followmsi, you are god to nexus 7 2013 users.
[Nexus 7 (2013) Android Development] mrchambo:
Yes, he is!
[Nexus 7 (2013) Android Development] a8ksh4:
So for anyone wanting to avoid having to flash 8.1.0 to install gapps and then dirty flash to 9.0.0, I can report that the sysrepart.zip from k23m seems to work w/o issue. It resizes the cache partition immediately following the system partition on our devices from ~500M to 250MB, and adds 250MB to the system partition, so there's room for the at least the nano gapps straight on top of 9.0.0.

https://xdaforums.com/showpost.php?p=76278047&postcount=19
[Nexus 7 (2013) Android Development] jaucar:
I am trying to install your Android 9 rom.

It has been impossible for me to install gapps.

Despite using the smaller opengapps package.

Can you tell me how I can install some Google Gapps?
[Nexus 7 (2013) Android Development] JT1510365:
Simple just repartition your nexus 7 using clamors flashable script from his repartition thread:)
[Nexus 7 (2013) Android Development] lollyjay:
Repartition using this:

https://xdaforums.com/nexus-7-2013/orig-development/repartition-nexus-7-2013-repartition-t3844386
[Nexus 7 (2013) Android Development] abhifx:
My best guess is that it requires a compatible launcher as i have the same issue with microsoft launcher.

Try using any new pixel launcher.
[Nexus 7 (2013) Android Development] abhifx:
Havent tried it, but does it require any sort of adb ninja stuff as i have a nroken usb port.
[Nexus 7 (2013) Android Development] jaucar:
Thanks for the help.

I have already managed to install the gapps but now I see another problem:

I start the device, I select language, I create the network, I create the account.

Up to here everything is correct.

without clutch, in the next step, look for updates and there is running around time and time without any results.

Can you help me with that?

I would like to be able to do a clean installation but that is preventing me.

Thank you very much for this wonderful work
[Nexus 7 (2013) Android Development] dealpapa1:
dear god, is 8.1.0_r53 last version of 8.1.0?
[Nexus 7 (2013) Android Development] a8ksh4:
Read the post directly above yours. :P
[Nexus 7 (2013) Android Development] emmett.tsai:
I not found in duma device tree.

In LineageOS, find a patch that may be related to this issue. Bluetooth: Ensure to release wake lock during turn off.

But I usually don't use the function of bt, how can I confirm the issue of "bt seems to cause huge battery drain"? so that I can confirm patch is work or not.
[Nexus 7 (2013) Android Development] followmsi:
8.1.0_r60 will come later this month .. most probably this will be the last Oreo ROM.
[Nexus 7 (2013) Android Development] dealpapa1:
thank you so much. :good:
[Nexus 7 (2013) Android Development] followmsi:
Will merge this one into my flo /system/bt and check next build.

And this one into hw/interfaces ..

https://review.lineageos.org/c/LineageOS/android_hardware_interfaces/+/224064

You may test to establish BT connection for testing .. this way you can see battery drain too.

Thanks
[Nexus 7 (2013) Android Development] emmett.tsai:
My flo can't find my bluetooth headset yet. PC can see my bluetooth headset.

Test on my image and flo-Classic_01-2019_AOSP_9.0.0_r30_followmsi

Is flo-Classic_01-2019_AOSP_9.0.0_r30_followmsi work for bt establish connection? Or I need to fix connection first?

Use "Pair new device" right?
[Nexus 7 (2013) Android Development] followmsi:
As said before .. Bluetooth is not working and needs to be fixed.

If you check logs there are no big problems .. not sure about the root cause.

If BT is stopped it normally stopps filling up the logs ..

"svc bluetooth disable" from console will stop it quicker :)

Not sure about the root cause for battery drain .. as it looks system does not go into deep sleep properly.

Cheers
[Nexus 7 (2013) Android Development] followmsi:
Pie v2 version

We can watch Youtube and Netflix on Pie now :)

Camera looks much better too.

flo-Classic_01-2019_AOSP_9.0.0_r30_followmsi_v2.zip

I did apply the BT patches .. but Bluetooth is still not working.

DEB v2 version will come later too.

Thanks to [MENTION=8199534]emmett.tsai[/MENTION] for pushing Android Pie ..

And thanks to [MENTION=4473793]yattodettaman[/MENTION] for his initial (duma) work.

Enjoy :p

EDIT:

And the DEB ROM ..

deb-Classic_01-2019_AOSP_9.0.0_r30_followmsi_v2.zip
[Nexus 7 (2013) Android Development] Aerys:
Thanks alot for keeping our lovely Nexus 7's alive ?

There are still alot of graphical glitches, do you think these will be fixed overtime?
[Nexus 7 (2013) Android Development] abhifx:
You are on fire, thanks. More bugs down (assuming this fixes hardware decoders).
[Nexus 7 (2013) Android Development] tombraga:
tried to install now, made clean flash (wiped all except data) and tried together with arm opengapps 9.0 pico, but there was not enough space.

now i am restoring my backup, and then:

either try once more with clean flash and opengapps tvstock (smallest one) or make a dirty flash only the 9.0 rom without opengapps.

what do you think, [MENTION=5480152]followmsi[/MENTION] should i do?

actual: it worked with dirty flash, very nice, will test now, thanks a lot to all devs...
[Nexus 7 (2013) Android Development] yattodettaman:
Hi,

i think you need this commits:

1) for BT: https://github.com/LineageOS/android_device_asus_flo/commit/ad0d6008401c6f56ecf6d915f8cbab7a7d7eecc4

2) This fixes black Youtube videos... https://github.com/yatto/android_dev...7e7295f289d003

3) This fixes Front camera FC https://github.com/yatto/android_dev...53f0361cb87074

4) This Fixes Video Recording Reboots: https://github.com/yatto/android_dev...6cbe9805da3441 Don't remove Video Decorder AVC, otherwise HW video decoding will not work.
[Nexus 7 (2013) Android Development] tombraga:
It´s really a dream went true, my old friend "flo" got Android Pie, very happy, thanks a lot.
[Nexus 7 (2013) Android Development] FletchF:
Good call. I updated to the latest Rootless Launcher and the gestures seem to work as expected.
[Nexus 7 (2013) Android Development] tombraga:
I have nova launcher prime and now also atmos dolby working fine with pie
[Nexus 7 (2013) Android Development] followmsi:
[MENTION=8199534]emmett.tsai[/MENTION]
[MENTION=4473793]yattodettaman[/MENTION]

Just FYI .. Bluetooth is fixed now :)

We are still using the old standard NON-CAF libbt-vendor and no need to change any BT config.

Actually it was the selinux stuff.

Even we have permissive the "neverallows" did break service start of hciattach service.

This change will fix it ..

https://github.com/followmsi/android_device_asus_flo/commit/4aed99de77a1e9fd095b72a3b48c338527a5646d

https://github.com/followmsi/android_device_asus_deb/commit/70e66ae08909a60cdfc5cd099e90819fd1b532d4

Sorry, no time for a new v3 ROM this weekend ..

The flo users can download this boot.img

boot-BT_flo-Classic_01-2019_AOSP_9.0.0_r30_followmsi_v2.img

Install as image via TWRP and reinstall Magisk afterwards !

Just listening Spotify via Bluetooth :D

Have a nice weekend ..
[Nexus 7 (2013) Android Development] dealpapa1:
wow god 2.0 is here. :highfive:
[Nexus 7 (2013) Android Development] jhford:
deb-Classic_01-2019_AOSP_9.0.0_r30_followmsi_v2.zip

I only tried Bluetooth which wasn't working.
[Nexus 7 (2013) Android Development] emmett.tsai:
Thank you.

Here is my test:

(1), (2) not work for my build.

after pick camera: fix/hack static metadata reporting, camera not happen force close. (3) seem nothing change for me.

(4) can fix flo video recording reboot too.

waiting for [MENTION=5480152]followmsi[/MENTION] check on his build.

EDIT:

Oh! sorry, (3) is work!!

I forgot revert my test patch in hardware/interfaces, my test patch cause ExternalCameraProvider do nothing.

After revert my test patch, (2) still not work if only drop avc encoder.
[Nexus 7 (2013) Android Development] followmsi:
I just used the last 2 commits from you for my v2 version .. I can watch Netflix and YouTube now ..hw decoding looks good now.

Even we removed avc decoder too.

camera video record did work and save, no unexpected reboot anymore.

Still need to test both camera more deeply.

Sometimes graphics gltiches with stock Android launcher .. need to test Pixel launcher and other launcher.

Battery seems still to drain more as "normal" .. still no idea about the root cause.

We are coming closer .. :)
[Nexus 7 (2013) Android Development] tombraga:
I installed the boot.img - worked.

But it seems to me that the tablet is slower now.

To open apps like Browser (Opera), mail (Outlook), xda-forum app.... All needs more time to open as in 8 oreo, why this?

When the app is started, it is fast as before with oreo
[Nexus 7 (2013) Android Development] emmett.tsai:
Wow! Good! Thank you!

My boss ask me to study ios for new case in my job, maybe have no much time too in recent. :(
[Nexus 7 (2013) Android Development] mrchambo:
And where did you find said launcher, if I may ask?
[Nexus 7 (2013) Android Development] FletchF:
https://play.google.com/store/apps/details?id=amirz.rootless.nexuslauncher
[Nexus 7 (2013) Android Development] tombraga:
Had already some bugs, shut down and sistem restart while working, this time in Aptoide, before in xda app and Opera Browser.

Also continue long starting time when opening Apps...
[Nexus 7 (2013) Android Development] jhford:
Google Chrome and Chrome Beta keep stopping when I click a web page link

I'm running deb-Classic_12-2018_AOSP_8.1.0_r53_OPM8.181205.001_followmsi.zip