Fix backup method not called in some cases

This commit is contained in:
solohsu 2019-01-23 00:53:04 +08:00
parent 69533ce5b6
commit 1aa63822d9
2 changed files with 4 additions and 2 deletions

View File

@ -66,8 +66,9 @@ public class HandleBindAppHooker implements KeepMembers {
}
} catch (Throwable t) {
logE("error when hooking bindApp", t);
} finally {
backup(thiz, bindData);
}
backup(thiz, bindData);
}
public static void backup(Object thiz, Object bindData) {

View File

@ -34,7 +34,8 @@ public class LoadedApkConstructorHooker implements KeepMembers {
boolean includeCode, boolean registerPackage) {
if (XposedBridge.disableHooks) {
backup(thiz, activityThread, aInfo, compatInfo, baseLoader, securityViolation, includeCode, registerPackage);
backup(thiz, activityThread, aInfo, compatInfo, baseLoader, securityViolation,
includeCode, registerPackage);
return;
}