2

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

2 Answers 2

7

This repository maybe will give you some help:

https://github.com/vidstige/jadb

Answered here:Pure java adb client

Sign up to request clarification or add additional context in comments.

3 Comments

Hi, thanks for your reply. I have already looked at it. Seems to be not actively developed.
Oh,yes.it's not very active.If you have interest in this,you can implement this by yourself,and then it will be very popular.I think your idea will be a good tool.
@jvc Author of jadb here. :-) There is some activity, a pr every to every other month. It's pretty stable, tested, and has most features. I try to monitor bugs, etc closely. Is there any specific feature you are missing?
3

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.