rovo89 / XposedInstaller

3.85k stars 1.51k forks source link

Is XposedInstaller necessary #463

Open H4oK3 opened 5 years ago

H4oK3 commented 5 years ago

Hey, it is not an issue but a question, I don't know how to reach you so I just typed it here:

I would like to ask to have xposed module working, do we have to use xposed installer? Is there a way that we create a module; add it into target app's memory(I can sideload the apk as a zip and use reflection to get all the functions) and invoke handleLoadPackage directly?

I ask this because I am working on an research idea, here is what I did: I sideloaded xposedbridge.jar to the target app's memory; I wrote a simple module and sideload it to the memory as well(by using DexClassLoader).

Now I am stuck at this: I would need to invoke handleLoadPackagefrom our module.apk using reflection; I got the function handle but I would need to get the llparam to invoke it. I tried using reflection to get the static field sLoadedPackageCallbacks from xposedbridge and calling new LoadPackageParam(sLoadedPackageCallbacks) to instantiate the llparam, but it does not work.

Any ideas about this? Let me know if you need more information, I am glad to email/DM you somewhere with details.