-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
[Android 14 Beta3] Can't control the device screen #4074
Comments
This method works both on Android 14 Beta3 and pervious version. Test result :
|
Thank you again for the fix. However, I don't really understand the stacktrace:
Since you get an Could you please post your
|
Thanks to you both! I was having the exact same issue on Android 14 beta 3, on Pixel 6 Pro via Kubuntu 23.04 framework.jar from my device = |
Works perfectly - saved my life man, just smashed my screen and to my horror when I loaded scrcpy for the first time on A14 - disaster! Thanks both |
Actually |
Thank you 👍 So in Android 13 (current AOSP @UnsupportedAppUsage
public static InputManager getInstance() {
synchronized (InputManager.class) {
if (sInstance == null) {
try {
sInstance = new InputManager(IInputManager.Stub
.asInterface(ServiceManager.getServiceOrThrow(Context.INPUT_SERVICE)));
} catch (ServiceNotFoundException e) {
throw new IllegalStateException(e);
}
}
return sInstance;
}
} In Android 14 (the version from your @Deprecated
public static InputManager getInstance() {
return (InputManager) ((Application) Objects.requireNonNull(ActivityThread.currentApplication())).getSystemService(InputManager.class);
} And public static InputManagerGlobal getInstance() {
InputManagerGlobal inputManagerGlobal;
IBinder b;
synchronized (InputManagerGlobal.class) {
if (sInstance == null && (b = ServiceManager.getService("input")) != null) {
sInstance = new InputManagerGlobal(IInputManager.Stub.asInterface(b));
}
inputManagerGlobal = sInstance;
}
return inputManagerGlobal;
} |
Sorry if I'm not following, but what "Works perfectly"? Am I just not seeing a command line switch that has options allowing this to work? Thanks. |
Thanks for the reply, but I think I'm in a bit over my head. That commit would only help me if I were to build from source on my own, right? There's no (pre)release that has it yet, right? |
That's correct. But I plan to release a new version soon (v2.1, maybe next week), which is basically what is on Here it is:
(check |
Awesome. Can confirm that mouse/keyboard control is working well in this version. Anything else specific you need tested? |
I can see the screen on my computer, but I can't control the phone from the computer [server] INFO: Device: Xiaomi 22011211C (Android 13) |
It is normal after the device is restarted |
Environment
Describe the bug
In Android 14 beta 3, mouse and keyboard input events are no longer valid.
Screencasting is working, but remote control has failed.
The text was updated successfully, but these errors were encountered: