I use command
adb shell uiautomator dump view.xml
to dump the UI hierarchy of current Android screen. Then, I try to see the view.xml, I tried command:
adb shell cat view.xml
but get error:
/system/bin/sh: cat: view.xml: No such file or directory
How/Where can I see the dumped view.xml file?
Why don't you do the following:
adb shell uiautomator dump
adb pull /sdcard/window_dump.xml
If you directly want to read out from shell you can execute following command from adb shell after dumping the XML
adb shell cat /sdcard/window_dump.xml