Files
Flexera-Launcher/src/com/android/launcher3/util
Pinyao Ting f0261b5b38 [RESTRICT AUTOMERGE] Fix permission issue in legacy shortcut
When building legacy shortcut, Launcher calls
PackageManager#resolveActivity to retrieve necessary permission to
launch the intent.

However, when the source app wraps an arbitrary intent within
Intent#createChooser, the existing logic will fail because launching
Chooser doesn't require additional permission.

This CL fixes the security vulnerability by performing the permission
check against the intent that is wrapped within.

Bug: 270152142
Test: manual
Change-Id: I05ccbde0a873569f24af4d3675a86830ba54c43f
2023-06-05 18:15:32 +00:00
..