summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Gavin Corkery <gavincorkery@google.com> 2022-02-28 17:38:13 +0000
committer Gavin Corkery <gavincorkery@google.com> 2022-03-01 18:27:08 +0000
commit70447223918adc4e858666169e7d88bcfbf3bf6c (patch)
treeaaff977a54f78fc65aee7014f2bf31028ea977ad /libs/androidfw/StringPool.cpp
parentc4293b56e22d9c3a9092102782a07103eaacba68 (diff)
Add isSameApp to PackageManagerInternal
Adds a new method to PackageManagerInternal that checks if a given package belongs to the calling uid. This logic also accounts for calling uids in the sdk sandbox range. Deduplicates two methods in NotificationManager and ActivityTaskManager which have implemented this logic. Bug: 219750831 Test: atest NotificationManagerServiceTest Test: Manual test using Sdk Sandbox test app Change-Id: I1c566f75c81112dfeeb664827dcb27768959c377
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions