diff options
| author | 2024-06-28 15:49:41 -0500 | |
|---|---|---|
| committer | 2024-07-08 19:19:29 +0000 | |
| commit | 199a542cf1fd2845767ca2abc38070593ecdc152 (patch) | |
| tree | 24f7866d28bc724c5233be93317c97713877456b /libs/androidfw/StringPool.cpp | |
| parent | b283f3d313904f0623e979e301a90634e1a01215 (diff) | |
Check system and phone UID in multiple-user-aware way
This CL calls UserHandle.isSameApp to make sure the UID check with
Process.SYSTEM_UID and PHONE_UID are multiple-user-aware.
The logic to directly compare UID with PROCESS.XXX_UID only works for
system user. For secondary users, system/phone processes may run with
UID prefixed with user id.
UserHandle.isSameApp helps to correctly detect the system/phone process
by comparing only the App id part.
Bug: 328511085
Test: atest PackageManagerServiceTest LocationAccessPolicyTest
Flag: com.android.internal.telephony.flags.support_phone_uid_check_for_multiuser
Change-Id: I99b6979ed7775f9aad0e9b241f10d8b50c468167
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions