Virtual Mouse on Android 11

Virtual mouse on android 11 phones such as coolpad and sonim xp3900 doesn’t work does anyone know the issue or a good alternative?

Thats a problem with Android 11’s accessibility API.
There probably isn’t anything he can do.

I’ve done some research, and there doesn’t seem to be an existing workaround to this problem.
Google has released an update to Android 11 fixing the bug, but obviously most flip phones’s manufacturers don’t bother to release android’s updates.
I have thought of two of my own workarounds, one of which ChatGPT o3 claims to be too complex to be worth it, and while I agree that it probably is complicated, I’m not sure if its as complicated as ChatGPT claims.
Eitherway, my second idea should be a lot simpler, and should be feasible if someone would want to put the work into it.
I don’t have any experience with making Android apps, so I wouldn’t be able to make it myself.

2 Likes

Can someone please look into it it would be a great help.

into what, a workaround?

Your workarounds that you thought of to allow a virtual mouse on android 11

I think that the bug with the accessibility API in Android 11 is only for non touch devices.

I think you’re right because I have a quin if I remember correctly it’s Android 11 and this app is working great… Someone pls correct me if I’m wrong

Okay, so here is my idea for a virtual mouse app for Android 11:
Basically, instead of the app using the accessibility API, it should target adb using Shizuku, using whatever mechanism scrcpy.exe uses to click on the screen.
Scrcpy.exe works perfectly even with non touch Android 11 devices.

Scrcpy i think uses the mouse that comes with the phone the browser mouse or when you plug one in for bluetooth but i don’t know of a way to turn it on with a button

I doubt it, scrcpy is able to reach the status bar, while a bluetooth mouse can’t.
Also, when you use scrcpy, you don’t see the mouse on the phone’s screen.

Either way, it makes no difference. However it works, its using adb API’s, which an Android app should be able to access using shizuku.

Try it and let us know.

:roll_eyes:

With scrcpy does that mean that you need a computer to control your device?

On a different note, @anonymousefliphones can you see if this works for you on Android 11? No promises that it works though.
app-debug.apk (9.9 MB)

Im trying fix2 now would you rather me try this one

Yes please, this one has changes that specifically try a workaround for Android 11. Forgot to mention that this requires hold to activate. Please let me know if the overlay shows up, if clicks work, etc.

Didn’t help still doesn’t work, does it need overlay permissions because it doesn’t ask for it?

Doesn’t seem to need it didn’t request it on my phone and it works

@Dev-in-the-BM can you try it on your phone because it works on the qin which is android 11 but not tcl

On the tcl, does the overlay show and you can advance through the overlay but doesn’t click? Does the overlay even show? I can’t troubleshoot without more info.

The change was to disable the overlay, then click, then reenable the overlay. I read somewhere that gestures cannot be injected through an overlay.