ElderDrivers / EdXposed

Elder driver Xposed Framework.
https://edxp.meowcat.org/
GNU General Public License v3.0
5.46k stars 631 forks source link

[BUG] app not hooked #841

Closed ghost closed 3 years ago

ghost commented 3 years ago

I have Android 8.0 stock arm64, with Magisk 22.0 Riru 23.6 EdXposed 0.5.2.2_4683 YAHFA

Magisk Modules: are riru core and edxposed. EdXposed modules there is only my module.

I'm developing a simple module for logging intent of apps. This is my code:

XposedHelpers.findAndHookConstructor("android.content.Intent", classLoader, String.class, new TestHook(classLoader));

In my TestHook class

public void beforeHookedMethod(MethodHookParam mhpParams) throws Throwable
{
    String var2 = mhpParams.args[0].toString();
    Log.i("IntentLog", "Intent " + var2);
}

It's works well with many apps, my I have a strange issue with app rikka appops, no intent is logged. I tried many versions of this app and I discovered until version 5.0.6 I can log intent but from version 5.1.0 no. I tried to optmizde e deoptimize but nothing. I tried with frida the same code and I can log intent in all versions of rikka appops. So I think there is a bug in edxposed. My scope is not debug rikka appops it was just a test, but logging intent in other apps. This exception caused me some doubts about the functioning of my module. I tried to switch SandHook from EdXposed Manager and I have the same issue.

ghost commented 3 years ago

@yujincheng08 tell me in LSPosed "rikka apps are anti-xposed. You will need native hook to anti-anti-xposed.", so is out my scope