Looking internally how the naming happens, it's basically a fixed socket
and adb host command that only allows the port itself to change from one
instance to another.

Without specifying any port when calling the emulator, it'll start at
5554 and increase +2 for every other instance, until it reaches 5584.
There's no easy way to use an id or name it differently than locking it
into a specific port. This is a limitation in the adb protocol, as the
emulator is a special case (it uses tcp instead of usb).

One possible way to map the emulator image with the runtime instance
would be to force a different port per emulator, and export that data
with the 'ubuntu-emulator' tool (list). With this you could at least
know how to connect to the right instance, as long you don't have any
android emulator running at the same time (as both will end up using
adb).

Limitations:
- The console port number must be an even integer between 5554 and 5584, 
inclusive. <port>+1 must also be free and will be reserved for ADB.
- The mapping would not necessarily be correct if you also start the Android 
emulator. One way to workaround that would be to start with 5584 and decrease 
-2 at every new emulator image that gets created.

As there's not much we can do in the android side, moving this bug to
goget-ubuntu-touch.


** Package changed: android (Ubuntu) => goget-ubuntu-touch (Ubuntu)

** Changed in: goget-ubuntu-touch (Ubuntu)
   Importance: Undecided => High

** Changed in: goget-ubuntu-touch (Ubuntu)
       Status: New => Confirmed

** Changed in: goget-ubuntu-touch (Ubuntu)
     Assignee: (unassigned) => Sergio Schvezov (sergiusens)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1309040

Title:
  Stable naming and query for Ubuntu Emulator device ID

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/1309040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to