Skip to content

Wrapper around adb used by appium + helper libs

License

Notifications You must be signed in to change notification settings

amaharana/appium-adb

 
 

Repository files navigation

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.

Installing

npm install appium-adb

Watch

npm run watch

Test

unit tests

npm run test

functional tests

gulp e2e-test

Usage:

example:

import ADB from 'appium-adb';

let adb = new ADB();
await adb.createADB();
console.log(await adb.getPIDsByName('m.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
  • setWifiState
  • isDataOn
  • setDataState
  • setWifiAndData
  • rimraf
  • push
  • pull
  • processExists
  • forwardPort
  • forwardAbstractPort
  • ping
  • restart
  • startLogcat
  • stopLogcat
  • getLogcatLogs
  • getPIDsByName
  • killProcessesByName
  • killProcessByPID
  • broadcastProcessEnd
  • broadcast
  • endAndroidCoverage
  • instrument
  • androidCoverage
  • processFromManifest
  • packageAndLaunchActivityFromManifest
  • compileManifest
  • insertManifest
  • hasInternetPermissionFromManifest
  • getSdkBinaryPath
  • getCommandForOS
  • 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)

About

Wrapper around adb used by appium + helper libs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%