Skip to content
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

Tried new approach on Android 12 beta-1 #14

Closed
varundtsfi opened this issue May 27, 2021 · 5 comments
Closed

Tried new approach on Android 12 beta-1 #14

varundtsfi opened this issue May 27, 2021 · 5 comments

Comments

@varundtsfi
Copy link
Collaborator

varundtsfi commented May 27, 2021

What is the issue or idea you have?

Have you tried STF?

@pcrepieux I have tried new approach which you have provided Experimental ([#12)] on Google Pixel 3XL (#12) which is not working. I know it's in beta version but still I gave it a try and getting below stats

1:- adb shell CLASSPATH=/data/local/tmp/minicap-0.1-debug.apk app_process /system/bin io.devicefarmer.minicap.Main
PID: 6057
Listening on minicap
createDisplay
Killed (getting only Killed nothing else not much data to debug)

2:- node app.js
Listening on port 9002
Got a client
chunk(length=24)
banner { version: 1,
length: 24,
pid: 6057,
realWidth: 1440,
realHeight: 3040,
virtualWidth: 1440,
virtualHeight: 3040,
orientation: 0,
quirks: 2 }
Lost a client
Got a client

@pcrepieux
Copy link

@varundtsfi, thanks for taking the time to give it a try !
You might find additional logs in logcat. If you are willing to check again, I'd suggest to go with latest source code (I am not sure this is the case looking at the apk filename you mentionned). The Makefile also build the apk and put it in "prebuilt/noarch" directory.
NB: I still haven't tagged a release cause there is still an issue with the screen metrics but that is already quite usable. And feedbacks are much appreciated.

@varundtsfi
Copy link
Collaborator Author

@pcrepieux
Updated code is working fine..
adb shell CLASSPATH=/data/local/tmp/minicap-debug.apk app_process /system/bin io.devicefarmer.minicap.Main -P 1440x3040@1440x3040/0
11:23:48.190 [main] INFO BaseProvider - framePeriodMs: 0
PID: 7130
INFO: 720x1520@720x1520/0
11:23:48.204 [main] INFO Main - Listening on socket : minicap
11:25:18.710 [main] WARN BaseProvider - no image available
11:27:47.832 [main] WARN BaseProvider - no image available

But I have once concern about it. Performance is bit slow as compare to original minicap. No. of frames are like less? Can we put logs to find out no of frames?
A12

@pcrepieux
Copy link

@varundtsfi the first goal was to get something up and running. At the moment, it is likely that performances are not as good as before (thought it looks rather good as far as I tested). I'll see how to improve it in a second step.

@varundtsfi
Copy link
Collaborator Author

@ #27

@varundtsfi
Copy link
Collaborator Author

WE can close this now. As so and apk both approach we have.

https://github.com/varundtsfi/Android12Support_withso/tree/main/aosp/android-31/arm64-v8a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants