简体   繁体   中英

In Android, how to hook api calls in another app

there are two Android apps,A and B. now, A executes a function(Af) which make the function(Bf) in B executed(Such as a Broadcast). A and B running in different process(different uid)

I want to get the two functions name.

How can I get the name of Bf if I know Af?

or

How can I get the name of Af if I know Bf?

if you know bf and want to get af, you can generate an exception in afterHookedMethod. I hope you know what that is. If you dont check out this link:

https://github.com/rovo89/XposedBridge/wiki/Development-tutorial

@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
                  (new Exception()).printStackTrace();  
}

from the stack trace you can get the method call.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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