From 4588bf237ee20224f6eb388a7c62278504566986 Mon Sep 17 00:00:00 2001 From: Zachary Wander Date: Tue, 16 Apr 2024 14:40:56 -0400 Subject: [PATCH] Add ReLinker --- app/build.gradle.kts | 1 + app/src/main/java/tk/zwander/wifilist/App.kt | 4 ++++ gradle/libs.versions.toml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index d64822f..70c789e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -59,4 +59,5 @@ dependencies { implementation(libs.gson) implementation(libs.bugsnag.android) implementation(libs.fastcsv) + implementation(libs.relinker) } \ No newline at end of file diff --git a/app/src/main/java/tk/zwander/wifilist/App.kt b/app/src/main/java/tk/zwander/wifilist/App.kt index 1af057a..766b577 100644 --- a/app/src/main/java/tk/zwander/wifilist/App.kt +++ b/app/src/main/java/tk/zwander/wifilist/App.kt @@ -2,12 +2,16 @@ package tk.zwander.wifilist import android.app.Application import com.bugsnag.android.Bugsnag +import com.getkeepsafe.relinker.ReLinker import org.lsposed.hiddenapibypass.HiddenApiBypass class App : Application() { override fun onCreate() { super.onCreate() + ReLinker.loadLibrary(this, "bugsnag-ndk") + ReLinker.loadLibrary(this, "bugsnag-plugin-android-anr") + Bugsnag.start(this) HiddenApiBypass.addHiddenApiExemptions("L") diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 23fcd2d..871b393 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -17,6 +17,7 @@ lifecycleRuntimeKtx = "2.7.0" material = "1.11.0" material3 = "1.2.1" patreonsupportersretrieval = "8436bbdbdc" +relinker = "1.4.5" [libraries] activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activityCompose" } @@ -33,6 +34,7 @@ hiddenapibypass = { module = "org.lsposed.hiddenapibypass:hiddenapibypass", vers lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" } material = { module = "com.google.android.material:material", version.ref = "material" } patreonSupportersRetrieval = { module = "com.github.zacharee:PatreonSupportersRetrieval", version.ref = "patreonsupportersretrieval" } +relinker = { module = "com.getkeepsafe.relinker:relinker", version.ref = "relinker" } shizuku-api = { module = "dev.rikka.shizuku:api", version.ref = "shizuku" } shizuku-provider = { module = "dev.rikka.shizuku:provider", version.ref = "shizuku" }