@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包的文件,无须重新签名就可以安装成功。
文档信息
- 本文作者:zhupite
- 本文链接:https://zhupite.com/android/android-signature-xposed-hook.html
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)