ADB with multiple devices - Shockoe
As you can see, we have three devices attached to our system. Two emulators and one physical phone. Now let's logcat our physical device because it's running our application that we want to debug. Just pass the -d switch to adb to target our device.
$ adb -d logcat
If we had a single emulator instance and one or more physical devices attached we could pass in the -e switch to adb which targets emulator.
$ adb -e logcat
The final switch we can use for device targeting is the -s switch, which stands for serial number.
$ adb -s emulator-5554 logcat
$ adb -s emulator-5556 logcat
$ adb -s HT09PR217646 logcat
Read full article from ADB with multiple devices - Shockoe
No comments:
Post a Comment