Sử dụng tính năng giới hạn đối tượng người dùng cho bản phát hành để giới hạn phạm vi phân phối ứng dụng của bạn
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ể giảm đáng kể khả năng vô tình phân phối một phiên bản ứng dụng chưa sẵn sàng bằng cách sử dụng quy định hạn chế đối tượng phát hành trong gói ứng dụng hoặc tệp APK. Bạn có thể sử dụng tính năng này để ngăn một bản dựng được phát hành cho người dùng chính thức thông qua Play Console hoặc thậm chí là không phân phối qua Play Console.
Phát hành việc sử dụng tính năng giới hạn đối tượng
Để sử dụng quy định hạn chế đối tượng phát hành, bạn phải thêm phần tử <meta-data> vào phần tử <application> trong tệp AndroidManifest.xml. Phần tử này kiểm soát mức độ phân phối của bản dựng.
Thẻ <meta-data> phải đặt thuộc tính android:value thành chuỗi trống và thuộc tính android:name phải là một trong các giá trị sau:
Bạn có thể tải gói ứng dụng hoặc tệp APK lên Play Console và phân phối cho người dùng thông qua tính năng Chia sẻ ứng dụng nội bộ hoặc bất kỳ kênh kiểm thử nào, bao gồm cả kênh kiểm thử công khai. Bạn không thể đưa ứng dụng này vào bản phát hành trên kênh Phát hành công khai.
Điều này nhằm ngăn chặn việc vô tình phát hành phiên bản thử nghiệm của ứng dụng cho người dùng phiên bản chính thức.
Bạn có thể tải gói ứng dụng hoặc tệp APK lên Play Console và phân phối cho người dùng thông qua tính năng Chia sẻ ứng dụng nội bộ hoặc bất kỳ kênh thử nghiệm khép kín nào. Bạn không thể đưa cấu phần phần mềm này vào bản phát hành trên kênh Phát hành công khai hoặc kênh Kiểm thử công khai.
Điều này nhằm ngăn chặn việc vô tình phát hành phiên bản thử nghiệm của ứng dụng cho một số lượng lớn người dùng.
Bạn có thể tải gói ứng dụng hoặc tệp APK lên Play Console và phân phối cho người dùng thông qua tính năng Chia sẻ ứng dụng nội bộ hoặc Kênh thử nghiệm nội bộ. Bạn không thể đưa cấu phần phần mềm này vào bản phát hành trên kênh Phát hành công khai, Kiểm thử công khai hoặc Kiểm thử khép kín.
Điều này nhằm ngăn chặn việc vô tình phát hành các phiên bản thử nghiệm của ứng dụng bên ngoài nhóm của bạn.
Bạn không thể tải gói ứng dụng hoặc tệp APK lên hoặc phân phối qua Play Console.
Điều này nhằm ngăn chặn việc phát hành các phiên bản ứng dụng chỉ dành cho nhà phát triển cho bất kỳ người dùng nào. Ví dụ: một bản dựng đã tắt các tính năng bảo mật chính để dễ dàng gỡ lỗi hơn.
Ví dụ: để ngăn một bản dựng được phát hành cho người dùng chính thức, hãy cập nhật tệp AndroidManifest.xml như sau:
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# Use a release audience restriction to limit your app's distribution\n\nYou can greatly reduce the chances of accidentally distributing a version of\nyour app that isn't ready yet by using a release audience restriction in your\napp bundle or APK. You can use this to prevent a build from being released to\nproduction users through Play Console, or even from being distributed through\nPlay Console at all.\n\nRelease audience restrictions usage\n-----------------------------------\n\nTo use a release audience restriction, you must add a `\u003cmeta-data\u003e` element to\nthe `\u003capplication\u003e` element in your `AndroidManifest.xml` file. This element\ncontrols how far the distribution of the build can progress.\nThe `\u003cmeta-data\u003e` tag must have its `android:value` attribute set to the empty\nstring, and the `android:name` attribute must be one of the following values:\n\n| Name | Effect |\n|-----------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` com.google.android.play.largest_release_audience.NONPRODUCTION ` | The app bundle or APK can be uploaded to Play Console and distributed to users through Internal App Sharing or any testing track, including open testing. It **cannot** be included in a release on the Production track. This is intended to prevent accidental release of test versions of apps to production users. |\n| ` com.google.android.play.largest_release_audience.CLOSED_TESTING ` | The app bundle or APK can be uploaded to Play Console and distributed to users through Internal App Sharing or any closed testing track. It **cannot** be included in a release on the Production or Open Testing tracks. This is intended to prevent accidental release of test versions of apps to a large number of users. |\n| ` com.google.android.play.largest_release_audience.INTERNAL_TESTING ` | The app bundle or APK can be uploaded to Play Console and distributed to users through Internal App Sharing or the Internal Test Track. It **cannot** be included in a release on the Production, Open Testing, or Closed Testing tracks. This is intended to prevent accidental release of test versions of apps outside your immediate team. |\n| ` com.google.android.play.largest_release_audience.STOPSHIP ` | The app bundle or APK cannot be uploaded to or distributed through Play Console. This is intended to prevent releasing development-only versions of apps to any users. For example, a build which has key security features disabled for easier debugging. |\n\n| **Note:** Because the restriction is built into your app bundle or APK, you can only change it by compiling a new build of your app with a new versionCode.\n\nFor example, to prevent a build being released to production users, update your\n`AndroidManifest.xml` file as follows: \n\n \u003cmanifest ... \u003e\n \u003capplication ... \u003e\n ...\n \u003cmeta-data\n android:name=\"com.google.android.play.largest_release_audience.NONPRODUCTION\"\n android:value=\"\" /\u003e\n \u003c/application\u003e\n \u003c/manifest\u003e\n\n| **Important:** The `\u003cmeta-data\u003e` element must be a direct child of the `\u003capplication\u003e` element in order for it to be detected by Google Play. It won't be detected if it is part of an `\u003cactivity\u003e` or `\u003cservice\u003e` element. If there are multiple restrictions in your application manifest, then the most restrictive will be applied.\n| **Tip:** If you have an Android library that adds some optional features for testing or internal debugging, you can add the restriction to the library's manifest. Any build which includes the library will then automatically include the release audience restriction."]]