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

Commit d69c9e7e authored by Russell Brenner's avatar Russell Brenner
Browse files

Match SUW package after FBE reboot

Add MATCH_DIRECT_BOOT_* flags when querying for SUW package.

Bug: 28027590
Change-Id: Ibd454340053ce24299f316e92cd6ec6b350d695e
parent 6cfecf4d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -17006,7 +17006,9 @@ Slog.v(TAG, ":: stepped forward, applying functor at tag " + parser.getName());
        intent.addCategory(Intent.CATEGORY_SETUP_WIZARD);
        final List<ResolveInfo> matches = queryIntentActivitiesInternal(intent, null,
                MATCH_SYSTEM_ONLY | MATCH_DISABLED_COMPONENTS, UserHandle.myUserId());
                MATCH_SYSTEM_ONLY | MATCH_DIRECT_BOOT_AWARE | MATCH_DIRECT_BOOT_UNAWARE
                        | MATCH_DISABLED_COMPONENTS,
                UserHandle.myUserId());
        if (matches.size() == 1) {
            return matches.get(0).getComponentInfo().packageName;
        } else {