Bootstrap

【Android】adb install app 到多台设备

#!/bin/sh

function install_app { 
    adb -s ${x[0]} install -r ./app-arm64-release.apk
} 

while read line
do
    eval x=($line)
    install_app ${x[0]} > /dev/null 2>&1 &
done <<< "`adb devices |  cut -sf 1`"


echo "安装中..."
wait

echo "安装完成"

;