apk\u4e0d\u7b7e\u540d\u6253\u5305<\/a>\u5305\u542b\u4e86\u4e00\u4e2a\u6216\u591a\u4e2a\u5bc6\u94a5\u5bf9\u7684\u5bb9\u5668\uff0c\u7528\u4e8e\u6570\u5b57\u7b7e\u540d\u6587\u4ef6\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210\u5bc6\u94a5\u5e93\uff1a<\/p>\n “`<\/p>\n
keytool -genkey -alias myalias -keyalg RSA -keystore mykeystore.jks<\/p>\n
“`<\/p>\n
\u5728\u6267\u884c\u547d\u4ee4\u540e\uff0c\u6309\u7167\u63d0\u793a\u8f93\u5165\u76f8\u5173\u4fe1\u606f\uff0c\u5305\u62ec\u5bc6\u94a5\u5e93\u7684\u5bc6\u7801\u3001\u522b\u540d\u3001\u5bc6\u7801\u7b49\u7b49\u3002<\/p>\n
2. \u751f\u6210\u5bc6\u94a5\u5e93\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528jarsigner\u547d\u4ee4\u5bf9\u53cd\u7f16\u8bd1\u540e\u7684\u5e94\u7528\u8fdb\u884c\u7b7e\u540d\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n
“`<\/p>\n
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore mykeystore.jks app_name\/dist\/app_name.apk myalias<\/p>\n
“`<\/p>\n
\u5176\u4e2d\uff0cmykeystore.jks\u662f\u5bc6\u94a5\u5e93\u6587\u4ef6\uff0capp_name.apk\u662f\u8981\u7b7e\u540d\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n
3. \u8f93\u5165\u5bc6\u94a5\u5e93\u5bc6\u7801\u548c\u522b\u540d\u5bc6\u7801\uff0c\u7b7e\u540d\u8fc7\u7a0b\u4f1a\u8fdb\u884c\uff0c\u7a0d\u7b49\u7247\u523b\u540e\uff0c\u7b7e\u540d\u6210\u529f\u3002<\/p>\n
\u5b8c\u6210\u7b7e\u540d\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5e94\u7528\u5b89\u88c5\u5230Android\u8bbe\u5907\u4e0a\u8fdb\u884c\u6d4b\u8bd5\u8c03\u8bd5\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e3a\u4e86\u5728\u7b7e\u540d\u540e\u4ecd\u7136\u4f7f\u5e94\u7528\u80fd\u591f\u5728\u8bbe\u5907\u4e0a\u8fd0\u884c\uff0c\u7b7e\u540d\u5bc6\u94a5\u5e93\u4e2d\u7684\u522b\u540d\u5fc5\u987b\u4e0e\u5e94\u7528\u53d1\u5e03\u65f6\u4f7f\u7528\u7684\u522b\u540d\u76f8\u540c\u3002<\/p>\n
\u82e5\u5728\u8fdb\u884c\u7b7e\u540d\u65f6\u9047\u5230\u4e86\u95ee\u9898\uff0c\u53ef\u4ee5\u8fdb\u884c\u4ee5\u4e0b\u6392\u67e5\u548c\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n
1. \u68c0\u67e5\u5bc6\u94a5\u5e93\u548c\u5e94\u7528\u540d\u79f0\u662f\u5426\u6b63\u786e\uff0c\u786e\u4fdd\u6ca1\u6709\u62fc\u5199\u9519\u8bef\u3002<\/p>\n
2. \u786e\u4fddkeytool\u548cjarsigner\u5de5\u5177\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\uff0c\u5e76\u4e14\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\u548c\u914d\u7f6e\u4e86Java\u5f00\u53d1\u73af\u5883\u3002<\/p>\n
3. \u68c0\u67e5\u5bc6\u94a5\u5e93\u5bc6\u7801\u548c\u522b\u540d\u5bc6\u7801\u662f\u5426\u6b63\u786e\uff0c\u786e\u4fdd\u6ca1\u6709\u8f93\u5165\u9519\u8bef\u3002<\/p>\n
4. \u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u6ca1\u6709\u88ab\u5176\u4ed6\u8fdb\u7a0b\u4f7f\u7528\uff0c\u5426\u5219\u7b7e\u540d\u53ef\u80fd\u4f1a\u5931\u8d25\u3002<\/p>\n
5. \u5982\u679c\u95ee\u9898\u4ecd\u7136\u5b58\u5728\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u91cd\u65b0\u751f\u6210\u5bc6\u94a5\u5e93\uff0c\u5e76\u91cd\u65b0\u6267\u884c\u7b7e\u540d\u8fc7\u7a0b\u3002<\/p>\n
\u603b\u4e4b\uff0capktool\u4e0d\u5177\u5907\u7b7e\u540d\u529f\u80fd\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u5de5\u5177\u6765\u5b8c\u6210\u7b7e\u540d\u8fc7\u7a0b\u3002\u901a\u8fc7\u5bc6\u94a5\u5e93\u548cjarsigner\u547d\u4ee4\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5bf9\u53cd\u7f16\u8bd1\u540e\u7684\u5e94\u7528\u8fdb\u884c\u7b7e\u540d\uff0c\u4f7f\u5176\u80fd\u591f\u5728Android\u8bbe\u5907\u4e0a\u8fdb\u884c\u6d4b\u8bd5\u548c\u53d1\u5e03\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
apktool\u662f\u4e00\u6b3e\u7528\u4e8e\u53cd\u7f16\u8bd1\u548c\u7f16\u8bd1Android\u5e94\u7528\u7a0b\u5e8f\u7684\u5de5\u5177\uff0c\u5728\u8fdb\u884c\u53cd\u7f16\u8bd1\u540e\uff0c\u6211\u4eec\u5f80\u5f80\u9700\u8981\u5bf9\u5e94\u7528\u8fdb\u884c\u91cd\u65b0\u7b7e\u540d\u624d\u80fd\u8fdb\u884c\u8c03\u8bd5\u6216\u4fee\u6539\u3002apktool\u672c\u8eab\u4e0d\u5177\u5907\u7b7e\u540d\u7684\u529f\u80fd\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u501f\u52a9\u5176\u4ed6\u5de5\u5177\u6765\u5b8c\u6210<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[6310,7957,7958,250,41],"topic":[],"class_list":["post-4076","post","type-post","status-publish","format-standard","hentry","category-appzhengshu","tag-6310","tag-7957","tag-7958","tag-250","tag-41"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/4076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/comments?post=4076"}],"version-history":[{"count":0,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/4076\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/media?parent=4076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/categories?post=4076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/tags?post=4076"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/topic?post=4076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}