-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minicap for Android 11 #3
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
@pcrepieux could you help with this? |
@Babu-SKK |
Hi @pcrepieux I am using scrcpy utility which is working fine with preview as well as on beta versions without doing anything. I am using this for my application testing on local system. |
Hi @varundtsfi One of the main advantage I see with this approach is that it doesn't require a compilation step that depends upon AOSP. Plus, H.264 would be more bandwidth efficient than a sequence of jpeg images. The downside is that it will come at the price of reworking [a lot ?] the client side. Rendering this raw H.264 stream is managed by ffmpeg in scrcpy and they did it very well. Implementing something similar in the browser is likely to be a bit challenging. In any case, that's an approach to investigate because things would be way more easy/stable if we could get rid of libgui dependency. So basically, I agree with you 👍 |
Thanks @pcrepieux for your views on this. I have found a similar stuff which is working top of Scrcpy with web client ws-scrcpy It's a prototype I am looking into this. I am checking their open and closed issues. I will share my findings with you. |
I copied the android 29 folder in /usr/lib/node_modules/stf/node_modules/minicap-prebuilt-beta/prebuilt/arm64-v8a/lib/ to android 30 and got from this
to this, but I still cannot open the screen
Does anyone have any suggestions please |
@pcrepieux android-r-beta-3 released |
But still Rotation.h is not there in ui directory. In short not completely sync. Might be on 8th September Google will release Final Android 11 with fully sync aosp. By that time we have to wait and watch. |
https://github.com/WeiPeiXian/minicap/tree/master/minicap.so |
@WeiPeiXian INFO: (packages/apps/SYSOPT/minicap/so/src/minicap_30.cpp:248) Creating SurfaceComposerClient @pcrepieux Here is a good information about these binaries. These binaries are working for Google Pixel 2(Android 11) Also. |
Good to know 👍 And the other good news is now that Android 11 has been officially launched, the source code is finally available 🎉 |
Here is the first android 11 r1 branch 😊😊😍 https://android.googlesource.com/platform/frameworks/native/+/refs/tags/android-11.0.0_r1 |
@varundtsfi @pcrepieux @WeiPeiXian I tried by placing these .so files in below folder in the deployed stf setup (running locally, no docker)
I tried using Android Studio Emulator, But got below error
Is it the right way of using the so files? |
No these are the aosp pre built libraries.which you have to keep inside aosp/android-30/ directory. x86 binaries we need to build with aosp, Only these will be available but for arm these are working properly. |
I am trying to use it in the deployed STF setup (running locally, no docker). In this, we have the only minicap-prebuilt-beta folder. Please help me in using the lib directly in the STF |
The problem is these binaries are ARM/ARM64, not x86 which is what your emulator is running. Create an ARM based emulator and it should work |
Libs are working fine with Samsung devices. Followed same procedure as I mentioed in earlier post |
@Babu-SKK now you can use intel binaries also which is shipped by @pcrepieux in PR https://github.com/DeviceFarmer/minicap/commits/android-11-support |
Issue seems to be resolved by #7 |
What is the issue or idea you have?
stf is not working on Android 11 which requires minicap.so file
Have you tried STF?
Yes. It is not working
May I know, how we can build the so file using AOSP code. Do I need to follow exactly this minicap-shared or is there any other simple way
Right now android-r-beta-2 is available
openstf#208
The text was updated successfully, but these errors were encountered: