Search code examples
javaandroidadb

Java library for Android ADB


What library would you suggest for doing ADB related tasks from Java. I have a basic prototype where I fork the adb process and take the output from the process. Is there a better way for doing it via a library?. I also took a look at the ddmlib library provided by android, but seems like it is not actively developed. Is there a better library or is ddmlib up for the job ?.

Thanks


Solution

  • Depends on your use case, but ddmlib should be enough. If nothing else it can run shell commands on the device, which is better than forking the adb process.

    Also see if chimpchat suits your needs, it's the library that MonkeyRunner uses. It's more geared towards UI interaction if that suits you better.