Replies: 3 comments 7 replies
-
Hello! I appreciate your passion about this project. I am also very glad to see that your interesting question here. The short answer to your question is that: no, you cannot communicate with LSPosed daemon. The binder used for the daemon-manager communication is sealed in a secure way, to not leak the trace of LSPosed. For your goal of using In case of confusion, you may refer to PixelXpert. |
Beta Was this translation helpful? Give feedback.
-
@JingMatrix thanks for your kind reply. Actually, I don't intend to interact with the daemon via AIDL — instead, I tried to access the modules database directly, but I have two main questions: How can I access the file /data/adb/lspd/config/modules_config.db using standard Java API, without executing su commands? I also noticed there's a caching layer involved. Any insights on how the Manager/daemon handles this caching mechanism, or how to trigger a cache refresh programmatically, would be greatly appreciated. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
@JingMatrix Thanks again for your response! To clarify my ultimate goal: For this to work, I need programmatic access to read, modify, and apply LSPosed module configurations, without relying on the Manager app or directly interacting with the daemon via AIDL. I did try accessing the modules_config.db file directly, and while it works via su commands, I would prefer to avoid that route — it feels a bit hacky and unstable, especially when considering production use across various devices. So again, my main questions: 1)Is there any recommended way to access or modify LSPosed module data (especially scopes and active status) from a background app, without using AIDL or su? 2)Is there any way to ensure changes are immediately reflected (like triggering cache refreshes)? I’d love any guidance you can share — especially on how to interact with LSPosed in a stable and consistent way across devices. Thanks in advance! B.T.W., I came across a fork by @mywalkb some time ago that added a CLI-based way to communicate with the daemon directly, not just through the Manager. While that approach is interesting, I prefer sticking with your official version, as it's more up-to-date and clearly much more maintainable and actively developed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! @JingMatrix
first of all,thanks for your awesome maintaining this project,thorught you busy personal life,phd,etc
I'm currently working on integrating with the LSPosed daemon via AIDL. I've noticed that communication through AIDL here works a bit differently than usual — especially regarding how parcelables are imported and shared between the manager and external clients.(tried to bind,but didnt found any eplicit intent for it)
Of course, I’ve imported all the relevant AIDL files into my project (an app I’m developing).
What is the correct or recommended way to communicate with the LSPosed daemon from an external application using AIDL?
Is there an official approach or best practice to follow?
I wont for example to use the setModuleScope from the
LSPManagerService.java
class,which uses theConfigManager
class.I have cloned this project and build it from souce..so if need to change something in the source code..I'm able to do this of course :)
Thank you so so much !:)
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions