diff options
| author | 2024-07-26 04:04:25 +0000 | |
|---|---|---|
| committer | 2024-07-27 03:22:28 +0000 | |
| commit | 577bfc96ccb6a4655863421b37ed1b59177695da (patch) | |
| tree | 1c3f69de4481b71a062a08f6ff90d07f41d5e240 /api/api_test.go | |
| parent | 6b9f4da5cbeda9bbfff7e05a10b3b68a0c8a810f (diff) | |
Use task's userId to obtain PackageManager instance
This is a follow up to Ia4b2cf80278e49fe1b6d26ea99d4be48110c7232 with a
proper fix. Instead of using MATCH_UNINSTALLED_PACKAGES, which worked
because the package is technically "uninstalled" for the current user
(because it's installed for another user), this change now builds a user
context using the userId in TaskInfo, and whose PackageManager can now
obtain the ActivityInfo without additional flags.
Bug: 354884302
Fix: 355306146
Test: with HSUM enabled, app name and icon can be obtained through
PackageManager without crashing
Flag: EXEMPT bugfix
Change-Id: I54c3a4332dbb330b0c4ff9df0e86ec038716f7ff
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions