diff options
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rw-r--r-- | core/res/res/values/attrs_manifest.xml | 15 | ||||
| -rw-r--r-- | core/res/res/values/public.xml | 1 |
3 files changed, 17 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 5e8974fb82d7..2a77fce06ddf 100644 --- a/api/current.txt +++ b/api/current.txt @@ -1082,6 +1082,7 @@ package android { field public static final int preferenceScreenStyle = 16842891; // 0x101008b field public static final int preferenceStyle = 16842894; // 0x101008e field public static final int presentationTheme = 16843712; // 0x10103c0 + field public static final int preserveLegacyExternalStorage = 16844312; // 0x1010618 field public static final int previewImage = 16843482; // 0x10102da field public static final int primaryContentAlpha = 16844114; // 0x1010552 field public static final int priority = 16842780; // 0x101001c diff --git a/core/res/res/values/attrs_manifest.xml b/core/res/res/values/attrs_manifest.xml index e231c3a323fd..16bed503c559 100644 --- a/core/res/res/values/attrs_manifest.xml +++ b/core/res/res/values/attrs_manifest.xml @@ -1770,6 +1770,21 @@ --> <attr name="requestLegacyExternalStorage" format="boolean" /> + <!-- If {@code true} this app would like to preserve the legacy storage + model from a previously installed version. Note that this may not always be + respected due to policy or backwards compatibility reasons. + + <p>This has no effect on the first install of an app on a device. + For an updating app, setting this to {@code true} will preserve the legacy behaviour + configured by the {@code requestLegacyExternalStorage} flag. If on an update, this + flag is set to {@code false} then the legacy access is not preserved, such an app can + only have legacy access with the {@code requestLegacyExternalStorage} flag. + <p> + + The default value is {@code false}. + --> + <attr name="preserveLegacyExternalStorage" format="boolean" /> + <!-- If {@code true} this app declares that it should be visible to all other apps on device, regardless of what they declare via the {@code queries} tags in their manifest. diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 0edad3b0d9cd..567a4c7219b8 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -3018,6 +3018,7 @@ <!-- @hide @SystemApi --> <public name="isAutofillInlineSuggestionTheme" /> <public name="allowNativeHeapPointerTagging" /> + <public name="preserveLegacyExternalStorage" /> </public-group> <public-group type="drawable" first-id="0x010800b5"> |