Giới hạn tải trong vùng chứa Android trên thiết bị
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.
Vùng chứa Android trên thiết bị là các ứng dụng mô phỏng hệ điều hành Android trên thiết bị chạy Android. Vùng chứa bao gồm cả ứng dụng mô phỏng toàn bộ hệ điều hành Android và ứng dụng chỉ mô phỏng một số phần của hệ điều hành Android.
Nếu không muốn các ứng dụng vùng chứa Android trên thiết bị tải hoặc đại diện cho ứng dụng Cửa hàng Play, bạn có thể thêm một chuỗi vào tệp kê khai ứng dụng để khai báo hạn chế này.
Tạo một thuộc tính trong <application>
trong tệp kê khai Android với android:name
được đặt thành REQUIRE_SECURE_ENV
và android:value
được đặt là 1:
<property android:name="REQUIRE_SECURE_ENV" android:value="1" />
Đối với trường hợp sử dụng này, bạn có thể sử dụng thuộc tính REQUIRE_SECURE_ENV
cho mọi phiên bản Android mà ứng dụng chạy trên đó.
Bắt buộc phải có các ứng dụng vùng chứa Android trên thiết bị để tuân thủ nội dung khai báo này.
Để biết thêm thông tin về vùng chứa Android trên thiết bị, hãy xem Trung tâm trợ giúp.
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: 2024-04-02 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: 2024-04-02 UTC."],[],[],null,["# Limit loading in on-device Android containers\n\n*On-device Android containers* are apps that simulate the Android OS on an\nAndroid-powered device. This includes both apps that simulate the Android OS in\nits entirety and apps that only simulate portions of the Android OS.\n\nIf you don't want on-device Android container apps to load in or proxy your Play\nStore app, you can add a string to your app manifest that declares this\nrestriction.\n\nCreate a [property](/guide/topics/manifest/property-element) under the\n[`\u003capplication\u003e`](/guide/topics/manifest/application-element) in your Android\nmanifest with `android:name` set to `REQUIRE_SECURE_ENV` and `android:value` set\nto 1: \n\n \u003cproperty android:name=\"REQUIRE_SECURE_ENV\" android:value=\"1\" /\u003e\n\nFor this use case, you can use the `REQUIRE_SECURE_ENV` property regardless of\nthe Android version that your app runs on.\n\nOn-device Android container apps are\n[required](https://support.google.com/googleplay/android-developer/answer/9888379)\nto respect this declaration.\n\nFor more information about on-device Android containers, see the [Help\nCenter](https://support.google.com/googleplay/android-developer/answer/13609005)."]]