Google Android APK application package file format description

by on

Android iconThe APK file format is default application package format used by operating system for smart phones and tablet computers called Google Android. Android APK archive contains all important data to run Android application stored in it.
The main source of applications for Android is Android Market, which is an application installed in the clean installation of Google Android. Android Market is also accessible via Internet browser.

  • Pre-installed Android APKs are stored in the /system/app folder.
  • User installed APKs are stored in the /data/app folder.

To manage installed applications in Android go to the Menu → Settings → Applications → Manage applications.

To view Android directory structure, you need to install Android file manager to system, such as Astro Explorer or Root Explorer.

Astro Explorer main window

Astro Explorer

Android application package structure

The APK application package uses ZIP compression format, which is widely supported and ZIP archives are openable in a variety of operating systems, or compression utilities. To view the content of APK archive simply rename its APK file extension to ZIP and open it.

The structure of APK file after compilation:

Android APK file opened in the Windows Exploer

  • assets folder contains documents in HTML format that inform about application, license information, FAQ etc.
     
  • META-INF folder contains data that are used to ensure the integrity of the APK package and system security. There are several files in the META-INF folder namely: CERT.RSA, CERT.DSA, CERT.SF and MANIFEST.MF.
     
  • res folder contains resource files, such as graphics, sounds, settings etc..
     
  • AndroidManifest.xml file contains information about name, version, access rights, also references to library files and other.
     
  • classes.dex is Dalvik virtual machine executable file. This file contains compiled Java source codes. DEX file can be executed only in Dalvik virtual machine and Java Runtime Environment cannot run DEX files.
     
  • resource.arsc is binary resource file after compilation.

Integrated development environments recommended by Google for development of aplications for Android operating system are Eclipse with ADT Plugin and IntelliJ IDEA.
Other Android development tools, such as Android SDK and Android SDK Tools, are downloadable from Google Android developer website.

Installation of Android applications to memory card

Android 1.6 Donut and Android 2.1 Eclair without Root permissions installed has not support for installation of applications to memory card.
This feature is supported from Android version 2.2 Froyo. Applications installed on memory card are encrypted and stored in the .android_secure folder. Encrypted Android applications have the ASEC file extension.

Installation to memory card must be also supported by Android application. To move it to the memory card, go to the Menu → Settings Applications → Manage applications and tap on application and select Move to SD card option.
 

Android Move to SD card option

Move to SD card option in Android
 

Installation of Android applications via USB cable

Unlike any other mobile operating systems (Apple iOS, Windows Phone 7 etc.), Android still supports installation of applications via USB cable. To install applications downloaded as APK file from the Internet you must have memory card inserted in the phone and also some file explorer installed. To install APK file via USB follow these few steps:

  1. Connect phone to USB port as a Mass Storage Device
  2. Open the memory card in Windows' explorer or Mac Finder and copy APK file to the card
  3. Disconnect the phone and open file explorer installed in phone
  4. Go to the /sdcard, or /mnt/sdcard folder, tap on the APK file and select Open App Manager option

Android APK file options in Astro Explorer

Open APK file options in Astro Explorer
 

Some producers disable application installation service via USB in their phones. To enable this option, go to the Settings  Applications and set the Unknown sources option to enabled.

 

Android Unknown sources settings

Unknown sources option in Application settings
 

If you are interested in development of Google Android applications, visit the Android developer website, which contains detailed instructions, sample codes, articles and other tutorials.

Related software and links:

Eclipse with ADT Plugin icon

Eclipse with ADT Plugin    Microsoft Windows platform
Specialized IDE for making apps for Google Android

 
Google Android icon

Google Android    Google Android platform
One of the most popular OS for mobile systems

 
Google Android SDK icon

Google Android SDK    Microsoft Windows platform
All the neccesary SDK development tools for making Android app

 
Google Android SDK Tools icon

Google Android SDK Tools    Microsoft Windows platform
SDK Tools for making Android apps

 
IntelliJ IDEA icon

IntelliJ IDEA    Microsoft Windows platform
A cross-platform IDE for making Java apps

 

Did this entry help you?
If the information in this article helped you, please share it with your friends!

Subscribe to File-Extensions.org and get our news everywhere!

RSS

Add new comment about “Android APK file format description

Related file extensions

apk - Google Android application package

arsc - Dalvik Virtual Machine resource pack

asec - Google Android encrypted application package

dex - Google Android compiled executable file

Go to:
Article related software
Add comments...

Find converter

zip to apk

Follow us!

Enter any file extension without dot (e.g. pdf)
Search for file extension details and associated application(s)

RSS feed