Merge "Adding Intent Redirection for PhotoPicker Intent" into udc-dev am: e3cc21a6d1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22712601

Change-Id: I431eada31cd5f60a1fda84025a036c7f67570886
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Himanshu Gupta
2023-04-27 13:48:05 +00:00
committed by Automerger Merge Worker

View File

@@ -437,6 +437,16 @@ public class DefaultCrossProfileIntentFiltersUtils {
.addCategory(Intent.CATEGORY_DEFAULT) .addCategory(Intent.CATEGORY_DEFAULT)
.build(); .build();
private static final DefaultCrossProfileIntentFilter CLONE_TO_PARENT_PHOTOPICKER_SELECTION =
new DefaultCrossProfileIntentFilter.Builder(
DefaultCrossProfileIntentFilter.Direction.TO_PARENT,
/* flags= */ 0x00000018, // 0x00000018 means FLAG_IS_PACKAGE_FOR_FILTER
// and FLAG_ALLOW_CHAINED_RESOLUTION set
/* letsPersonalDataIntoProfile= */ false)
.addAction(MediaStore.ACTION_USER_SELECT_IMAGES_FOR_APP)
.addCategory(Intent.CATEGORY_DEFAULT)
.build();
/* /*
Allowing send action from clone to parent profile to share content from clone apps to parent Allowing send action from clone to parent profile to share content from clone apps to parent
apps apps
@@ -611,7 +621,8 @@ public class DefaultCrossProfileIntentFiltersUtils {
CLONE_TO_PARENT_VIEW_ACTION, CLONE_TO_PARENT_VIEW_ACTION,
CLONE_TO_PARENT_PICK_INSERT_ACTION, CLONE_TO_PARENT_PICK_INSERT_ACTION,
CLONE_TO_PARENT_DIAL_DATA, CLONE_TO_PARENT_DIAL_DATA,
CLONE_TO_PARENT_SMS_MMS CLONE_TO_PARENT_SMS_MMS,
CLONE_TO_PARENT_PHOTOPICKER_SELECTION
); );
} }
} }