handleLoadPackage() not called for app using appComponentFactory #513
-
Steps to reproduce/复现步骤
Expected behaviour/预期行为
Actual behaviour/实际行为
Xposed Module List/Xposed 模块列表Custom xposed module `dev.agnosticapollo.foo` for `com.foo` app.Root implementation/Root 方案Magisk 29 System Module List/系统模块列表Zygisk-LSPosedLSPosed version/LSPosed 版本v1.10.2 (7199) 0e457e3 Android version/Android 版本. Version requirement/版本要求
Logs/日志Stacktrace without xposed module. Stacktrace with xposed module. Logcat logs. Note sure which elf is triggering |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
|
There seems to be error is you LSPosed logs, please upload the complete logs of debug build. |
Beta Was this translation helpful? Give feedback.
-
|
I was using release build before, I didn't know it didn't have debug info with verbose logs enabled. Following is the log after hooked app is started, I cleared the log before I started it. Hopefully that's enough, if you need logs from earlier in the boot, let me know. Note that |
Beta Was this translation helpful? Give feedback.
-
|
You surely cannot hook any method you want in an Android application. Instead, you should analyze the correct execution flow of the target app and set up the hooking points properly. This is not a problem of LSPosed, it is your task while designing a module. |
Beta Was this translation helpful? Give feedback.
-
|
That is an interesting proposal, I will consider it once the refactoring of LSPosed is done. Personally, I don't think hiding root via LSPosed could help, it is usually better to write zygsik modules directly. Alternative, try maybe this one: https://github.com/Mrack/TInjector_Symbi |
Beta Was this translation helpful? Give feedback.
-
|
@agnostic-apollo You proposal in now implemented in #586 as part of libxposed API 101. See api |
Beta Was this translation helpful? Give feedback.
@agnostic-apollo You proposal in now implemented in #586 as part of libxposed API 101.
See api
onPackageLoadedandonPackageReady.