[app] Update HiddenApiBypass to 2.0

This commit is contained in:
LoveSy 2021-05-23 02:03:55 +08:00 committed by LoveSy
parent 7c77589d35
commit 953c0394cc
2 changed files with 3 additions and 2 deletions

View File

@ -219,7 +219,7 @@ dependencies {
implementation("io.noties.markwon:linkify:$markwonVersion")
implementation("me.zhanghai.android.appiconloader:appiconloader-glide:1.3.1")
implementation("me.zhanghai.android.fastscroll:library:1.1.5")
implementation("org.lsposed.hiddenapibypass:hiddenapibypass:1.1")
implementation("org.lsposed.hiddenapibypass:hiddenapibypass:2.0")
implementation(project(":manager-service"))
}

View File

@ -50,7 +50,8 @@ public class App extends Application {
static {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
HiddenApiBypass.setHiddenApiExemptions("L");
// TODO: set specific class name instead of `L`
HiddenApiBypass.addHiddenApiExemptions("L");
}
}