summaryrefslogtreecommitdiff
path: root/mediaprovider_flags.aconfig
diff options
context:
space:
mode:
author Cassy Chun-Crogan <cassycc@google.com> 2025-01-09 05:37:22 +0000
committer Cassy Chun-Crogan <cassycc@google.com> 2025-01-21 15:00:20 -0800
commitc56790fcda3124667b334a34bfae31f5fbb77c8a (patch)
tree3e7057b10dc71533c93cf84a5e527fd594c35e90 /mediaprovider_flags.aconfig
parent8ae5af1a156078d03e1c1cd0ab3f0cc49d7b588d (diff)
Default folders: do not create folders in the exclusion list
The MediaProvider creates default folders on newly mounted storage devices in ensureDefaultFolders(). Introduce an exclusion list (config_foldersToSkipInDefaultCreation) of the subset of folders that shouldn't be created in ensureDefaultFolders(). This list is empty by default but can be overriden via an RRO (see ag/31118657) for OEMs that want to not have specific default folders created. Test: atest com.android.providers.media.MediaProviderTest Test: manually tested that folders in config_foldersToSkipInDefaultCreation are not created for new users. Flag: com.android.providers.media.flags.enable_exclusion_list_for_default_folders Bug: 381310841 Change-Id: I3b39a6d5f8b577c39b6669bd761efd2a685743d2
Diffstat (limited to 'mediaprovider_flags.aconfig')
-rw-r--r--mediaprovider_flags.aconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/mediaprovider_flags.aconfig b/mediaprovider_flags.aconfig
index 52dc06c99..93b7ca837 100644
--- a/mediaprovider_flags.aconfig
+++ b/mediaprovider_flags.aconfig
@@ -248,6 +248,15 @@ flag {
}
flag {
+ name: "enable_exclusion_list_for_default_folders"
+ is_exported: true
+ namespace: "mediaprovider"
+ description: "This flag will prevent folders on the exclusion list being created during default folder creation."
+ is_fixed_read_only: true
+ bug: "381310841"
+}
+
+flag {
name: "enable_photopicker_expressive_theme"
is_exported: false
namespace: "mediaprovider"