A library that lets you use reflection without any restriction above Android P
C++ Java CMake
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

FreeReflection

FreeReflection is a library that lets you use reflection without any restriction above Android P.

Usage

  1. Add dependency to your project(jcenter):
implementation 'me.weishu:free_reflection:1.0.0'
  1. Add one line to your Application.attachBaseContext :
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    Reflection.unseal(base);
}

Then you can use the reflection API normally, all the restrictions are gone. Enjoy yourself :)

Donations

If you like this project, buy me a cup of coffee! :)

Bitcoins: 39Wst8oL74pRP2vKPkPihH6RFQF4hWoBqU

License

MIT License