REST Resource: systemapks.variants
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:变体
适合包含在系统映像中的 APK。SystemApksService 的资源。
字段 |
variantId |
integer (uint32 format)
仅限输出。之前创建的系统 APK 变体的 ID。
|
deviceSpec |
object (DeviceSpec )
用于生成 APK 的设备规格。
|
options |
object (SystemApkOptions )
可选。应用于生成的 APK 的选项。
|
DeviceSpec
JSON 表示法 |
{
"supportedAbis": [
string
],
"supportedLocales": [
string
],
"screenDensity": integer
} |
字段 |
supportedAbis[] |
string
按优先顺序排列支持的 ABI 架构。值应该是平台报告的字符串,例如“armeabi-v7a”、“x86_64”。
|
supportedLocales[] |
string
表示为 BCP-47 字符串的所有已安装语言区域,例如“en-US”。
|
screenDensity |
integer (uint32 format)
屏幕 dpi。
|
SystemApkOptions
JSON 表示法 |
{
"uncompressedNativeLibraries": boolean,
"uncompressedDexFiles": boolean,
"rotated": boolean
} |
字段 |
uncompressedNativeLibraries |
boolean
系统 APK 是否是使用未压缩的原生库生成的。
|
uncompressedDexFiles |
boolean
系统 APK 是否是使用未压缩的 dex 文件生成的。
|
rotated |
boolean
是否使用轮替密钥为系统 APK 签名。
|
方法 |
|
根据已上传的 Android App Bundle 创建适合包含在系统映像中的 APK。 |
|
下载之前创建的适合包含在系统映像中的系统 APK。 |
|
返回之前创建的系统 APK 变体。 |
|
返回之前创建的系统 APK 变体的列表。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eSystem APK variants are APKs suitable for inclusion in a system image, customizable by device specifications and options.\u003c/p\u003e\n"],["\u003cp\u003eDevice specifications for system APKs include supported ABIs, locales, and screen density.\u003c/p\u003e\n"],["\u003cp\u003eSystem APK options can include uncompressed native libraries, dex files, and rotated key signing.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can create, download, retrieve information about, and list system APK variants using the provided methods.\u003c/p\u003e\n"]]],["System APK variants are defined by `variantId`, `deviceSpec`, and `options`. `DeviceSpec` includes supported ABIs, locales, and screen density. `SystemApkOptions` manage uncompressed native libraries, uncompressed dex files, and rotated keys. Key actions include `create` to generate a system APK from an app bundle, `download` to retrieve a created APK, `get` to fetch a specific variant, and `list` to retrieve all created variants. These methods are all actions related to system APKs.\n"],null,["# REST Resource: systemapks.variants\n\n- [Resource: Variant](#Variant)\n - [JSON representation](#Variant.SCHEMA_REPRESENTATION)\n- [DeviceSpec](#DeviceSpec)\n - [JSON representation](#DeviceSpec.SCHEMA_REPRESENTATION)\n- [SystemApkOptions](#SystemApkOptions)\n - [JSON representation](#SystemApkOptions.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Variant\n-----------------\n\nAPK that is suitable for inclusion in a system image. The resource of SystemApksService.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"variantId\": integer, \"deviceSpec\": { object (/android-publisher/api-ref/rest/v3/systemapks.variants#DeviceSpec) }, \"options\": { object (/android-publisher/api-ref/rest/v3/systemapks.variants#SystemApkOptions) } } ``` |\n\n| Fields ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `variantId` | `integer (`[uint32](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The ID of a previously created system APK variant. |\n| `deviceSpec` | `object (`[DeviceSpec](/android-publisher/api-ref/rest/v3/systemapks.variants#DeviceSpec)`)` The device spec used to generate the APK. |\n| `options` | `object (`[SystemApkOptions](/android-publisher/api-ref/rest/v3/systemapks.variants#SystemApkOptions)`)` Optional. Options applied to the generated APK. |\n\nDeviceSpec\n----------\n\nThe device spec used to generate a system APK.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------|\n| ``` { \"supportedAbis\": [ string ], \"supportedLocales\": [ string ], \"screenDensity\": integer } ``` |\n\n| Fields ||\n|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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\". |\n| `supportedLocales[]` | `string` All installed locales represented as BCP-47 strings, e.g. \"en-US\". |\n| `screenDensity` | `integer (`[uint32](https://developers.google.com/discovery/v1/type-format)` format)` Screen dpi. |\n\nSystemApkOptions\n----------------\n\nOptions for system APKs.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------|\n| ``` { \"uncompressedNativeLibraries\": boolean, \"uncompressedDexFiles\": boolean, \"rotated\": boolean } ``` |\n\n| Fields ||\n|-------------------------------|--------------------------------------------------------------------------------|\n| `uncompressedNativeLibraries` | `boolean` Whether system APK was generated with uncompressed native libraries. |\n| `uncompressedDexFiles` | `boolean` Whether system APK was generated with uncompressed dex files. |\n| `rotated` | `boolean` Whether to use the rotated key for signing the system APK. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|\n| ### [create](/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. |\n| ### [download](/android-publisher/api-ref/rest/v3/systemapks.variants/download) | Downloads a previously created system APK which is suitable for inclusion in a system image. |\n| ### [get](/android-publisher/api-ref/rest/v3/systemapks.variants/get) | Returns a previously created system APK variant. |\n| ### [list](/android-publisher/api-ref/rest/v3/systemapks.variants/list) | Returns the list of previously created system APK variants. |"]]