Google Play Android Developer API . systemapks . variants

Instance Methods

close()

Close httplib2 connections.

create(packageName, versionCode, body=None, x__xgafv=None)

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

download(packageName, versionCode, variantId, x__xgafv=None)

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

download_media(packageName, versionCode, variantId, x__xgafv=None)

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

get(packageName, versionCode, variantId, x__xgafv=None)

Returns a previously created system APK variant.

list(packageName, versionCode, x__xgafv=None)

Returns the list of previously created system APK variants.

Method Details

close()
Close httplib2 connections.
create(packageName, versionCode, body=None, x__xgafv=None)
Creates an APK which is suitable for inclusion in a system image from an already uploaded Android App Bundle.

Args:
  packageName: string, Package name of the app. (required)
  versionCode: string, The version code of the App Bundle. (required)
  body: object, The request body.
    The object takes the form of:

{ # APK that is suitable for inclusion in a system image. The resource of SystemApksService.
  "deviceSpec": { # The device spec used to generate a system APK. # The device spec used to generate the APK.
    "screenDensity": 42, # Screen dpi.
    "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".
      "A String",
    ],
    "supportedLocales": [ # All installed locales represented as BCP-47 strings, e.g. "en-US".
      "A String",
    ],
  },
  "options": { # Options for system APKs. # Optional. Options applied to the generated APK.
    "rotated": True or False, # Whether to use the rotated key for signing the system APK.
    "uncompressedDexFiles": True or False, # Whether system APK was generated with uncompressed dex files.
    "uncompressedNativeLibraries": True or False, # Whether system APK was generated with uncompressed native libraries.
  },
  "variantId": 42, # Output only. The ID of a previously created system APK variant.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # APK that is suitable for inclusion in a system image. The resource of SystemApksService.
  "deviceSpec": { # The device spec used to generate a system APK. # The device spec used to generate the APK.
    "screenDensity": 42, # Screen dpi.
    "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".
      "A String",
    ],
    "supportedLocales": [ # All installed locales represented as BCP-47 strings, e.g. "en-US".
      "A String",
    ],
  },
  "options": { # Options for system APKs. # Optional. Options applied to the generated APK.
    "rotated": True or False, # Whether to use the rotated key for signing the system APK.
    "uncompressedDexFiles": True or False, # Whether system APK was generated with uncompressed dex files.
    "uncompressedNativeLibraries": True or False, # Whether system APK was generated with uncompressed native libraries.
  },
  "variantId": 42, # Output only. The ID of a previously created system APK variant.
}
download(packageName, versionCode, variantId, x__xgafv=None)
Downloads a previously created system APK which is suitable for inclusion in a system image.

Args:
  packageName: string, Package name of the app. (required)
  versionCode: string, The version code of the App Bundle. (required)
  variantId: integer, The ID of a previously created system APK variant. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
download_media(packageName, versionCode, variantId, x__xgafv=None)
Downloads a previously created system APK which is suitable for inclusion in a system image.

Args:
  packageName: string, Package name of the app. (required)
  versionCode: string, The version code of the App Bundle. (required)
  variantId: integer, The ID of a previously created system APK variant. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
get(packageName, versionCode, variantId, x__xgafv=None)
Returns a previously created system APK variant.

Args:
  packageName: string, Package name of the app. (required)
  versionCode: string, The version code of the App Bundle. (required)
  variantId: integer, The ID of a previously created system APK variant. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # APK that is suitable for inclusion in a system image. The resource of SystemApksService.
  "deviceSpec": { # The device spec used to generate a system APK. # The device spec used to generate the APK.
    "screenDensity": 42, # Screen dpi.
    "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".
      "A String",
    ],
    "supportedLocales": [ # All installed locales represented as BCP-47 strings, e.g. "en-US".
      "A String",
    ],
  },
  "options": { # Options for system APKs. # Optional. Options applied to the generated APK.
    "rotated": True or False, # Whether to use the rotated key for signing the system APK.
    "uncompressedDexFiles": True or False, # Whether system APK was generated with uncompressed dex files.
    "uncompressedNativeLibraries": True or False, # Whether system APK was generated with uncompressed native libraries.
  },
  "variantId": 42, # Output only. The ID of a previously created system APK variant.
}
list(packageName, versionCode, x__xgafv=None)
Returns the list of previously created system APK variants.

Args:
  packageName: string, Package name of the app. (required)
  versionCode: string, The version code of the App Bundle. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response to list previously created system APK variants.
  "variants": [ # All system APK variants created.
    { # APK that is suitable for inclusion in a system image. The resource of SystemApksService.
      "deviceSpec": { # The device spec used to generate a system APK. # The device spec used to generate the APK.
        "screenDensity": 42, # Screen dpi.
        "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".
          "A String",
        ],
        "supportedLocales": [ # All installed locales represented as BCP-47 strings, e.g. "en-US".
          "A String",
        ],
      },
      "options": { # Options for system APKs. # Optional. Options applied to the generated APK.
        "rotated": True or False, # Whether to use the rotated key for signing the system APK.
        "uncompressedDexFiles": True or False, # Whether system APK was generated with uncompressed dex files.
        "uncompressedNativeLibraries": True or False, # Whether system APK was generated with uncompressed native libraries.
      },
      "variantId": 42, # Output only. The ID of a previously created system APK variant.
    },
  ],
}