Merge tag 'android-6.0.0_r26' into HEAD
Android 6.0.0 release 26
* tag 'android-6.0.0_r26':
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Change-Id: I1d218bf9e6bc804d062145d971b0ab7821ae7e07
diff --git a/src/com/android/managedprovisioning/EncryptDeviceActivity.java b/src/com/android/managedprovisioning/EncryptDeviceActivity.java
index c036ea3..5439315 100644
--- a/src/com/android/managedprovisioning/EncryptDeviceActivity.java
+++ b/src/com/android/managedprovisioning/EncryptDeviceActivity.java
@@ -67,7 +67,8 @@
ServiceManager.getService("mount"));
try {
- return (mountService.getEncryptionState() == IMountService.ENCRYPTION_STATE_OK);
+ int state = mountService.getEncryptionState();
+ return (state == IMountService.ENCRYPTION_STATE_OK || state == IMountService.ENCRYPTION_STATE_OK_MDTP_ACTIVATED);
} catch (RemoteException e) {
return false;
}
@@ -82,4 +83,4 @@
intent.setAction(DevicePolicyManager.ACTION_START_ENCRYPTION);
startActivity(intent);
}
-}
\ No newline at end of file
+}