Do hooking before original handleBindApplication method is called

This commit is contained in:
solohsu 2019-01-20 22:31:21 +08:00
parent d0f49f9512
commit 9435e9867b
1 changed files with 2 additions and 1 deletions

View File

@ -27,8 +27,8 @@ public class HandleBindAppHooker implements KeepMembers {
public static String methodSig = "(Landroid/app/ActivityThread$AppBindData;)V"; public static String methodSig = "(Landroid/app/ActivityThread$AppBindData;)V";
public static void hook(Object thiz, Object bindData) { public static void hook(Object thiz, Object bindData) {
backup(thiz, bindData);
if (XposedBridge.disableHooks) { if (XposedBridge.disableHooks) {
backup(thiz, bindData);
return; return;
} }
try { try {
@ -67,6 +67,7 @@ public class HandleBindAppHooker implements KeepMembers {
} catch (Throwable t) { } catch (Throwable t) {
logE("error when hooking bindApp", t); logE("error when hooking bindApp", t);
} }
backup(thiz, bindData);
} }
public static void backup(Object thiz, Object bindData) { public static void backup(Object thiz, Object bindData) {