REST Resource: edits.apks
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób: Apk
Informacje o pliku APK. Zasób usługi ApksService.
Zapis JSON |
{
"versionCode": integer,
"binary": {
object (ApkBinary )
}
} |
Pola |
versionCode |
integer
Kod wersji pakietu APK określony w pliku manifestu.
|
binary |
object (ApkBinary )
Informacje o ładunku binarnym tego pliku APK.
|
ApkBinary
Reprezentuje ładunek binarny pliku APK.
Zapis JSON |
{
"sha1": string,
"sha256": string
} |
Pola |
sha1 |
string
Skrót sha1 ładunku pliku APK zakodowany w postaci ciągu szesnastkowego i pasujący do danych wyjściowych polecenia sha1sum.
|
sha256 |
string
Skrót sha256 ładunku pliku APK zakodowany w postaci ciągu szesnastkowego i pasujący do danych wyjściowych polecenia sha256sum.
|
Metody |
|
Tworzy nowy plik APK bez przesyłania go do Google Play – zamiast tego hostuje go pod określonym adresem URL. |
|
Wyświetla listę wszystkich bieżących plików APK aplikacji oraz edycji. |
|
Przesyła plik APK i dodaje go do bieżącej zmiany. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eApk\u003c/code\u003e resource provides information about an APK, including its version code and binary payload details.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eApkBinary\u003c/code\u003e represents the binary payload of an APK with SHA1 and SHA256 hashes for integrity verification.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can manage APKs using methods to upload, list, or add externally hosted APKs.\u003c/p\u003e\n"]]],["The provided content describes APK information and its binary payload. An APK's data includes its `versionCode` (an integer) and `binary`, which contains `sha1` and `sha256` hash strings for its payload. Key actions involve managing APKs through methods such as `addexternallyhosted` (creating an APK without direct upload), `list` (retrieving existing APKs), and `upload` (uploading an APK).\n"],null,["- [Resource: Apk](#Apk)\n - [JSON representation](#Apk.SCHEMA_REPRESENTATION)\n- [ApkBinary](#ApkBinary)\n - [JSON representation](#ApkBinary.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Apk Information about an APK. The resource for ApksService.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------|\n| ``` { \"versionCode\": integer, \"binary\": { object (/android-publisher/api-ref/rest/v3/edits.apks#ApkBinary) } } ``` |\n\n| Fields ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `versionCode` | `integer` The version code of the APK, as specified in the manifest file. |\n| `binary` | `object (`[ApkBinary](/android-publisher/api-ref/rest/v3/edits.apks#ApkBinary)`)` Information about the binary payload of this APK. |\n\nApkBinary Represents the binary payload of an APK.\n\n| JSON representation |\n|----------------------------------------------|\n| ``` { \"sha1\": string, \"sha256\": string } ``` |\n\n| Fields ||\n|----------|----------------------------------------------------------------------------------------------------------------------|\n| `sha1` | `string` A sha1 hash of the APK payload, encoded as a hex string and matching the output of the sha1sum command. |\n| `sha256` | `string` A sha256 hash of the APK payload, encoded as a hex string and matching the output of the sha256sum command. |\n\n| Methods ||\n|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| [addexternallyhosted](/android-publisher/api-ref/rest/v3/edits.apks/addexternallyhosted) | Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a specified URL. |\n| [list](/android-publisher/api-ref/rest/v3/edits.apks/list) | Lists all current APKs of the app and edit. |\n| [upload](/android-publisher/api-ref/rest/v3/edits.apks/upload) | Uploads an APK and adds to the current edit. |"]]