Summary
On Android, agent-device snapshot --raw --json misses some visible text content. The missing text is present in adb shell uiautomator dump output.
Environment
- agent-device version: v0.2.4
- device: vivo x80
Repro
- Open a screen containing long text.
- Run:
adb shell uiautomator dump /sdcard/window_dump.xml
adb shell cat /sdcard/window_dump.xml
pnpm ad snapshot --raw --json
- Compare outputs.
Observed
In dumped XML, some nodes have:
content-desc="..."
- and others have
content-desc='...' (single-quoted)
snapshot seems to capture double-quoted values but miss single-quoted ones.
Expected
snapshot should capture both single-quoted and double-quoted attribute values consistently.
Notes
This may affect text, content-desc, and resource-id parsing for some Android UI hierarchies.
Summary
On Android,
agent-device snapshot --raw --jsonmisses some visible text content. The missing text is present inadb shell uiautomator dumpoutput.Environment
Repro
adb shell uiautomator dump /sdcard/window_dump.xmladb shell cat /sdcard/window_dump.xmlpnpm ad snapshot --raw --jsonObserved
In dumped XML, some nodes have:
content-desc="..."content-desc='...'(single-quoted)snapshotseems to capture double-quoted values but miss single-quoted ones.Expected
snapshotshould capture both single-quoted and double-quoted attribute values consistently.Notes
This may affect
text,content-desc, andresource-idparsing for some Android UI hierarchies.