在Hudson或者Jenkins中利用ant的exec 来调用shell命令,通过shell脚本来执行adb shell命令,可以正常执行,不会出现在ant中直接调用adb shell出现的假死情况。

 

其中shell 脚本也很简单

#!/bin/sh
adb root
adb shell chmod 777 /system/data/lib
adb shell ./system/data/lib/helloworld

可以执行手机端中的程序进行测试。

相关文章: