libxposed / service

Apache License 2.0
101 stars 38 forks source link

Connect to libxposed service in hooked app #9

Closed neervanbiqs closed 3 hours ago

neervanbiqs commented 3 hours ago

Is it possible to connect to the libxposed service inside the onPackageLoaded method? My module reads variables from the sharedprefs and as a result of hooking some methods, some variables in sharedprefs need to be rewritten, but sharedprefs inside onPackageLoaded are opened only for reading. The same applies to files. The module needs to be able to open files not only for reading, but also for writing. Is this possible using the service? Or is connecting to the service only possible when the module is launched itself? If not, are there any workarounds?

vvb2060 commented 3 hours ago

Duplicate of https://github.com/libxposed/api/issues/15