---
id: "android_package_name"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["software"]
langs: ["common"]
quality: 85
url: "https://registry.apicrafter.io/datatype/android_package_name"
---

# Android application ID (package name) (`android_package_name`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Identifier of an Android app on the device and in Google Play, set by applicationId in the Gradle build and stored as the package attribute of the merged AndroidManifest.xml; Android APIs such as Context.getPackageName() call it the package name. It looks like a Java package name in reverse-domain order. Android requires at least two segments separated by dots, each segment starting with a letter, and only the characters a-z, A-Z, 0-9 and underscore. Google Play treats an upload with a different application ID as a different app. VirusTotal reports it as the androguard Package of an APK. The format also matches many domain names and Java class names, so use the field name or context.

- Personal data (PII): no
- Categories: Software development (software)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)+$
```

## Examples

- `com.example.myapp` — Example application ID in the Android developer documentation
- `ru.oneme.app` — Package name of an APK in its VirusTotal report
- `myapp` (invalid example) — Only one segment
- `com.example.2app` (invalid example) — Segment starts with a digit
- `com.example.my-app` (invalid example) — Hyphen is not allowed

## Mappings

- wikidata: `P3418`

## Sources

- doc: <https://developer.android.com/build/configure-app-module#set-application-id>
- wikidata: <https://www.wikidata.org/wiki/Property:P3418>

## Quality

Score 85/100. Missing: translation, detector coverage.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/android_package_name.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/software/android_package_name.yaml>
