简体   繁体   中英

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

This repository maybe will give you some help:

https://github.com/vidstige/jadb

Answered here: Pure java adb client

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.

我希望该存储库可以为您提供帮助: https : //github.com/tananaev/adblib

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM