Skip to main content

Execute ADB shell commands

The integration of Android Debug Bridge (ADB) shell support within the LambdaTest Manual Testing platform for app testing on Android devices empowers users to run supported ADB shell commands directly on devices during manual testing sessions, receiving instant output. This feature addresses the challenge of remote device communication, enabling users to interact with devices as if they were physically present.


Benefits

  • Unlock new testing scenarios that require direct device interaction, simplifying the development process.
  • Speed up testing by easily accessing native device capabilities and APIs, reducing reliance on framework-specific commands.
  • Gain better control over device configurations to execute specific commands tailored to your test cases.

Accessing ADB Shell Terminal

Step 1: Login to your LambdaTest account and navigate to App Testing under Real Device from the left sidebar.

Step 2: Choose the OS version (Android), select your application and device from the device listing, and start your test session.

Step 3: Access ADB Shell

  • Once in the test session, find the ADB Shell icon on the top bar.
  • Click the ADB Shell icon to open the terminal and start running supported ADB shell commands.
  • With a single click, you can clear the terminal content or download the terminal output as a .txt file.
ADB Shell Access

Supported ADB Commands

To ensure security and compatibility, we have a list of ADB commands that can be executed within our Real Device Cloud. Please refer to the following list of supported commands:

ADB CommandDescription
am startLaunches an activity specified by an intent.
am force-stopStops the specified application package.
pm clearDeletes all data associated with a package.
inputSends touch or key events to the device.
lsLists directory contents on the device.
echoDisplays messages on the device.
grepSearches for patterns in files on the device.
pwdPrints the current working directory on the device.
dumpsysDumps system information from the device.
getpropRetrieves device properties.

If the command you require is not listed, please reach out at our 24x7 Chat Support or you could also mail us at support@lambdatest.com.

Test across 3000+ combinations of browsers, real devices & OS.

Book Demo

Help and Support

Related Articles