Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appium/appium-adb
Wrapper around adb used by appium + helper libs
https://github.com/appium/appium-adb
Last synced: 2 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 (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-05-16T15:30:50.000Z (8 months ago)
- Last Synced: 2024-05-21T07:32:15.911Z (8 months ago)
- Language: JavaScript
- Size: 38.9 MB
- Stars: 270
- Watchers: 41
- Forks: 167
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - appium-adb
README
appium-adb
==========[![NPM version](http://img.shields.io/npm/v/appium-adb.svg)](https://npmjs.org/package/appium-adb)
[![Downloads](http://img.shields.io/npm/dm/appium-adb.svg)](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'));
```