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

Commit fc0810b4 authored by Paul Lawrence's avatar Paul Lawrence Committed by Android (Google) Code Review
Browse files

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

parents ce3e0e36 9de713d4
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() {