绕过非公开API(私有API)检查
adb 绕过非公开 API(私有 API) 检查
# // 临时关闭非公开 API 的检查。
adb shell settings put global hidden_api_policy 0
如果遇到报错:
在 开发者选项 → USB调试(安全设置) 开启就可以了。
绕过 AndroidP 反射限制 (灰名单)
https://github.com/Guolei1130/android_p_no_sdkapi_support
开源库
FreeReflection
https://github.com/tiann/FreeReflection
A library that lets you use reflection without any restriction above Android P