Fix CTS CallComposerTest failure when HSUM is on
The CLs fixes the CTS failures in PhoneInterfaceManager.uploadCallComposerPicture
- It calls PackageManger.getPackageUid without applying to current user.
The result will mismatch the UID from Binder.getCallingUid. It is
fixed by calling private utility method enforceCallingPackage which
has correctly applied to the right user.
- It calls RoleManager.getRoleHolders which applies to SYSTEM_USER. The
fix is to call getRoleHoldersAsUser and applies to current user
instead.
Bug: 352173972
Test: atest CallComposerTest with HSUM both on and off
Flag: com.android.internal.telephony.flags.support_phone_uid_check_for_multiuser
Change-Id: I72d7812a657f6ec567b4cb9481ef0fbe117b17c4
1 file changed