adb 常用命令

adb 常用命令

###過濾關鍵字 adb logcat | grep
###根據進程id 篩 adb logcat -v process |grep DMUI
###掛載system目錄爲可讀寫 adb remount
###重啓 adb reboot
###刪除文件 adb shell rm -rf 文件名
###展示目錄列表 adb shell ls
###進入目錄 adb shell cd 目錄名稱
###導出手機數據 adb shell pull xx/xx/ targetDir
###獲取手機屬性 adb shell getprop
###獲取手機屬性 adb shell getprop | grep model
###清除應用數據 adb shell pm clear 應用包名
###填滿手機U盤 adb shell dd if=/dev/zero of=/sdcard/big.txt
###獲取系統是32還是64位 adb shell getprop ro.product.cpu.abi
###清除緩存 adb shell pm clear 應用包名
###強制停止 adb shell am force-stop 應用包名
###顯示設備當前運行的進程 adb shell ps
###顯示內存信息 adb shell dumpsys meminfo $package_name or $pid
###手機host push adb push E:hosts /system/etc/hosts
###手機host pull adb pull /system/etc/hosts e:\hosts (注,手機host文件受格式影響,很多時候host不生效的原因都是host文件格式有問題)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章