Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiann/FreeReflection
A library that lets you use reflection without any restriction above Android P
https://github.com/tiann/FreeReflection
android hook reflection
Last synced: 14 days ago
JSON representation
A library that lets you use reflection without any restriction above Android P
- Host: GitHub
- URL: https://github.com/tiann/FreeReflection
- Owner: tiann
- License: mit
- Created: 2018-06-07T10:22:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-14T08:45:09.000Z (about 1 month ago)
- Last Synced: 2024-10-29T15:41:08.798Z (15 days ago)
- Topics: android, hook, reflection
- Language: C++
- Homepage:
- Size: 213 KB
- Stars: 2,944
- Watchers: 63
- Forks: 547
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# FreeReflection
**FreeReflection** is a library that lets you use reflection without any restriction above Android P (includes Q and R).
## Usage
1. Add it in your root build.gradle at the end of repositories(jitpack):
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```2. Add dependency to your project(jcenter):
```gradle
implementation 'com.github.tiann:FreeReflection:3.1.0'
```3. Add one line to your `Application.attachBaseContext` :
```java
@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](http://weishu.me/2018/06/07/free-reflection-above-android-p/)
- [another way to use reflection api above android p](http://weishu.me/2019/03/16/another-free-reflection-above-android-p/)## Donations
If you like this project, buy me a cup of coffee! :)
BitCoin: 39Wst8oL74pRP2vKPkPihH6RFQF4hWoBqU
## License
MIT License