What is the contents of the APK file for Android

  • What are the components of the apk file?
  • Is this just a bunch of executable file?
  • What are the names of the components?
+7
android apk
source share
4 answers

An APK file is an archive that usually contains the following folders:

  • META-INF Catalog :

    • MANIFEST.MF: manifest file
    • CERT.RSA: Application Certificate.
    • CERT.SF: resource list and SHA-1 digest of the corresponding line in the MANIFEST.MF file; eg:

      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 : the directory containing the compiled code specific to the program level of the processor, the folder is divided into several folders inside it:

    • armeabi: compiled code for all ARM-based processors
    • armeabi-v7a: compiled code for all ARMv7 processors and higher only
    • x86: only compiled code for x86 processors
    • mips: compiled code for MIPS processors only
  • res : a directory containing resources not compiled in resources.arsc.

  • assets : a directory containing application assets that can be retrieved by AssetManager.

  • AndroidManifest.xml : An additional Android manifest file that describes the name, version, permissions, library file links for the expression. This file can be in the Android binary XML file, which can be converted to human-readable XML text using tools such as AXMLPrinter2, apktool or Androguard.

  • classes.dex : classes compiled in the dex file format of a understandable Dalvik virtual machine

    resources.arsc : a file containing precompiled resources, such as binary XML, for example.

A source

+11
source share
 [APK] | |_ _ _ _ DALVIK EXECUTABLE < This is a code that runs the android app > | |_ _ _ _ RESOURCES < Images, video files, Audio files, xml files, Language packs > | |_ _ _ _ NATIVE LIBRARIES < some native code that include c & c++ libraires > 
+10
source share

You can extract your apk to see what's inside it by simply renaming it to "apkname.zip".

After renaming, you can extract it as regular zip files. I think this is what you see wana.

+5
source share

The apk file contains all this program code (e.g. .dex files), resources, assets, certificates, and the manifest file.

+2
source share

All Articles