问题描述
我已连接到我的Android设备的外壳(通过在计算机外壳中执行 adb外壳
),却没有意识到,我键入了 adb设备
。它没有给我一个找不到命令
的错误或类似的东西,而是列出了一个设备!输出:
I was connected to my Android device's shell (by doing adb shell
in my computer's shell) and without realizing, I typed adb devices
. Instead of giving me a command not found
error or something, it actually listed one device! The output:
$ adb devices
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
List of devices attached
emulator-5554 offline
为什么我的手机有adb命令,什么是模拟器设备?
Why does my phone have an adb command, and what is the emulator device?
编辑:我又试了一次仍然有效,尽管现在它提供的设备列表为空。我现在和之前做过的唯一区别是,之前我做过,现在我通过有线连接进行操作。我知道它没有在计算机上运行 adb
命令,因为在两种情况下,当我在计算机上运行该命令时,我都会得到不同的输出。
I tried it again and it still works, though now the list of devices it gives is empty. The only difference between when I did it just now and when I did it before is that before, I was doing the bridge wirelessly and now I'm doing it through a wired connection. I know that it's not running the adb
command on my computer, because in both cases when I run it on my computer I get a different output.
推荐答案
某些电话确实包含 adb
二进制文件。有些是出于特定目的,有些是因为制造商懒得编辑默认的 makefile
。
Some phones do include the adb
binary. Some for a specific purpose, others just because the manufacturer was too lazy to edit the default makefile
.
也 adb设备
列出仿真器的脱机实例并不意味着设备上正在运行仿真器,只是在<$ c范围内有一个开放的tcp端口$ c> adb 在查找模拟器实例时进行扫描。只需忽略它即可。
Also adb devices
listing an offline instance of an "emulator" does not mean that there's an emulator running on the device, just that there is an open tcp port in the range that adb
scans when looking for emulator instances. Just ignore it.
这篇关于adb命令在Android设备的外壳程序中起什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!