Where to see the xml file after "adb shell uiautomator dump view.xml"

Leem.fin picture Leem.fin · Aug 30, 2016 · Viewed 11.9k times · Source

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?

Answer

akshaykadam_100 picture akshaykadam_100 · Jun 8, 2017

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