I want to invoke a system method at runtime from my app using Xposed. I think a broadcast receiver should be the right way.
How can I set up a broadcast receiver in the right context so it is able to invoke that method? Do I need some kind of proxy instance for the class? A short example code would be nice:)
I tried this too. You can use reflection to do this.
Example:
in com.your.package.app.XModuleBridge
in Xposed module.
--
Usage:
I don't know how to hook method for all app at runtime, because I found that each app has different xposed module instance of different Class object. They don't share object each other. (I don't want using database or disk file if bad performance)