APK and AAB · manifest, permissions, size and signing

APK Analyzer

Open an Android APK or App Bundle to read its binary manifest, rate each permission, list components with their exported state, break the size down by folder, count dex methods and see which signing schemes are present. The archive is read in this tab.

Android package

Drop an .apk or .aab

Up to 400.0 MB. Only the manifest, dex headers and signature files are unpacked.

Open an APK or AAB, or load the example. Files stay in this tab.

APK Analyzer

Operator: Abdulla Al Fahad. How tools are built and checked

An APK is a ZIP file whose AndroidManifest.xml is not XML text at all but a packed binary format, so opening the archive in an unzip tool shows you a file you cannot read. This page decodes that manifest and answers the questions people usually open a build for: which package and version is it, what SDK levels does it declare, which permissions does it ask for and how risky is each, which activities, services, receivers and providers can other apps start, how big is each folder, how many methods are in the dex files, and which signing schemes are present.

Only three kinds of entry are ever unpacked: the manifest, the first 112 bytes of each classes.dex, and the signature files under META-INF. Everything else is measured from the ZIP directory without being inflated, which is why a large archive is never inflated in full and an archive built to expand without limit cannot exhaust memory.

Key features

  • Binary manifest (AXML) decoded to readable XML, with package, version name and code, minSdk, targetSdk, maxSdk and compileSdk
  • Permissions rated dangerous, special, signature, normal or custom against a built-in list of platform permissions, with maxSdkVersion shown
  • Activities, activity aliases, services, receivers and providers with their exported state, intent filters and launcher flag; a provider's readPermission or writePermission counts as a permission requirement
  • App Bundle (.aab) manifests are decoded from the published aapt2 protobuf layout; this path has not been verified against a real bundle (see the pitfalls)
  • Size by folder and by the twelve largest files, native library ABIs, and the method, class, field and string counts in every dex header
  • Signing-scheme detection: v1 signature files, the v2, v3, v3.1 and source-stamp entries of the APK Signing Block, and the signer certificate subject from the v1 file

How the manifest, dex headers and signing block are read

The manifest is a sequence of chunks. A string pool (chunk type 0x0001) holds every name and value, a resource map (0x0180) gives the numeric resource ID of each attribute name, and start and end element chunks (0x0102, 0x0103) carry the tree. Attribute values are typed: a string, an integer, a hexadecimal flag, a boolean, or a reference such as @0x7f100001. Every chunk size is checked against the buffer and must be at least its header length, so the reader always advances, and element depth, chunk count and attribute count are capped.

References are shown as raw IDs. Resolving @0x7f100001 to the text "Trail Notes" would mean decoding resources.arsc, which this page does not do, so the application label usually appears as a reference. App Bundles (.aab) keep the manifest in base/manifest/AndroidManifest.xml as a protobuf XmlNode message instead, and the page reads that form too.

Android looks an attribute up by its numeric resource ID, not by the name in the string pool. When the resource map lists an ID the page knows (exported is 0x01010010, debuggable 0x0101000f, usesCleartextTraffic 0x010104ec and about thirty more), that ID decides the name shown, so an obfuscator that renames a pool string cannot make an exported or debuggable flag read as something else.

The exported column follows the Android rules. A component with android:exported set shows that value. Without it, a provider is exported only when targetSdkVersion is 16 or lower, and an activity, service or receiver with an intent filter is exported implicitly below targetSdkVersion 31. From 31 up the attribute is mandatory on such components and the platform refuses to install a build that omits it, so the page shows them as not exported and prints that reason. Signing is detected by presence only: v2 and later live in a block placed before the ZIP central directory and marked with the 16 bytes "APK Sig Block 42".

How it works

The ZIP central directory is read first, including ZIP64 records, and every entry is listed with its declared stored and unpacked size. Those declared sizes feed the folder table. Any entry that declares an expansion of more than 200 times and over 20 MB is reported as suspicious, and nothing about it is inflated.

Entries that are read go through the browser's raw deflate decoder, which is stopped as soon as a byte budget is reached. The manifest may produce at most 8 MB, a dex header only its first 112 bytes, and the whole analysis shares a 48 MB budget, so a manifest entry that claims 200 MB of zeros is refused with a message rather than expanded.

When this helps

  • A QA lead receives release candidate 387 and wants to know before sign-off whether it still asks for WRITE_EXTERNAL_STORAGE without a maxSdkVersion; the Permissions tab shows whether the entry carries a limit such as API 28.
  • A build fails with D8's "Cannot fit requested classes in a single dex file" after a library upgrade. Opening the last good APK shows classes.dex at about 64,000 of the 65,536 method references one file can hold, which explains why a few hundred new methods tipped it over.
  • A security reviewer lists every exported component of a third-party SDK build and finds a content provider with no readPermission or writePermission, which any app on the device can query.

Opening a file

  1. Drop an .apk or .aab file of up to 400 MB, or open the built-in package with Load example.
  2. Read the Overview tab: package, SDK levels, launcher activity, backup and cleartext settings, and the list of items worth checking.
  3. Open Permissions and filter by name; dangerous and special permissions carry the longer explanation.
  4. Open Components and look for entries marked exported with no permission, then Size and Signing for the folder breakdown and signature schemes.
  5. Download the JSON or Markdown report, or the decoded manifest as XML.

Example

The built-in trailnotes-example.apk, a package the page builds itself (1,874,959 bytes, 12 entries)

AndroidManifest.xml: package com.example.trailnotes, versionName 3.2.1, minSdk 24, targetSdk 34
classes.dex and classes2.dex headers
META-INF/CERT.RSA with a self-signed certificate
An APK Signing Block holding the v2, v3 and verity-padding entries

What the tabs show

6 permissions, 4 of them dangerous (ACCESS_FINE_LOCATION, CAMERA, POST_NOTIFICATIONS, WRITE_EXTERNAL_STORAGE up to API 28)
5 components; BootReceiver is exported with no permission requirement
Dex methods: 41,208 + 18,730 = 59,938 across 2 files
Signing: v1 files present, v2 and v3 blocks present, signer CN=Trail Notes Example

Limits

Signing is only detected, never verified. A package can carry a v2 block that does not match its contents, so presence on this page says nothing about integrity or about who signed it.

The permission levels come from a built-in list of platform permissions. A name outside that list is shown as not listed rather than guessed, and a permission an app declares itself is shown as custom.

Sizes in the folder table are what the ZIP directory declares. A damaged or hostile archive can state sizes that do not match its data; the page flags extreme ratios but does not inflate to confirm them.

v4 signatures are stored in a separate .idsig file beside the APK, so this page cannot see them even when they exist.

AAB support has been built from the published aapt2 message layout and checked only on hand-built messages, not on a real bundle. Compare an AAB's exported components with bundletool dump manifest before relying on them.

  • In the lib folders, equal Stored and Unpacked sizes mean the native libraries are stored uncompressed, which is the layout Android needs to load them straight from the APK without extracting a copy (android:extractNativeLibs="false").
  • Add the minSdk and targetSdk lines from this page to a pull request description; a targetSdk below 31 changes which components are exported by default.

Common errors and how to fix them

"No AndroidManifest.xml was found at the top of the archive (or base/manifest/ for a bundle)"
The ZIP is not an APK or AAB. A split APK set, an .apks archive or an .xapk wraps several packages: unzip it and open the base .apk inside.
"The manifest is neither Android binary XML nor a protobuf XmlNode message"
Some obfuscators or repackagers rewrite the manifest header. The file starts with neither the binary XML marker 0x0003 nor a protobuf element, so this page does not guess; compare it with apksigner or aapt2 dump from the Android SDK.

Best practices

  • Read the exported-without-permission finding together with the intent filters in the same row: a receiver for a private custom action is a smaller risk than one for BOOT_COMPLETED.
  • Keep the Markdown report next to each release so the permission list can be compared between versions.

Reading the dex counts

Every classes.dex starts with a 112-byte header that states how many strings, types, fields, methods and classes the file defines. The page reads those five numbers and sums the methods across files. A single dex file can reference at most 65,536 methods because method indexes in most instructions are 16 bits wide, which is why larger apps are split into classes.dex, classes2.dex and so on. The page notes when one file is above 60,000.

The counts describe method references in the header, not code you wrote: library code, generated code and every method an app merely calls count towards the total. Shrinking tools can reduce them, but this page only reports what the package contains.

Frequently asked questions

Why does the app label show as @0x7f100001 instead of a name?

The label is a reference into resources.arsc, the compiled resource table, which holds the real text in each language. This page decodes the manifest but not that table, so it shows the reference as it is stored.

Can it open an APK that is bigger than 400 MB?

No. The whole archive is read into memory so the ZIP directory can be parsed, and files above 400 MB are refused with the size in the message.

Does it tell me whether an app is malicious?

No. It lists what the manifest and archive state. A dangerous permission or an exported receiver is a reason to look closer, not a verdict, and a clean report is not a safety statement.