您好,登錄后才能下訂單哦!
1.獲取手機(jī)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.根據(jù)cpu架構(gòu)和sdk版本
下載minicap:
https://github.com/openstf/minicap/archive/v2.2.0.zip
4.將minicap推送到手機(jī)
./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添加運行權(quán)限
./adb -s emulator-5554 shell chmod 0755 /data/local/tmp/minicap
6. 獲取設(shè)備長寬
./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. 端口轉(zhuǎn)發(fā)
./adb -s emulator-5554 forward tcp:1717 localabstract:minicap
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。