adb-ui-tree

Collect Android UI hierarchy dumps and screenshots via ADB.

12|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/pratos/clanker-setup --skill adb-ui-tree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adb-ui-tree
Source: https://github.com/pratos/clanker-setup/tree/main/skills/adb-ui-tree
Command: npx skills add https://github.com/pratos/clanker-setup --skill adb-ui-tree

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill automates the process of debugging Android application UIs when standard inspection tools are blocked or insufficient, providing a comprehensive data collection method for UI analysis.

Core Features & Use Cases

  • Automated UI Hierarchy Dumps: Collects uiautomator dumps and accessibility logs.
  • Visual Inspection Aid: Captures screenshots for manual correlation.
  • Use Case: When an app prevents UI inspection via developer tools, this skill provides a fallback to gather ui.xml, logcat hierarchy, and screenshots for offline analysis.

Quick Start

Use the adb-ui-tree skill to collect UI hierarchy data for the currently focused app.

Frequently Asked Questions about adb-ui-tree

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug an Android UI hierarchy when the app blocks standard UI inspection?

Android UI debugging via ADB retrieves uiautomator dumps, focused window data, and logcat hierarchy logs. This provides essential fallback data for analyzing apps that block standard developer inspection tools or hide accessibility nodes.

What is the best way to extract a uiautomator dump for an Android app that hides accessibility nodes?

Running an ADB uiautomator dump captures the UI hierarchy and accessibility nodes into an XML format. This provides the raw structure needed for offline analysis of apps hiding accessibility nodes from standard inspection tools.

Do I need a rooted Android device to collect UI hierarchy dumps with ADB?

A rooted Android device is not required to collect UI hierarchy dumps with ADB. You only need ADB installed and a connected, authorized device to extract uiautomator dumps and logcat hierarchy information.

Can I capture screenshots alongside logcat hierarchy dumps for manual UI correlation?

Yes, you can capture screenshots alongside logcat hierarchy dumps to aid visual inspection. Correlating screenshots with UI XML data allows you to manually map visual elements to their structural hierarchy for offline analysis.

Why does my uiautomator dump return an empty UI tree for certain Android applications?

A uiautomator dump returns an empty UI tree when an Android app actively blocks UI inspection or restricts accessibility nodes. Using ADB to collect logcat hierarchy dumps provides an alternative data source for these restrictive scenarios.