1 bugreport
Android系統(tǒng)調(diào)試分析工具,幾乎涵蓋整個(gè)系統(tǒng)各個(gè)層面內(nèi)容,對于分析BUG是一大利器
$ adb bugreport > bugreport.txt (5.0. 6.0)
$ adb bugreport bugreport.zip (7.0 +)
2 Batterystats
包含在Android框架中的工具,用于收集設(shè)備上的電池?cái)?shù)據(jù)
$ adb shell dumpsys batterystats --reset
$ adb shell dumpsys batterystats --enable full-wake-history
$ adb shell dumpsys batterystats > batterystats.txt
$ adb shell dumpsys batterystats --disable full-wake-history
3 app消耗電量的體現(xiàn)
cpu、Wakelock(保持喚醒鎖)、無線電(2G/3G/4G)、WIFI、藍(lán)牙、各種傳感器、相機(jī)、閃光燈
4 Battery Historian
google 官方開源的電量分析工具,幫助開發(fā)人員定位app具體的耗電場景
$ docker run -p 9999:9999 registry.cn-hangzhou.aliyuncs.com/xyz10/android-battery-historian:stable-3.0
5 ChkBugReport
索尼開源項(xiàng)目,bugreport分析工具,方便開發(fā)查看日志,定位各種問題
java -jar ChkBugReport.jar bugreport.txt
6 uiautomator
android 4.1+的原生自動(dòng)化測試框架
7 AppiumBootstrap.jar
基于uiautomator1.0的android自動(dòng)化測試腳本,
appium項(xiàng)目的子項(xiàng)目,封裝原生uiautomator接口,透出socket接口,與pc通信
8 啟動(dòng)appiumbootstrap
adb push AppiumBootstrap.jar /data/local/tmp
adb shell uiautomator runtest /data/local/tmp/AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
9 appium通信協(xié)議,拍照的數(shù)據(jù)格式
{"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.android.camera:id/shutter_button","context":"","multiple":false}}
{"cmd":"action","action":"element:click","params":{"elementId":"1"}}
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。