Skip to content

Wrapper around adb used by appium + helper libs

License

Notifications You must be signed in to change notification settings

appium/appium-adb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ae59cfb · Jan 25, 2025
May 9, 2024
Jun 14, 2023
May 30, 2020
Dec 28, 2017
Jan 25, 2025
Jan 25, 2025
Jul 13, 2021
Jun 14, 2023
Jan 16, 2018
Dec 1, 2022
Jan 25, 2025
Sep 15, 2017
Jan 2, 2025
Jan 5, 2025
Jan 6, 2025
Jan 25, 2025
Oct 23, 2023

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 e2e-test

Usage:

example:

import { ADB } from 'appium-adb';

const adb = await ADB.createADB();
console.log(await adb.getPIDsByName('com.android.phone'));