增加详细模块运行日志并改善 Hook 方案

This commit is contained in:
2022-02-01 22:16:49 +08:00
parent 97757c3d65
commit f243a0de76

View File

@@ -90,12 +90,8 @@ class HookMain : IXposedHookLoadPackage {
private fun runWithoutError(error: String = "", it: () -> Unit) {
try {
it()
} catch (e: Error) {
logE("hookFailed: $error", e)
} catch (e: Exception) {
logE("hookFailed: $error", e)
} catch (e: Throwable) {
logE("hookFailed: $error", e)
logE(content = "hookFailed: $error", e)
}
}