node-adb-api
A node API for adb (android debug bridge)
Used in
purrge - 🐱 Quickly purrge android apps from your phone
Install
yarn add node-adb-api
Usage
const adb = ;
// Open the package on the device serial numberlaunchApp: chosenPackage selectedDevice // Get the list of connected device serial numbersgetListOfDevices: // Gets an array of packages by device serial numbergetPackagesByDeviceSerialNumber: deviceSerialNumber // Get the apk path by device serial numbergetDeviceApkPath: deviceSerialNumber chosenPackage // Download the chosen package by device serial numberdownloadAPK: deviceSerialNumber chosenPackage // (Promise) Performs a fuzzy match search on the packagesfuzzySearchPackages: packages textToFind // Uninstalls the appuninstall: chosenPackage selectedDevice // Clear the app dataclearData: chosenPackage deviceSerialNumber // check if there is a connected deviceisAnyDeviceConnected: deviceSerialNumber
Created by
License
MIT © Cesar Ferreira