public final enum

MAMStrictCheck

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.microsoft.intune.mam.client.strict.MAMStrictCheck

Class Overview

Enumeration of MAM Strict Mode checks.

Summary

Enum Values
MAMStrictCheck  APPLICATION_CONTEXT_DISCOVERED  An Application context was used when an Activity context was expected. 
MAMStrictCheck  AUTHENTICATION_CALLBACK_NOT_REGISTERED  The MAMServiceAuthenticationCallback was not registered in the Application's onCreate method. 
MAMStrictCheck  CLEAR_PROTECTED_FLAG_SECURE  Window.clearFlags() was called on FLAG_SECURE when app had a configured policy that restricts screenshots. 
MAMStrictCheck  CONFIG_ONLY_BAD_INIT_CALL  We expect config-only apps to call MAMComponents.initialize() via Application.onCreate(). 
MAMStrictCheck  CONFIG_ONLY_BAD_INTEGRATION  The config-only app was improperly integrated with the MAM SDK. 
MAMStrictCheck  CONFIG_ONLY_CA_UNSUPPORTED  Conditional Access is not supported for config-only mode apps, but the application tried to remediate compliance for a user. 
MAMStrictCheck  CONTENT_INTENT_WITHOUT_IDENTITY  An intent was started to transfer content to another app without an identity, while the foreground activity does have an identity set. 
MAMStrictCheck  CONTENT_RESOLVER_NO_IDENTITY  A multi-identity app used a ContentResolver without any identity set on the context the resolver was retrieved from or on the thread/process. 
MAMStrictCheck  DEPRECATED_API  Call to an API which we have deprecated and which has the potential to result in an incorrect customer outcome. 
MAMStrictCheck  IDENTITY_NO_SUCH_FILE  Attempt to protect a file which does not exist. 
MAMStrictCheck  INCOMING_IDENTITY_SWITCH  An incoming activity identity switch was not handled properly. 
MAMStrictCheck  INTENT_IDENTITY_MISMATCH  Mismatch between the identity tag for an intent and a file transferred by that intent. 
MAMStrictCheck  INVALID_MAM_SERVICE_TOKEN  There was a mismatch between the user's passed in aadId and resourceId, and the decoded aadId and resourceId from the MAMService token returned by MAMServiceAuthenticationCallback. 
MAMStrictCheck  NON_INTEGRATED_ACTIVITY_LAUNCH  An activity was launched which was not MAM-integrated and not explicitly excluded by build-plugin configuration. 
MAMStrictCheck  NON_INTEGRATED_VIEW  A view was used which should have been MAM-integrated, but was not. 
MAMStrictCheck  OPEN_FROM_LOCATION_MISSING_OID  Use of getIsOpenFromLocationAllowedForOID for OneDrive for Business/SharePoint/an account document, but there was no OID provided for the account. 
MAMStrictCheck  OPEN_FROM_LOCATION_MISSING_UPN  Use of getIsOpenFromLocationAllowed for OneDrive for Business/SharePoint/an account document, but there was no UPN provided for the account. 
MAMStrictCheck  REGISTER_ACCOUNT_WRONG_USER  registerAccountForMAM was called on an account which is already in the WRONG_USER state. 
MAMStrictCheck  SAVE_TO_LOCATION_MISSING_OID  Use of getIsSaveToLocationAllowedForOID for OneDrive for Business/Sharepoint/an account document, but there was no OID provided for the account. 
MAMStrictCheck  SAVE_TO_LOCATION_MISSING_UPN  Use of getIsSaveToLocationAllowed for OneDrive for Business/Sharepoint/an account document but no UPN provided. 
MAMStrictCheck  SAVE_TO_ODB_MISSING_UPN  No longer used. 
MAMStrictCheck  SEVERE_EVENT  An internal error occurred which is not expected in the course of normal operation. 
MAMStrictCheck  TARGET_API  Ensure the app is not using a newer target Android SDK than the current MAMSDK version supports. 
MAMStrictCheck  UNMANAGED_CONTEXT_FOUND  MAM was unable to locate a Context that would allow for policy enforcement within the specified System Service/ContentResolver/ContentProviderClient. 
MAMStrictCheck  UNREGISTER_ACCOUNT_WITHIN_ACQUIRE_TOKEN  The MAMEnrollmentManager's unregisterAccountForMAM() method was called from within the provided MAMServiceAuthenticationCallback's acquireToken() method. 
MAMStrictCheck  UPDATE_TOKEN_WITHIN_ACQUIRE_TOKEN  The MAMEnrollmentManager's updateToken() method was called from within the provided MAMServiceAuthenticationCallback's acquireToken() method. 
MAMStrictCheck  UPN_IDENTITY_PARAM  The app called a MAM SDK API method taking an identity by UPN instead of the corresponding OID-based method. 
Public Methods
static MAMStrictCheck valueOf(String name)
final static MAMStrictCheck[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final MAMStrictCheck APPLICATION_CONTEXT_DISCOVERED

An Application context was used when an Activity context was expected.

public static final MAMStrictCheck AUTHENTICATION_CALLBACK_NOT_REGISTERED

The MAMServiceAuthenticationCallback was not registered in the Application's onCreate method.

public static final MAMStrictCheck CLEAR_PROTECTED_FLAG_SECURE

Window.clearFlags() was called on FLAG_SECURE when app had a configured policy that restricts screenshots. This will allow users to bypass the MAM policy and take screenshots.

public static final MAMStrictCheck CONFIG_ONLY_BAD_INIT_CALL

We expect config-only apps to call MAMComponents.initialize() via Application.onCreate(). However, initialize() was called from a different place.

public static final MAMStrictCheck CONFIG_ONLY_BAD_INTEGRATION

The config-only app was improperly integrated with the MAM SDK. For example, its Application class may extend MAMApplication. Config-only apps should never leverage the build plugin or manually integrate wrappers.

public static final MAMStrictCheck CONFIG_ONLY_CA_UNSUPPORTED

Conditional Access is not supported for config-only mode apps, but the application tried to remediate compliance for a user.

public static final MAMStrictCheck CONTENT_INTENT_WITHOUT_IDENTITY

An intent was started to transfer content to another app without an identity, while the foreground activity does have an identity set. This likely indicates a failure to plumb through the identity.

public static final MAMStrictCheck CONTENT_RESOLVER_NO_IDENTITY

A multi-identity app used a ContentResolver without any identity set on the context the resolver was retrieved from or on the thread/process. This indicates likelihood that the app is performing app-to-app communication on a background thread without proper consideration of what account the operation is running under.

public static final MAMStrictCheck DEPRECATED_API

Call to an API which we have deprecated and which has the potential to result in an incorrect customer outcome.

public static final MAMStrictCheck IDENTITY_NO_SUCH_FILE

Attempt to protect a file which does not exist.

public static final MAMStrictCheck INCOMING_IDENTITY_SWITCH

An incoming activity identity switch was not handled properly. If your app uses the process identity, it must override MAMActivityIdentityRequirementListener.onMAMIdentitySwitchRequired in order to ensure that the incoming data is compatible with the already set process identity. Apps which use the process identity need to take even more care with incoming identity switches than most because these apps usually assume that only one identity (the process one) will be active. If data belonging to a different identity (e.g. a personal one) comes in, the app needs to either be able to handle that data properly (segregate it from the managed user) or refuse the identity switch.

public static final MAMStrictCheck INTENT_IDENTITY_MISMATCH

Mismatch between the identity tag for an intent and a file transferred by that intent.

public static final MAMStrictCheck INVALID_MAM_SERVICE_TOKEN

There was a mismatch between the user's passed in aadId and resourceId, and the decoded aadId and resourceId from the MAMService token returned by MAMServiceAuthenticationCallback.

public static final MAMStrictCheck NON_INTEGRATED_ACTIVITY_LAUNCH

An activity was launched which was not MAM-integrated and not explicitly excluded by build-plugin configuration.

public static final MAMStrictCheck NON_INTEGRATED_VIEW

A view was used which should have been MAM-integrated, but was not.

public static final MAMStrictCheck OPEN_FROM_LOCATION_MISSING_OID

Use of getIsOpenFromLocationAllowedForOID for OneDrive for Business/SharePoint/an account document, but there was no OID provided for the account.

public static final MAMStrictCheck OPEN_FROM_LOCATION_MISSING_UPN

Use of getIsOpenFromLocationAllowed for OneDrive for Business/SharePoint/an account document, but there was no UPN provided for the account.

public static final MAMStrictCheck REGISTER_ACCOUNT_WRONG_USER

registerAccountForMAM was called on an account which is already in the WRONG_USER state. Apps should remove accounts in the WRONG_USER state (or at least block them).

public static final MAMStrictCheck SAVE_TO_LOCATION_MISSING_OID

Use of getIsSaveToLocationAllowedForOID for OneDrive for Business/Sharepoint/an account document, but there was no OID provided for the account.

public static final MAMStrictCheck SAVE_TO_LOCATION_MISSING_UPN

Use of getIsSaveToLocationAllowed for OneDrive for Business/Sharepoint/an account document but no UPN provided.

public static final MAMStrictCheck SAVE_TO_ODB_MISSING_UPN

No longer used. Replaced by SAVE_TO_LOCATION_MISSING_UPN

public static final MAMStrictCheck SEVERE_EVENT

An internal error occurred which is not expected in the course of normal operation. More detail is available in the message.

public static final MAMStrictCheck TARGET_API

Ensure the app is not using a newer target Android SDK than the current MAMSDK version supports.

public static final MAMStrictCheck UNMANAGED_CONTEXT_FOUND

MAM was unable to locate a Context that would allow for policy enforcement within the specified System Service/ContentResolver/ContentProviderClient. This indicates one of the following: 1. The SDK surface included by the plugin for your app may be incorrect. To remediate, please review your build plugin configuration for improperly excluded classes. For example, an improperly excluded `Activity` class may be passing its `Context` into a rewritten utility class, which would produce an unprotected System Service/ContentResolver/ContentProviderClient based on the passed in `Context`. 2. The MAM SDK is missing surface coverage required by your app. To remediate, please reach out to the MAM team.

public static final MAMStrictCheck UNREGISTER_ACCOUNT_WITHIN_ACQUIRE_TOKEN

The MAMEnrollmentManager's unregisterAccountForMAM() method was called from within the provided MAMServiceAuthenticationCallback's acquireToken() method. This could cause compliance remediation to fail.

public static final MAMStrictCheck UPDATE_TOKEN_WITHIN_ACQUIRE_TOKEN

The MAMEnrollmentManager's updateToken() method was called from within the provided MAMServiceAuthenticationCallback's acquireToken() method. This is not the intended purpose of updateToken(), and could cause a deadlock.

public static final MAMStrictCheck UPN_IDENTITY_PARAM

The app called a MAM SDK API method taking an identity by UPN instead of the corresponding OID-based method.

Public Methods

public static MAMStrictCheck valueOf (String name)

public static final MAMStrictCheck[] values ()