Write automated tests with UI Automator | Test your app on Android
adb shell uiautomator dump /dev/tty : To retrieve the current screen's XML layout for targeting. adb enable automator
Once basic logcat access is enabled, you can push further. Here are advanced ADB commands to unlock the full potential of your automator. Write automated tests with UI Automator | Test
Ensure only one device/emulator connected: adb enable automator