# FreeReflection **Repository Path**: cscscscs/FreeReflection ## Basic Information - **Project Name**: FreeReflection - **Description**: A library that lets you use reflection without any restriction above Android P - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-11-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FreeReflection **FreeReflection** is a library that lets you use reflection without any restriction above Android P (includes Q). ## Usage 1. Add dependency to your project(jcenter): ```gradle implementation 'me.weishu:free_reflection:2.2.0' ``` 2. 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