-
Notifications
You must be signed in to change notification settings - Fork 77
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
android.view.SurfaceControl.createDisplay seems to be removed #54
Comments
Yup, it's not available anymore. Sorry, the commit is quite a mess, that's why I didn't send a PR. I think we should gradually migrate the minicap code to look more like scrcpy. It's just better maintained, and we would save time fixing stuff if we had the same (or more similar) classes and overall structure. The relevant lines are those: |
Actually I have the fix but I am very much familiar with Java now trying to add my code and send a PR. By this weekend I will send the PR. |
Thank you. will be a big help. |
@KishanDasani the fix is entirely independent from the native binaries. The native binaries are mostly used for old devices AFAIS. |
so directly building an apk from experimental folder and replcing it with apk in "noarch" folder will do the work? |
Not sure where the apk needs to go exactly. We are not using minicap as part of stf. |
I'm using minicap with stf as npm package and facing the issue there itself. do you suggest to put debug apk, which we'll get by building from experimental folder, into node_modules directly is a good idea? I'm in need to fix this issue in production environment though. |
Actually minicap no more suppted the .so file instead of they have move to the apk approach for screencasting. You just wait till this weekend hope i will give you the fix in apk itself as I have the fix |
no issues, @varundtsfi |
Hi, @varundtsfi |
@stoefln while this fixes screen fetching issue for pixel devices, it breaks screenshot for all the devices. |
I was able to solve the screenshot issue by not taking changes of Main.kt file (changing System.err.printLn to log.info) and logger.kt file (adding printLn with every function). |
Hi Yes, Sorry for the delay |
Thank you, @varundtsfi |
Hi. Any updates @varundtsfi ? |
Hi @lamadaoudi and @KishanDasani |
Hi @stoefln , @KishanDasani and @lamadaoudi |
What is the issue or idea you have?
I am testing Android 15 Beta 1 on STF, but minicap seems to be crashed on launch.
From logcat, it says
java.lang.NoSuchMethodException: android.view.SurfaceControl.createDisplay [class java.lang.String, boolean]
, guessing certain internal API is removed from Android used inside minicap.I found that related issue at scrcpy, with a commit to remove usage of same internal API.
I am not familiar with minicap and internal API, could anybody fix this issue?
Here are logs of logcat:
Have you tried STF?
Of course yes.
The text was updated successfully, but these errors were encountered: