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

Commit e2c88d39 authored by Paul Lawrence's avatar Paul Lawrence Committed by Rom Lemarchand
Browse files

Add constants so we can distinguish decryption failures

Bug: 17213613
Change-Id: I6bc10a1ed0855f6946ea9eb2f8d2db00c1af327c
parent e93e6c81
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1520,8 +1520,12 @@ public interface IMountService extends IInterface {
    static final int ENCRYPTION_STATE_OK = 0;
    /** The volume is in a bad state.*/
    static final int ENCRYPTION_STATE_ERROR_UNKNOWN = -1;
    /** The volume is in a bad state - partially encrypted. Data is likely irrecoverable. */
    /** Encryption is incomplete */
    static final int ENCRYPTION_STATE_ERROR_INCOMPLETE = -2;
    /** Encryption is incomplete and irrecoverable */
    static final int ENCRYPTION_STATE_ERROR_INCONSISTENT = -3;
    /** Underlying data is corrupt */
    static final int ENCRYPTION_STATE_ERROR_CORRUPT = -4;

    /**
     * Determines the encryption state of the volume.