Reputation: 709
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
Reputation: 1559
UIAutomater script runs in device shell not in system terminal. Try modifying commands to execute in device shell.
Upvotes: 2