SimpleADB
This is a module to execute simple commands with ADB
Basic Usage
var SimpleADB = SimpleADB; var sadb = ; sadb ;
Here is an example on how to reboot your android device via ADB
var SimpleADB = SimpleADB; var sadb = ; sadb ;
The SimpleADB Class
var SimpleADB = SimpleADB; var sadb = logger: null // optional - if populated, should be a Bunyan instance. logLevel: 'error' | 'warn' | 'info' //optional, ignored if `logger` is populated path: '/path/to/adb' //optional, if you have a custom path, this may be required ;
SimpleADB Methods
N.B. All methods return a Promise.
var SimpleADB = SimpleADB; var sadb = ; // to connect to a device (only one device can be connected to at a time)sadb; // to disconnect devicesadb; // to reboot devicesadb; // to shutdown devicesadb; // to force stop an applicationsadb; // to start an applicationsadb; // to restart an applicationsadb; // to perform any other task with adbsadb; //args in an array of augements // to perform any other shell task with adbsadb; //args in an array of augements // copy a file to the android devicesadb; // copy a file from the android devicesadb; sadb; // path is optional, will store to home directory if no path given
Tests
Coming soon
Contribute
Please only edit the contents of the src
directory as on publish this will be compiled into the build
directory.