use 'adb devices' to get a list of devices connected then 'adb -s devicename shell'
From : http://hiapk.com/redirect.php?tid=296546&goto=lastpost