基于Xposed的通用破解签名的方法

2017/05/22 android 共 438 字,约 2 分钟
@Override
public void initZygote(IXposedHookZygoteInit.StartupParam startupParam) throws Throwable {
    XposedBridge.log("initZygote: " + startupParam.toString());
    XposedHelpers.findAndHookMethod("java.security.Signature", null, "verify", byte[].class, new XC_MethodHook() {
        protected void afterHookedMethod(MethodHookParam param) throws Throwable {
            XposedBridge.log("Signature verify disabled");
            param.setResult(Boolean.TRUE);
        }
    });
}

启用xposed插件后,任意修改APK包的文件,无须重新签名就可以安装成功。

文档信息

Search

    Table of Contents