fix(modules/no_track/BlockCrashReportingModule): make backwards compatible

This commit is contained in:
PalmDevs 2025-11-21 16:36:14 +07:00
parent f49ea13da5
commit 4a8df8954e
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -24,10 +24,13 @@ object BlockCrashReportingModule : Module() {
}
}
hookMethod("isDisabled") {
before {
Log.i("Forced CrashReporting.isDisabled() to true")
result = true
// This only exists on 30720x and above
runCatching {
hookMethod("isDisabled") {
before {
Log.i("Forced CrashReporting.isDisabled() to true")
result = true
}
}
}
}