From 1d02000da0ae095abf88371989ef72ae952ccdf4 Mon Sep 17 00:00:00 2001 From: zhangjiongxuan Date: Mon, 10 Jul 2017 11:22:48 +0800 Subject: [PATCH] Close verify Signature by default --- .../main/java/com/qihoo360/replugin/RePluginConfig.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/RePluginConfig.java b/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/RePluginConfig.java index 39fd9d9..171e4ea 100644 --- a/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/RePluginConfig.java +++ b/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/RePluginConfig.java @@ -40,7 +40,7 @@ public final class RePluginConfig { private RePluginEventCallbacks eventCallbacks; private File pnInstallDir; - private boolean verifySign = true; + private boolean verifySign = false; private boolean persistentEnable = true; private String persistentName = RePluginConstants.PERSISTENT_NAME_DEFAULT; private boolean useHostClassIfNotFound = false; @@ -130,8 +130,9 @@ public final class RePluginConfig { } /** - * 设置插件是否开启签名校验

- * 注意:该功能仅针对“纯APK”插件,“p-n”插件已默认开启了签名校验 + * 设置插件是否开启签名校验。默认为False。但强烈建议开启此开关。

+ * 此开关将必须和 RePlugin.addCertSignature 配合使用。

+ * 注意:该功能仅针对“纯APK”插件 * * @param verifySign * @return RePluginConfig自己。这样可以连环调用set方法