An APK is the file Android installs an app from. It is a ZIP archive with a signature, and it carries everything the system needs to run the app: the manifest, the compiled code, resources and, for most apps, native libraries.
Updated: 2026-11-24·2 min read
Why it matters for security
The APK is the artifact users actually receive. Everything inside it can be read by anyone who has the file: API keys compiled into code, addresses of internal hosts, manifest flags such as android:debuggable or android:usesCleartextTraffic. The same property makes static analysis possible. A scanner needs only this one file and no access to the source code.
What is inside
Opening an APK as a ZIP archive shows the following entries:
AndroidManifest.xml: package name, permissions, components and application flags. It is stored in binary XML and has to be decoded before it can be read.
classes.dex, plus classes2.dex and more in larger apps: the compiled code in DEX format.
resources.arsc and res/: compiled resources such as strings, layouts and icons.
assets/: raw files, from configuration to web pages and databases.
lib/<abi>/: native libraries, for example lib/arm64-v8a/.
META-INF/ and the APK Signing Block: signature data. Android supports JAR signing (v1) and the APK Signature Scheme v2, introduced in Android 7, and v3, introduced in Android 9.
How to look inside
Two commands answer most questions about an APK file. The first lists its contents, the second decompiles code and resources into a folder:
unzip -l app.apk
jadx -d out app.apk
After the second command out/resources/AndroidManifest.xml is the decoded manifest, readable as plain XML:
APKSonar reads the manifest, decompiled code, resources and native libraries of an APK and returns findings with file:line evidence. The differences between APK, AAB and XAPK are described in the article APK vs AAB vs XAPK vs split APKs.