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

Don't work on RedMi4A #61

Closed
raychin opened this issue Mar 29, 2017 · 4 comments
Closed

Don't work on RedMi4A #61

raychin opened this issue Mar 29, 2017 · 4 comments
Labels

Comments

@raychin
Copy link

raychin commented Mar 29, 2017

C:\Users\HD-QL24>adb -s dde9d49f1f583 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -P 720x1280@180x320/0
PID: 11177
INFO: Using projection 720x1280@180x320/0

I work in windows10 , and RedMi4A。no show "ok"!
How to solve?

@sorccu
Copy link
Member

sorccu commented Jun 2, 2017

I bought a Redmi 4A to test it out and it works fine.

+ adb shell LD_LIBRARY_PATH=/data/local/tmp/minicap-devel /data/local/tmp/minicap-devel/minicap -P 720x1280@720x1280/0 -t
PID: 12033
INFO: Using projection 720x1280@720x1280/0
INFO: (external/MY_minicap/src/minicap_23.cpp:240) Creating SurfaceComposerClient
INFO: (external/MY_minicap/src/minicap_23.cpp:243) Performing SurfaceComposerClient init check
INFO: (external/MY_minicap/src/minicap_23.cpp:250) Creating virtual display
INFO: (external/MY_minicap/src/minicap_23.cpp:256) Creating buffer queue
INFO: (external/MY_minicap/src/minicap_23.cpp:261) Creating CPU consumer
INFO: (external/MY_minicap/src/minicap_23.cpp:265) Creating frame waiter
INFO: (external/MY_minicap/src/minicap_23.cpp:269) Publishing virtual display
INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 2766852 bytes for JPG encoder
INFO: (external/MY_minicap/src/minicap_23.cpp:284) Destroying virtual display
OK

It also works in STF.

And it also works with your extremely small resolution:

+ adb shell LD_LIBRARY_PATH=/data/local/tmp/minicap-devel /data/local/tmp/minicap-devel/minicap -P 720x1280@180x320/0 -t
PID: 12112
INFO: Using projection 720x1280@180x320/0
INFO: (external/MY_minicap/src/minicap_23.cpp:240) Creating SurfaceComposerClient
INFO: (external/MY_minicap/src/minicap_23.cpp:243) Performing SurfaceComposerClient init check
INFO: (external/MY_minicap/src/minicap_23.cpp:250) Creating virtual display
INFO: (external/MY_minicap/src/minicap_23.cpp:256) Creating buffer queue
INFO: (external/MY_minicap/src/minicap_23.cpp:261) Creating CPU consumer
INFO: (external/MY_minicap/src/minicap_23.cpp:265) Creating frame waiter
INFO: (external/MY_minicap/src/minicap_23.cpp:269) Publishing virtual display
INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 2766852 bytes for JPG encoder
INFO: (external/MY_minicap/src/minicap_23.cpp:284) Destroying virtual display
OK
% adb devices -l
List of devices attached
redacted          device usb:338690048X product:rolex model:Redmi_4A device:rolex

MIUI 8.2.6.0.

@sorccu sorccu closed this as completed Jun 2, 2017
@sorccu sorccu added the invalid label Jun 2, 2017
@sorccu
Copy link
Member

sorccu commented Jun 2, 2017

Note that people have had issues with character sets messing with ADB. Changing the character set has solved mysterious issues like this in the past. Might want to try setting your terminal to UTF-8.

@Locotar
Copy link

Locotar commented Jul 18, 2017

I have found the same issues at the beginning, then i find that version of minicap.so is not correct : (
You can check the SDK version, and choose a correct version. Have a try~
SDK=$(adb shell getprop ro.build.version.sdk | tr -d '\r')
adb push jni/minicap-shared/aosp/libs/android-$SDK/$ABI/minicap.so /data/local/tmp/

@raychin
Copy link
Author

raychin commented Jul 26, 2017

OK , Thank you!

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

No branches or pull requests

3 participants