How to connect to multiple devices at the same time using adb?
This is one example, you have to make the split, it's doesn't seem to be an option,

root@kali:# adb devices
List of devices attached 
4fddcdd8054fc421        device
5cf4b0890675d95c        device

root@kali:# export DEVA=4fddcdd8054fc421 &amp;&amp; export DEVB=5cf4b0890675d95c

root@kali:# adb -s $DEVA shell uname -a &amp;&amp; adb -s $DEVB shell uname -a

Linux localhost 3.4.0-Mina-my-love-53x--gae7828f #1 SMP PREEMPT Sun May 31 00:41:26 EDT 2015 armv7l GNU/Linux
Linux kali 3.4.0-Mina-my-love-33x--gdba1771-dirty #1 SMP PREEMPT Thu Aug 6 18:05:16 EDT 2015 armv7l GNU/Linux
root@kali:# 



Export a variable for each device serial.
adb -s $VAR1 shell &lt;command&gt; &lt;options&gt; &amp;&amp; adb -s $VAR2 shell &lt;command&gt; &lt;options&gt;


Note this is done without a hub. It might be the hub throwing things off?

Also apparently you dont need to &amp;&amp; when exporting/echoing variables

root@kali:# export DEVA=4fddcdd8054fc421 DEVB=5cf4b0890675d95c
root@kali:# echo $DEVA $DEVB
4fddcdd8054fc421 5cf4b0890675d95c