diff options
| author | 2025-03-10 16:27:29 +0100 | |
|---|---|---|
| committer | 2025-03-13 12:49:03 +0100 | |
| commit | ef177d86282399abc1276b03c7f06cfe989067a0 (patch) | |
| tree | 5dae937a9b6c646cedc5132d60da35399edf0650 /libs/androidfw/PathUtils.cpp | |
| parent | 90445668405ced29f8469f0c51c8eabe76fc7b41 (diff) | |
Fix app icon of notifications posted by direct-boot-aware packages
To determine whether an app is "headless", we use getLaunchIntentForPackage; when this is called before the device is unlocked, it will only match direct-boot-aware launcher activities. However, it's fairly common for direct-boot-aware apps (such as DWB) to only have a direct-boot-unaware launcher activity, because they only intend to post notifications and not actually show UI until the user has unlocked the device.
Thus we add an overload to getLaunchIntentForPackage() that supports matching activities regardless of their direct-boot-awareness.
Bug: 401961480
Test: atest ApplicationPackageManagerTest
Flag: android.app.notifications_redesign_app_icons
Change-Id: Ie4cac3f8eeb92282655e9b6a870a13660e1e3c44
Diffstat (limited to 'libs/androidfw/PathUtils.cpp')
0 files changed, 0 insertions, 0 deletions