Skip to content

cesarferreira/node-adb-api

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

node-adb-api

A node API for adb (android debug bridge)

Build Status npm npm

Used in

purrge - 🐱 Quickly purrge android apps from your phone

Install

yarn add node-adb-api

Usage

const adb = require('node-adb-api');
// Open the package on the device serial number
launchApp: (chosenPackage, selectedDevice)

// Get the list of connected device serial numbers
getListOfDevices: ()

// Gets an array of packages by device serial number
getPackagesByDeviceSerialNumber: (deviceSerialNumber)

// Get the apk path by device serial number
getDeviceApkPath: (deviceSerialNumber, chosenPackage)

// Download the chosen package by device serial number
downloadAPK: (deviceSerialNumber, chosenPackage)

// (Promise) Performs a fuzzy match search on the packages
fuzzySearchPackages: (packages, textToFind)

// Uninstalls the app
uninstall: (chosenPackage, selectedDevice)

// Clear the app data
clearData: (chosenPackage, deviceSerialNumber)

// check if there is a connected device
isAnyDeviceConnected: (deviceSerialNumber)

Created by

Cesar Ferreira

License

MIT © Cesar Ferreira