hd手機顯示什么意思在哪里關閉 手機顯示log什么意思( 三 )


hd手機顯示什么意思在哪里關閉  手機顯示log什么意思

文章插圖
10).設備IDadb shell settings get secure android_id11).無線 *** 在操作前必須獲得Root權限 。
adb shell svc wifi enable#開啟WiFiadb shell svc wifi disable #關閉WiFi8.端口轉發adb forward tcp:60 tcp:70 #將60端口轉到70端口adb forward tcp:60 local:logd # 將60端口轉到local:logd的轉發9.Activity 管理器adb shell am start -n activity路徑 #啟動某一個activityadb shell am start -a android.intent.action.VIEW -d www.baidu.com#啟動默認瀏覽器打開一個網頁adb shell am start -n com.android.camera/.Camera #啟動相機adb shell am start -a android.intent.action.CALL -d tel:10086#啟動撥號10086adb shell am startservice -n 服務 #開啟服務adb shell am stopservice服務 #停止服務adb shell am force-stop bluetooth #殺死藍牙進程adb shell am kill 進程號#殺掉進程adb shell am broadcast -a android.intent.action.BOOT_COMPLETED #向所有組件廣播設備啟動完畢10.調用軟件包管理器adb shell pm list permissions #查看權限adb shell pm list permission-groups #輸出所有已知的權限組adb shell pm list permissions -d -g -f #查看系統危險權限并按組輸出所有信息adb shell pm list instrumentation#列出所有測試軟件包,-f列出測試軟件包的APK文件adb shell pm path com.android.bluetooth #查看軟件安裝路徑adb shell pm list features#輸出系統的所有功能adb shell pm list libraries #輸出當前設備支持的所有庫adb shell pm list users #輸出系統中的所有用戶adb shell pm enable ** #啟用給定的軟件包或組件(寫為“package/class”)adb shell pm disable ** #停用給定的軟件包或組件(寫為“package/class”)adb shell pm get-max-users #輸出設備支持的更大用戶數11.備份adb backup -all #備份所有數據12.壓力測試Monkey格式:adb shell monkey -v -p your.package.name 500adb shell monkey -v -p com.tencent.weishi 500
hd手機顯示什么意思在哪里關閉  手機顯示log什么意思

文章插圖
四、總結以上就是ADB的全部內容了,通過對ADB的了解我相信大家應該能通過Python編程做一個簡易版的自動化工具了,不再依靠Airtest 。

推薦閱讀