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

Commit f9f75771 authored by Svetoslav's avatar Svetoslav
Browse files

Grant default permissions if perms reset on upgrade.

Change-Id: I371e8eb42dc8e8953a184d29cc2a3bd2c361097e
parent 1e575a0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13690,7 +13690,7 @@ public class PackageManagerService extends IPackageManager.Stub {
        sUserManager.systemReady();
        // If we upgraded grant all default permissions before kicking off.
        if (isFirstBoot()) {
        if (isFirstBoot() || (CLEAR_RUNTIME_PERMISSIONS_ON_UPGRADE && mIsUpgrade)) {
            updatePermissionsLPw(null, null, UPDATE_PERMISSIONS_ALL);
            for (int userId : UserManagerService.getInstance().getUserIds()) {
                mDefaultPermissionPolicy.grantDefaultPermissions(userId);