aka Android application package
Introducció
Android application package (APK) és el format de fitxer dels paquets del sistema operatiu Android utilitzar per distribuir i instal·lar aplicacions middleware android.
És similar en objectiu a altres sistemes de paquets com els MSI de Windows o els .deb de Debian (vegeu Paquets Debian).
Per crear un fitxer APK cal executar tot el procés de Android Building & Running utilitzant eines com ant o actualment Gradle per automatitzar aquesta tasca.
El fitxers apk estan en format d'arxiu zip basat en el format dels fitxer JAR. La extensió del fitxer és .apk i el MIME type:
application/vnd.android.package-archive
Es poden instal·lar paquets apk de qualsevol repositori (activant a les preferències la opció "Unknown Sources") però el més habitual és fer-ho utilitzant Google Play
Format del fitxer
-
- 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
- lib: the directory containing the compiled code that is specific to a software layer of a processor, the directory is split into more directories within it:
- armeabi: compiled code for all ARM based processors only
- armeabi-v7a: compiled code for all ARMv7 and above based processors only
- arm64-v8a: compiled code for all ARMv8 arm64 and above based processors only [7]
- x86: compiled code for x86 processors only
- x86_64: compiled code for x86_64 processors only [8]
- mips: compiled code for MIPS processors only
- res: the directory containing resources not compiled into resources.arsc (see below).
- assets: a directory containing applications assets, which can be retrieved by AssetManager.
- 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, android-apktool, or Androguard.
- classes.dex: The classes compiled in the dex file format understandable by the Dalvik virtual machine
- resources.arsc: a file containing precompiled resources, such as binary XML for example.
Vegeu també
Enllaços externs