Xposed hook to a system method

782 views Asked by At

I'm using a custom ROM that added some things in a system method (newApplication) and I would like to replace its behaviour depending on the application passed as argument.

Is it possible to use Xposed Framework to hook a system method, particularly my method of interest:

If yes, how can I do that? Because I can't figure out the package name I should be scoping the Xposed module to (using LSposed).

Many thanks.

1

There are 1 answers

0
Amine Zaine On BEST ANSWER

Even though the method newApplication is in the system framework, it is called during runtime of each application.

So the Xposed scope I had to specify is actually the package name of the application that's passed as argument.