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

小米14不能控制屏幕,能看到 #1047

Open
vltown opened this issue Oct 18, 2024 · 2 comments
Open

小米14不能控制屏幕,能看到 #1047

vltown opened this issue Oct 18, 2024 · 2 comments

Comments

@vltown
Copy link

vltown commented Oct 18, 2024

"pos": {"x": 0.458221, "y": 0.443499}

AdbProcessImpl::error:[server] ERROR: Could not invoke method
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:58)

AdbProcessImpl::error:at com.genymobile.scrcpy.Device.injectEvent(Device.java:230)
at com.genymobile.scrcpy.Device.injectEvent(Device.java:234)
at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:362)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:162)
at com.genymobile.scrcpy.Controller.control(Controller.java:97)
at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:105)
at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.
at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at android.hardware.input.IInputManager$Stub$Proxy.injectInputEventToTarget(IInputManager.java:1575)
at android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1217)
at android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1227)
... 10 more
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.input.InputManagerService.injectInputEventToTarget(InputManagerService.java:911)
at android.hardware.input.IInputManager$Stub.onTransact(IInputManager.java:744)
at android.os.Binder.execTransactInternal(Binder.java:1346)
at android.os.Binder.execTransact(Binder.java:1282)

AdbProcessImpl::error:[server] ERROR: Could not invoke method
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:58)

AdbProcessImpl::error:at com.genymobile.scrcpy.Device.injectEvent(Device.java:230)
at com.genymobile.scrcpy.Device.injectEvent(Device.java:234)
at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:362)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:162)
at com.genymobile.scrcpy.Controller.control(Controller.java:97)
at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:105)
at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.
at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at android.hardware.input.IInputManager$Stub$Proxy.injectInputEventToTarget(IInputManager.java:1575)
at android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1217)
at android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1227)
... 10 more

update devices...
adb run
AdbProcessImpl::out:List of devices attached
bb8056e6 device

update devices...
adb run
AdbProcessImpl::out:List of devices attached
bb8056e6 device

update devices...
adb run
AdbProcessImpl::out:List of devices attached
bb8056e6 device

update devices...
adb run
AdbProcessImpl::out:List of devices attached
bb8056e6 device

@vltown
Copy link
Author

vltown commented Oct 18, 2024

USB调试和USB调试(安全设置)都打开了

@creeperwater
Copy link

Mi has pushed a system update which can fix this problem.

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