Method: systemapks.variants.download
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Mendownload APK sistem yang telah dibuat sebelumnya yang sesuai untuk disertakan dalam image sistem.
Permintaan HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
packageName |
string
Nama paket aplikasi.
|
versionCode |
string (int64 format)
Kode versi App Bundle.
|
variantId |
integer (uint32 format)
ID varian APK sistem yang dibuat sebelumnya.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons akan kosong.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut ini:
https://www.googleapis.com/auth/androidpublisher
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\u003cp\u003eDownloads a pre-built system APK for embedding in system images.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying package name, version code, and variant ID in the URL.\u003c/p\u003e\n"],["\u003cp\u003eEmploys an empty request body and returns an empty response upon success.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document details how to download a system APK. A `GET` request is sent to a specific URL including `packageName`, `versionCode`, and `variantId` as path parameters. The request body must be empty. A successful request results in an empty response body. This action requires the `https://www.googleapis.com/auth/androidpublisher` authorization scope. The document provides information about parameters like data types and provides a \"try it!\" function, but no information about their results.\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDownloads a previously created system APK which is suitable for inclusion in a system image.\n\nHTTP request\n\n`GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|---------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| `packageName` | `string` Package name of the app. |\n| `versionCode` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The version code of the App Bundle. |\n| `variantId` | `integer (`[uint32](https://developers.google.com/discovery/v1/type-format)` format)` The ID of a previously created system APK variant. |\n\nRequest body\n\nThe request body must be empty.\n\nResponse body\n\nIf successful, the response body is empty.\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]