Fix no onCreate method in AppErrorDialog class problem in Android 10 in FrameworkHooker

This commit is contained in:
2023-01-14 01:55:52 +08:00
parent 8c4a1ea5f0
commit 3fb4e4f375

View File

@@ -218,7 +218,14 @@ object FrameworkHooker : YukiBaseHooker() {
param(BundleClass) param(BundleClass)
} }
afterHook { instance<Dialog>().cancel() } afterHook { instance<Dialog>().cancel() }
} }.ignoredNoSuchMemberFailure()
injectMember {
method {
name = "onStart"
emptyParam()
}
afterHook { instance<Dialog>().cancel() }
}.ignoredNoSuchMemberFailure()
} }
/** 注入自定义错误对话框 */ /** 注入自定义错误对话框 */
AppErrorsClass.hook { AppErrorsClass.hook {