{"id":4445,"date":"2023-09-07T15:08:39","date_gmt":"2023-09-07T07:08:39","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=4445"},"modified":"2023-09-07T15:08:39","modified_gmt":"2023-09-07T07:08:39","slug":"android%e5%bc%80%e5%8f%91%e4%b8%adapk%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/4445\/","title":{"rendered":"android\u5f00\u53d1\u4e2dapk\u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"

APK\u662fAndroid Package\u7684\u7f29\u5199\uff0c\u662fAndroid\u624b\u673a\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u88c5\u5305\u6587\u4ef6\u3002\u5b83\u662f\u4e00\u79cd\u7ecf\u8fc7\u7f16\u8bd1\u548c\u538b\u7f29\u7684\u6587\u4ef6\uff0c\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u5fc5\u8981\u7ec4\u4ef6\u548c\u8d44\u6e90\uff0c\u5982\u4ee3\u7801\u3001\u56fe\u7247\u3001\u5e03\u5c40\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u3001\u5e93\u6587\u4ef6\u7b49\u3002APK\u6587\u4ef6\u53ef\u4ee5\u5728\u5b89\u88c5\u5230Android\u8bbe\u5907\u4e4b\u524d\u8fdb\u884c\u4e0b\u8f7d\u3001\u4f20\u8f93\u548c\u5206\u4eab\u3002<\/p>\n

\u4e00\u4e2aAPK\u6587\u4ef6\u901a\u5e38\u7531\u4ee5\u4e0b\u51e0\u4e2a\u4e3b\u8981\u7ec4\u6210\u90e8\u5206\u6784\u6210\uff1a<\/p>\n

1. AndroidManifest.xml\uff1a\u8fd9\u662fAPK\u7684\u6839\u6587\u4ef6\uff0c\u5b83\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u4fe1\u606f\uff0c\u5982\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0\u3001\u5165\u53e3Activity\u7c7b\u3001\u6743\u9650\u7b49\u3002\u7cfb\u7edf\u4f1a\u901a\u8fc7\u89e3\u6790\u8be5\u6587\u4ef6\u6765\u83b7\u53d6\u5e94\u7528\u7a0b\u5e8f\u7684\u7ec4\u4ef6\u4fe1\u606f\u3002<\/p>\n

2. classes.dex\uff1a\u8fd9\u662fDalvik\u865a\u62df\u673a\uff08\u73b0\u5728\u5219\u662fART\u865a\u62df\u673a\uff09\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684Java\u4ee3\u7801\u3002\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0cJava\u4ee3\u7801\u4f1a\u88ab\u7f16\u8bd1\u6210.dex\u683c\u5f0f\u7684\u5b57\u8282\u7801\uff0c\u5e76\u5c06\u8fd9\u4e9b\u5b57\u8282\u7801\u6253\u5305\u5728classes.deapktool m \u6253\u5305<\/a>x\u6587\u4ef6\u4e2d\u3002<\/p>\n

3. \u8d44\u6e90\u6587\u4ef6\uff1aAPK\u6587\u4ef6\u4e2d\u8fd8\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u5404\u79cd\u8d44\u6e90\u6587\u4ef6\uff0c\u5982\u56fe\u7247\u3001\u5e03\u5c40\u6587\u4ef6\u3001\u52a8\u753b\u6587\u4ef6\u3001\u97f3\u9891\u6587\u4ef6\u7b49\u3002\u8fd9\u4e9b\u8d44\u6e90\u6587\u4ef6\u901a\u8fc7\u8d44\u6e90ID\u4e0e\u5e94\u7528\u7a0b\u5e8f\u7684\u4ee3\u7801\u8fdb\u884c\u5173\u8054\u3002<\/p>\n

4. lib\u6587\u4ef6\u5939\uff1a\u8be5\u6587\u4ef6\u5939\u4e2d\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u5e93\u6587\u4ef6\uff0c\u5982\u7b2c\u4e09\u65b9\u5e93\u3001\u672c\u5730\u5e93\u7b49\u3002\u4e0d\u540c\u7684\u8bbe\u5907\u67b6\u6784\u53ef\u80fd\u9700\u8981\u4e0d\u540c\u7684\u5e93\u6587\u4ef6\uff0c\u56e0\u6b64lib\u6587\u4ef6\u5939\u901a\u5e38\u5305\u542b\u591a\u4e2a\u5b50\u6587\u4ef6\u5939\uff0c\u6bcf\u4e2a\u5b50\u6587\u4ef6\u5939\u5bf9\u5e94\u4e00\u79cd\u8bbe\u5907\u67b6\u6784\u3002<\/p>\n

5. assets\u6587\u4ef6\u5939\uff1a\u8be5\u6587\u4ef6\u5939\u4e2d\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u539f\u59cb\u8d44\u6e90\u6587\u4ef6\uff0c\u5982\u6570\u636e\u5e93\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u7b49\u3002\u8fd9\u4e9b\u6587\u4ef6\u5e76\u4e0d\u4f1a\u88ab\u7f16\u8bd1\uff0c\u800c\u662f\u4ee5\u539f\u59cb\u7684\u5f62\u5f0f\u5b58\u5728\u4e8eAPK\u6587\u4ef6\u4e2d\u3002<\/p>\n

APK\u6587\u4ef6\u7684\u751f\u6210\u8fc7\u7a0b\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n

1. \u7f16\u5199\u4ee3\u7801\uff1a\u5f00\u53d1\u8005\u4f7f\u7528Java\u8bed\u8a00\u7f16\u5199\u5e94\u7528\u7a0b\u5e8f\u7684\u903b\u8f91\u548c\u529f\u80fd\u3002<\/p>\n

2. \u7f16\u8bd1\u4ee3\u7801\uff1a\u4f7f\u7528Java\u7f16\u8bd1\u5668\u5c06Java\u6e90\u4ee3\u7801\u7f16\u8bd1\u6210\u5bf9\u5e94\u7684.class\u5b57\u8282\u7801\u6587\u4ef6\u3002<\/p>\n

3. \u8f6c\u6362\u4e3a.dex\u6587\u4ef6\uff1a\u4f7f\u7528Android\u7684\u5de5\u5177\u5c06.class\u5b57\u8282\u7801\u6587\u4ef6\u8f6c\u6362\u4e3a.dex\u683c\u5f0f\u7684Dalvik\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n

4. \u6253\u5305\u8d44\u6e90\u6587\u4ef6\uff1a\u5c06\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u6240\u6709\u8d44\u6e90\u6587\u4ef6\uff08\u5982\u56fe\u7247\u3001\u5e03\u5c40\u6587\u4ef6\u7b49\uff09\u6253\u5305\u6210\u4e8c\u8fdb\u5236\u683c\u5f0f\uff0c\u5e76\u751f\u6210\u5bf9\u5e94\u7684\u8d44\u6e90ID\u3002<\/p>\n

5. \u751f\u6210APK\u6587\u4ef6\uff1a\u5c06Manifest\u6587\u4ef6\u3001dex\u6587\u4ef6\u3001\u8d44\u6e90\u6587\u4ef6\u3001\u5e93\u6587\u4ef6\u7b49\u6253\u5305\u5230\u4e00\u4e2a\u538b\u7f29\u6587\u4ef6\u4e2d\uff0c\u5e76\u547d\u540d\u4e3a.apk\u540e\u7f00\u3002<\/p>\n

APK\u6587\u4ef6\u7684\u5b89\u88c5\u548c\u8fd0\u884c\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n

1. \u4e0b\u8f7dAPK\u6587\u4ef6\uff1a\u7528\u6237\u901a\u8fc7\u5404\u79cd\u6e20\u9053\u4e0b\u8f7dAPK\u6587\u4ef6\u5230\u672c\u5730\u8bbe\u5907\uff0c\u5982\u901a\u8fc7\u5e94\u7528\u5546\u5e97\u3001\u7b2c\u4e09\u65b9\u7f51\u7ad9\u7b49\u3002<\/p>\n

2. \u5b89\u88c5APK\u6587\u4ef6\uff1a\u7528\u6237\u70b9\u51fbAPK\u6587\u4ef6\u8fdb<\/p>\n

<\/figure>\n<\/p>\n

\u884c\u5b89\u88c5\uff0c\u7cfb\u7edf\u4f1a\u89e3\u6790APK\u6587\u4ef6\u4e2d\u7684Manifest\u6587\u4ef6\uff0c\u5e76\u6839\u636eManifest\u6587\u4ef6\u4e2d\u7684\u4fe1\u606f\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u7684\u7ec4\u4ef6\uff0c\u5982Activity\u3001Service\u3001Broadcast Receiver\u7b49\u3002<\/p>\n

3. \u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\uff1a\u5b8c\u6210\u5b89\u88c5\u540e\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u624b\u673a\u684c\u9762\u6216\u5e94\u7528\u83dc\u5355\u4e2d\u627e\u5230\u5e94\u7528\u7a0b\u5e8f\u7684\u56fe\u6807\uff0c\u70b9\u51fb\u56fe\u6807\u5c31\u53ef\u4ee5\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u603b\u7ed3\uff1aAPK\u6587\u4ef6\u662fAnapk\u5236\u4f5c\u5168\u8fc7\u7a0b<\/a>droid\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u88c5\u5305\u6587\u4ef6\uff0c\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u5fc5\u8981\u7ec4\u4ef6\u548c\u8d44\u6e90\u3002\u5b83\u662f\u901a\u8fc7\u7f16\u8bd1\u3001\u6253\u5305\u548c\u538b\u7f29\u591a\u4e2a\u6587\u4ef6\u7ec4\u6210\u7684\uff0c\u5176\u4e2d\u5305\u62ec\u5e94\u7528\u7a0b\u5e8f\u7684\u4ee3\u7801\u3001\u8d44\u6e90\u6587\u4ef6\u3001\u5e93\u6587\u4ef6\u7b49\u3002\u901a\u8fc7\u4e0b\u8f7d\u548c\u5b89\u88c5APK\u6587\u4ef6\uff0c\u7528\u6237\u53ef\u4ee5\u5728Android\u8bbe\u5907\u4e0a\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

APK\u662fAndroid Package\u7684\u7f29\u5199\uff0c\u662fAndroid\u624b\u673a\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u88c5\u5305\u6587\u4ef6\u3002\u5b83\u662f\u4e00\u79cd\u7ecf\u8fc7\u7f16\u8bd1\u548c\u538b\u7f29\u7684\u6587\u4ef6\uff0c\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u5fc5\u8981\u7ec4\u4ef6\u548c\u8d44\u6e90\uff0c\u5982\u4ee3\u7801\u3001\u56fe\u7247\u3001\u5e03\u5c40\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u3001\u5e93\u6587\u4ef6\u7b49\u3002<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[8601,12,8600,16,414],"topic":[],"class_list":["post-4445","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-eclipse-apk","tag-12","tag-apk","tag-16","tag-414"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/4445","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=4445"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/4445\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=4445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=4445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=4445"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=4445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}