Skip to content

Commit c4cf05f

Browse files
committed
mute exception
1 parent 4d955f4 commit c4cf05f

File tree

1 file changed

+6
-1
lines changed
  • BetterVerboseWiFiLogging/src/main/java/de/binarynoise/betterVerboseWiFiLogging

1 file changed

+6
-1
lines changed

BetterVerboseWiFiLogging/src/main/java/de/binarynoise/betterVerboseWiFiLogging/Hook.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ class Hook : IXposedHookLoadPackage {
3838
}
3939
}
4040
listOf(WifiEntry.getScanResultDescription, StandardWifiEntry.getScanResultDescription).forEach {
41-
XposedBridge.hookMethod(it, hook)
41+
try {
42+
XposedBridge.hookMethod(it, hook)
43+
} catch (e: IllegalArgumentException) {
44+
// ignore IllegalArgumentException: Cannot hook abstract methods
45+
if (e.message?.contains("abstract") != true) throw e
46+
}
4247
}
4348
}
4449

0 commit comments

Comments
 (0)