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

Commit 46f35613 authored by Paul Lawrence's avatar Paul Lawrence Committed by android-build-merger
Browse files

Merge "Fix idle maintenance wrt checkpoint check" into qt-dev

am: bc646622

Change-Id: I14ce17a47da8dedb6db4add88cabb22e6eb509cb
parents 84e7e038 bc646622
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -1063,11 +1063,7 @@ class StorageManagerService extends IStorageManager.Stub
    }

     private boolean supportsBlockCheckpoint() throws RemoteException {
        // Only the system process is permitted to start checkpoints
        if (Binder.getCallingUid() != android.os.Process.SYSTEM_UID) {
            throw new SecurityException("no permission to check block based checkpoint support");
        }

        enforcePermission(android.Manifest.permission.MOUNT_FORMAT_FILESYSTEMS);
        return mVold.supportsBlockCheckpoint();
    }

@@ -2726,11 +2722,7 @@ class StorageManagerService extends IStorageManager.Stub
     */
    @Override
    public boolean needsCheckpoint() throws RemoteException {
        // Only the system process is permitted to commit checkpoints
        if (Binder.getCallingUid() != android.os.Process.SYSTEM_UID) {
            throw new SecurityException("no permission to commit checkpoint changes");
        }

        enforcePermission(android.Manifest.permission.MOUNT_FORMAT_FILESYSTEMS);
        return mVold.needsCheckpoint();
    }