sinhro200 / android-mouse-cursor

Using an AccessibilityService to simulate a mouse in Android (without root)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Mouse Cursor

Forked from https://github.com/chetbox/android-mouse-cursor. Just updated everything to work with API level 27 (Oreo, 8.1).

Original content:

An (sort-of functional) example of how you can simulate a moouse on Android using a floating window and an Accessbility Service to click on Views.

Usage

  • Open the project in Android Studio and run on your device.
  • Go to Settings > Accessibility and turn on "MouseCursor".
  • Edit the IP address in mouse_udp_client.py to that of your Android device
  • Run mouse_udp_client.py and use the instructions on screen to send mouse events to the service running on the device

Limitations

  • What you click on must be identified as an Accessibility Element. Most basic native apps work, but more complex apps (e.g. Google Maps, games) will not be fully clickable.
  • The system UI is inaccessible to floating window used to draw the mouse cursor and the click mechanism. This means you cannot click on the Home or Back buttons or the status bar.
  • Dragging the mouse is not supported.
  • Right/middle click are not supported.

Licence

MIT

About

Using an AccessibilityService to simulate a mouse in Android (without root)

License:MIT License


Languages

Language:Java 87.3%Language:Python 12.7%