#!/bin/bash for index in `seq 300`; do b=$(( $index % 2 )) if [ $b = 0 ] then echo "200011" adb shell am broadcast -a com.hmi.v2x.notification --ez v2xIsShow true --es tag "200011" --ei v2xType 20011 --es alertContent "测试外部传入数据1" --es ttsContent "测试TTS1" else echo "200012" adb shell am broadcast -a com.hmi.v2x.notification --ez v2xIsShow true --es tag "200012" --ei v2xType 20012 --es alertContent "测试外部传入数据2" --es ttsContent "测试TTS2" fi sleep 0.5 done echo -e "\033[32m 恭喜你完成了所有 测试脚本 \033[0m"