commit | 70447223918adc4e858666169e7d88bcfbf3bf6c | [log] [tgz] |
---|---|---|
author | Gavin Corkery <gavincorkery@google.com> | Mon Feb 28 17:38:13 2022 +0000 |
committer | Gavin Corkery <gavincorkery@google.com> | Tue Mar 01 18:27:08 2022 +0000 |
tree | aaff977a54f78fc65aee7014f2bf31028ea977ad | |
parent | c4293b56e22d9c3a9092102782a07103eaacba68 [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