Skip to content

Commit b429b7c

Browse files
another attempt to work around libsu bug
also update deps Signed-off-by: androidacy-user <opensource@androidacy.com>
1 parent 2fb241f commit b429b7c

4 files changed

Lines changed: 18 additions & 12 deletions

File tree

app/build.gradle.kts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ android {
5353
applicationId = "com.fox2code.mmm"
5454
minSdk = 24
5555
targetSdk = 33
56-
versionCode = 80
57-
versionName = "2.2.2"
56+
versionCode = 81
57+
versionName = "2.2.3"
5858
vectorDrawables {
5959
useSupportLibrary = true
6060
}
@@ -462,7 +462,7 @@ dependencies {
462462
implementation("com.github.KieronQuinn:MonetCompat:0.4.1")
463463
implementation("com.github.Fox2Code.FoxCompat:foxcompat:1.2.14")
464464
implementation("com.github.Fox2Code.FoxCompat:hiddenapis:1.2.14")
465-
implementation("com.mikepenz:aboutlibraries:10.8.0")
465+
implementation("com.mikepenz:aboutlibraries:10.8.2")
466466

467467
// Utils
468468
implementation("androidx.work:work-runtime:2.8.1")
@@ -487,12 +487,12 @@ dependencies {
487487
implementation("com.github.Fox2Code:AndroidANSI:1.2.1")
488488

489489
// sentry
490-
implementation("io.sentry:sentry-android:6.25.0")
491-
implementation("io.sentry:sentry-android-timber:6.25.0")
492-
implementation("io.sentry:sentry-android-fragment:6.25.0")
493-
implementation("io.sentry:sentry-android-okhttp:6.25.0")
494-
implementation("io.sentry:sentry-kotlin-extensions:6.25.0")
495-
implementation("io.sentry:sentry-android-ndk:6.25.0")
490+
implementation("io.sentry:sentry-android:6.25.2")
491+
implementation("io.sentry:sentry-android-timber:6.25.2")
492+
implementation("io.sentry:sentry-android-fragment:6.25.2")
493+
implementation("io.sentry:sentry-android-okhttp:6.25.2")
494+
implementation("io.sentry:sentry-kotlin-extensions:6.25.2")
495+
implementation("io.sentry:sentry-android-ndk:6.25.2")
496496

497497
// Markdown
498498
// TODO: switch to an updated implementation

app/proguard-rules.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@
211211
-keep class com.topjohnwu.superuser.Shell$Result
212212
-keep class com.topjohnwu.superuser.Shell
213213

214+
# fix for Parameter specified as non-null is null: method com.fox2code.mmm.installer.InstallerInitializer.a, parameter context which extends com.topjohnwu.superuser.Shell$Initializer
215+
# a is actually onInit and the code is in kotlin
216+
-keepclassmembers class com.fox2code.mmm.installer.InstallerInitializer {
217+
public onInit(android.content.Context, com.topjohnwu.superuser.Shell);
218+
}
219+
214220
# dontwarn
215221
-dontwarn android.os.SystemProperties
216222
-dontwarn android.view.ThreadedRenderer

app/src/main/kotlin/com/fox2code/mmm/installer/InstallerInitializer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ class InstallerInitializer : Shell.Initializer() {
160160
Companion.mgskVerCode = mgskVerCode
161161
return mgskPth
162162
} catch (ignored: Exception) {
163-
return if (tries <= 5) {
163+
return if (tries <= 10) {
164164
tries++
165165
// sleep tries * 25ms
166166
try {
167-
Thread.sleep(tries * 25L)
167+
Thread.sleep(tries * 50L)
168168
} catch (e: InterruptedException) {
169169
Timber.e(e)
170170
}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
gradlePluginPortal()
1414
}
1515
dependencies {
16-
classpath("com.android.tools.build:gradle:8.1.0-rc01")
16+
classpath("com.android.tools.build:gradle:8.0.2")
1717
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22")
1818
classpath("com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:10.8.0")
1919

0 commit comments

Comments
 (0)