$ adb --help
-s SERIAL use device with given serial (overrides $ANDROID_SERIAL)
$ adb devices
List of devices attached
emulator-5554 device
7f1c864e device
$ adb shell -s 7f1c864e
error: more than one device and emulator
ベストアンサー1
デバイスを指定するには、コマンドの前にオプションを使用します-s
。例:
adb -s 7f1c864e shell
複数のエミュレータの場合は、次のようにプロセスの IP とポートを ID として使用します。
adb -s 192.168.232.2:5555 <command>
見るAndroid エミュレータの IP アドレスを取得するにはどうすればよいですか?
ただし、エミュレータが 1 つしかない場合は、次の操作を試してください。
adb -e <command>
参照http://developer.android.com/tools/help/adb.html#directingcommands