Skip to content
a node module for adb & android
Find file
New pull request
Latest commit 270c535 @benmonro npm version bump
Failed to load latest commit information.
.gitignore Initial commit code cleanup
adb initial commit
android.js added support for tcpip adb
package.json npm version bump


a node module for adb & android


var adb = require("android");

Get attached device id

    if(deviceId) {
        //there's a device attached, do cool stuff
    } else {
        //no device attached

Checking to see if a package is installed (wildcards allowed)

adb.isInstalled("com.example.*", function(isInstalled) {
    if(isInstalled) {
        //do cool stuff

Installing an APK

adb.install("/path/to/my.apk", function() {
    //do cool stuff

Pushing a file

adb.push("/path/to/src", "/path/to/target", function (err) {
    if(!err) {
        //do cool stuff

Sending a broadcast

var options = {action:"com.example.ACTION_JACKSON", extras:{key:"lime", pie: "good"};

adb.sendBroadcast(options, function(response){
    console.log("response data: " +;
    console.log("response message: " + response.message);
Something went wrong with that request. Please try again.