0
点赞
收藏
分享

微信扫一扫

计算机网络期末知识点(第四章-网络层)

诗尚凝寒 2024-06-03 阅读 4
adbandroid

以下是一些常用的 ADB(Android Debug Bridge)命令:

设备相关命令

查看连接的设备:

  adb devices

连接设备:

  adb connect <device_ip_address>

断开设备:

  adb disconnect <device_ip_address>

应用管理命令

安装应用:

  adb install <path_to_apk>

卸载应用:

  adb uninstall <package_name>

列出已安装的应用:

  adb shell pm list packages

文件传输命令

推送文件到设备:

  adb push <local_path> <remote_path>

从设备拉取文件:

  adb pull <remote_path> <local_path>

调试命令

启动应用:

  adb shell am start -n <package_name>/<activity_name>

停止应用:

  adb shell am force-stop <package_name>

查看日志:

  adb logcat

设备信息命令

查看设备信息:

  adb shell getprop

查看电池状态:

  adb shell dumpsys battery

查看内存使用情况:

  adb shell dumpsys meminfo

其他命令

重启设备:

  adb reboot

进入设备的 shell:

  adb shell

这些命令涵盖了设备连接、应用管理、文件传输、调试和设备信息等常见操作,可以帮助你更好地使用 ADB 进行 Android 设备的管理和调试。

举报

相关推荐

0 条评论