Android equivalent of iOS MobileSubstrate-style hooking? [closed]

主宰稳场 提交于 2019-12-11 03:06:01

问题


What is, if any, Android equivalent of MobileSubstrate-style hooking? I need to understand if it's feasible and doable in reasonable time to hook into digitizer event flow to intercept and do custom processing on gestures/touches.

Clarification: This must be done for ALL applications. Currently I have a tweak that is filtered to UIKit, so it loads everywhere. Is there an equivalent?


回答1:


Saurik has announced CydiaSubstrate for Android devices supported on versions 2.3 through 4.2, including Kindle Fire, CyanogenMod, and Intel. You need to root your device first in order for it to work. You can read more on CydiaSubstrate For Android and download it from CydiaSubstrate or GooglePlay Store.




回答2:


To complete the question/answer sequence : there appears be none. Objective-C's dynamic introspection capabilities are the result of smalltalk-like messaging. Java/C don't have that. .Net, on the other hand, comes close with reflection. case closed.



来源:https://stackoverflow.com/questions/11620873/android-equivalent-of-ios-mobilesubstrate-style-hooking

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