Gradle provides a task type for executing commands from the command line. The 
documentation is located here 
<http://www.gradle.org/docs/current/dsl/org.gradle.api.tasks.Exec.html>.

As far as I know, there's are no hooks in the Gradle plugin for running ADB 
commands, so you will need to invoke the ADB executable using an exec task.

It might look something like this if you are running Windows:

task listAdbDevices(type:Exec) {
  workingDir '../'
  commandLine 'cmd', '/c', 'adb devices'
}

On Sunday, November 23, 2014 11:22:55 AM UTC-6, Tomáš Procházka wrote:
>
> I need to run some adb shell am commands after APK is installed on the 
> device.
> Has android gradle plugin some support for running adb commands please?
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to