Use adb commands in App for android

Asked

Viewed 66 times

0

I’m starting to use some test automation tools, including Espresso, UI Automator or even an ADB command script. My question is whether it is possible to create an application that runs ADB commands so that when starting it runs the steps of a script done, if yes, it is necessary to have Root?

  • Could you post such an "ADB command script"? Most likely it can be translated into pure shell and run natively on the device. Some commands do not need root, although most probably yes.

1 answer

0

It is not possible to create an app that runs these commands, you can create a script (Bash/Python) that runs a sequence of ADB commands but must run on your machine.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.