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

Commit b43ec54c authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Write packages.list when granting permissions.

Some permissions have the side effect of adding GIDs right now,
so we need to flush out packages.list.

Bug: 21874693
Change-Id: Ia4398c9f84cf7f151248f821b3fa2c12bdf91b80
parent f4c936a7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1586,6 +1586,11 @@ public class PackageManagerService extends IPackageManager.Stub {
                grantRequestedRuntimePermissionsForUser(pkg, someUserId);
            }
        }
        // We could have touched GID membership, so flush out packages.list
        synchronized (mPackages) {
            mSettings.writePackageListLPr();
        }
    }
    private void grantRequestedRuntimePermissionsForUser(PackageParser.Package pkg, int userId) {