Method: edits.deobfuscationfiles.upload
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tải một tệp gỡ rối mã nguồn mới lên và đính kèm vào tệp APK được chỉ định.
Yêu cầu HTTP
- URI tải lên, đối với các yêu cầu tải nội dung nghe nhìn lên:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}
- URI siêu dữ liệu, đối với các yêu cầu chỉ dành cho siêu dữ liệu:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
packageName |
string
Giá trị nhận dạng duy nhất của ứng dụng Android.
|
editId |
string
Giá trị nhận dạng duy nhất của nội dung chỉnh sửa này.
|
apkVersionCode |
integer
Mã phiên bản của APK có Tệp gỡ rối mã nguồn đang được tải lên.
|
deobfuscationFileType |
enum (DeobfuscationFileType )
Loại tệp gỡ rối mã nguồn.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của DeobfuscationFilesUploadRequestBody
.
Nội dung phản hồi
Phản hồi cho nội dung tải lên.
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Trường |
deobfuscationFile |
object (DeobfuscationFile )
Cấu hình Tệp gỡ rối mã nguồn đã tải lên.
|
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/androidpublisher
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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`"]]