diff options
author | 2025-02-06 10:49:44 +1100 | |
---|---|---|
committer | 2025-02-06 12:51:49 +1100 | |
commit | b25b978e22e7a973c9015fd2d618fcd7710f1fdb (patch) | |
tree | 5bd5e0e82508ba1102d83d05711ba5ad2a3b3b7a | |
parent | 616e5b91d2e7a10714b22cff37150e8c25a096b3 (diff) |
Introduce com.android.documentsui.flags.redirect_get_content
This flag will be used to guard a new activity that will decide
whether to redirect a GET_CONTENT request to Photopicker or not.
The flags_packages are required otherwise it fails with an error:
error: attribute 'android:featureFlag' has flag
'com.android.documentsui.flags.redirect_get_content'
not found in flags from --feature_flags parameter
Bug: 377771195
Test: EXEMPT adding a flag
Flag: com.android.documentsui.flags.redirect_get_content
Change-Id: I4ab2100c8e1b9bd4cb237acec334cb0aff14cb19
-rw-r--r-- | Android.bp | 3 | ||||
-rw-r--r-- | flags.aconfig | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index cd0b9c99c..f10c0b400 100644 --- a/Android.bp +++ b/Android.bp @@ -144,6 +144,7 @@ android_library { defaults: ["documentsui_defaults"], manifest: "AndroidManifest.xml", + flags_packages: ["docsui-flags-aconfig"], resource_dirs: [], libs: ["DocumentsUI-lib"], @@ -163,6 +164,8 @@ android_app { static_libs: ["DocumentsUI-lib"], resource_dirs: [], + flags_packages: ["docsui-flags-aconfig"], + licenses: [ "Android-Apache-2.0", "packages_apps_DocumentsUI_res_drawable_pd_license", diff --git a/flags.aconfig b/flags.aconfig index 5af4a2656..fc2a7a023 100644 --- a/flags.aconfig +++ b/flags.aconfig @@ -37,3 +37,10 @@ flag { description: "Enables in-app progress display of file operations" bug: "378011512" } + +flag { + name: "redirect_get_content" + namespace: "documentsui" + description: "Redirects GET_CONTENT requests to Photopicker when appropriate" + bug: "377771195" +} |