Limit loading in on-device Android containers
Stay organized with collections
Save and categorize content based on your preferences.
On-device Android containers are apps that simulate the Android OS on an
Android-powered device. This includes both apps that simulate the Android OS in
its entirety and apps that only simulate portions of the Android OS.
If you don't want on-device Android container apps to load in or proxy your Play
Store app, you can add a string to your app manifest that declares this
restriction.
Create a property under the
<application>
in your Android
manifest with android:name
set to REQUIRE_SECURE_ENV
and android:value
set
to 1:
<property android:name="REQUIRE_SECURE_ENV" android:value="1" />
For this use case, you can use the REQUIRE_SECURE_ENV
property regardless of
the Android version that your app runs on.
On-device Android container apps are
required
to respect this declaration.
For more information about on-device Android containers, see the Help
Center.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 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)."]]