Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual display problem created with scrcpy on lower android #5541

Open
KSMaan45 opened this issue Nov 26, 2024 · 2 comments
Open

Virtual display problem created with scrcpy on lower android #5541

KSMaan45 opened this issue Nov 26, 2024 · 2 comments

Comments

@KSMaan45
Copy link

Environment

  • OS: Archlinux
  • Scrcpy version: 3.0
  • Installation method: pacman
  • Device model: Oppo A37 With LOS 17.1
  • Android version: 10

when we try to launch any app from virtual display it launch on primary display with a toast app doesn't support to launch on secondary display but if we launch it with with adb shell it did launch on secondary display as show in first video with second attempt, otherway around if we manually create virtual display from developers options then launching a app with adb it launch on secondary display fine, so seems like there was some problem with virtual display trusted flag for android 10.

here are the videos :

virtual display created with scrcpy

Video_2024-11-26_11-28-21.mp4

virtual display created from developers options

Video_2024-11-26_12-58-00.mp4
@rom1v
Copy link
Collaborator

rom1v commented Nov 26, 2024

OK, I have no control over this behavior. The virtual display creation from developer options is different (it keeps an overlay on the main display), so it probably calls some other code.

Out of curiosity, what happens with a mix of the two:

  • start a new display with scrcpy --new-dsplay=1920x1080, keep it open
  • mirror that new display with scrcpy --display-id=XX
  • start an app from the second window

@KSMaan45
Copy link
Author

OK, I have no control on this behavior. The virtual display creation from developer options is different (it keeps an overlay on the main display), so it probably calls some other code.

Out of curiosity, what happens with a mix of the two:

  • start a new display with scrcpy --new-dsplay=1920x1080, keep it open
  • mirror that new display with scrcpy --display-id=XX
  • start an app from the second window

just tried and it make no difference app still launch on primary display

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

No branches or pull requests

2 participants