From 752ff5a127dd837abc9fcad894c665bd3620a848 Mon Sep 17 00:00:00 2001 From: Zim Date: Fri, 7 Feb 2020 15:06:09 +0000 Subject: [PATCH] Introduce preserveLegacyExternalStorage manifest attribute This attribute will default to false and does nothing in the false state. In the true state, it will allow an updating app preserve any legacy storage access from the existing installed version on device. Test: atest RestrictedPermissionsTest Test: atest RestrictedStoragePermissionSharedUidTest Bug: 148944140 Change-Id: Id5b6d7aadd9d9844c8bd1164087a9e093481e234 --- api/current.txt | 1 + core/res/res/values/attrs_manifest.xml | 15 +++++++++++++++ core/res/res/values/public.xml | 1 + 3 files changed, 17 insertions(+) diff --git a/api/current.txt b/api/current.txt index 5e8974fb82d70..2a77fce06ddf8 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 e231c3a323fdd..16bed503c5599 100644 --- a/core/res/res/values/attrs_manifest.xml +++ b/core/res/res/values/attrs_manifest.xml @@ -1770,6 +1770,21 @@ --> + + + +