温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

minicap使用指南

发布时间:2020-06-13 16:27:07 来源:网络 阅读:6123 作者:zzzzzga 栏目:开发技术

1.获取手机cpu

./adb -s emulator-5554 shell "getprop ro.product.cpu.abi | tr -d '\r'"

arm64-v8a

 

2.获取Android sdk版本

./adb -s emulator-5554 shell "getprop ro.build.version.sdk | tr -d '\r'"

25

 

3.根据cpu架构和sdk版本

下载minicap:

https://github.com/openstf/minicap/archive/v2.2.0.zip

                                               

4.将minicap推送到手机

./adb -s emulator-5554 push minicap /data/local/tmp

2378 KB/s (576032 bytes in 0.236s)

 

./adb -s emulator-5554 push minicap.so /data/local/tmp

1333 KB/s (18480 bytes in 0.013s)

 

5. 给minicap添加运行权限

./adb -s emulator-5554 shell chmod 0755 /data/local/tmp/minicap

 

6. 获取设备长宽

./adb -s emulator-5554 shell wm size

Physical size: 320x480

 

6.运行minicap

./adb -s emulator-5554 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -P 1080x1920@1080x1920/0

 

 

7. 端口转发

./adb -s emulator-5554 forward tcp:1717 localabstract:minicap


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI