<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          adb 常用命令解析

          共 2272字,需瀏覽 5分鐘

           ·

          2022-06-13 01:19

          查詢設(shè)備列表
          adb devices
          安裝應(yīng)用app
          adb install xx.apk
          卸載應(yīng)用app
          adb uninstall [-k] <packagename>
          查看安裝的app包名
          adb shell pm list packages 
          查看前臺 Activity
          adb shell dumpsys activity activities | grep mFocusedActivity 
          查看當前正在運行的APK的包名
          adb shell dumpsys window | findstr mCurrentFocus
          monkey app壓測
          adb shell monkey -p 包名 -v -v -v 200>D:AAlog.txt

          app啟動時間
          adb shell am start com.android.settings/.HWSettings

          通過wifi連接手機

          adb connect 手機IP地址:5555

          打開wifi頁面命令
          adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
          打開藍牙設(shè)置界面
          adb shell am start -a android.settings.BLUETOOTH_SETTINGS
          打開藍牙開關(guān)
          adb shell svc bluetooth enable
          關(guān)閉藍牙開關(guān)
          adb shell svc bluetooth disable
          撥打電話
          adb shell am start -a android.intent.action.CALL tel:10086
          掛斷電話
          adb shell input keyevent KEYCODE_ENDCALL
          adb指定設(shè)備
          adb -s 設(shè)備id <command>
          打開手機卡頁面
          adb shell am start -a android.intent.action.MAIN -n com.android.phone/.settings.MobileNetworkSettings
          打開手機通話頁面
          adb shell am start -a android.intent.action.MAIN -n com.android.contacts/.activities.TwelveKeyDialer

          進入手機移動網(wǎng)絡(luò)頁面
          adb -s AC9XKK shell am start -a android.intent.action.MAIN -n com.android.phone/com.android.phone.MobileNetworkSettings

          增加音量:
          adb shell input keyevent 24

          降低音量:
          adb shell input keyevent 25

          播放/暫停:
          adb shell input keyevent 85

          停止播放:
          adb shell input keyevent 86

          滑動解鎖
          adb shell input swipe 300 1000 300 500

          打開手機設(shè)置頁面
          adb shell am start com.android.settings/com.android.settings.Settings
          指定程序內(nèi)存使用情況
          adb shell dumpsys meminfo $package 
          指定程序CPU使用情況
          adb shell dumpsys cpuinfo $package 
          接收的數(shù)據(jù)流量
          adb shell cat /proc/uid_stat/$PID/tcp_rcv 
          發(fā)送的數(shù)據(jù)流量
          adb shell cat /proc/uid_stat/$PID/tcp_snd 
          指定程序電量消耗信息
          adb shell dumpsys batterystats $package | more 
          綜合電量消耗
          adb shell dumpsys batterystats | more 
          電池信息
          adb shell dumpsys battery 
          查指定程序pid
          adb shell "ps | grep $package" 

          查看手機信息
          adb shell getprop 
          查看手機序列號
          adb shell getprop ro.serialno 
          查看手機CPU信息
          adb shell cat /proc/cpuinfo 
          查看手機內(nèi)存信息
          adb shell cat /proc/meminfo 
          重啟手機
          apk adb reboot 
          屏幕截圖
          adb shell screencap /sdcard/screen.png 

          制視頻

          adb shell screenrecord /sdcard/demo.mp4 

          查看日志
          adb logcat *:W

          查看進程
          adb shell ps

          查看實時資源占用情況
          adb shell top
          點擊Home按鈕
          adb shell input keyevent 3
          輸入文本
          adb shell input text hello
          傳文件到電腦
          adb pull /sdcard/test.flv /Users/fin/test.flv
          瀏覽 127
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  九九成人在线 | 97视频手机在线观看 | 亚洲天堂AV在线观看 | A A A 免费毛片 | 夜夜爽影音先锋 |