Tải tệp APK đã tạo xuống bằng Play Developer Publishing API (API Phát hành của nhà phát triển Play)
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.
Bạn có thể tải tất cả tệp APK mà Google Play tạo từ một gói ứng dụng mà bạn tải lên Play Console bằng tính năng Tệp APK đã tạo trong API Nhà phát triển Google Play.
Cách sử dụng tệp APK được tạo
Quy trình phát hành thông thường, trong đó có việc tải các tệp APK đã tạo xuống trước khi phát hành trên bất kỳ kênh nào sẽ diễn ra như sau:
Tạo nội dung chỉnh sửa mới bằng cách gọi Edits: Insert và chỉ định ứng dụng mà bạn muốn sửa đổi.
Chỉ định gói cho một kênh bằng cách gọi Edits.tracks: update.
Để tránh phát hành phiên bản mới cho người dùng cuối ở giai đoạn này, hãy đặt trạng thái của bản phát hành mới thành nháp.
Cam kết chỉnh sửa.
Tải các tệp APK được tạo từ gói mà bạn đã tải lên ở bước 2 bằng các phương thức Tệp APK đã tạo trong API.
Xử lý tệp APK đã tải xuống.
Tạo một nội dung chỉnh sửa mới như bạn đã làm ở bước 1.
Quảng bá bản phát hành nháp lên bản phát hành theo giai đoạn hoặc phát hành đầy đủ bằng cách gọi Edits.tracks: update.
Cam kết chỉnh sửa.
Cách tạo thư mục APK
Nếu bạn cần sử dụng tệp APK với bundletool, hãy làm theo các bước sau để tạo những tệp APK đó bằng cách sử dụng Generated APK API (API APK đã tạo):
Khi gọi phương thức danh sách APK đã tạo, phản hồi sẽ chứa trường TargetingInfo (Thông tin nhắm mục tiêu) cho từng khoá ký. Ghi giá trị trường này vào tệp có tên toc.json.
Tải các tệp APK xuống và đặt chúng vào thư mục cùng với toc.json đã tạo ở bước trước. Lưu ý rằng mỗi tệp APK đã tải xuống phải được đặt tên là "DownloadId.apk", trong đó DownloadId là mã nhận dạng dùng để tải tệp APK xuống qua phương thức tải tệp APK đã tạo xuống.
Hiện bạn có thể sử dụng thư mục này với bundletool phiên bản 1.15.2 trở lên.
Ví dụ: bundletool install-apks --apks /path/to/created/directory.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eDownload all APKs generated by Google Play from your app bundle using the Generated APKs feature in the Google Play Developer API.\u003c/p\u003e\n"],["\u003cp\u003eA typical workflow involves uploading a bundle, assigning it to a track as a draft, downloading generated APKs, processing them, and then promoting the draft to a staged or full rollout.\u003c/p\u003e\n"],["\u003cp\u003eTo use generated APKs with bundletool, create a directory containing a toc.json file with TargetingInfo from the API response and downloaded APKs named using their DownloadId.\u003c/p\u003e\n"]]],["Generated APKs, from app bundles uploaded to Google Play Console, can be downloaded via the Google Play Developer API. The process involves creating an edit, uploading a bundle, assigning it to a draft track, and committing the edit. Then, the APKs are downloaded. Optionally, a new edit is created to promote the draft release, followed by another commit. To use APKs with `bundletool`, a `toc.json` file is generated and combined with the downloaded APKs in a directory, each named \"DownloadId.apk\".\n"],null,["# Download generated APKs using the Play Developer Publishing API\n\nYou can download all APKs that Google Play generated from an app bundle\nyou've uploaded to Play Console using the *Generated APKs* feature in the\n[Google Play Developer API](/android-publisher).\n\nHow to use generated APKs\n-------------------------\n\nA typical publishing workflow which includes downloading generated APKs before\nthey are released on any track would be the following:\n\n1. Create a new edit, by calling [`Edits: Insert`](/android-publisher/api-ref/rest/v3/edits/insert) and specifying the app you want to modify.\n2. Upload a bundle by calling [`Edits.bundles: upload`](/android-publisher/api-ref/rest/v3/edits.bundles/upload).\n3. Assign the bundle to a track by calling [`Edits.tracks: update`](/android-publisher/api-ref/rest/v3/edits.tracks/update). To avoid releasing the new version to end users at this stage, set the status of the new release to **draft**.\n4. Commit the edit.\n5. Download the APKs generated from the bundle that you uploaded in step 2 using the Generated APKs methods in the API.\n6. Process your downloaded APKs.\n7. Create a new edit as you did in step 1.\n8. Promote the draft release to a staged or full rollout by calling [`Edits.tracks: update`](/android-publisher/api-ref/rest/v3/edits.tracks/update).\n9. Commit the edit.\n\n| **Tip:** Alternatively, if you want to avoid committing a draft release, you can release a new version of the app to an internal test track before downloading the generated APKs.\n\nHow to construct your APK directory\n-----------------------------------\n\nIf you need to use your APK files with `bundletool`, follow these steps to build\nthem using the Generated APKs API:\n\n1. When calling the Generated APKs list method, the response will contain **TargetingInfo** field for each signing key. Write this field value to a file named `toc.json`.\n2. Download your APKs, and put them in a directory with the `toc.json` created in the previous step. Note that each downloaded APK must be named \"**DownloadId.apk** \", where *DownloadId* is the ID used to download the APK from the Generated APKs download method.\n3. You can now use this directory with `bundletool` version 1.15.2 or higher. For example, `bundletool install-apks --apks /path/to/created/directory`."]]