Thanks. It is really pain to call adb from programm.
For example adb install write error message to the stdout instead of stderr adb push write all successfully pushed files to the stderr :-( Why? And also exit value is sometimes 0 also when some error is displayed :-( Very sad. Dne pondělí, 24. listopadu 2014 15:43:59 UTC+1 Bryan Herbst napsal(a): > > 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.
