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

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

Merge "Add APIs to allow detection of encryption type"

parents 3182a92a 5c21c703
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -882,6 +882,15 @@ public class LockPatternUtils {
        return "encrypted".equalsIgnoreCase(status);
    }

    /**
     * Determine if the device is file encrypted
     * @return true if device is file encrypted
     */
    public static boolean isFileEncryptionEnabled() {
        final String status = SystemProperties.get("ro.crypto.type", "");
        return "file".equalsIgnoreCase(status);
    }

    /**
     * Clears the encryption password.
     */