Android上的哪些流程/库负责将触摸事件发送到应用程序? [英] What process/library on Android is responsible for dispatching touch events to applications?

查看:184
本文介绍了Android上的哪些流程/库负责将触摸事件发送到应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android上的哪些流程/库负责将触摸事件发送到应用程序?
我非常专注于挂钩,我完全忘记了Android源代码。

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.

更新2:假设仅用于私有/内部使用的根设备和应用程序,而不是大规模发布

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

原始的,严格制定的问题: Android相当于iOS MobileSubstrate风格的挂钩?

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

推荐答案


我想让我的代码拦截系统中所有应用程序的所有触摸事件,对他们进行自定义处理并转发给原始的接收者。

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.

这是不可能的股票android(即使你的设备是根)。如果你想这样做,你必须建立自己的版本的操作系统,这样才能实现。

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.

这篇关于Android上的哪些流程/库负责将触摸事件发送到应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆