Method: edits.deobfuscationfiles.upload
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Lädt eine neue Offenlegungsdatei hoch und hängt sie an das angegebene APK an.
HTTP-Anfrage
- Upload-URI für Anfragen zum Hochladen von Medien:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}
- Metadaten-URI für Anfragen, die nur Metadaten enthalten:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
packageName |
string
Eindeutige Kennung für die Android-App.
|
editId |
string
Eindeutige Kennung für diese Änderung.
|
apkVersionCode |
integer
Der Versionscode des APK, dessen Offenlegungsdatei hochgeladen wird.
|
deobfuscationFileType |
enum (DeobfuscationFileType )
Der Typ der Offenlegungsdatei.
|
Anfragetext
Der Anfragetext enthält eine Instanz von DeobfuscationFilesUploadRequestBody
.
Antworttext
Antworten für den Upload.
Bei Erfolg enthält der Antworttext Daten mit der folgenden Struktur:
Felder |
deobfuscationFile |
object (DeobfuscationFile )
Die hochgeladene Konfigurationsdatei.
|
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/androidpublisher
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003eUploads a new deobfuscation file and attaches it to a specified Android Package Kit (APK).\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the package name, edit ID, APK version code, and deobfuscation file type.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes HTTP POST requests for both media upload and metadata-only interactions.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses include the uploaded Deobfuscation File configuration details.\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 content outlines how to upload a deobfuscation file to an Android app's APK. It details two `POST` request URIs for uploading, either media or metadata. The URL requires path parameters: `packageName`, `editId`, `apkVersionCode`, and `deobfuscationFileType`. The request body uses `DeobfuscationFilesUploadRequestBody`. A successful response includes a `deobfuscationFile` object. This operation needs the `https://www.googleapis.com/auth/androidpublisher` authorization scope.\n"],null,["# Method: edits.deobfuscationfiles.upload\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.DeobfuscationFilesUploadResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUploads a new deobfuscation file and attaches to the specified APK.\n\n### HTTP request\n\n- Upload URI, for media upload requests: \n `POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}`\n- Metadata URI, for metadata-only requests: \n `POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `packageName` | `string` Unique identifier for the Android app. |\n| `editId` | `string` Unique identifier for this edit. |\n| `apkVersionCode` | `integer` The version code of the APK whose Deobfuscation File is being uploaded. |\n| `deobfuscationFileType` | `enum (`[DeobfuscationFileType](/android-publisher/api-ref/rest/v3/edits.deobfuscationfiles#DeobfuscationFileType)`)` The type of the deobfuscation file. |\n\n### Request body\n\nThe request body contains an instance of `DeobfuscationFilesUploadRequestBody`.\n\n### Response body\n\nResponses for the upload.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"deobfuscationFile\": { object (/android-publisher/api-ref/rest/v3/edits.deobfuscationfiles#DeobfuscationFile) } } ``` |\n\n| Fields ||\n|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deobfuscationFile` | `object (`[DeobfuscationFile](/android-publisher/api-ref/rest/v3/edits.deobfuscationfiles#DeobfuscationFile)`)` The uploaded Deobfuscation File configuration. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]