Skip to content

android-cli skill has stale screen command examples #74

@Sottti

Description

@Sottti

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions