scrcpy: Android 13 [preview] Inject input event not working

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Windows 10 x64
  • scrcpy version: 1.23
  • installation method: Windows release
  • device model: Google Pixel 6
  • Android version: Android 13 preview

Describe the bug Inject input event is failed in Android 13, both failed in Mouse event and keyboard event.

adb logcat :

04-14 13:13:10.557  1478  1685 W InputDispatcher: Dropping injected event: Injected event targeted at uid 0 would be dispatched to window '380b0b2 NotificationShade' owned by uid 10225.
04-14 13:13:21.929  1478  1685 W InputDispatcher: Dropping injected touch event: Injected event targeted at uid 0 would be dispatched to window '97ea2a com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity' owned by uid 10205.
04-14 13:13:23.640  1478  1685 W InputDispatcher: Dropping injected touch event: Injected event targeted at uid 0 would be dispatched to window '97ea2a com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity' owned by uid 10205.
04-14 13:14:00.544  1478  1685 W InputDispatcher: Dropping injected event: Injected event targeted at uid 0 would be dispatched to window '380b0b2 NotificationShade' owned by uid 10225.
04-14 13:14:04.911  1478  1685 W InputDispatcher: Dropping injected touch event: Injected event targeted at uid 0 would be dispatched to window '380b0b2 NotificationShade' owned by uid 10225.
04-14 13:14:04.951  1478  1685 I InputDispatcher: Dropping event because there is no touched window on display 0 to receive it: MotionEvent(deviceId=-1, eventTime=2756762000000, source=TOUCHSCREEN, displayId=0, action=MOVE, actionButton=0x00000000, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, classification=NONE, edgeFlags=0x00000000, xPrecision=1.0, yPrecision=1.0, xCursorPosition=nan, yCursorPosition=nan, pointers=[0: (1100.0, 2226.0)]), policyFlags=0x6b000000
04-14 13:14:04.951  1478  1685 W InputDispatcher: Asynchronous input event injection failed.
04-14 13:14:04.959  1478  1685 I InputDispatcher: Dropping event because there is no touched window on display 0 to receive it: MotionEvent(deviceId=-1, eventTime=2756770000000, source=TOUCHSCREEN, displayId=0, action=MOVE, actionButton=0x00000000, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, classification=NONE, edgeFlags=0x00000000, xPrecision=1.0, yPrecision=1.0, xCursorPosition=nan, yCursorPosition=nan, pointers=[0: (1100.0, 2207.0)]), policyFlags=0x6b000000
04-14 13:14:04.959  1478  1685 W InputDispatcher: Asynchronous input event injection failed.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 28 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Congratulations!!! It’s working. I try in five different physical device. All of them work great.

  • Google Pixel 6 - Android 13 preview
  • Google Pixel 5a - Android 13 preview
  • Google Pixel 3a - Android 12
  • HTC U11+ - Android 9
  • Asus tablet - Android 7

Very good news, thanks god is friday!!

I have check major function of scrcpy, there look’s good. Thank you ^^

Awesome! Thank you very much. 🎉

I’ll merge that soon, then publish a new version (1.24).

I expect many people to report the issue next year, with always the same answer “upgrade to scrcpy >= 1.24” 😄 (similar to #2129 for Android 12)

I have changed android 13 developer preview 2 ROM build to check this issue, it work good in scrcpy v1.23. I feel confused, maybe this issue is cause by early stage weekly build, I will keep tracking this issue. Thank a lot for your effort.