WindySha / bypassHiddenApiRestriction

This is a library that can bypass the hidden api restriction on Android 9-12.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BypassHiddenApiRestriction

This is a library that can bypass the restrictions on non-SDK interfaces on Android 9-12.

How it works

另一种绕过Android 9以上非SDK接口调用限制的方法

Usage

1. Add dependency in build.gradle

allprojects {
    repositories {
        mavenCentral()
    }
}
dependencies {
    implementation 'io.github.windysha:bypassHiddenApiRestriction:1.1.0'
}

2. Add this code to your Application.attachBaseContext

import com.wind.hiddenapi.bypass.HiddenApiBypass

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
    HiddenApiBypass.startBypass();
}

License

Copyright 2021 WindySha
Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0

About

This is a library that can bypass the hidden api restriction on Android 9-12.


Languages

Language:C++ 58.7%Language:C 20.4%Language:CMake 9.7%Language:Kotlin 7.1%Language:Java 4.0%