Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appium-adb

Package Overview
Dependencies
Maintainers
8
Versions
434
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appium-adb

Android Debug Bridge interface

  • 9.11.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
348K
increased by1.24%
Maintainers
8
Weekly downloads
 
Created

What is appium-adb?

The appium-adb npm package is a Node.js library that provides a set of tools and utilities for interacting with Android devices using the Android Debug Bridge (ADB). It is primarily used in the context of mobile automation, particularly with the Appium framework, to perform various operations on Android devices such as installing apps, managing device state, and executing shell commands.

What are appium-adb's main functionalities?

Install an APK

This feature allows you to install an APK file on a connected Android device. The code sample demonstrates how to create an ADB instance and use it to install an APK.

const ADB = require('appium-adb');
(async () => {
  const adb = await ADB.createADB();
  await adb.install('/path/to/your/app.apk');
})();

Execute Shell Command

This feature allows you to execute shell commands on a connected Android device. The code sample shows how to list the contents of the /system directory.

const ADB = require('appium-adb');
(async () => {
  const adb = await ADB.createADB();
  const result = await adb.shell(['ls', '/system']);
  console.log(result);
})();

Start an App

This feature allows you to start an application on a connected Android device. The code sample demonstrates how to start an app by specifying its package and main activity.

const ADB = require('appium-adb');
(async () => {
  const adb = await ADB.createADB();
  await adb.startApp({
    pkg: 'com.example.yourapp',
    activity: 'com.example.yourapp.MainActivity'
  });
})();

Get Device Properties

This feature allows you to retrieve various properties of a connected Android device. The code sample shows how to get and print the device properties.

const ADB = require('appium-adb');
(async () => {
  const adb = await ADB.createADB();
  const properties = await adb.getProperties();
  console.log(properties);
})();

Other packages similar to appium-adb

FAQs

Package last updated on 29 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc