开发者

how does adb find the emulator?

开发者 https://www.devze.com 2023-03-12 19:08 出处:网络
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 th开发者_JS百科em connect together? Use defau

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 th开发者_JS百科em connect together? Use default port? or something else.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消