Sunday, 15 August 2010

programmatically obtain a list of android devices connected to adb -



programmatically obtain a list of android devices connected to adb -

is there way programmatically obtain list of android devices connected adb ?

i want in java on desktop application. have path of adb.exe parsing on "adb devices" response doesn't seems best idea.

is there more reliable method ?

the optimal solution depends on going list. if going run adb commands on devices find - parsing adb devices output obvious choice. alternative going through usb stack , collecting serial numbers of devices adb interface enumerated. or favorite 1 - under linux create custom udev rule keeps track of connected adb devices. mine using database, simple creating symlink every adb device , checking file list.

android adb

No comments:

Post a Comment