Associate UHID devices to displays on Android 15 by yume-chan · Pull Request #6009 · Genymobile/scrcpy (original) (raw)
rom1v added a commit that referenced this pull request
Use the public ClipboardManager API, with the FakeContext as context.
Suggested by: Simon Chan 1330321+yume-chan@users.noreply.github.com
rom1v pushed a commit that referenced this pull request
Use the public InputManager API.
Signed-off-by: Romain Vimont rom@rom1v.com
rom1v added a commit that referenced this pull request
Do not use reflection to retrieve the method for every call.
rom1v added a commit that referenced this pull request
The DisplayManager and its method getDisplayInfo() may be used from both the Controller thread and the video (main) thread.
rom1v pushed a commit that referenced this pull request
This allows the mouse pointer to appear on the correct display (only for devices running Android 15+).
Fixes #5547 <#5547> PR #6009 <#6009>
Signed-off-by: Romain Vimont rom@rom1v.com
rom1v added a commit that referenced this pull request
Calling wait(0) results in waiting without a timeout, which is unintended.
Refs #6009 comment <#6009 (comment)>
yume-chan changed the title
Associate UHID devices to virtual displays on Android 14+ Associate UHID devices to virtual displays on Android 15
yume-chan changed the title
Associate UHID devices to virtual displays on Android 15 Associate UHID devices to displays on Android 15
rom1v pushed a commit that referenced this pull request
Use the public InputManager API.
Signed-off-by: Romain Vimont rom@rom1v.com
rom1v added a commit that referenced this pull request
Do not use reflection to retrieve the method for every call.
rom1v added a commit that referenced this pull request
The DisplayManager and its method getDisplayInfo() may be used from both the Controller thread and the video (main) thread.
rom1v pushed a commit that referenced this pull request
This allows the mouse pointer to appear on the correct display (only for devices running Android 15+).
Fixes #5547 <#5547> PR #6009 <#6009>
Signed-off-by: Romain Vimont rom@rom1v.com
rom1v added a commit that referenced this pull request
This will allow the main thread to process any event posted to the main looper.
Refs #6009 comment <#6009 (comment)>
rom1v added a commit that referenced this pull request
Use the public ClipboardManager API, with the FakeContext as context.
This requires an active main looper, otherwise clipboard changes are not processed.
Suggested by: Simon Chan 1330321+yume-chan@users.noreply.github.com
rom1v added a commit that referenced this pull request
Use the public ClipboardManager API, with the FakeContext as context.
This requires a running main looper, otherwise clipboard changes are not processed.
Suggested by: Simon Chan 1330321+yume-chan@users.noreply.github.com
rom1v mentioned this pull request
rom1v added a commit that referenced this pull request
Instead of blocking the main thread until completion, run a looper.
This will allow the main thread to process any event posted to the main looper.
Refs #6009 comment <#6009 (comment)>
rom1v added a commit that referenced this pull request
Use the public ClipboardManager API, with the FakeContext as context.
This requires a running main looper, otherwise clipboard changes are not processed.
Suggested by: Simon Chan 1330321+yume-chan@users.noreply.github.com
rom1v added a commit that referenced this pull request
Instead of blocking the main thread until completion, run a looper.
This will allow the main thread to process any event posted to the main looper.
Refs #6009 comment <#6009 (comment)> PR #6129 <#6129>
rom1v added a commit that referenced this pull request
Use the public ClipboardManager API, with the FakeContext as context.
This requires a running main looper, otherwise clipboard changes are not processed.
Refs #6009 <#6009> PR #6129 <#6129>
Suggested by: Simon Chan 1330321+yume-chan@users.noreply.github.com
This was referenced
Jun 11, 2025
rom1v added a commit that referenced this pull request
On some devices, DisplayInfo does not have a "uniqueId" field. This field is only used for correct UHID behavior on virtual displays, so its absence should not prevent scrcpy from working.
Refs #6009 <#6009> Fixes #6461 <#6461>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})