$set_android_device.py adb shell
(1) - R32D3006XXX [device usb:3-1.1 product:mantaray model:Nexus_10 device:manta]
(2) - 01499EAD0701XXXX [device usb:3-1.4 product:yakju model:Galaxy_Nexus device:maguro]
2
shell@maguro:/ $
- The script reads all available devices through adb and let you chose one.
- It set the environment variable
ANDROID_SERIAL
to the selected device - Executes the command that is attached throught the arguments