オンデバイス Android コンテナでの読み込みを制限する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
オンデバイス Android コンテナは、Android デバイスで Android OS をシミュレートするアプリです。このようなアプリには、Android OS 全体をシミュレートするアプリと、Android OS の一部のみをシミュレートするアプリの両方があります。
オンデバイス Android コンテナアプリを Google Play ストア アプリに読み込まない場合、またはプロキシを使用しない場合は、この制限を宣言する文字列をアプリ マニフェストに追加できます。
Android マニフェストの <application>
の下にプロパティを作成し、android:name
を REQUIRE_SECURE_ENV
に、android:value
を 1 に設定します。
<property android:name="REQUIRE_SECURE_ENV" android:value="1" />
このユースケースでは、アプリが実行されている Android バージョンに関係なく REQUIRE_SECURE_ENV
プロパティを使用できます。
オンデバイス Android コンテナアプリは、この宣言に従う必要があります。
オンデバイス Android コンテナの詳細については、ヘルプセンターをご覧ください。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 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)."]]