Added new functions to confirm the feature

This commit is contained in:
2022-03-18 04:10:34 +08:00
parent 106591e4f9
commit 8ee4d079d6
5 changed files with 128 additions and 26 deletions

View File

@@ -246,7 +246,13 @@ class YukiHookXposedProcessor : SymbolProcessorProvider {
" override fun handleLoadPackage(lpparam: XC_LoadPackage.LoadPackageParam?) {\n" +
" if (lpparam == null) return\n" +
" try {\n" +
" $className().onInit()\n" +
" if (YukiHookAPI.isXposedCallbackSetUp) {\n" +
" loggerE(tag = \"YukiHookAPI\", msg = \"You cannot loading a hooker in \\\"onInit\\\" method! Aborted\")\n" +
" return\n" +
" }\n" +
" $className().onHook()\n" +
" YukiHookAPI.onXposedInitialized()\n" +
" } catch (e: Throwable) {\n" +
" loggerE(tag = \"YukiHookAPI\", msg = \"YukiHookAPI try to load HookEntryClass failed\", e = e)\n" +
" }\n" +