private void revokeEncryptPolicy(org.wso2.emm.agent.beans.Operation operation){
  boolean encryptStatus=(devicePolicyManager.getStorageEncryptionStatus() != devicePolicyManager.ENCRYPTION_STATUS_UNSUPPORTED && (devicePolicyManager.getStorageEncryptionStatus() == devicePolicyManager.ENCRYPTION_STATUS_ACTIVE || devicePolicyManager.getStorageEncryptionStatus() == devicePolicyManager.ENCRYPTION_STATUS_ACTIVATING));
  if (operation.isEnabled() && encryptStatus) {
    devicePolicyManager.setStorageEncryption(deviceAdmin,false);
  }
}

private void revokeEncryptPolicy ( org . wso2 . emm . agent . beans . Operation operation ) { boolean encryptStatus = ( devicePolicyManager . getStorageEncryptionStatus ( ) != devicePolicyManager . ENCRYPTION_STATUS_UNSUPPORTED && ( devicePolicyManager . getStorageEncryptionStatus ( ) == devicePolicyManager . ENCRYPTION_STATUS_ACTIVE || devicePolicyManager . getStorageEncryptionStatus ( ) == devicePolicyManager . ENCRYPTION_STATUS_ACTIVATING ) ) ; if ( operation . isEnabled ( ) && encryptStatus ) { devicePolicyManager . setStorageEncryption ( deviceAdmin , false ) ; } }
revokes device encrypt policy on the device ( device external storage encryption ) .
