1

I am looking after for a command-line tool that can perform dynamic view hierarchy analysis similar to the UI tool in Android Studio https://developer.android.com/studio/debug/layout-inspector.

Is there an existing tool for this? Or just some lower-level API that I can program to implement the tool. Thanks!

1

Turns out:

adb shell uiautomator dump
adb pull /sdcard/window_dump.xml path/to/output

or

adb shell uiautomator dump --compressed
adb pull /sdcard/window_dump.xml path/to/output
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.