常用的命令
code | 說明 |
---|---|
adb connect 192.168.2.123 | 連接到Android設備 |
adb disconnect 192.168.2.123 | 斷開Android設備 |
adb logcat -v time >(path) | 導出設備logo |
adb pull /data/anr/traces.txt (path) | 導出設備logo |
adb -s 192.168.2.123 logcat -v time >(path) | 導出連接到的設備logo |
adb -s 192.168.2.95 pull /sdcard/package.log /Users/wangtao/Desktop/respond.log | 導出設備數(shù)據(jù)到文件 |
adb -s 127.0.0.1 shell input keyevent 82 | adb 給app發(fā)送按鍵命令 |
adb shell monkey -p com.micro.player -p com.micro.player --throttle 100 -v 500000000 | monkey 間隔 100 |
adb shell ps | grep monkey | 查找當前的monkey進程 |
adb shell kill 13339 | 關(guān)閉當前的monkey進程 |
adb shell monkey -p com.ftxjoy.cibn_tvplayer -c android.intent.category.LAUNCHER 1 | adb 啟動apk |
adb -s 192.168.2.163 push /Users/xx/Downloads/video.m2ts /storage/emulated/0 | adb push 文件 |
adb -s 192.168.2.163 shell am start 包名/MainActivity路徑 | adb 啟動app |
adb -s 192.168.2.163 shell am force-stop 包名 | adb 停止app |
aapt dump badging apk路徑 | adb 反編譯apk |
1. 打包上傳到svn
assembleAAARelease
中的AAA 表示 productFlavors
里面的
app\release\V1.3.3\%1\
表示svn的本地路徑
gradlew assembleAAARelease
move app\build\outputs\apk\%1\release\*.apk app\release\V1.3.3\%1\
svn add app\release\V1.3.3\%1\*.apk
svn commit -m "add apk file : %1"