问题描述
- 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 correspondinglines 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 :包含特定于Windows的已编译代码的目录处理器的软件层,该文件夹分为多个文件夹在其中:
lib: the directory containing the compiled code that is specific to asoftware layer of a processor, the folder is split into more folderswithin it:
- armeabi:仅适用于所有基于ARM的处理器的编译代码
- armeabi-v7a:适用于所有基于ARMv7及更高版本的处理器的编译代码仅
- x86:仅适用于x86处理器的编译代码
- mips:仅适用于MIPS处理器的编译代码
- armeabi: compiled code for all ARM based processors only
- armeabi-v7a: compiled code for all ARMv7 and above based processorsonly
- x86: compiled code for x86 processors only
- mips: compiled code for MIPS processors only
res :包含未编译到其中的资源的目录resources.arsc.
res: the directory containing resources not compiled intoresources.arsc .
资产:包含应用程序资产的目录,可以是由AssetManager检索.
assets: a directory containing applications assets, which can beretrieved by AssetManager.
AndroidManifest.xml :另一个Android清单文件,描述了的名称,版本,访问权限,引用的库文件应用.此文件可能是Android二进制XML,可以是使用以下工具将其转换为人类可读的纯文本XMLAXMLPrinter2,apktool或Androguard.
AndroidManifest.xml: An additional Android manifest file, describingthe name, version, access rights, referenced library files for theapplication. This file may be in Android binary XML that can beconverted into human-readable plaintext XML with tools such asAXMLPrinter2, apktool, or Androguard.
classes.dex :以dex文件格式编译的类Dalvik虚拟机可以理解
classes.dex: The classes compiled in the dex file formatunderstandable by the Dalvik virtual machine
resources.arsc :包含预编译资源的文件,例如例如二进制XML.
resources.arsc : a file containing pre-compiled resources, such asbinary XML for example.
这篇关于Android APK文件的内容是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!