A library that lets you use reflection without any restriction above Android P
FreeReflection is a library that lets you use reflection without any restriction above Android P (includes Q and R).
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
implementation 'com.github.tiann:FreeReflection:3.1.0'
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 😃
If you like this project, buy me a cup of coffee! 😃
BitCoin: 39Wst8oL74pRP2vKPkPihH6RFQF4hWoBqU
MIT License