Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A library that lets you use reflection without any restriction above Android P

License

NotificationsYou must be signed in to change notification settings

tiann/FreeReflection

Repository files navigation

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):
allprojects {repositories {...maven { url'https://jitpack.io' }}}
  1. Add dependency to your project(jcenter):
implementation'com.github.tiann:FreeReflection:3.1.0'
  1. Add one line to yourApplication.attachBaseContext :
@OverrideprotectedvoidattachBaseContext(Contextbase) {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

About

A library that lets you use reflection without any restriction above Android P

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp