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?
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?