// the find
tiann/FreeReflection
A library that lets you use reflection without any restriction above Android P
FreeReflection bypasses Android's hidden API restrictions introduced in Android P by patching the ART runtime through a mix of native code and JVM tricks. It's for Android developers who need to call internal framework APIs that Google has blocked from third-party apps. One line in Application.attachBaseContext and the restrictions vanish.
The implementation is technically clever — it uses two complementary strategies (detailed in the author's blog posts) to handle different Android versions, rather than a single fragile hack. The C++ native layer directly manipulates ART internals to whitelist your app, which is more reliable than pure-Java approaches. Integration is trivial: one method call, no configuration. MIT licensed with 3k stars and 565 forks signals real production use.
Last commit was October 2024 and the dependency is served via JitPack, not Maven Central — JitPack builds from source on demand and has had reliability issues. Android 15 (API 35) and upcoming versions may break it silently with no warning, since it's poking at runtime internals that Google actively works to close. There are no tests, no changelog, and no documented failure modes — you find out something broke when your app crashes at runtime. Using this in a Play Store app is a gray area at best; Google has historically removed apps that bypass hidden API restrictions.