android - AndroidStudio: always run on all connected devices -


how can configure androidstudio such app run on connected devices without further inquiry when plug in new devices / remove old ones?

please note requires different approach this solution, since procedure device selection dialog appears again if you

  • connect device

or

  • restart android studio

i found bash script has been working me quite sometime:

adb devices | while read line     if [ ! "$line" = "" ] && [ `echo $line | awk '{print $2}'` = "device" ]             device=`echo $line | awk '{print $1}'`         echo "$device $@ ..."         adb -s $device $@     fi done 

all credits go github user 'christopherperry'. more info check link:

https://gist.github.com/christopherperry/3208109

hope helps.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -