- [Resource: Variant](https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants#Variant)
  - [JSON representation](https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants#Variant.SCHEMA_REPRESENTATION)
- [DeviceSpec](https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants#DeviceSpec)
  - [JSON representation](https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants#DeviceSpec.SCHEMA_REPRESENTATION)
- [SystemApkOptions](https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants#SystemApkOptions)
  - [JSON representation](https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants#SystemApkOptions.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants#METHODS_SUMMARY)

## Resource: Variant

APK that is suitable for inclusion in a system image. The resource of SystemApksService.

| JSON representation |
|---|
| ``` { "variantId": integer, "deviceSpec": { object (`https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants#DeviceSpec`) }, "options": { object (`https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants#SystemApkOptions`) } } ``` |

| Fields ||
|---|---|
| `variantId` | `integer (https://developers.google.com/discovery/v1/type-format format)` Output only. The ID of a previously created system APK variant. |
| `deviceSpec` | ``object (`https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants#DeviceSpec`)`` The device spec used to generate the APK. |
| `options` | ``object (`https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants#SystemApkOptions`)`` Optional. Options applied to the generated APK. |

## DeviceSpec

The device spec used to generate a system APK.

| JSON representation |
|---|
| ``` { "supportedAbis": [ string ], "supportedLocales": [ string ], "screenDensity": integer } ``` |

| Fields ||
|---|---|
| `supportedAbis[]` | `string` Supported ABI architectures in the order of preference. The values should be the string as reported by the platform, e.g. "armeabi-v7a", "x86_64". |
| `supportedLocales[]` | `string` All installed locales represented as BCP-47 strings, e.g. "en-US". |
| `screenDensity` | `integer (https://developers.google.com/discovery/v1/type-format format)` Screen dpi. |

## SystemApkOptions

Options for system APKs.

| JSON representation |
|---|
| ``` { "uncompressedNativeLibraries": boolean, "uncompressedDexFiles": boolean, "rotated": boolean } ``` |

| Fields ||
|---|---|
| `uncompressedNativeLibraries` | `boolean` Whether system APK was generated with uncompressed native libraries. |
| `uncompressedDexFiles` | `boolean` Whether system APK was generated with uncompressed dex files. |
| `rotated` | `boolean` Whether to use the rotated key for signing the system APK. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants/create` | Creates an APK which is suitable for inclusion in a system image from an already uploaded Android App Bundle. |
| ### `https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants/download` | Downloads a previously created system APK which is suitable for inclusion in a system image. |
| ### `https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants/get` | Returns a previously created system APK variant. |
| ### `https://developers.google.com/android-publisher/api-ref/rest/v3/systemapks.variants/list` | Returns the list of previously created system APK variants. |

## Error codes

The operations of this resource, return the following HTTP error codes:

| Error code | Reason | Description | Resolution |
|---|---|---|---|