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

Commit 54513ae4 authored by Manjeet Rulhania's avatar Manjeet Rulhania Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE booting with new permissions subsystem"

parents 0c45cc3f 46199af0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -86,6 +86,10 @@ public class PermissionMigrationHelperImpl implements PermissionMigrationHelper
        Map<Integer, Map<String, LegacyPermissionState>> appIdPermissionStates = new ArrayMap<>();

        RuntimePermissionsState legacyState = legacyPersistence.readForUser(UserHandle.of(userId));
        if (legacyState == null) {
            return appIdPermissionStates;
        }

        PackageManagerLocal packageManagerLocal =
                LocalManagerRegistry.getManager(PackageManagerLocal.class);