6eb8817483
reuseable jadbDevices and the shell command returns a string |
||
---|---|---|
.idea | ||
lib | ||
META-INF | ||
src/se/vidstige/jadb | ||
test/se/vidstige/jadb/test | ||
.classpath | ||
.gitattributes | ||
.gitignore | ||
.project | ||
jadb.iml | ||
LICENSE.md | ||
README.md |
#JADB# ADB client implemented in pure Java.
The Android Debug Bridge or ADB for short it a client-server architecture used to install android apps from an IDE or command line and to debug apps, etc.
The Android SDK Tools is available for the major platforms (Mac, Windows & Linux) and in there is a command line tool called adb that implements the ADB protocol.
This projects aims at providing an up to date implementation of the ADB protocol.
Example
Usage cannot be simpler. Just create a JadbConnection
and off you go.
JadbConnection jadb = new JadbConnection();
List<JadbDevice> devices = jadb.getDevices();
Make sure the adb server is running. You can start it by running adb
once from the command line.
It's very easy to send and receive files from your android device, for example as below.
JadbDevice device = ...
device.pull(new RemoteFile("/path/to/file.txt"), new File("file.txt"));
Protocol Description
An overview of the protocol can be found here: Overview
A list of the available commands that a ADB Server may accept can be found here: Services
Author
Samuel Carlsson samuel.carlsson@gmai.com