Skip to content

refactor(android): single-display handling and SingleAndroidDisplay#240

Merged
mlikasam-askui merged 1 commit intomainfrom
refactor/android-single-display-no-flags
Mar 10, 2026
Merged

refactor(android): single-display handling and SingleAndroidDisplay#240
mlikasam-askui merged 1 commit intomainfrom
refactor/android-single-display-no-flags

Conversation

@mlikasam-askui
Copy link
Contributor

  • Add SingleAndroidDisplay for Android agents when exactly one display is connected.
  • When there is only one display, do not add -d / unique display id flags to ADB (they are unnecessary and can be omitted).
  • UnknownAndroidDisplay now extends SingleAndroidDisplay and reuses the same “no flags” behavior.

Why

  • Cleaner ADB usage on single-display devices (no redundant display selection flags).

if not displays:
return [UnknownAndroidDisplay()]

if len(displays) == 1:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens in the scrcpy case? Can you check this?

@mlikasam-askui mlikasam-askui merged commit 7db3839 into main Mar 10, 2026
1 check passed
@mlikasam-askui mlikasam-askui deleted the refactor/android-single-display-no-flags branch March 10, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants