appium-adb
Android Debug Bridge interface
Last updated a day ago by nick.mokhnach .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install appium-adb 
SYNC missed versions from official npm registry.

appium-adb

NPM version Downloads Dependency Status devDependency Status

Build Status Coverage Status

A wrapper over android-adb, implemented using ES6 and along with async/await. This package is mainly used by Appium to perform all adb operations on android device.

Note: Issue tracking for this repo has been disabled. Please use the main Appium issue tracker instead.

Installing

npm install appium-adb

Watch

npm run watch

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.

gulp e2e-test

Usage:

example:

import ADB from 'appium-adb';

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

List of methods:

  • createADB
  • initJars
  • getAdbWithCorrectAdbPath
  • initAapt
  • initZipAlign
  • getApiLevel
  • isDeviceConnected
  • mkdir
  • isValidClass
  • forceStop
  • clear
  • stopAndClear
  • availableIMEs
  • enabledIMEs
  • enableIME
  • disableIME
  • setIME
  • defaultIME
  • keyevent
  • lock
  • back
  • goToHome
  • isScreenLocked
  • isSoftKeyboardPresent
  • sendTelnetCommand
  • isAirplaneModeOn
  • setAirplaneMode
  • broadcastAirplaneMode
  • isWifiOn
  • getScreenSize
  • getScreenDensity
  • setWifiState
  • isDataOn
  • setDataState
  • setWifiAndData
  • rimraf
  • push
  • pull
  • processExists
  • forwardPort
  • reversePort (ApiLevel >=21)
  • forwardAbstractPort
  • ping
  • restart
  • startLogcat
  • stopLogcat
  • getLogcatLogs
  • getPIDsByName
  • killProcessesByName
  • killProcessByPID
  • broadcastProcessEnd
  • broadcast
  • endAndroidCoverage
  • instrument
  • androidCoverage
  • packageAndLaunchActivityFromManifest
  • compileManifest
  • insertManifest
  • hasInternetPermissionFromManifest
  • getSdkBinaryPath
  • getBinaryFromSdkRoot
  • getBinaryFromPath
  • getConnectedDevices
  • getDevicesWithRetry
  • restartAdb
  • adbExec
  • shell
  • getAdbServerPort
  • getEmulatorPort
  • getPortFromEmulatorString
  • getConnectedEmulators
  • setEmulatorPort
  • setDeviceId
  • getRunningAVD
  • getRunningAVDWithRetry
  • killAllEmulators
  • launchAVD
  • waitForEmulatorReady
  • waitForDevice
  • reboot
  • signWithDefaultCert
  • signWithCustomCert
  • sign
  • zipAlignApk
  • checkApkCert
  • checkCustomApkCert
  • getKeystoreMd5
  • checkApkKeystoreMatch
  • isAppInstalled
  • startApp
  • startUri
  • getFocusedPackageAndActivity
  • waitForActivityOrNot
  • waitForActivity
  • waitForNotActivity
  • uninstallApk
  • installFromDevicePath
  • install
  • fingerprint (ApiLevel >=23 | emulator only)
  • sendSMS (emulator only)
  • rotate (emulator only)
  • powerAC (emulator only)
  • powerCapacity (emulator only)
  • powerOFF (emulator only)
  • gsmCall (emulator only)
  • gsmSignal (emulator only)
  • gsmVoice (emulator only)
  • root
  • unroot

Current Tags

  • 2.0.0-beta18                                ...           beta (5 years ago)
  • 8.5.1                                ...           latest (a day ago)

288 Versions

  • 8.5.1                                ...           a day ago
  • 8.5.0                                ...           2 days ago
  • 8.4.0                                ...           7 days ago
  • 8.3.0                                ...           8 days ago
  • 8.2.0                                ...           9 days ago
  • 8.1.0                                ...           12 days ago
  • 8.0.0                                ...           21 days ago
  • 7.30.1                                ...           a month ago
  • 7.30.0                                ...           a month ago
  • 7.29.0                                ...           a month ago
  • 7.28.1                                ...           2 months ago
  • 7.28.0                                ...           2 months ago
  • 7.27.1                                ...           2 months ago
  • 7.27.0                                ...           3 months ago
  • 7.26.0                                ...           3 months ago
  • 7.25.0                                ...           3 months ago
  • 7.24.0                                ...           3 months ago
  • 7.23.0                                ...           3 months ago
  • 7.22.1                                ...           3 months ago
  • 7.22.0                                ...           3 months ago
  • 7.21.1                                ...           3 months ago
  • 7.21.0                                ...           3 months ago
  • 7.20.0                                ...           3 months ago
  • 7.19.1                                ...           3 months ago
  • 7.19.0                                ...           3 months ago
  • 7.18.0                                ...           4 months ago
  • 7.17.4                                ...           4 months ago
  • 7.17.3                                ...           4 months ago
  • 7.17.2                                ...           4 months ago
  • 7.17.1                                ...           5 months ago
  • 7.17.0                                ...           5 months ago
  • 7.16.0                                ...           5 months ago
  • 7.15.3                                ...           6 months ago
  • 7.15.2                                ...           6 months ago
  • 7.15.1                                ...           6 months ago
  • 7.15.0                                ...           7 months ago
  • 7.14.1                                ...           7 months ago
  • 7.14.0                                ...           7 months ago
  • 7.13.0                                ...           9 months ago
  • 7.12.0                                ...           10 months ago
  • 7.11.0                                ...           a year ago
  • 7.10.0                                ...           a year ago
  • 7.9.0                                ...           a year ago
  • 7.8.1                                ...           a year ago
  • 7.8.0                                ...           a year ago
  • 7.7.1                                ...           a year ago
  • 7.7.0                                ...           a year ago
  • 7.6.5                                ...           a year ago
  • 7.6.4                                ...           a year ago
  • 7.6.3                                ...           a year ago
  • 7.6.2                                ...           a year ago
  • 7.6.1                                ...           a year ago
  • 7.6.0                                ...           a year ago
  • 7.5.1                                ...           a year ago
  • 7.5.0                                ...           a year ago
  • 7.4.0                                ...           a year ago
  • 7.3.0                                ...           a year ago
  • 7.2.0                                ...           a year ago
  • 7.1.2                                ...           a year ago
  • 7.1.1                                ...           a year ago
  • 7.1.0                                ...           a year ago
  • 7.0.0                                ...           a year ago
  • 6.29.1                                ...           2 years ago
  • 6.29.0                                ...           2 years ago
  • 6.28.0                                ...           2 years ago
  • 6.27.2                                ...           2 years ago
  • 6.27.1                                ...           2 years ago
  • 6.27.0                                ...           2 years ago
  • 6.26.0                                ...           2 years ago
  • 6.25.2                                ...           2 years ago
  • 6.25.0                                ...           2 years ago
  • 6.24.0                                ...           2 years ago
  • 6.23.0                                ...           2 years ago
  • 6.22.0                                ...           2 years ago
  • 6.21.1                                ...           2 years ago
  • 6.21.0                                ...           2 years ago
  • 6.20.0                                ...           2 years ago
  • 6.19.0                                ...           2 years ago
  • 6.18.1                                ...           2 years ago
  • 6.18.0                                ...           2 years ago
  • 6.17.0                                ...           2 years ago
  • 6.16.0                                ...           2 years ago
  • 6.15.2                                ...           2 years ago
  • 6.15.0                                ...           2 years ago
  • 6.14.0                                ...           2 years ago
  • 6.13.0                                ...           2 years ago
  • 6.12.0                                ...           2 years ago
  • 6.11.4                                ...           2 years ago
  • 6.11.3                                ...           2 years ago
  • 6.11.2                                ...           2 years ago
  • 6.11.1                                ...           2 years ago
  • 6.11.0                                ...           2 years ago
  • 6.10.0                                ...           2 years ago
  • 6.9.4                                ...           2 years ago
  • 6.9.3                                ...           2 years ago
  • 6.9.2                                ...           2 years ago
  • 6.9.1                                ...           2 years ago
  • 6.9.0                                ...           2 years ago
  • 6.8.0                                ...           2 years ago
  • 6.7.0                                ...           2 years ago
  • 6.6.2                                ...           2 years ago
  • 6.6.1                                ...           2 years ago
  • 6.6.0                                ...           2 years ago
  • 6.5.3                                ...           2 years ago
  • 6.5.2                                ...           2 years ago
  • 6.5.1                                ...           2 years ago
  • 6.5.0                                ...           2 years ago
  • 6.4.1                                ...           2 years ago
  • 6.4.0                                ...           2 years ago
  • 6.3.1                                ...           2 years ago
  • 6.3.0                                ...           2 years ago
  • 6.2.2                                ...           2 years ago
  • 6.2.1                                ...           2 years ago
  • 6.2.0                                ...           2 years ago
  • 6.1.1                                ...           2 years ago
  • 6.1.0                                ...           2 years ago
  • 6.0.1                                ...           2 years ago
  • 6.0.0                                ...           2 years ago
  • 5.6.1                                ...           2 years ago
  • 5.6.0                                ...           2 years ago
  • 5.5.2                                ...           2 years ago
  • 5.5.1                                ...           2 years ago
  • 5.5.0                                ...           2 years ago
  • 5.4.0                                ...           2 years ago
  • 5.3.2                                ...           2 years ago
  • 5.3.1                                ...           2 years ago
  • 5.3.0                                ...           2 years ago
  • 5.2.0                                ...           3 years ago
  • 5.1.0                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.28.6                                ...           3 years ago
  • 2.28.5                                ...           3 years ago
  • 2.28.4                                ...           3 years ago
  • 2.28.3                                ...           3 years ago
  • 2.28.2                                ...           3 years ago
  • 2.28.1                                ...           3 years ago
  • 2.28.0                                ...           3 years ago
  • 2.27.3                                ...           3 years ago
  • 2.27.2                                ...           3 years ago
  • 2.27.1                                ...           3 years ago
  • 2.27.0                                ...           3 years ago
  • 2.26.0                                ...           3 years ago
  • 2.25.0                                ...           3 years ago
  • 2.24.2                                ...           3 years ago
  • 2.24.1                                ...           3 years ago
  • 2.24.0                                ...           3 years ago
  • 2.23.8                                ...           3 years ago
  • 2.23.7                                ...           3 years ago
  • 2.23.6                                ...           3 years ago
  • 2.23.5                                ...           3 years ago
  • 2.23.4                                ...           3 years ago
  • 2.23.3                                ...           3 years ago
  • 2.23.2                                ...           3 years ago
  • 2.23.1                                ...           3 years ago
  • 2.23.0                                ...           3 years ago
  • 2.22.0                                ...           3 years ago
  • 2.21.1                                ...           3 years ago
  • 2.21.0                                ...           3 years ago
  • 2.20.1                                ...           3 years ago
  • 2.20.0                                ...           3 years ago
  • 2.19.0                                ...           3 years ago
  • 2.18.0                                ...           3 years ago
  • 2.17.4                                ...           3 years ago
  • 2.17.3                                ...           3 years ago
  • 2.17.2                                ...           3 years ago
  • 2.17.1                                ...           3 years ago
  • 2.17.0                                ...           3 years ago
  • 2.16.2                                ...           3 years ago
  • 2.16.1                                ...           3 years ago
  • 2.16.0                                ...           3 years ago
  • 2.15.0                                ...           3 years ago
  • 2.14.0                                ...           3 years ago
  • 2.13.1                                ...           3 years ago
  • 2.13.0                                ...           3 years ago
  • 2.12.0                                ...           3 years ago
  • 2.11.2                                ...           3 years ago
  • 2.11.1                                ...           3 years ago
  • 2.11.0                                ...           3 years ago
  • 2.10.0                                ...           3 years ago
  • 2.9.6                                ...           3 years ago
  • 2.9.5                                ...           3 years ago
  • 2.9.4                                ...           3 years ago
  • 2.9.3                                ...           3 years ago
  • 2.9.2                                ...           3 years ago
  • 2.9.1                                ...           3 years ago
  • 2.9.0                                ...           4 years ago
  • 2.8.0                                ...           4 years ago
  • 2.7.0                                ...           4 years ago
  • 2.6.19                                ...           4 years ago
  • 2.6.18                                ...           4 years ago
  • 2.6.17                                ...           4 years ago
  • 2.6.16                                ...           4 years ago
  • 2.6.15                                ...           4 years ago
  • 2.6.14                                ...           4 years ago
  • 2.6.13                                ...           4 years ago
  • 2.6.12                                ...           4 years ago
  • 2.6.11                                ...           4 years ago
  • 2.6.10                                ...           4 years ago
  • 2.6.9                                ...           4 years ago
  • 2.6.8                                ...           4 years ago
  • 2.6.7                                ...           4 years ago
  • 2.6.6                                ...           4 years ago
  • 2.6.5                                ...           4 years ago
  • 2.6.4                                ...           4 years ago
  • 2.6.3                                ...           4 years ago
  • 2.6.2                                ...           4 years ago
  • 2.6.1                                ...           4 years ago
  • 2.6.0                                ...           4 years ago
  • 2.5.1                                ...           4 years ago
  • 2.5.0                                ...           4 years ago
  • 2.4.3                                ...           4 years ago
  • 2.4.2                                ...           4 years ago
  • 2.4.1                                ...           4 years ago
  • 2.4.0                                ...           4 years ago
  • 2.3.1                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.2                                ...           4 years ago
  • 2.2.1                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.6                                ...           4 years ago
  • 2.0.5                                ...           5 years ago
  • 2.0.4                                ...           5 years ago
  • 2.0.3                                ...           5 years ago
  • 2.0.2                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0-beta18                                ...           5 years ago
  • 1.7.6                                ...           5 years ago
  • 2.0.0-beta16                                ...           5 years ago
  • 2.0.0-beta15                                ...           5 years ago
  • 2.0.0-beta14                                ...           5 years ago
  • 2.0.0-beta13                                ...           5 years ago
  • 2.0.0-beta12                                ...           5 years ago
  • 2.0.0-beta11                                ...           5 years ago
  • 2.0.0-beta10                                ...           5 years ago
  • 2.0.0-beta9                                ...           5 years ago
  • 2.0.0-beta8                                ...           5 years ago
  • 2.0.0-beta7                                ...           5 years ago
  • 2.0.0-beta6                                ...           5 years ago
  • 2.0.0-beta5                                ...           5 years ago
  • 2.0.0-beta4                                ...           5 years ago
  • 2.0.0-beta3                                ...           5 years ago
  • 2.0.0-beta2                                ...           5 years ago
  • 2.0.0-beta1                                ...           5 years ago
  • 1.7.5                                ...           5 years ago
  • 1.7.4                                ...           5 years ago
  • 1.7.2                                ...           5 years ago
  • 1.7.1                                ...           5 years ago
  • 1.7.0                                ...           5 years ago
  • 1.6.0                                ...           6 years ago
  • 1.5.1                                ...           6 years ago
  • 1.5.0                                ...           6 years ago
  • 1.4.3                                ...           6 years ago
  • 1.4.2                                ...           6 years ago
  • 1.4.1                                ...           6 years ago
  • 1.4.0                                ...           6 years ago
  • 1.3.19                                ...           6 years ago
  • 1.3.18                                ...           6 years ago
  • 1.3.17                                ...           6 years ago
  • 1.3.16                                ...           6 years ago
  • 1.3.15                                ...           6 years ago
  • 1.3.14                                ...           6 years ago
  • 1.3.13                                ...           6 years ago
  • 1.3.12                                ...           6 years ago
  • 1.3.11                                ...           6 years ago
  • 1.3.10                                ...           6 years ago
  • 1.3.8                                ...           6 years ago
  • 1.3.7                                ...           6 years ago
  • 1.3.6                                ...           6 years ago
  • 1.3.5                                ...           6 years ago
  • 1.3.4                                ...           6 years ago
  • 1.3.2                                ...           6 years ago
  • 1.3.1                                ...           6 years ago
  • 1.3.0                                ...           6 years ago
  • 1.2.2                                ...           6 years ago
  • 1.2.1                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.3                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
Downloads
Today 7
This Week 319
This Month 319
Last Day 312
Last Week 2,645
Last Month 7,577
Dependencies (12)
Dev Dependencies (13)

Copyright 2014 - 2016 © taobao.org |