Skip to content

Commit

Permalink
Change deopt method target
Browse files Browse the repository at this point in the history
and fix #781
  • Loading branch information
kotori2 committed Dec 31, 2020
1 parent 546e944 commit 6bb00df
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
}
}
});
Class clazz = XposedHelpers.findClassIfExists("org.meowcat.edxposed.manager.StatusInstallerFragment", classLoader);
XposedHelpers.findAndHookMethod(clazz, "getCanonicalFile", File.class, new XC_MethodHook() {

XposedHelpers.findAndHookMethod("org.meowcat.edxposed.manager.StatusInstallerFragment", classLoader, "getCanonicalFile", File.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
File arg = (File)param.args[0];
Expand All @@ -94,8 +94,8 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
});

// deopt manager
Object method = EdXpConfigGlobal.getHookProvider().findMethodNative(
clazz, "onCreateView", "(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;");
Class clazz = XposedHelpers.findClassIfExists("org.meowcat.edxposed.manager.MainActivity", classLoader);
Object method = XposedHelpers.findMethodExact(clazz, "getXposedStatus", String.class);
if (method != null) {
EdXpConfigGlobal.getHookProvider().deoptMethodNative(method);
} else {
Expand Down

0 comments on commit 6bb00df

Please sign in to comment.