Skip to content

Commit 4a8df89

Browse files
committed
fix(modules/no_track/BlockCrashReportingModule): make backwards compatible
1 parent f49ea13 commit 4a8df89

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

app/src/main/kotlin/io/github/revenge/xposed/modules/no_track/BlockCrashReportingModule.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ object BlockCrashReportingModule : Module() {
2424
}
2525
}
2626

27-
hookMethod("isDisabled") {
28-
before {
29-
Log.i("Forced CrashReporting.isDisabled() to true")
30-
result = true
27+
// This only exists on 30720x and above
28+
runCatching {
29+
hookMethod("isDisabled") {
30+
before {
31+
Log.i("Forced CrashReporting.isDisabled() to true")
32+
result = true
33+
}
3134
}
3235
}
3336
}

0 commit comments

Comments
 (0)