通过ant调用shell脚本执行adb命令

  在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

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

posted on 2016-06-03 20:43  IT小不点  阅读(946)  评论(0编辑  收藏  举报