$gpc system-apks
--json--dry-run
Create and manage system APKs for OEM pre-installs from published App Bundles.
usage
gpc system-apks <subcommand> [options]Overview
System APKs are device-specific APKs generated from your published App Bundle, suitable for inclusion in OEM system images. This is used by device manufacturers who pre-install your app on their devices.
Commands
| Command | Description |
|---|---|
system-apks list | List system APK variants for a version code |
system-apks get | Get details of a system APK variant |
system-apks create | Create a system APK variant from a device spec |
system-apks download | Download a system APK variant |
system-apks list
List all system APK variants previously created for a specific version code.
Synopsis
bash
gpc system-apks list <version-code>1
Example
bash
gpc system-apks list 142 --app com.example.myapp1
system-apks get
Get details of a specific system APK variant.
Synopsis
bash
gpc system-apks get <version-code> <variant-id>1
Example
bash
gpc system-apks get 142 1 --app com.example.myapp --json1
system-apks create
Create a new system APK variant from a device specification JSON file. The device spec defines the target ABI, locale, and screen density.
Synopsis
bash
gpc system-apks create <version-code> --file <device-spec.json>1
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--file | string | (required) | JSON file with device spec data |
Device Spec Format
json
{
"deviceSpec": {
"supportedAbis": ["arm64-v8a"],
"supportedLocales": ["en-US"],
"screenDensity": 420
},
"options": {
"uncompressedNativeLibraries": true,
"uncompressedDexFiles": false,
"rotated": false
}
}1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
Example
bash
gpc system-apks create 142 \
--app com.example.myapp \
--file device-spec.json1
2
3
2
3
Preview without creating:
bash
gpc system-apks create 142 --file device-spec.json --dry-run1
system-apks download
Download a previously created system APK variant to a local file.
Synopsis
bash
gpc system-apks download <version-code> <variant-id> --output <path>1
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--output | string | (required) | Output file path |
Example
bash
gpc system-apks download 142 1 --output system-app.apk1
Related
- generated-apks -- Device-specific APKs generated by Google Play
- releases -- Release management and uploads
