REST Resource: systemapks.variants

  • System APK variants are APKs suitable for inclusion in a system image, customizable by device specifications and options.

  • Device specifications for system APKs include supported ABIs, locales, and screen density.

  • System APK options can include uncompressed native libraries, dex files, and rotated key signing.

  • Developers can create, download, retrieve information about, and list system APK variants using the provided methods.

Resource: Variant

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

JSON representation
{
  "variantId": integer,
  "deviceSpec": {
    object (DeviceSpec)
  },
  "options": {
    object (SystemApkOptions)
  }
}
Fields
variantId

integer (uint32 format)

Output only. The ID of a previously created system APK variant.

deviceSpec

object (DeviceSpec)

The device spec used to generate the APK.

options

object (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 (uint32 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

create

Creates an APK which is suitable for inclusion in a system image from an already uploaded Android App Bundle.

download

Downloads a previously created system APK which is suitable for inclusion in a system image.

get

Returns a previously created system APK variant.

list

Returns the list of previously created system APK variants.