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

Commit 3e42e3a8 authored by Paul Lawrence's avatar Paul Lawrence Committed by android-build-merger
Browse files

Merge "Revert "Don\'t enforce this API - it\'s not sensitive"" into nyc-dev am: fc0810b4

am: f72ea591

* commit 'f72ea591':
  Revert "Don't enforce this API - it's not sensitive"

Change-Id: I5b55f2fa48b25aa59c0a73ecaba33c7211b9c0fa
parents 410e4a5d f72ea591
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2648,6 +2648,9 @@ class MountService extends IMountService.Stub
     */
    @Override
    public int getPasswordType() {
        mContext.enforceCallingOrSelfPermission(Manifest.permission.STORAGE_INTERNAL,
            "no permission to access the crypt keeper");

        waitForReady();

        final NativeDaemonEvent event;
+6 −1
Original line number Diff line number Diff line
@@ -1395,7 +1395,12 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
        }

        boolean storageManagerIsNonDefaultBlockEncrypted() {
            long identity = Binder.clearCallingIdentity();
            try {
                return StorageManager.isNonDefaultBlockEncrypted();
            } finally {
                Binder.restoreCallingIdentity(identity);
            }
        }

        boolean storageManagerIsEncrypted() {