I want to use ADB commands to perform actions on Android devices on LambdaTest. How to achieve the feat?

How do I use ADB commands on LambdaTest?

Hello Emma,

  • For automated testing, LambdaTest supports execution of adb commands through the execute_script() method. Some operations that can be performed via adb shell on LambdaTest are - swipe, sendKeys, enableAutoRotate, dumpsys, and more. You can refer to ADB Commands Support | LambdaTest for more information on the usage of ADB commands on the LambdaTest real-device cloud.
  • For manual testing, you can refer to ADB Shell | LambdaTest. Most of the popular adb commands are supported here as well!

Please note - Commands like adb push , adb pull , adb logcat , adb reboot , and a few more are not supported for security reasons. You can also refer to the adb commands cheat-sheet for a quick refresher on adb commands. Hope this helps!