简体   繁体   English

Android上的哪个进程/库负责向应用程序分配触摸事件?

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

What process/library on Android is responsible for dispatching touch events to applications? Android上的哪个进程/库负责向应用程序分配触摸事件? I was so focused on the hooking that I completely forgot that Android source is available. 我非常关注这种钩子,以至于我完全忘记了可用的Android源代码。

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 更新2:假定已植根的设备和应用程序仅供私人/内部使用,而不用于大规模分发

Original, badly formulated question: Android equivalent of iOS MobileSubstrate-style hooking? 原始的,公式化的问题: Android是否等同于iOS MobileSubstrate样式的挂钩?

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). 这在股票android上是不可能的(即使您的设备已植根)。 If you wish to do this you'll have to build your own version of the OS that allows for it. 如果您希望这样做,则必须构建自己的操作系统版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM