-
Notifications
You must be signed in to change notification settings - Fork 623
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
How to build minicap.so for android 11 ? #208
Comments
Hi @wull8 error: external/linux-kselftest/Android.bp:53:13: unrecognized property "arch.mips" repo init -u https://android.googlesource.com/platform/manifest -b android-r-preview-1 |
I have tried by taking the latest repo repo init -u https://android.googlesource.com/platform/manifest -b android-r-preview-2 I have put the same logs over google community. If I found something then I will post |
@varundtsfi I got it to build on android-r-preview-3 by commenting out the following in external/linux-kselftest/Android.bp and external/seccomp-tests/Android.bp:
Doesn't work with STF though. |
Hi @entomber |
@entomber I have build android-r-preview-4 successfully but when I push mimicap in external directory and again build then not getting generated minicap.so file. Do you have any idea... |
Hello all, Thanks for your information ! I managed to build minicap.so with "android-r-preview-4". But when I run it on mobile device, I got below error: Check error CANNOT LINK EXECUTABLE "/data/local/tmp/minicap": cannot locate symbol "_ZN7android21SurfaceComposerClient17getDisplayConfigsERKNS_2spINS_7IBinderEEEPNS_6VectorINS_11DisplayInfoEEE" Any idea about this issue ? (I guess android-r-preview-4 still uses "minicap_29.cpp"). Thanks :) |
I am also getting the same error But I have verified SurfaceComposerClient and ISurfaceComposerClient files in android 10 and 11 both are identical. Now I will try another approach If I got something I will post immediately over here. @pcrepieux Any suggestion please. |
That's a recurring issue. The AOSP source code is currently not fully sync'ed with preview/beta builds. There is only 2 options I can think of with the current codebase:
I'll try to look at this issue in the coming days. If I find a way to make it work, I'll keep you posted. |
@pcrepieux which file we have to compare. Dynamically load and call the new method this activity we have done in android 10 support also. I am working on second option. Whatever would be the output I will post it here. |
Any update on android 11 support ? |
Will check again shortly if the the current AOSP source code can help. The main blocker is that |
my code is different from aosp, it can be only used to xiaomi device in my code , the code of getDisplayinfo method is different from aosp, so i delete my comment, it just can be used to xiaomi device for other device |
@WeiPeiXian |
@pcrepieux |
@pcrepieux @wull8 @varundtsfi @entomber @WeiPeiXian |
Here is a comment in an older discussion that will maybe provide you the step you are looking for : #168 (comment) |
@WeiPeiXian Is it possible that you can share minicap.so files for Android 11 for Xiaomi Devices. Please share if you don't have any issue. |
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. |
Which minicap file do you use for android 11? |
I try to use your forked branch to build the library, but the size of the built library is only 2KB, would you please tell me what kind of things missing? |
|
It has been provided in official support: https://github.com/DeviceFarmer/minicap |
@pcrepieux, @varundtsfi To make the minicap work, does my cell phone use adb? |
Yes it does(actually your local system uses to communicate with your device ) To cast the screen from your mobile device to your local system. It uses adb forward command and many more to get the device details. |
Hi, @varundtsfi , I'm trying to follow that instruction from @pcrepieux to add the minicap to my LG G7. |
What is the android version of LG G7 you are using So that I will try to download the aosp to build . |
Anyone started playing with android 11?
The text was updated successfully, but these errors were encountered: