A library that lets you use reflection without any restriction above Android P
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea Add License Jun 8, 2018
app
gradle/wrapper chore(build): upgrade build toolchain to 28 Jun 12, 2018
library remove abiFilters (support all arch) Jun 27, 2018
.gitignore init Jun 7, 2018
LICENSE Add License Jun 8, 2018
README.md README update. Jun 27, 2018
build.gradle chore(build): upgrade build toolchain to 28 Jun 12, 2018
gradle.properties init Jun 7, 2018
gradlew init Jun 7, 2018
gradlew.bat init Jun 7, 2018
settings.gradle init Jun 7, 2018

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.2.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 :)

Under the hood

free-reflection-above-android-p

Donations

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

BitCoin: 39Wst8oL74pRP2vKPkPihH6RFQF4hWoBqU

License

MIT License