monkey.sh:
#!/system/bin/sh
while [ true ];
do
	monkey -s 1000 --ignore-crashes --ignore-timeouts --ignore-security-exceptions  --pct-trackball 0 --pct-nav 0 --pct-majornav 0 --pct-anyevent 0  --throttle 300 -v 1200000000 >> /mnt/sdcard/monkey_test.log 2>&1
done

将此脚本push到sdcard,然后,adb shell进去,然后:


./sdcard/monkey.sh &