How can I configure AndroidStudio such that the app is run on all connected devices without further inquiry even when I constantly plug in new devices / remove old ones?
Please note that this requires a slightly different approach than this solution, since with their procedure the device selection dialog appears again if you
or
I found a bash script that has been working well for me for quite sometime:
adb devices | while read line
do
if [ ! "$line" = "" ] && [ `echo $line | awk '{print $2}'` = "device" ]
then
device=`echo $line | awk '{print $1}'`
echo "$device $@ ..."
adb -s $device $@
fi
done
All credits go the github user 'christopherperry'. For more info check this link:
https://gist.github.com/christopherperry/3208109
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With