Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34cb2ad4 authored by Chen Xu's avatar Chen Xu
Browse files

apply correct @SystemAPI for PackageManager

Bug: 138772432
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSuspendPackage
Change-Id: I93441ed2dba933946aeaeabcfdb65e41bfccc447
(cherry picked from commit 6dcc20e7)
Merged-in: I93441ed2dba933946aeaeabcfdb65e41bfccc447
parent c5480019
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -305,7 +305,7 @@ public final class SmsApplication {
                Uri.fromParts(SCHEME_SMSTO, "", null));
        List<ResolveInfo> respondServices = packageManager.queryIntentServicesAsUser(intent,
                PackageManager.MATCH_DIRECT_BOOT_AWARE | PackageManager.MATCH_DIRECT_BOOT_UNAWARE,
                UserHandle.getUserHandleForUid(userId));
                UserHandle.of(userId));
        for (ResolveInfo resolveInfo : respondServices) {
            final ServiceInfo serviceInfo = resolveInfo.serviceInfo;
            if (serviceInfo == null) {