32 — Manifest · References
Annotated. Each entry says why you would open it, so you can pick the right one under time pressure.
The manifest is one of the better-documented parts of Android — the official element reference is
genuinely authoritative and worth reading end to end once. What it does not tell you is how the
defaults shift with targetSdkVersion, which is where the behaviour-changes pages come in.
Official element reference
The primary source. Bookmark the index; the per-element pages are short and precise.
Element
Page
Index
https://developer.android.com/guide/topics/manifest/manifest-intro
<manifest>
https://developer.android.com/guide/topics/manifest/manifest-element
<application>
https://developer.android.com/guide/topics/manifest/application-element
<activity>
https://developer.android.com/guide/topics/manifest/activity-element
<activity-alias>
https://developer.android.com/guide/topics/manifest/activity-alias-element
<service>
https://developer.android.com/guide/topics/manifest/service-element
<receiver>
https://developer.android.com/guide/topics/manifest/receiver-element
<provider>
https://developer.android.com/guide/topics/manifest/provider-element
<grant-uri-permission>
https://developer.android.com/guide/topics/manifest/grant-uri-permission-element
<path-permission>
https://developer.android.com/guide/topics/manifest/path-permission-element
<intent-filter>
https://developer.android.com/guide/topics/manifest/intent-filter-element
<data>
https://developer.android.com/guide/topics/manifest/data-element
<permission>
https://developer.android.com/guide/topics/manifest/permission-element
<uses-permission>
https://developer.android.com/guide/topics/manifest/uses-permission-element
<uses-sdk>
https://developer.android.com/guide/topics/manifest/uses-sdk-element
<queries>
https://developer.android.com/guide/topics/manifest/queries-element
<meta-data>
https://developer.android.com/guide/topics/manifest/meta-data-element
<instrumentation>
https://developer.android.com/guide/topics/manifest/instrumentation-element
The pages that explain the defaults
This is the section that matters most , because the element reference documents what an attribute
does while these pages document what happens when it is absent .
Security guidance
Manifest merging
Why this matters. A third-party SDK can inject an exported component the app developer never
wrote. Auditing the source manifest instead of the merged output misses it entirely. See
08-Build-System and
labs/lab-05-merge-and-inject.md .
AOSP source
Where the parsing and enforcement actually happen. Read on cs.android.com .
Path
Covers
frameworks/base/services/core/java/com/android/server/pm/pkg/parsing/ParsingPackageUtils.java
The real manifest parser. When a tool and the platform disagree, this is the arbiter
frameworks/base/core/java/android/content/pm/parsing/ApkLiteParseUtils.java
The lightweight parse done first at install
frameworks/base/core/java/android/content/res/XmlBlock.java
The AXML reader
frameworks/base/libs/androidfw/include/androidfw/ResourceTypes.h
The AXML structures themselves — see 10-APK-Internals
frameworks/base/core/java/android/content/pm/ActivityInfo.java
The parsed representation of <activity>
frameworks/base/core/java/android/content/pm/ProviderInfo.java
The parsed representation of <provider>
frameworks/base/core/java/android/content/pm/PermissionInfo.java
protectionLevel constants
frameworks/base/core/java/android/content/IntentFilter.java
The matching algorithm — action, categories, data
frameworks/base/services/core/java/com/android/server/wm/ActivityStarter.java
Where the export check actually rejects a launch
Tool
Use
apktool
Decode AXML to readable XML
aapt2 dump xmltree
The parsed tree, independent of apktool
aapt2 dump badging
Package, SDK levels, permissions, launchable activity
adb shell dumpsys package <pkg>
The authority — what PackageManager actually parsed
jadx
Shows the manifest alongside the code
MobSF
Automated manifest analysis — validate its output, see 55-MobSF
Drozer
Probing the exported surface from an app context
OWASP
Resource
Relevance
MASVS-PLATFORM
The control category most manifest findings map to
MASVS-CODE
debuggable, testOnly, shipped instrumentation
MASVS-STORAGE
allowBackup and backup rules
MASTG
Test procedures; cite the IDs in reports
Chapter
Relationship
10-APK-Internals
AXML at byte level, and the parser-confusion technique
08-Build-System
Manifest merging and how SDKs inject components
09-Android-App-Internals
How the parsed manifest becomes UID, permissions and components
23-Permissions
protectionLevel, custom permissions, squatting
24-IPC
The wider IPC surface the manifest declares
26-Intent
Intent resolution, filters, and redirection
27-ContentProviders
Provider attributes in depth, and FileProvider
28-Services
foregroundServiceType, isolatedProcess, accessibility services
29-BroadcastReceivers
Runtime receivers, which the manifest cannot show you
30-Activities
launchMode, taskAffinity, task hijacking
31-Fragments
What the manifest cannot describe. Fragments are not components, so a single exported Activity can host dozens of screens the audit never sees
33-Storage
allowBackup impact
44-NetworkSecurityConfig
The XML networkSecurityConfig points at
52-StaticAnalysis
Validating automated findings before reporting
77-UsefulCommands
The reachability discipline — adb shell is not an app