FreeReflection
A library that lets you use reflection without any restriction above Android P
Install / Use
/learn @tiann/FreeReflectionREADME
FreeReflection
FreeReflection is a library that lets you use reflection without any restriction above Android P (includes Q and R).
Usage
- Add it in your root build.gradle at the end of repositories(jitpack):
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add dependency to your project(jcenter):
implementation 'com.github.tiann:FreeReflection:3.1.0'
- 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
Donations
If you like this project, buy me a cup of coffee! :)
BitCoin: 39Wst8oL74pRP2vKPkPihH6RFQF4hWoBqU
License
MIT License
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
