apply correct @SystemAPI for PackageManager
Bug: 138772432 Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSuspendPackage Change-Id: I93441ed2dba933946aeaeabcfdb65e41bfccc447
This commit is contained in:
@@ -300,7 +300,7 @@ public final class SmsApplication {
|
|||||||
Uri.fromParts(SCHEME_SMSTO, "", null));
|
Uri.fromParts(SCHEME_SMSTO, "", null));
|
||||||
List<ResolveInfo> respondServices = packageManager.queryIntentServicesAsUser(intent,
|
List<ResolveInfo> respondServices = packageManager.queryIntentServicesAsUser(intent,
|
||||||
PackageManager.MATCH_DIRECT_BOOT_AWARE | PackageManager.MATCH_DIRECT_BOOT_UNAWARE,
|
PackageManager.MATCH_DIRECT_BOOT_AWARE | PackageManager.MATCH_DIRECT_BOOT_UNAWARE,
|
||||||
UserHandle.getUserHandleForUid(userId));
|
UserHandle.of(userId));
|
||||||
for (ResolveInfo resolveInfo : respondServices) {
|
for (ResolveInfo resolveInfo : respondServices) {
|
||||||
final ServiceInfo serviceInfo = resolveInfo.serviceInfo;
|
final ServiceInfo serviceInfo = resolveInfo.serviceInfo;
|
||||||
if (serviceInfo == null) {
|
if (serviceInfo == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user