fix(modules/no_track/BlockCrashReportingModule): make backwards compatible
This commit is contained in:
parent
f49ea13da5
commit
4a8df8954e
1 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue