Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Sometimes "adb devices" will return phantom Android emulator instances #86

Closed
antoinevg opened this issue Oct 6, 2020 · 0 comments
Closed

Comments

@antoinevg
Copy link
Contributor

Sometimes when running:

adb devices -l

…the list of emulators returned will contain one or more devices that do not exist.

This can happen because:

  1. adb scans the local network interface for open ports in the range 5xxx to 6xxx.
  2. If it finds an open port it does not verify that it actually belongs to an android emulator

A good way to track this down on the mac is to run something like:

sudo lsof -PiTCP -sTCP:LISTEN

…and check for processes with open ports in that range

@antoinevg antoinevg closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant