The core functionality of uiautomator dump is to obtain information about all UI elements on the current Android screen and save it as an XML file.
You can dump page elements by executing the following command:
uiautomator dump /sdcard/uidump.xml
This XML file contains the hierarchical structure of all visible components on the screen, their attributes (such as resource-id, class, text, content-description, bounds, etc.), and the parent-child relationships between them.
The native uiautomator has issues with dumping elements on dynamic pages, such as the TikTok playback page.
DuoPlus implements a similar page element dump function to uiautomator, supporting element dumping on dynamic interfaces. You can execute the following command using the API interface:
# This API only supports API calls and does not support ADB calls.
# This command is compatible with Android 10, 11, 12, and 15.
DuoPlusDumpUI /sdcard/uidump.xml