{"id":1603,"date":"2017-07-06T16:15:35","date_gmt":"2017-07-06T08:15:35","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1603"},"modified":"2017-07-06T16:15:35","modified_gmt":"2017-07-06T08:15:35","slug":"replugin%e6%8f%92%e4%bb%b6%e7%9a%84%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1603","title":{"rendered":"RePlugin\u63d2\u4ef6\u7684\u7ba1\u7406"},"content":{"rendered":"<p>\n\t\u65e0\u8bba\u662f\u63d2\u4ef6\u8fd8\u662f\u4e3b\u7a0b\u5e8f\uff0c\u90fd\u53ef\u4ee5\u5bf9\u81ea\u5df1\u548c\u5176\u5b83\u63d2\u4ef6\u505a\u76f8\u5e94\u7684\u63d2\u4ef6\u7ba1\u7406\u5de5\u4f5c\u3002\n<\/p>\n<p>\n\t\u8fd9\u7bc7\u6587\u6863\u4e3b\u8981\u8bb2\u89e3\u6709\u5173\u63d2\u4ef6\u7ba1\u7406\u65b9\u9762\u7684\u57fa\u672c\u7528\u6cd5\u3002\u5206\u4e3a\uff1a\u5916\u7f6e\u63d2\u4ef6\uff08\u4e3b\u8981\uff09\u548c\u5185\u7f6e\u63d2\u4ef6\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"RePlugin \u63d2\u4ef6\u5e94\u7528\u5217\u8868\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201707\/06\/1499328154_758896.png\" style=\"width: 647px;height: 426px\" \/>\n<\/p>\n<h2>\n\t\u5916\u7f6e\u63d2\u4ef6<br \/>\n<\/h2>\n<p>\n\t\u5916\u7f6e\u63d2\u4ef6\u662f\u6307\u53ef\u901a\u8fc7&ldquo;\u4e0b\u8f7d&rdquo;\u3001&ldquo;\u653e\u5165SD\u5361&rdquo;\u7b49\u65b9\u5f0f\u6765\u5b89\u88c5\u5e76\u8fd0\u884c\u7684\u63d2\u4ef6\u3002\n<\/p>\n<p>\n\t\u4ee5\u4e0b\u662f&ldquo;\u5916\u7f6e\u63d2\u4ef6&rdquo;\u7684\u7ba1\u7406\u65b9\u6848\u3002\n<\/p>\n<h2>\n\t\u5b89\u88c5\u63d2\u4ef6<br \/>\n<\/h2>\n<p>\n\t\u8981\u5b89\u88c5\u4e00\u4e2a\u63d2\u4ef6\uff0c\u53ea\u9700\u4f7f\u7528 RePlugin.install \u65b9\u6cd5\uff0c\u4f20\u9012\u4e00\u4e2a&ldquo;APK\u8def\u5f84&rdquo;\u5373\u53ef\u3002\n<\/p>\n<pre class=\"brush:java;\">\r\nRePlugin.install(&quot;\/sdcard\/exam.apk&quot;);<\/pre>\n<h2>\n\t\u6700\u4f73\u5b9e\u8df5<br \/>\n<\/h2>\n<p>\n\t\u4ee5\u4e0b\u4e3a360\u624b\u673a\u536b\u58eb\u6216\u5176\u5b83\u5408\u4f5cApp\u91c7\u7528\u7684\u8bbe\u8ba1\uff0c\u53ef\u4f9b\u60a8\u53c2\u8003\uff1a\n<\/p>\n<ul>\n<li>\n\t\t\u9664\u975e\u662f\u57fa\u7840\u548c\u6838\u5fc3\u529f\u80fd\u63d2\u4ef6\uff0c\u5426\u5219\u8bf7\u5c3d\u91cf\u51cf\u5c11&ldquo;\u9759\u9ed8\u5b89\u88c5&rdquo;\u63d2\u4ef6\u7684\u60c5\u51b5\uff0c\u4ee5\u51cf\u5c11\u5185\u90e8\u5b58\u50a8\u7a7a\u95f4\u7684\u6d88\u8017\uff0c\u964d\u4f4e\u5bf9\u7528\u6237\u7684\u5f71\u54cd\u3002\n\t<\/li>\n<li>\n\t\t\u82e5\u63d2\u4ef6\u9700\u8981\u4e0b\u8f7d\uff0c\u5219\u8bf7\u8986\u5199RePluginCallbacks.onPluginNotExistsForActivity\u65b9\u6cd5\uff0c\u5e76\u5728\u6b64\u6253\u5f00\u60a8\u7684\u4e0b\u8f7d\u9875\u9762\u5e76\u63a7\u5236\u5176\u903b\u8f91\n\t<\/li>\n<li>\n\t\t\u4e0b\u8f7d\u63d2\u4ef6\u524d\u5efa\u8bae\u544a\u77e5\u7528\u6237\u5176&ldquo;\u63d2\u4ef6\u5927\u5c0f&rdquo;\uff0c\u5c24\u5176\u9488\u5bf9\u8fd0\u8425\u5546\u7f51\u7edc\u7684\u60c5\u51b5\n\t<\/li>\n<\/ul>\n<h2>\n\t\u5347\u7ea7\u63d2\u4ef6<br \/>\n<\/h2>\n<p>\n\t\u4e3a\u4e86\u7b80\u5316\u64cd\u4f5c\uff0c\u5347\u7ea7\u63d2\u4ef6\u7684\u505a\u6cd5\u548c&ldquo;\u5b89\u88c5&rdquo;\u662f\u4e00\u6837\u7684\uff0c\u4ecd\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528 RePlugin.install \u65b9\u6cd5\u3002\n<\/p>\n<pre class=\"brush:java;\">\r\nRePlugin.install(&quot;\/sdcard\/exam_new.apk&quot;);<\/pre>\n<h2>\n\t\u6ce8\u610f<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t\u5982\u679c\u63d2\u4ef6\u6b63\u5728\u8fd0\u884c\uff0c\u5219\u4e0d\u4f1a\u7acb\u5373\u5347\u7ea7\uff0c\u800c\u662f&ldquo;\u7f13\u5b58&rdquo;\u8d77\u6765\u3002\u76f4\u5230\u6240\u6709&ldquo;\u6b63\u5728\u4f7f\u7528\u63d2\u4ef6&rdquo;\u7684\u8fdb\u7a0b\u7ed3\u675f\u5e76\u91cd\u542f\u540e\u624d\u4f1a\u751f\u6548\n\t<\/li>\n<li>\n\t\t\u5347\u7ea7\u53ef\u80fd\u4f1a\u5360\u7528&ldquo;\u5185\u90e8\u5b58\u50a8\u7a7a\u95f4&rdquo;\uff08\u56e0\u4e3a\u8981\u91ca\u653e\u65b0\u7684APK\uff09\n\t<\/li>\n<li>\n\t\t\u4e0d\u652f\u6301&ldquo;\u63d2\u4ef6\u964d\u7ea7&rdquo;\uff0c\u4f46\u53ef\u4ee5&ldquo;\u540c\u7248\u672c\u8986\u76d6&rdquo;\n\t<\/li>\n<\/ul>\n<p>\n\t\u51fa\u4e8e\u7a33\u5b9a\u6027\u548c\u5b9e\u9645\u9700\u6c42\u8003\u8651\uff0cRePlugin\u6682\u65f6\u6ca1\u6709\u8ba1\u5212\u652f\u6301&ldquo;\u70ed\u4fee\u590d&rdquo;\u65b9\u6848\u3002\u7136\u800c\uff0c\u5982\u60a8\u67090 Hook\uff08\u6781\u5176\u7a33\u5b9a\u7684\u524d\u63d0\u4e0b\uff09\u80fd\u548cRePlugin\u878d\u5408\u7684&ldquo;\u70ed\u4fee\u590d&rdquo;\u65b9\u6848\uff0c\u6b22\u8fce\u63d0\u51fa\u5e76\u8ba8\u8bba\u3002\n<\/p>\n<h2>\n\t\u6700\u4f73\u5b9e\u8df5<br \/>\n<\/h2>\n<p>\n\t\u4ee5\u4e0b\u4e3a360\u624b\u673a\u536b\u58eb\u6216\u5176\u5b83\u5408\u4f5cApp\u91c7\u7528\u7684\u8bbe\u8ba1\uff0c\u53ef\u4f9b\u60a8\u53c2\u8003\uff1a\n<\/p>\n<ul>\n<li>\n\t\t\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\uff0c\u5e94\u5c3d\u53ef\u80fd&ldquo;\u9759\u9ed8\u5347\u7ea7&rdquo;\uff0c\u4ee5\u51cf\u5c11\u5bf9\u7528\u6237\u7684\u6253\u6270\n\t<\/li>\n<li>\n\t\t\u9488\u5bf9\u5347\u7ea7\u800c\u8a00\uff0c\u53ef\u5728\u540e\u53f0\u7ebf\u7a0b\u505a\u4e00\u6b21&ldquo;\u9884\u52a0\u8f7d&rdquo;\uff0c\u63d0\u524d\u91ca\u653eDex\u3002\u5177\u4f53\u505a\u6cd5\uff1a\n\t<\/li>\n<\/ul>\n<pre class=\"brush:java;\">\r\nPluginInfo pi = RePlugin.install(&quot;\/sdcard\/exam_new.apk&quot;);\r\nif (pi != null) {\r\n\tRePlugin.preload(pi);\r\n}<\/pre>\n<p>\n\t\u82e5\u63d2\u4ef6\u6b63\u5728\u8fd0\u884c\uff0c\u5219\u4f1a\u6709\u4e24\u79cd\u573a\u666f\uff0c\u9700\u5206\u522b\u5bf9\u5f85\uff1a<br \/>\n\t\u82e5\u662f\u9047\u5230\u4e25\u91cd\u95ee\u9898\uff0c\u9700\u8981&ldquo;\u5f3a\u5236\u5347\u7ea7&rdquo;\uff0c\u5219\u5e94\u7acb\u5373\u63d0\u793a\u7528\u6237\uff0c\u5f85\u540c\u610f\u540e\u5219\u91cd\u542f\u8fdb\u7a0b<br \/>\n\t\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u5728&ldquo;\u9501\u5b9a\u5c4f\u5e55&rdquo;\u540e\u91cd\u542f\u8fdb\u7a0b\uff0c\u8ba9\u5176\u5728\u540e\u53f0\u751f\u6548\n<\/p>\n<p>\n\t\u82e5\u63d2\u4ef6\u6ca1\u6709\u8fd0\u884c\uff0c\u5219\u53ef\u76f4\u63a5\u5347\u7ea7\n<\/p>\n<h2>\n\t\u5378\u8f7d\u63d2\u4ef6<br \/>\n<\/h2>\n<p>\n\t\u8981\u5378\u8f7d\u63d2\u4ef6\uff0c\u5219\u9700\u8981\u4f7f\u7528 RePlugin.uninstall \u65b9\u6cd5\u3002\u53ea\u9700\u4f20\u9012\u4e00\u4e2a&ldquo;\u63d2\u4ef6\u540d&rdquo;\u5373\u53ef\u3002\n<\/p>\n<pre class=\"brush:java;\">\r\nRePlugin.uninstall(&quot;exam&quot;);<\/pre>\n<p>\n\t\u6ce8\u610f\n<\/p>\n<ul>\n<li>\n\t\t\u5982\u679c\u63d2\u4ef6\u6b63\u5728\u8fd0\u884c\uff0c\u5219\u4e0d\u4f1a\u7acb\u5373\u5378\u8f7d\u63d2\u4ef6\uff0c\u800c\u662f\u5c06\u5378\u8f7d\u8bc9\u6c42\u8bb0\u5f55\u4e0b\u6765\u3002\u76f4\u5230\u6240\u6709&ldquo;\u6b63\u5728\u4f7f\u7528\u63d2\u4ef6&rdquo;\u7684\u8fdb\u7a0b\u7ed3\u675f\u5e76\u91cd\u542f\u540e\u624d\u4f1a\u751f\u6548\n\t<\/li>\n<li>\n\t\t\u7531\u4e8e\u5185\u7f6e\u63d2\u4ef6\u662f\u6346\u5728\u4e3b\u7a0b\u5e8f\u5305\u5185\u7684\uff0c\u6545\u65e0\u6cd5\u5378\u8f7d&ldquo;\u5185\u7f6e\u63d2\u4ef6&rdquo;\uff08\u6b64\u5904\u6709\u4f18\u5316\u7a7a\u95f4\uff0c\u6211\u4eec\u8fd8\u5728\u5546\u91cf\u5bf9\u7b56\uff09\n\t<\/li>\n<\/ul>\n<h2>\n\t\u6700\u4f73\u5b9e\u8df5<br \/>\n<\/h2>\n<p>\n\t\u4ee5\u4e0b\u4e3a360\u624b\u673a\u536b\u58eb\u6216\u5176\u5b83\u5408\u4f5cApp\u91c7\u7528\u7684\u8bbe\u8ba1\uff0c\u53ef\u4f9b\u60a8\u53c2\u8003\uff1a\n<\/p>\n<p>\n\t\u5728\u5378\u8f7d\u65f6\u5f39\u51fa\u5bf9\u8bdd\u6846\uff0c\u63d0\u793a\u7528\u6237&ldquo;\u662f\u5426\u540c\u610f\u5378\u8f7d&rdquo;<br \/>\n\t\u82e5\u63d2\u4ef6\u5728\u8fd0\u884c\u65f6\u9700\u8981\u88ab\u5378\u8f7d\uff0c\u5219\u6709\u4e24\u79cd\u505a\u6cd5\uff1a<br \/>\n\t\u63d0\u793a\u7528\u6237&ldquo;\u9700\u8981\u91cd\u65b0\u542f\u52a8\u5e94\u7528\u624d\u80fd\u751f\u6548&rdquo;<br \/>\n\t\u5728&ldquo;\u9501\u5b9a\u5c4f\u5e55&rdquo;\u540e\u91cd\u65b0\u542f\u52a8\u8fdb\u7a0b\uff0c\u8ba9\u5176\u5728\u540e\u53f0\u751f\u6548<br \/>\n\t\u82e5\u63d2\u4ef6\u6ca1\u6709\u8fd0\u884c\uff0c\u5219\u53ef\u4ee5\u76f4\u63a5\u5378\u8f7d\uff0c\u65e0\u9700\u63d0\u793a\u7528\u6237\n<\/p>\n<h2>\n\t\u5185\u7f6e\u63d2\u4ef6<br \/>\n<\/h2>\n<p>\n\t\u5185\u7f6e\u63d2\u4ef6\u662f\u6307\u53ef\u4ee5&ldquo;\u968f\u7740\u4e3b\u7a0b\u5e8f\u53d1\u7248&rdquo;\u800c\u4e0b\u53d1\u7684\u63d2\u4ef6\uff0c\u901a\u5e38\u8fd9\u4e2a\u63d2\u4ef6\u4f1a\u653e\u5230\u4e3b\u7a0b\u5e8f\u7684Assets\u76ee\u5f55\u4e0b\u3002\n<\/p>\n<p>\n\t\u9488\u5bf9\u5185\u7f6e\u63d2\u4ef6\u800c\u8a00\uff0c\u5f00\u53d1\u8005\u53ef\u65e0\u9700\u8c03\u7528\u5b89\u88c5\u65b9\u6cd5\uff0c\u7531RePlugin\u6765&ldquo;\u6309\u9700\u5b89\u88c5&rdquo;\u3002\n<\/p>\n<p>\n\t&ldquo;\u5185\u7f6e\u63d2\u4ef6&rdquo;\u662f\u53ef\u4ee5\u88ab&ldquo;\u5347\u7ea7&rdquo;\u7684\u3002\u5347\u7ea7\u540e\u7684\u63d2\u4ef6\u7b49\u540c\u4e8e&ldquo;\u5916\u7f6e\u63d2\u4ef6&rdquo;\n<\/p>\n<h2>\n\t\u6dfb\u52a0\u5185\u7f6e\u63d2\u4ef6<br \/>\n<\/h2>\n<p>\n\t\u6dfb\u52a0\u4e00\u4e2a\u5185\u7f6e\u63d2\u4ef6\u662f\u975e\u5e38\u7b80\u5355\u7684\uff0c\u751a\u81f3\u53ef\u4ee5&ldquo;\u65e0\u9700\u4efb\u4f55Java\u4ee3\u7801&rdquo;\u3002\u53ea\u9700\u4e24\u6b65\u5373\u53ef\uff1a\n<\/p>\n<ul>\n<li>\n\t\t\u5c06APK\u6539\u540d\u4e3a\uff1a[\u63d2\u4ef6\u540d].jar\n\t<\/li>\n<li>\n\t\t\u653e\u5165\u4e3b\u7a0b\u5e8f\u7684assets\/plugins\u76ee\u5f55\n\t<\/li>\n<\/ul>\n<p>\n\t\u8fd9\u6837\uff0c\u5f53\u7f16\u8bd1\u4e3b\u7a0b\u5e8f\u65f6\uff0c\u6211\u4eec\u7684&ldquo;\u52a8\u6001\u7f16\u8bd1\u65b9\u6848&rdquo;\u4f1a\u81ea\u52a8\u5728assets\u76ee\u5f55\u4e0b\u751f\u6210\u4e00\u4e2a\u540d\u53eb&ldquo;plugins-builtin.json&rdquo;\u6587\u4ef6\uff0c\u8bb0\u5f55\u4e86\u5176\u5185\u7f6e\u63d2\u4ef6\u7684\u4e3b\u8981\u4fe1\u606f\uff0c\u65b9\u4fbf\u8fd0\u884c\u65f6\u76f4\u63a5\u83b7\u53d6\u3002\n<\/p>\n<p>\n\t\u5fc5\u987b\u6539\u6210&ldquo;[\u63d2\u4ef6\u540d].jar&rdquo;\u540e\uff0c\u624d\u80fd\u88abRePlugin-Host-Gradle\u8bc6\u522b\uff0c\u8fdb\u800c\u6210\u4e3a&ldquo;\u5185\u7f6e\u63d2\u4ef6&rdquo;\u3002\n<\/p>\n<p>\n\t[\u63d2\u4ef6\u540d]\u53ef\u4ee5\u662f&ldquo;\u5305\u540d&rdquo;\uff0c\u4e5f\u53ef\u4ee5\u662f&ldquo;\u63d2\u4ef6\u522b\u540d&rdquo;\u3002\n<\/p>\n<p>\n\t\u6709\u5173\u8fd9\u65b9\u9762\u7684\u8bf4\u660e\uff0c\u8bf7\u70b9\u51fb\u6b64\u5904\u9605\u8bfb\u300a\u63d2\u4ef6\u7684\u4fe1\u606f\u300b\u4e2d&ldquo;\u63d2\u4ef6\u547d\u540d&rdquo;\u4e00\u8282\u3002\n<\/p>\n<h2>\n\t\u5220\u9664\u5185\u7f6e\u63d2\u4ef6<br \/>\n<\/h2>\n<p>\n\t\u5220\u9664\u5185\u7f6e\u63d2\u4ef6\u975e\u5e38\u7b80\u5355\uff0c\u76f4\u63a5\u79fb\u9664\u76f8\u5e94\u7684Jar\u6587\u4ef6\uff0c\u5176\u4f59\u5747\u4ea4\u7ed9RePlugin\u6765\u81ea\u52a8\u5316\u5b8c\u6210\u3002\n<\/p>\n<p>\n\t\u6ce8\u610f\uff1a\u82e5\u7528\u6237\u5df2\u4f7f\u7528\u4e86\u5185\u7f6e\u63d2\u4ef6\uff0c\u5219\u5373\u4fbf\u7528\u6237\u5347\u7ea7\u4e3b\u7a0b\u5e8f\uff0c\u5176\u5305\u5185\u5df2\u4e0d\u5e26\u8fd9\u4e2a\u5185\u7f6e\u63d2\u4ef6\uff0c\u4f46\u7528\u6237\u4ecd\u53ef\u7ee7\u7eed\u4f7f\u7528\u5b83\n<\/p>\n<p>\n\t\u8fd9\u6837\u53ef\u9632\u6b62\u51fa\u73b0&ldquo;\u7528\u6237\u5347\u7ea7\u4e3b\u7a0b\u5e8f\u540e\uff0c\u53d1\u73b0\u5185\u7f6e\u63d2\u4ef6\u7a81\u7136\u7528\u4e0d\u4e86&rdquo;\u7684\u60c5\u51b5\u3002\n<\/p>\n<h2>\n\t\u4f7f\u7528\u5185\u7f6e\u63d2\u4ef6\u7684\u65f6\u673a<br \/>\n<\/h2>\n<p>\n\t\u4e0d\u540c\u4e8e&ldquo;\u5916\u7f6e\u63d2\u4ef6&rdquo;\u9700\u8981\u5148\u8c03\u7528 RePlugin.install \u65b9\u6cd5\u540e\u624d\u80fd\u4f7f\u7528\uff0c\u5185\u7f6e\u63d2\u4ef6\u53ef\u65e0\u9700\u8c03\u7528\u6b64\u65b9\u6cd5\u3002\u800c\u4e00\u65e6\u63d2\u4ef6\u88ab\u4f7f\u7528\uff0c\u5219RePlugin\u4f1a\u5728\u89e6\u53d1\u76f8\u5e94\u903b\u8f91\u524d\uff0c\u4e3a\u60a8\u505a\u4e0b\u5217\u64cd\u4f5c\uff1a\n<\/p>\n<ul>\n<li>\n\t\t\u5c06\u5185\u7f6e\u63d2\u4ef6\u91ca\u653e\u5230\u6570\u636e\u76ee\u5f55\u4e0b\uff08\u8fd1\u4f3c\u4e8e\u8c03\u7528install\u65b9\u6cd5\uff09\n\t<\/li>\n<li>\n\t\t\u82e5\u9700\u8981\u52a0\u8f7dDex\uff0c\u5219\u8fd8\u4f1a\u91ca\u653e&ldquo;\u4f18\u5316\u540e\u7684Dex&rdquo;\u5230\u6570\u636e\u76ee\u5f55\u4e0b\uff0c\u8fd9\u53ef\u80fd\u4f1a\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\n\t<\/li>\n<\/ul>\n<p>\n\t\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f\uff0c\u4e0d\u4f1a\u5360\u7528\u592a\u591a\u7684&ldquo;\u5185\u90e8\u5b58\u50a8\u7a7a\u95f4&rdquo;\uff0c\u6bd5\u7adf\u4e0d\u662f\u6240\u6709\u5185\u7f6e\u63d2\u4ef6\uff0c\u90fd\u4e00\u5b9a\u4f1a\u88ab\u7528\u5230\u3002\n<\/p>\n<h2>\n\t\u5185\u7f6e\u63d2\u4ef6\u7684\u5347\u7ea7<br \/>\n<\/h2>\n<p>\n\t\u5185\u7f6e\u63d2\u4ef6\u7684\u5347\u7ea7\u5206\u4e3a\u4e24\u79cd\u60c5\u51b5\uff1a\u4e3b\u7a0b\u5e8f\u968f\u5305\u5347\u7ea7\u3001\u901a\u8fc7install\u65b9\u6cd5\u5347\u7ea7\n<\/p>\n<ul>\n<li>\n\t\t\u4e3b\u7a0b\u5e8f\u968f\u5305\u5347\u7ea7\uff1a\u5f53\u7528\u6237\u5347\u7ea7\u4e86\u5e26&ldquo;\u65b0\u7248\u672c\u5185\u7f6e\u63d2\u4ef6&rdquo;\u7684\u4e3b\u7a0b\u5e8f\u65f6\uff0c\u5219RePlugin\u4f1a\u5728\u4f7f\u7528\u63d2\u4ef6\u524d\u5148\u505a\u5347\u7ea7\n\t<\/li>\n<li>\n\t\t\u901a\u8fc7install\u65b9\u6cd5\u5347\u7ea7\uff1a\u82e5\u901a\u8fc7 RePlugin.install \u65b9\u6cd5\u505a\u7684\u5347\u7ea7\uff08\u5927\u591a\u4e3a\u7528\u6237\u4ece\u670d\u52a1\u5668\u4e0a\u4e0b\u8f7d\u5e76\u66f4\u65b0\uff09\uff0c\u5219RePlugin\u5728\u8c03\u7528install\u65b9\u6cd5\u65f6\u5f00\u59cb\u505a\u5347\u7ea7\u3002\u5f53\u7136\uff0c\u5176\u89c4\u5219\u4ecd\u9075\u5faa\u5b89\u88c5\u63d2\u4ef6\u7684\u89c4\u5219\uff0c\u4f8b\u5982&ldquo;\u63d2\u4ef6\u8fd0\u884c\u65f6\u5148\u4e0d\u8986\u76d6&rdquo;\u7b49\u3002\n\t<\/li>\n<\/ul>\n<p>\n\t\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u65e0\u8bba\u91c7\u7528\u4f55\u79cd\u65b9\u5f0f\uff0c\u5747&ldquo;\u4e0d\u652f\u6301\u964d\u7ea7&rdquo;\uff0c\u4f46\u652f\u6301&ldquo;\u540c\u7248\u672c\u8986\u76d6&rdquo;\u5347\u7ea7\uff0c\u4e5f\u5373\uff1a\n<\/p>\n<ul>\n<li>\n\t\t\u5185\u7f6e\u63d2\u4ef6\uff1a\u53ea\u8981APK\u7684\u65f6\u95f4\u6233\u548c\u5927\u5c0f\u53d1\u751f\u53d8\u5316\u5c31\u5347\u7ea7\uff0c\u82e5\u4e24\u8005\u5747\u65e0\u53d8\u5316\uff0c\u5219\u4e0d\u4f1a\u5347\u7ea7\u3002\uff08\u5728 RePlugin 2.2.0\u7248\u672c\u4e2d\u5f00\u59cb\u652f\u6301)\n\t<\/li>\n<li>\n\t\t\u5916\u7f6e\u63d2\u4ef6\uff1a\u53ea\u8981\u8c03\u7528 RePlugin.install \u65b9\u6cd5\u5373\u53ef\u5c06&ldquo;\u5185\u7f6e\u63d2\u4ef6&rdquo;\u8f6c\u5316\u4e3a&ldquo;\u5916\u7f6e\u63d2\u4ef6&rdquo;\u3002\u540c\u6837\u7684\uff0c\u9700\u9075\u5faa\u5b89\u88c5\u63d2\u4ef6\u89c4\u5219\u3002\n\t<\/li>\n<\/ul>\n<h2>\n\t\u6700\u4f73\u5b9e\u8df5<br \/>\n<\/h2>\n<p>\n\t\u4ee5\u4e0b\u4e3a360\u624b\u673a\u536b\u58eb\u6216\u5176\u5b83\u5408\u4f5cApp\u91c7\u7528\u7684\u8bbe\u8ba1\uff0c\u53ef\u4f9b\u60a8\u53c2\u8003\uff1a\n<\/p>\n<p>\n\t\u9700\u63a7\u5236&ldquo;\u5185\u7f6e\u63d2\u4ef6&rdquo;\u7684\u6570\u91cf\uff0c\u56e0\u4e3a\u4f1a\u5360\u7528\u4e3b\u7a0b\u5e8fAPK\u7684\u5927\u5c0f<br \/>\n\t\u6bd4\u8f83\u9002\u5408\u6210\u4e3a&ldquo;\u5185\u7f6e\u63d2\u4ef6&rdquo;\u7684\u6709\uff1a<br \/>\n\t\u6838\u5fc3\u4e1a\u52a1\u63d2\u4ef6\uff1a\u6ca1\u6709\u5b83\u5c31\u7b49\u4e8e&ldquo;\u6838\u5fc3\u529f\u80fd\u7f3a\u5931&rdquo;\u3002\u6bd4\u5982360\u624b\u673a\u536b\u58eb\u7684&ldquo;\u9996\u9875\u4f53\u68c0&rdquo;\u3001&ldquo;\u6e05\u7406&rdquo;\u63d2\u4ef6\u7b49<br \/>\n\t\u57fa\u7840\u63d2\u4ef6\uff1a\u5404\u63d2\u4ef6\u90fd\u9700\u8981\u7528\u5230\uff0c\u4e14\u4e3a\u5fc5\u987b\u7684\u3002\u6bd4\u5982&ldquo;\u5b89\u5168WebView&rdquo;\u3001&ldquo;\u4e0b\u8f7d&rdquo;\u63d2\u4ef6\u7b49<br \/>\n\t\u542f\u52a8\u65f6\u5fc5\u5907\u63d2\u4ef6\uff1a\u660e\u786e\u8981\u5728\u542f\u52a8\u65f6\u8981\u7528\u5230\u7684\u529f\u80fd\u3002\u6bd4\u5982360\u624b\u673a\u536b\u58eb\u7684&ldquo;Push&rdquo;\u3001&ldquo;\u5e38\u9a7b\u670d\u52a1\u7ba1\u7406&rdquo;\u7b49<br \/>\n\t\u53ef\u5c06\u4e00\u4e9b\u542f\u52a8\u65f6\u5fc5\u987b\u8981\u52a0\u8f7d\u7684\uff0c\u4ee5\u53ca\u7ecf\u5e38\u8981\u7528\u5230\u7684\u5185\u7f6e\u63d2\u4ef6\u505a\u4e00\u6b21&ldquo;\u9884\u52a0\u8f7d&rdquo;\u3002\u5177\u4f53\u505a\u6cd5\uff1a\n<\/p>\n<pre class=\"brush:java;\">\r\nRePlugin.preload(&quot;exam&quot;);\r\n<\/pre>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1603\">RePlugin\u63d2\u4ef6\u7684\u7ba1\u7406<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u65e0\u8bba\u662f\u63d2\u4ef6\u8fd8\u662f\u4e3b\u7a0b\u5e8f\uff0c\u90fd\u53ef\u4ee5\u5bf9\u81ea\u5df1\u548c\u5176\u5b83\u63d2\u4ef6\u505a\u76f8\u5e94\u7684\u63d2\u4ef6\u7ba1\u7406\u5de5\u4f5c\u3002 \u8fd9\u7bc7\u6587\u6863\u4e3b\u8981\u8bb2\u89e3\u6709\u5173\u63d2\u4ef6\u7ba1\u7406\u65b9\u9762\u7684\u57fa\u672c\u7528\u6cd5 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1319,1338,1340,1339,763],"class_list":["post-1603","post","type-post","status-publish","format-standard","hentry","category-java","tag-replugin","tag-1340","tag-1339","tag-763"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1603"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1603\/revisions"}],"predecessor-version":[{"id":1604,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1603\/revisions\/1604"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}