Requirement:
1. Do not change the Android framework! (Or limit the impact)
2. Some pointer functionality has to be added:
- hide / show
- load custonm / default icons
- inject keys / motions
- get current pointer state
- display toast message when pointing is disabled
- triggers at activity switch
My approach:
The Android Framework provides some underlying functionality to handle pointer actions. At the moment I have my own PointerManagerService which is started by the SystemServer. Working together with the WindowManagerService, I succeeded to develop a working prototype. This with changing a lot of files like the InputReaders, InputManagers, PointerController.. where functionality is added. As you can see, this has a great impact on the Android Framework.
Question:
Is there an easier way to customize the behaviors of the pointer?