summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Himanshu Gupta <himanshuz@google.com> 2023-03-28 17:32:49 +0100
committer Himanshu Gupta <himanshuz@google.com> 2023-03-28 17:32:49 +0100
commit9960437e735acf0938f14e0b65fa30abb31e8973 (patch)
tree1e26120da3ce0285fe7054e5505451e7b719786e /libs/androidfw/ResourceTimer.cpp
parent7871be0c9765b28aa3c400a0e0a7a940a38050f3 (diff)
Populating ResolveInfo.UserHandle for explicit intents resolution.
ResolveInfo.UserHandle was added to allow callers like sharesheet to start cross-profile activities resolutions in correct user space vis-a-vis clone profile's use case. Currently this field is only populated for implicit intents, but Sharesheet has a use case where an app can suuply initial intents as explicit ones. In this case, pm does not set the userHandle in returned ResolveInfo, causing NPE in sharesheet while starting the activity. (As sharesheet expects the userHandle to start activity be derived from resolveInfo.userHandle) This change adds the context's userHandle as the userspace to resolve explicit intents into. Bug: 273776367 Test: android.sharesheet.cts.CtsSharesheetDeviceTest Change-Id: I46a4ed84289fc7f3292ddd37342afc9b1d778214
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions