Fix wrong NewXSharedPreference path because of inline (#2804)

This commit is contained in:
LoveSy 2023-10-11 09:28:37 +08:00 committed by GitHub
parent c423c6e705
commit 159a3adcf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@ public class InlinedMethodCallers {
// callers of Application#attach(Context)
{"android.app.Instrumentation", "newApplication", ClassLoader.class, String.class, Context.class},
{"android.app.Instrumentation", "newApplication", ClassLoader.class, Context.class},
{"android.app.ContextImpl", "getSharedPreferencesPath", String.class}
};
// TODO deprecate this

View File

@ -188,7 +188,7 @@ public class LoadedApkGetCLHooker implements XposedInterface.Hooker {
}
if (xposedminversion > 92 || xposedsharedprefs) {
Utils.logW("New modules detected, hook preferences");
Utils.logI("New modules detected, hook preferences");
XposedHelpers.findAndHookMethod("android.app.ContextImpl", lpparam.classLoader, "checkMode", int.class, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) {