1、adb shell am instrument -r -w <test>2>&1 | tee xxxx.txt 这样就能保存了,边运行,边保存。 2、强制删除文件(以及其子文件):rm -rf xxx