Update usage of IMountService constants.
Bug: 30977067 Test: Existing tests passing. Change-Id: I9430b1153d277f312aff95e42adad79ba2d92500
This commit is contained in:
@@ -293,11 +293,11 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
|
|||||||
try {
|
try {
|
||||||
Log.d(TAG, "Validating encryption state.");
|
Log.d(TAG, "Validating encryption state.");
|
||||||
state = service.getEncryptionState();
|
state = service.getEncryptionState();
|
||||||
if (state == IMountService.ENCRYPTION_STATE_NONE) {
|
if (state == StorageManager.ENCRYPTION_STATE_NONE) {
|
||||||
Log.w(TAG, "Unexpectedly in CryptKeeper even though there is no encryption.");
|
Log.w(TAG, "Unexpectedly in CryptKeeper even though there is no encryption.");
|
||||||
return true; // Unexpected, but fine, I guess...
|
return true; // Unexpected, but fine, I guess...
|
||||||
}
|
}
|
||||||
return state == IMountService.ENCRYPTION_STATE_OK;
|
return state == StorageManager.ENCRYPTION_STATE_OK;
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.w(TAG, "Unable to get encryption state properly");
|
Log.w(TAG, "Unable to get encryption state properly");
|
||||||
return true;
|
return true;
|
||||||
@@ -310,7 +310,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
|
|||||||
if (Boolean.FALSE.equals(result)) {
|
if (Boolean.FALSE.equals(result)) {
|
||||||
Log.w(TAG, "Incomplete, or corrupted encryption detected. Prompting user to wipe.");
|
Log.w(TAG, "Incomplete, or corrupted encryption detected. Prompting user to wipe.");
|
||||||
mEncryptionGoneBad = true;
|
mEncryptionGoneBad = true;
|
||||||
mCorrupt = state == IMountService.ENCRYPTION_STATE_ERROR_CORRUPT;
|
mCorrupt = state == StorageManager.ENCRYPTION_STATE_ERROR_CORRUPT;
|
||||||
} else {
|
} else {
|
||||||
Log.d(TAG, "Encryption state validated. Proceeding to configure UI");
|
Log.d(TAG, "Encryption state validated. Proceeding to configure UI");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user