Android APK 文件的内容是什么 [英] What are the contents of an Android APK file
问题描述
- APK 文件的组成部分是什么?
- 它只是一堆可执行文件吗?
- 组件的名称是什么?
推荐答案
一个 APK 文件是一个存档,通常包含以下文件夹:
An APK file is an archive that usually contains the following folders:
META-INF 目录:
- MANIFEST.MF:清单文件
- CERT.RSA:应用程序的证书.
CERT.SF:资源列表和对应的 SHA-1 摘要MANIFEST.MF 文件中的行;例如:
- MANIFEST.MF: the Manifest file
- CERT.RSA: The certificate of the application.
CERT.SF: The list of resources and SHA-1 digest of the corresponding lines in the MANIFEST.MF file; for example:
Signature-Version: 1.0
Created-By: 1.0 (Android) SHA1-Digest-Manifest:
wxqnEAI0UA5nO5QJ8CGMwjkGGWE=
...
Name: res/layout/exchange_component_back_bottom.xml SHA1-Digest:
eACjMjESj7Zkf0cBFTZ0nqWrt7w=
...
Name: res/drawable-hdpi/icon.png
SHA1-Digest: DGEqylP8W0n0iV/ZzBx3MW0WGCA=
lib:包含特定于某个程序的已编译代码的目录处理器的软件层,文件夹被拆分成多个文件夹其中:
lib: the directory containing the compiled code that is specific to a software layer of a processor, the folder is split into more folders within it:
- armeabi:仅适用于所有基于 ARM 的处理器的编译代码
- armeabi-v7a:为所有基于 ARMv7 及更高版本的处理器编译的代码只有
- x86:仅适用于 x86 处理器的编译代码
- mips:仅适用于 MIPS 处理器的编译代码
res:包含未编译到的资源的目录资源.arsc.
res: the directory containing resources not compiled into resources.arsc .
assets:包含应用程序资产的目录,可以是由 AssetManager 检索.
assets: a directory containing applications assets, which can be retrieved by AssetManager.
AndroidManifest.xml:一个额外的 Android 清单文件,描述名称、版本、访问权限、引用的库文件应用.这个文件可能是在 Android 二进制 XML 中,可以使用工具转换为人类可读的纯文本 XML,例如AXMLPrinter2、apktool 或 Androguard.
AndroidManifest.xml: An additional Android manifest file, describing the name, version, access rights, referenced library files for the application. This file may be in Android binary XML that can be converted into human-readable plaintext XML with tools such as AXMLPrinter2, apktool, or Androguard.
classes.dex:以dex文件格式编译的类Dalvik 虚拟机可以理解
classes.dex: The classes compiled in the dex file format understandable by the Dalvik virtual machine
resources.arsc :包含预编译资源的文件,例如例如二进制 XML.
resources.arsc : a file containing pre-compiled resources, such as binary XML for example.
这篇关于Android APK 文件的内容是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!