Fix wrong NewXSharedPreference path because of inline (#2804)
This commit is contained in:
parent
c423c6e705
commit
159a3adcf8
|
|
@ -57,6 +57,7 @@ public class InlinedMethodCallers {
|
||||||
// callers of Application#attach(Context)
|
// callers of Application#attach(Context)
|
||||||
{"android.app.Instrumentation", "newApplication", ClassLoader.class, String.class, Context.class},
|
{"android.app.Instrumentation", "newApplication", ClassLoader.class, String.class, Context.class},
|
||||||
{"android.app.Instrumentation", "newApplication", ClassLoader.class, Context.class},
|
{"android.app.Instrumentation", "newApplication", ClassLoader.class, Context.class},
|
||||||
|
{"android.app.ContextImpl", "getSharedPreferencesPath", String.class}
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO deprecate this
|
// TODO deprecate this
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ public class LoadedApkGetCLHooker implements XposedInterface.Hooker {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xposedminversion > 92 || xposedsharedprefs) {
|
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() {
|
XposedHelpers.findAndHookMethod("android.app.ContextImpl", lpparam.classLoader, "checkMode", int.class, new XC_MethodHook() {
|
||||||
@Override
|
@Override
|
||||||
protected void afterHookedMethod(MethodHookParam param) {
|
protected void afterHookedMethod(MethodHookParam param) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue