AI-generated Key Takeaways
- 
          A Variant represents an APK suitable for inclusion in a system image, containing a variant ID, device specification, and optional system APK options. 
- 
          The DeviceSpec details the supported ABIs, locales, and screen density for a system APK. 
- 
          SystemApkOptions provide boolean flags to configure properties like uncompressed native libraries, uncompressed dex files, and whether to use the rotated key for signing. 
- 
          The methods available for system APK variants include creating, downloading, getting details of, and listing previously created variants. 
- 
          Potential error codes include 5xx for server errors and 409 for concurrency update errors, both suggesting retrying the request. 
Resource: Variant
APK that is suitable for inclusion in a system image. The resource of SystemApksService.
| JSON representation | 
|---|
| { "variantId": integer, "deviceSpec": { object ( | 
| Fields | |
|---|---|
| variantId | 
 Output only. The ID of a previously created system APK variant. | 
| deviceSpec | 
 The device spec used to generate the APK. | 
| options | 
 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[] | 
 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[] | 
 All installed locales represented as BCP-47 strings, e.g. "en-US". | 
| screenDensity | 
 Screen dpi. | 
SystemApkOptions
Options for system APKs.
| JSON representation | 
|---|
| { "uncompressedNativeLibraries": boolean, "uncompressedDexFiles": boolean, "rotated": boolean } | 
| Fields | |
|---|---|
| uncompressedNativeLibraries | 
 Whether system APK was generated with uncompressed native libraries. | 
| uncompressedDexFiles | 
 Whether system APK was generated with uncompressed dex files. | 
| rotated | 
 Whether to use the rotated key for signing the system APK. | 
| Methods | |
|---|---|
| 
 | Creates an APK which is suitable for inclusion in a system image from an already uploaded Android App Bundle. | 
| 
 | Downloads a previously created system APK which is suitable for inclusion in a system image. | 
| 
 | Returns a previously created system APK variant. | 
| 
 | 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 | Resolution | 
|---|---|---|
| 5xx | Generic error in the Google Play server. | Retry your request. If the problem persists contact your Google Play account manager or submit a support request. Consider checking the Play Status Dashboard for any known outages. | 
| 409 | Concurrency update error. There was an attempt to update an object that is being updated. For example, a purchase
      is getting acknowledged by calling the Play Billing Library's  | Retry your request. |