Android APK文件的内容是什么 [英] What are the contents of an Android APK file

查看:215
本文介绍了Android APK文件的内容是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 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 :包含特定于Windows的已编译代码的目录 处理器的软件层,该文件夹分为多个文件夹 在其中:

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处理器的编译代码
  • armeabi: compiled code for all ARM based processors only
  • armeabi-v7a: compiled code for all ARMv7 and above based processors only
  • x86: compiled code for x86 processors only
  • mips: compiled code for MIPS processors only

res :包含未编译到其中的资源的目录 resources.arsc.

res: the directory containing resources not compiled into resources.arsc .

资产:包含应用程序资产的目录,可以是 由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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆