dpnishant / appmon

Documentation:
http://dpnishant.github.io/appmon
Apache License 2.0
1.55k stars 275 forks source link

Why intercepting android.content.ContextWrapper class #127

Closed kochia3 closed 1 year ago

kochia3 commented 1 year ago

Why Android scripts intercept android.content.ContextWrapper class for different things? Is this class somehow lower level for other classes?

dpnishant commented 1 year ago

@kochia3 It's done because android.content.Context is an abstract class that cannot be used to create objects but android.content.ContextWrapper extends android.content.Context and exports the methods we want to hook.

Closing it as not an issue.