\u5b89\u5353\u8f6f\u4ef6\u6253\u5305\u7b7e\u540d\u5de5\u5177<\/a>ner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name`<\/p>\n – \u6309\u7167\u63d0\u793a\u8f93\u5165\u5bc6\u94a5\u5e93\u6587\u4ef6\u7684\u5bc6\u7801\u3002<\/p>\n
3. \u4f7f\u7528zipalign\u5de5\u5177\u8fdb\u884c\u5bf9\u9f50\u64cd\u4f5c\uff1a<\/p>\n
– \u4f7f\u7528zipalign\u5de5\u5177\u5bf9APK\u6587\u4ef6\u8fdb\u884c\u4f18\u5316\uff1a <\/p>\n
`zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk`<\/p>\n
\u5728\u6267\u884c\u8fd9\u4e9b\u6b65\u9aa4\u540e\uff0c\u60a8\u5e94\u8be5\u83b7\u5f97\u4e00\u4e2a\u5177\u6709\u6709\u6548\u6570\u5b57\u7b7e\u540d\u7684APK\u6587\u4ef6\u3002\u5c1d\u8bd5\u5b89\u88c5\u6b64\u6587\u4ef6\uff0c\u5e94\u7528\u7a0b\u5e8f\u5c06\u4e0d\u518d\u95ea\u9000\u3002<\/p>\n
\u53e6\u5916\uff0c\u5982\u679c\u60a8\u5728\u4f7f\u7528apktool\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ea\u9000\u95ee\u9898\uff0c\u8fd8\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n
1. \u66f4\u65b0apktool\u7248\u672c\uff1a\u786e\u4fdd\u60a8\u4f7f\u7528\u7684\u662f\u6700\u65b0\u7248\u672c\u7684apktool\uff0c\u4ee5\u83b7\u5f97\u6700\u65b0\u7684\u4fee\u590d\u548c\u6539\u8fdb\u3002<\/p>\n
2. \u68c0\u67e5APK\u6587\u4ef6\u7684\u7ed3\u6784\uff1a\u4f7f\u7528apktool\u89e3\u5305\u548c\u7f16\u8bd1APK\u6587\u4ef6\u4e4b\u524d\uff0c\u4f7f\u7528aapt\u5de5\u5177\u68c0\u67e5APK\u6587\u4ef6\u7684\u7ed3\u6784\u662f\u5426\u6b63\u786e\u3002\u5982\u679c\u5176\u4e2d\u5b58\u5728\u9519\u8bef\u6216\u635f\u574f\u7684\u8d44\u6e90\u6587\u4ef6\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u95ea\u9000\u95ee\u9898\u3002<\/p>\n
3. \u68c0\u67e5\u5e94\u7528\u7a0b\u5e8f\u4f9d\u8d56\uff1a\u5e94\u7528\u7a0b\u5e8f\u53ef\u80fd\u4f9d\u8d56\u4e8e\u67d0\u4e9b\u5e93\u6216\u6846\u67b6\u3002\u5728<\/p>\n
<\/figure>\n<\/p>\n\u8fdb\u884c\u53cd\u7f16\u8bd1\u548c\u91cd\u65b0\u7f16\u8bd1\u4e4b\u524d\uff0c\u786e\u4fdd\u8fd9\u4e9b\u4f9d\u8d56\u9879\u6b63\u786e\u914d\u7f6e\u548c\u5f15\u5165\u3002<\/p>\n
4. \u5206\u6b65\u64cd\u4f5c\uff1a\u5c06APK\u6587\u4ef6\u7684\u89e3\u5305\u548c\u91cd\u65b0\u7f16\u8bd1\u5206\u4e3a\u591a\u4e2a\u6b65\u9aa4\u8fdb\u884c\u3002\u9996\u5148\uff0c\u89e3\u5305APK\u6587\u4ef6\u5e76\u68c0\u67e5\u8d44\u6e90\u548c\u4ee3\u7801\u662f\u5426\u6b63\u786e\u3002\u7136\u540e\uff0c\u5c1d\u8bd5\u7f16\u8bd1APK\u6587\u4ef6\uff0c\u5e76\u9a8c\u8bc1\u751f\u6210\u7684APK\u662f\u5426\u53ef\u4ee5\u6b63\u5e38\u5b89\u88c5\u548c\u8fd0\u884c\u3002\u901a\u8fc7\u9010\u6b65\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u66f4\u5bb9\u6613\u5730\u5b9a\u4f4d\u548c\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n
\u603b\u7ed3\u800c\u8a00\uff0capktool\u7b7e\u540d\u540e\u95ea\u9000\u7684\u95ee\u9898\u901a\u5e38\u662f\u7531\u4e8e\u7f3a\u4e4f\u6709\u6548\u7684\u6570\u5b57\u7b7e\u540d\u6240\u5bfc\u81f4\u7684\u3002\u901a\u8fc7\u91cd\u65b0\u7b7e\u540dAPK\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u89e3\u51b3\u6b64\u95ee\u9898\u3002\u53e6\u5916\uff0c\u8fd8\u5e94\u6ce8\u610fAPK\u6587\u4ef6\u7684\u7ed3\u6784\u548c\u5e94\u7528\u7a0b\u5e8f\u4f9d\u8d56\uff0c\u5e76\u9010\u6b65\u68c0\u67e5\u548c\u9a8c\u8bc1APK\u6587\u4ef6\u7684\u53cd\u7f16\u8bd1\u548c\u91cd\u65b0\u7f16\u8bd1\u8fc7\u7a0b\uff0c\u4ee5\u89e3\u51b3\u5176\u4ed6\u6f5c\u5728\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
apktool\u662f\u4e00\u6b3e\u5f00\u6e90\u5de5\u5177\uff0c\u7528\u4e8e\u53cd\u7f16\u8bd1\u548c\u7f16\u8bd1Android\u5e94\u7528\u7a0b\u5e8f\u7684APK\u6587\u4ef6\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u7814\u7a76\u548c\u4e86\u89e3\u5e94\u7528\u7a0b\u5e8f\u7684\u5185\u90e8\u7ed3\u6784\u548c\u6e90\u4ee3\u7801\u3002\u7136\u800c\uff0c\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5728\u5bf9APK\u6587\u4ef6\u8fdb\u884c\u53cd\u7f16\u8bd1\u548c\u91cd\u65b0\u7f16\u8bd1\u540e\uff0c\u5e94\u7528\u7a0b<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[6438,6439,12,820,16],"topic":[],"class_list":["post-3176","post","type-post","status-publish","format-standard","hentry","category-appzs","tag-apk","tag-6439","tag-12","tag-820","tag-16"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/3176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=3176"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/3176\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=3176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=3176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=3176"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=3176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}