<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # 實用的幾個命令 * 從PC推送文件到安卓設備 ```plain adb push <pc文件路徑> <安卓設備文件路徑> ``` * 從安卓設備推送文件到PC ```plain adb pull <安卓設備文件路徑> <PC文件路徑> ``` * 安裝APK: ```plain adb install <apkfile> //比如:adb install baidu.apk ``` * 查看設備cpu和內存占用情況: ```plain adb shell top ``` * 重啟 adbd 并開啟網絡調試模式 ```plain adb tcpip 5555 # 指定端口 5555 ``` * 查看 CPU 相關信息 ```plain adb shell cat /proc/cpuinfo ``` * 查看運行內存信息 ```plain adb shell dumpsys meminfo ``` * 根據包名、類名啟動應用程序 ```plain adb shell am start -n com.taobao.taobao/.MainActivity ``` * 根據包名強制關閉進程 ```plain adb shell am force-stop com.taobao.taobao ``` * 發送 BOOT_COMPLETED 廣播 ```plain adb shell am broadcast -a android.intent.action.BOOT_COMPLETED ``` ```plain // 精確發送到 package adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME -n package_name/class_name ``` * 模擬滑動解鎖屏幕 ```plain adb shell input keyevent 82 ``` * 休眠時間相關 ```plain // 獲取屏幕休眠時間 adb shell settings get system screen_off_timeout // 設置屏幕休眠時間(60 秒) adb shell settings put system screen_off_timeout 60000 ``` * 獲取已安裝應用包名 ```plain // 獲取已安裝應用包名 adb shell pm list package // 獲取包名對應的 Apk 路徑 adb shell pm path com.tencent.qq ``` * Android 去除嘆號 ```plain adb shell settings put global captive_portal_https_url https://www.v2ex.com/generate_204 ``` # 其他命令 1、獲取序列號: ```plain adb get-serialno ``` 2、查看連接計算機的設備: ```plain adb devices ``` 3、重啟機器: ```plain adb reboot ``` 4、重啟到bootloader,即刷機模式: ```plain adb reboot bootloader ``` 5、重啟到recovery,即恢復模式: ```plain adb reboot recovery ``` 6、查看log: ```plain adb logcat ``` 7、終止adb服務進程: ```plain adb kill-server ``` 8、重啟adb服務進程: ```plain adb start-server ``` 9、獲取機器MAC地址: ```plain adb shell cat /sys/class/net/wlan0/address ``` 10、獲取CPU序列號: ```plain adb shell cat /proc/cpuinfo ``` 11、跑monkey: ```plain adb shell monkey -v -p your.package.name 500 ``` 12、保留數據和緩存文件,重新安裝apk: ```plain adb install -r <apkfile> //比如:adb install -r baidu.apk ``` 13、安裝apk到sd卡: ```plain adb install -s <apkfile> // 比如:adb install -s baidu.apk ``` 14、卸載APK: ```plain adb uninstall <package> //比如:adb uninstall com.baidu.search ``` 15、卸載app但保留數據和緩存文件: ```plain adb uninstall -k <package> //比如:adb uninstall -k com.baidu.search ``` 16、啟動應用: ```plain adb shell am start -n <package_name>/.<activity_class_name> ``` 17、獲取設備名稱: ```plain adb shell cat /system/build.prop ``` 18、查看占用內存前6的app: ```plain adb shell top -m 6 ``` 19、刷新一次內存信息,然后返回: ```plain adb shell top -n 1 ``` 20、查看電池信息 ```plain adb shell dumpsys battery ``` 21、殺死一個進程: ```plain adb shell kill [pid] ``` 22、查看進程列表: ```plain adb shell ps ``` 23、查看指定進程狀態: ```plain adb shell ps -x [PID] ``` 24、查看后臺services信息: ```plain adb shell service list ``` 25、查看當前內存占用: ```plain adb shell cat /proc/meminfo ``` 26、查看IO內存分區: ```plain adb shell cat /proc/iomem ``` 27、將system分區重新掛載為可讀寫分區: ```plain adb remount ``` 28、從本地復制文件到設備: ```plain adb push <local> <remote> ``` 29、從設備復制文件到本地: ```plain adb pull <remote> <local> ``` 30、清除log緩存: ```plain adb logcat -c ``` 31、查看bug報告: ```plain adb bugreport ``` 參考文檔: [Android ADB命令大全](http://zmywly8866.github.io/2015/01/24/all-adb-command.html) --張明云 [WiFi(網絡)調試Android手機](http://blog.csdn.net/xusiwei1236/article/details/41480319) [使用ADB更改系統設置中的參數 如背光亮度、休眠時間等](http://blog.csdn.net/jimbo_lee/article/details/52168189) [完全使用adb,aapt 獲取已安裝apk的各種信息](http://blog.csdn.net/victoryckl/article/details/8951113)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看