Summary
The android-cli skill's devtools/android-cli/references/interact.md file appears to contain stale android screen examples that no longer match Android CLI 1.0 command syntax.
Affected lines
Current main content:
devtools/android-cli/references/interact.md:21 uses android screen --annotate
devtools/android-cli/references/interact.md:37 uses android screen resolve --screen <path> --string <string>
devtools/android-cli/references/interact.md:46 uses android screen resolve --screen <file path> --string "#3"
devtools/android-cli/references/interact.md:50 uses android screen resolve --screen screen.png --string "tap #34"
Observed Android CLI behavior
With Android CLI 1.0.15498356:
$ android screen capture --help
Unknown option: '--help'
Usage: android screen capture [-a] [-o=PARAM]
Outputs the device screen to a PNG
-a, --annotate Draws labeled bounding boxes around UI elements
-o, --output=PARAM Writes the screenshot to the specified file or directory
$ android screen resolve --help
Missing required options: '--screenshot=PARAM', '--string=PARAM'
Usage: android screen resolve --screenshot=PARAM --string=PARAM
Target UI elements visually
Expected replacement examples
android screen capture --annotate -o <file path>
android screen resolve --screenshot=<file path> --string="#3"
adb shell input $(android screen resolve --screenshot=screen.png --string="tap #34")
The top-level annotated screenshot reference should also use android screen capture --annotate instead of android screen --annotate.
Summary
The
android-cliskill'sdevtools/android-cli/references/interact.mdfile appears to contain staleandroid screenexamples that no longer match Android CLI 1.0 command syntax.Affected lines
Current
maincontent:devtools/android-cli/references/interact.md:21usesandroid screen --annotatedevtools/android-cli/references/interact.md:37usesandroid screen resolve --screen <path> --string <string>devtools/android-cli/references/interact.md:46usesandroid screen resolve --screen <file path> --string "#3"devtools/android-cli/references/interact.md:50usesandroid screen resolve --screen screen.png --string "tap #34"Observed Android CLI behavior
With Android CLI
1.0.15498356:Expected replacement examples
The top-level annotated screenshot reference should also use
android screen capture --annotateinstead ofandroid screen --annotate.