Use the new packageManager API to forward intents use resolveActivityAsUserForExplicitType in IntentForwarderActivity to prevent checking the intent's type twice. Bug: 403565650 Flag: EXEMPT bugfix Test: manually tested (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f0b263e5f0a6c7aaa36be163db1112797905fb1d) Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:50739a9c973741505f6c18b0cf3af02b99779fbf Merged-In: I0df7c8a89db844dc5dbb771bbb68932595a86eed Change-Id: I0df7c8a89db844dc5dbb771bbb68932595a86eed
IntentResolver provides the implementation for Intent ACTION_CHOOSER
See also: ShareCompat.IntentBuilder