What process/library on Android is responsible for dispatching touch events to applications?

本秂侑毒 提交于 2019-12-13 05:54:16

问题


What process/library on Android is responsible for dispatching touch events to applications? I was so focused on the hooking that I completely forgot that Android source is available.

Update/Clarification: I want to have my code intercept all touch events for ALL applications in the system, do custom processing on them and forward to original receiver.

Update 2: Assume a rooted device and application for private/internal use only, NOT for mass distribution

Original, badly formulated question: Android equivalent of iOS MobileSubstrate-style hooking?


回答1:


I want to have my code intercept all touch events for ALL applications in the system, do custom processing on them and forward to original receiver.

This is not possible on stock android (even if your device is rooted). If you wish to do this you'll have to build your own version of the OS that allows for it.



来源:https://stackoverflow.com/questions/11621857/what-process-library-on-android-is-responsible-for-dispatching-touch-events-to-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!