标签: android bash adb
我遍历每个AVD和外壳进入每个设备,然后启动活动
while read AVD device; do if [[ "$AVD" == "" ]]; then break fi echo ${AVD} adb -s ${AVD} shell start -n com.package.MainActivity done < <(adb devices | sed '1d')
但我收到消息
开始:必须是root 流程结束,退出代码为1