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

Commit 3b865312 authored by Rhed Jao's avatar Rhed Jao
Browse files

Fix get documenter package name fail

Bug: 124719481
Test: veriry system grants permissions to documenter
Change-Id: Ie8d67aed0bc0e2631b04b370cc55132dd512f398
parent 4411d8d4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -20005,8 +20005,11 @@ public class PackageManagerService extends IPackageManager.Stub
    private @Nullable String getDocumenterPackageName() {
        final Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
        intent.addCategory(Intent.CATEGORY_OPENABLE);
        intent.setType("*/*");
        final String resolvedType = intent.resolveTypeIfNeeded(mContext.getContentResolver());
        final List<ResolveInfo> matches = queryIntentActivitiesInternal(intent, null,
        final List<ResolveInfo> matches = queryIntentActivitiesInternal(intent, resolvedType,
                MATCH_SYSTEM_ONLY | MATCH_DIRECT_BOOT_AWARE | MATCH_DIRECT_BOOT_UNAWARE
                        | MATCH_DISABLED_COMPONENTS,
                UserHandle.myUserId());