File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/xposed/bridge Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -212,13 +212,13 @@ internal object YukiXposedModule : IYukiXposedModuleLifecycle {
212212 if (isPackageLoaded(packageName, HookEntryType .RESOURCES ).not () && packageName == AppParasitics .currentPackageName)
213213 assignWrapper(HookEntryType .RESOURCES , packageName, appResources = appResources)
214214 else null
215- }?.also { wrapper ->
216- if (wrapper.isCorrectProcess) runCatching {
217- if (wrapper.type != HookEntryType . ZYGOTE && wrapper.packageName == modulePackageName )
218- AppParasitics .hookModuleAppRelated(wrapper.appClassLoader, wrapper.type )
219- if (wrapper.type == HookEntryType . PACKAGE ) AppParasitics .registerToAppLifecycle(wrapper.packageName )
220- if (wrapper .type == HookEntryType .RESOURCES ) isSupportResourcesHook = true
221- packageParamCallback?.invoke(wrapper.instantiate().assign(wrapper). apply { YukiHookAPI .printSplashInfo() })
215+ }?.also {
216+ runCatching {
217+ if (it.isCorrectProcess) packageParamCallback?.invoke(it.instantiate().assign(it). apply { YukiHookAPI .printSplashInfo() } )
218+ if (it.type != HookEntryType . ZYGOTE && it.packageName == modulePackageName )
219+ AppParasitics .hookModuleAppRelated(it.appClassLoader, it.type )
220+ if (it .type == HookEntryType .PACKAGE ) AppParasitics .registerToAppLifecycle(it.packageName)
221+ if (it.type == HookEntryType . RESOURCES ) isSupportResourcesHook = true
222222 }.onFailure { yLoggerE(msg = " An exception occurred in the Hooking Process of YukiHookAPI" , e = it) }
223223 }
224224 }
You can’t perform that action at this time.
0 commit comments