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

Posted IT小不点

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了通过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

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

以上是关于通过ant调用shell脚本执行adb命令的主要内容,如果未能解决你的问题,请参考以下文章