https://github.com/appium/appium-adb
Wrapper around adb used by appium + helper libs
https://github.com/appium/appium-adb
Last synced: 9 months ago
JSON representation
Wrapper around adb used by appium + helper libs
- Host: GitHub
- URL: https://github.com/appium/appium-adb
- Owner: appium
- License: apache-2.0
- Created: 2014-03-02T14:20:10.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-06-01T06:41:17.000Z (9 months ago)
- Last Synced: 2025-06-01T06:49:06.366Z (9 months ago)
- Language: JavaScript
- Size: 38.7 MB
- Stars: 292
- Watchers: 38
- Forks: 171
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - appium-adb
README
appium-adb
==========
[](https://npmjs.org/package/appium-adb)
[](https://npmjs.org/package/appium-adb)
A wrapper over [Android Debugger Bridge](https://developer.android.com/tools/adb), implemented using ES6
and along with `async/await`. This package is mainly used by Appium to perform all adb operations on Android devices.
## Installing
```bash
npm install appium-adb
```
## Watch
```bash
npm run dev
```
## Test
### unit tests
```bash
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.
```bash
npm run e2e-test
```
## Usage:
example:
```js
import { ADB } from 'appium-adb';
const adb = await ADB.createADB();
console.log(await adb.getPIDsByName('com.android.phone'));
```