什么样的流程/库在Android负责调度触摸事件给应用程序? [英] What process/library on Android is responsible for dispatching touch events to applications?

查看:172
本文介绍了什么样的流程/库在Android负责调度触摸事件给应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android上什么样的流程/库负责调度触摸事件到应用程序?
我太专注于我完全忘了Android的源代码可以挂机。

更新/澄清:我想有我的code截距系统中的所有应用程序的所有触摸事件,对他们做自定义处理并转发给接收方原。

更新2:假设私有/内部使用一个植根设备和应用程序,而不用于质量分布

原来,先天存在缺陷的问题:<一href=\"http://stackoverflow.com/questions/11620873/android-equivalent-of-ios-mobilesubstrate-style-hooking\">Android iOS版MobileSubstrate有风格挂钩的相同呢?


解决方案

  

我想有我的code截距系统中的所有应用程序的所有触摸事件,对他们做自定义处理并转发给接收原


这是不可能的股票的Andr​​oid(即使你的设备是植根)。如果要做到这一点,你必须建立自己的,允许其操作系统的版本。

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?

解决方案

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.

这篇关于什么样的流程/库在Android负责调度触摸事件给应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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