Rohit Jindal
Rohit Jindal

Reputation: 709

Not able to run adb command in Ui Automator

I am not able to run adb command in UI Automator. When I run a adb command using

Runtime r=Runtime.getRuntime().exec("adb devices");

I get the following error:

Error executing exec: Command:(adb services), Working Directory null, environment=null

I really need to run a adb command in my UI Automator

Thanks in Advance

Upvotes: 1

Views: 1534

Answers (1)

Aduait Pokhriyal
Aduait Pokhriyal

Reputation: 1559

UIAutomater script runs in device shell not in system terminal. Try modifying commands to execute in device shell.

Upvotes: 2

Related Questions