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

Commit 3c13a2a5 authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Defer writes to runtime-permissions.xml

In grantPermissionsLPw, use async version of writeRuntimePermissionsForUserLPr
to defer writes to runtime-permissions.xml.

Change-Id: I9dcae74199d26b6a988e35dff97b038d435e1e16
Bug: 21849928
parent efd79414
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8006,7 +8006,7 @@ public class PackageManagerService extends IPackageManager.Stub {
        // Persist the runtime permissions state for users with changes.
        for (int userId : changedRuntimePermissionUserIds) {
            mSettings.writeRuntimePermissionsForUserLPr(userId, true);
            mSettings.writeRuntimePermissionsForUserLPr(userId, false);
        }
    }