Skip to main content

启动服务

启动 adb 服务,刷新本地设备列表。

该动作为可选动作,通常用在模拟器未列出的情况:

  • 示例 1:在以下命令序列中,该adb devices命令启动adb服务器,但不显示设备列表。
$ adb devices

List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

  • 示例2:在以下命令序列中,adb devices显示设备列表,因为adb服务器首先启动。
$ adb kill-server
$ adb start-server
$ adb devices
⁣⁣
List of devices attached
emulator-5557 device

AdbStartServer

子流程

不支持

运行参数

输出

设备日志,字符串String

资源

!> 该动作超出作用域后,会终止 adb 服务。