How to use ADB Shell when Multiple Devices are connected? Fails with “error: more than one device and emulator”
Use the -s option BEFORE the command to specify the device, for example: See also http://developer.android.com/tools/help/adb.html#directingcommands