adb如何找到模拟器?

发布于 2024-11-14 18:33:23 字数 75 浏览 4 评论 0原文

启动模拟器实例后,我可以使用 adb 来控制它。但我不需要指定模拟器的监听端口。我的问题是它们如何连接在一起?使用默认端口?或其他东西。

After starting an emulator instance, I can use adb to control it. But i don't need to specify the listening port of the emulator. My question is how does them connect together? Use default port? or something else.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回梦 2024-11-21 18:33:23

它扫描从特定范围开始的偶数端口并尝试连接。每个仿真器控制一个端口。

基本上如 http://developer.android.com/guide/developing/tools 上所述/模拟器.html
在网络端口部分它说

控制台端口号必须是
5554 到 5584 之间的偶数,
包容性。 +1 也必须是免费的
并将保留给亚行

It scans the even numbered ports starting at a specific range and attempts to connect. The emulator takes control of a port each.

Basically as said on http://developer.android.com/guide/developing/tools/emulator.html
In the network -port section it says

The console port number must be an
even integer between 5554 and 5584,
inclusive. +1 must also be free
and will be reserved for ADB

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文