npm.io
16.4.0 • Published 2h ago

appium-adb

Licence
Apache-2.0
Version
16.4.0
Deps
0
Vulns
0
Weekly
0
Stars
3

appium-adb

NPM version Downloads

A wrapper over Android Debugger Bridge, implemented using ES6 and along with async/await. This package is mainly used by Appium to perform all adb operations on Android devices.

Installing

npm install appium-adb

Watch

npm run dev

Test

unit tests
npm run test
functional tests

By default the functional tests use an avd named NEXUS_S_18_X86, with API Level 18. To change this, you can use the environment variables PLATFORM_VERSION, API_LEVEL, and ANDROID_AVD. If PLATFORM_VERSION is set then it is not necessary to set API_LEVEL as it will be inferred.

npm run test:e2e

Usage:

example:

import { ADB } from 'appium-adb';

const adb = await ADB.createADB({logLevel: 'info'});
console.log(await adb.getProcessIdsByName('com.android.phone'));

logLevel affects the shared Appium logger, not an individual ADB instance. See ADBOptions.logLevel for details.