From 6538ea6be7d6406852e850bac734c508471e85b3 Mon Sep 17 00:00:00 2001 From: Joshua Trask Date: Wed, 17 Nov 2021 15:35:03 -0500 Subject: Derive unbundled Chooser from system version. This is a shortcut to bootstrap the unbundling work by providing an architectural equivalent to the next "phase" of unbundling while we continue investigating (i.e., in in this version, the unbundled ChooserActivity is responsible for showing the Sharesheet UI, and then it launches the user's selection via the startActivityAsCaller API). For more information about: * The "unbundling" project: go/sharesheet-unbundling * The architecture of this next (third) unbundling phase: go/sharesheet-unbundling-phases * The motivation for starting with this temporary inheritance-based implementation: b/202165481 Test: Manually tested (in combination with system-side change ag/16285975). I had to disable the auto-selection logic to see any UI (b/206831012), but I was able to get a sharesheet activity from userspace, where I selected a target that then got launched. This is *not* at parity, but it's a baseline we can use when we investigate the remaining issues. Bug: 202165481 Change-Id: Ia2b89cc0e2735c8be7ad4cfc46c626a93e7fdee3 --- Android.bp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Android.bp') diff --git a/Android.bp b/Android.bp index 41354b49..2a620448 100644 --- a/Android.bp +++ b/Android.bp @@ -58,6 +58,9 @@ android_app { min_sdk_version: "18", certificate: "platform", privileged: true, + required: [ + "privapp_whitelist_com.android.intentresolver", + ], srcs: ["src/**/*.java"], platform_apis: true, static_libs: [ -- cgit v1.2.3-59-g8ed1b