another attempt to work around libsu bug

also update deps

Signed-off-by: androidacy-user <opensource@androidacy.com>
pull/89/head
androidacy-user 2 years ago
parent 2fb241ff8f
commit b429b7ca07

@ -53,8 +53,8 @@ android {
applicationId = "com.fox2code.mmm"
minSdk = 24
targetSdk = 33
versionCode = 80
versionName = "2.2.2"
versionCode = 81
versionName = "2.2.3"
vectorDrawables {
useSupportLibrary = true
}
@ -462,7 +462,7 @@ dependencies {
implementation("com.github.KieronQuinn:MonetCompat:0.4.1")
implementation("com.github.Fox2Code.FoxCompat:foxcompat:1.2.14")
implementation("com.github.Fox2Code.FoxCompat:hiddenapis:1.2.14")
implementation("com.mikepenz:aboutlibraries:10.8.0")
implementation("com.mikepenz:aboutlibraries:10.8.2")
// Utils
implementation("androidx.work:work-runtime:2.8.1")
@ -487,12 +487,12 @@ dependencies {
implementation("com.github.Fox2Code:AndroidANSI:1.2.1")
// sentry
implementation("io.sentry:sentry-android:6.25.0")
implementation("io.sentry:sentry-android-timber:6.25.0")
implementation("io.sentry:sentry-android-fragment:6.25.0")
implementation("io.sentry:sentry-android-okhttp:6.25.0")
implementation("io.sentry:sentry-kotlin-extensions:6.25.0")
implementation("io.sentry:sentry-android-ndk:6.25.0")
implementation("io.sentry:sentry-android:6.25.2")
implementation("io.sentry:sentry-android-timber:6.25.2")
implementation("io.sentry:sentry-android-fragment:6.25.2")
implementation("io.sentry:sentry-android-okhttp:6.25.2")
implementation("io.sentry:sentry-kotlin-extensions:6.25.2")
implementation("io.sentry:sentry-android-ndk:6.25.2")
// Markdown
// TODO: switch to an updated implementation

@ -211,6 +211,12 @@
-keep class com.topjohnwu.superuser.Shell$Result
-keep class com.topjohnwu.superuser.Shell
# 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
# a is actually onInit and the code is in kotlin
-keepclassmembers class com.fox2code.mmm.installer.InstallerInitializer {
public onInit(android.content.Context, com.topjohnwu.superuser.Shell);
}
# dontwarn
-dontwarn android.os.SystemProperties
-dontwarn android.view.ThreadedRenderer

@ -160,11 +160,11 @@ class InstallerInitializer : Shell.Initializer() {
Companion.mgskVerCode = mgskVerCode
return mgskPth
} catch (ignored: Exception) {
return if (tries <= 5) {
return if (tries <= 10) {
tries++
// sleep tries * 25ms
try {
Thread.sleep(tries * 25L)
Thread.sleep(tries * 50L)
} catch (e: InterruptedException) {
Timber.e(e)
}

@ -13,7 +13,7 @@ buildscript {
gradlePluginPortal()
}
dependencies {
classpath("com.android.tools.build:gradle:8.1.0-rc01")
classpath("com.android.tools.build:gradle:8.0.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22")
classpath("com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:10.8.0")

Loading…
Cancel
Save