java.lang.Object | |
↳ | com.samsung.android.knox.container.KnoxContainerManager |
Deprecated in API level 36
Public interface for managing containers.
API level 11 |
KNOX 2.0 |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACTION_CONTAINER_ADMIN_LOCK | This broadcast intent is sent when the container is administrator locked. | |||||||||
String | ACTION_CONTAINER_CREATION_STATUS | This intent is sent after container creation is either success or failure. | |||||||||
String | ACTION_CONTAINER_REMOVED | This broadcast intent is sent when the container is removed. | |||||||||
String | ACTION_CONTAINER_STATE_CHANGED | This broadcast intent is sent when the container state is changed. | |||||||||
int | CONTAINER_ACTIVE | This status is returned by getStatus()
API when container is active. |
|||||||||
String | CONTAINER_CREATION_FAILED_SPECIFIC_ERROR_TYPE | This constant should be used as a key for more specific error code in the Bundle that gets returned with the Intent, ACTION_CONTAINER_CREATION_STATUS . |
|||||||||
int | CONTAINER_CREATION_IN_PROGRESS | This status is returned by getStatus()
API when container setup is in progress. |
|||||||||
String | CONTAINER_CREATION_REQUEST_ID | This constant should be used as a key in the Bundle that gets returned with the Intent, ACTION_CONTAINER_CREATION_STATUS . |
|||||||||
String | CONTAINER_CREATION_STATUS_CODE | This constant should be used as a key in the Bundle that gets returned with the Intent, ACTION_CONTAINER_CREATION_STATUS . |
|||||||||
int | CONTAINER_DOESNT_EXISTS | This status is returned by getStatus()
API when container doesn't exist. |
|||||||||
String | CONTAINER_ID | This constant should be used as a key in the Bundle to retrieve the container id, that gets returned with the Intent, ACTION_CONTAINER_STATE_CHANGED ACTION_CONTAINER_ADMIN_LOCK ACTION_CONTAINER_REMOVED . |
|||||||||
int | CONTAINER_INACTIVE | This status is returned by getStatus()
API when container is inactive. |
|||||||||
int | CONTAINER_LAYOUT_TYPE_CLASSIC | This constant is used in setContainerLayout(int) API call. |
|||||||||
int | CONTAINER_LAYOUT_TYPE_FOLDER | This constant is used in setContainerLayout(int) API call. |
|||||||||
int | CONTAINER_LOCKED | This status is returned by getStatus()
API when administrator locked the container. |
|||||||||
String | CONTAINER_NEW_STATE | This constant should be used as a key in the Bundle that gets returned with the Intent, #INTENT_CONTAINER_STATE_CHANGED. | |||||||||
String | CONTAINER_OLD_STATE | This constant should be used as a key in the Bundle that gets returned with the Intent, #INTENT_CONTAINER_STATE_CHANGED. | |||||||||
int | CONTAINER_REMOVE_IN_PROGRESS | This status is returned by getStatus()
API when container removal is in progress. |
|||||||||
int | ERROR_ADMIN_ACTIVATION_FAILED | This error constant is returned as part of createContainer(String, String) API call, in case the admin passed as parameter
couldn't be activated. |
|||||||||
int | ERROR_ADMIN_INSTALLATION_FAILED | This error constant is returned as part of createContainer(CreationParams) API call, in case the admin passed as parameter
couldn't be installed. |
|||||||||
int | ERROR_CONTAINER_MODE_CREATION_FAILED_BYOD_NOT_ALLOWED | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | ERROR_CONTAINER_MODE_CREATION_FAILED_CONTAINER_EXIST | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | ERROR_CONTAINER_MODE_CREATION_FAILED_KIOSK_ON_OWNER_EXIST | This error constant is returned as part of createContainer(CreationParams) API call, when MDM tries to create a COM container even though device is in KIOSK mode. |
|||||||||
int | ERROR_CONTAINER_TYPE_NOT_ALLOWED | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | ERROR_CREATION_ALREADY_IN_PROGRESS | This error constant is returned as part of createContainer(CreationParams) API call, If another container creation/removal is in progress. |
|||||||||
int | ERROR_CREATION_CANCELLED | This error constant is returned as part of extra (CONTAINER_CREATION_STATUS_CODE ) in the bundle of
ACTION_CONTAINER_CREATION_STATUS , If container
creation is interrupted by user by cancelling the creation process. |
|||||||||
int | ERROR_CREATION_FAILED_CONTAINER_MODE_EXIST | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | ERROR_CREATION_FAILED_EMERGENCY_MODE | This error constant is returned as part of createContainer(CreationParams) API call
API when MDM tries to create container in EmergencyMode. |
|||||||||
int | ERROR_CREATION_FAILED_GENERATE_CMK | This error constant is returned as part of createContainer(CreationParams) API call
Failed to generate container master key or fails to save container master key for the reason that SKMM module fails to create KEK or FILE IO error occurs. |
|||||||||
int | ERROR_CREATION_FAILED_INVALID_KNOX_CONFIGURATION_TYPE | This error constant is returned as part of createContainer(CreationParams) API call
This error code is returned when KnoxConfigurationType is null. |
|||||||||
int | ERROR_CREATION_FAILED_INVALID_PARAM | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | ERROR_CREATION_FAILED_INVALID_PARAM_LIST | This error constant is returned as part of createContainer(CreationParams) API call
This error code is returned when can't found request param in CreationParam list. |
|||||||||
int | ERROR_CREATION_FAILED_INVALID_USER_INFO | This error constant is returned as part of createContainer(CreationParams) API call
This error code is returned when user info is wrong. |
|||||||||
int | ERROR_CREATION_FAILED_RESERVED_CONFIGURATION_TYPE_USED | This error constant is returned as part of createContainer(CreationParams) API call
This error code is returned when reserved configuration type is used. |
|||||||||
int | ERROR_CREATION_FAILED_SUB_USER | This error constant is returned as part of createContainer(CreationParams) API call
API when MDM tries to create container in Sub User. |
|||||||||
int | ERROR_CREATION_FAILED_TIMA_DISABLED | This error constant is returned as part of createContainer(CreationParams) API call, when TIMA (Trust zone based integrity meansurement architecture)
is disabled. |
|||||||||
int | ERROR_CREATION_FAILED_TIMA_PWD_KEY | This error constant is returned as part of createContainer(CreationParams) API call
Failed to save password reset token in TimaKeystore due to its abnormal status. |
|||||||||
int | ERROR_DOES_NOT_EXIST | This error constant is returned as part of removeContainer(int) API call. |
|||||||||
int | ERROR_FILESYSTEM_ERROR | This error constant is returned as part of createContainer(CreationParams) API call or extra
(CONTAINER_CREATION_STATUS_CODE ) in the bundle of ACTION_CONTAINER_CREATION_STATUS ,
when there is not enough memory or there is a problem during creation of Knox file system. |
|||||||||
int | ERROR_INTERNAL_ERROR | This error constant is returned as part of createContainer(CreationParams) API call or extra
(CONTAINER_CREATION_STATUS_CODE ) in the bundle of ACTION_CONTAINER_CREATION_STATUS , when an unknown/internal error occurs. |
|||||||||
int | ERROR_INVALID_PASSWORD_RESET_TOKEN | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | ERROR_MAX_LIMIT_REACHED | This error constant is returned as part of createContainer(CreationParams) API call, when the total number of containers existing are same as
MAX_CONTAINERS
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. |
|||||||||
int | ERROR_NO_ADMIN_APK | This error constant is returned as part of createContainer(CreationParams) API call, when an invalid or non-existant
admin is passed as parameter. |
|||||||||
int | ERROR_NO_CONFIGURATION_TYPE | This error constant is returned as part of createContainer(CreationParams) API call, when an invalid KnoxConfigurationType
is passed as parameter. |
|||||||||
int | ERROR_PLATFORM_VERSION_MISMATCH_IN_CONFIGURATION_TYPE | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | ERROR_SDP_NOTSUPPORTED | This error constant is returned as part of createContainer(CreationParams) API call, when particular device doesn't support sensitive data protection. |
|||||||||
String | INTENT_BUNDLE | This constant should be used as a key to retrieve the Bundle that gets returned with the Intent, ACTION_CONTAINER_STATE_CHANGED ACTION_CONTAINER_ADMIN_LOCK ACTION_CONTAINER_REMOVED . |
|||||||||
int | MAX_CONTAINERS | This constant defines the maximum number of containers allowed on the device. | |||||||||
int | REMOVE_CONTAINER_SUCCESS | This error constant is returned as part of removeContainer(int) API call. |
|||||||||
int | TZ_COMMON_CLOSE_COMMUNICATION_ERROR | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_COMMON_COMMUNICATION_ERROR | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_COMMON_INIT_ERROR | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_COMMON_INIT_ERROR_TAMPER_FUSE_FAIL | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_COMMON_INIT_MSR_MISMATCH | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_COMMON_INIT_MSR_MODIFIED | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_COMMON_INIT_UNINITIALIZED_SECURE_MEM | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_COMMON_INTERNAL_ERROR | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_COMMON_NULL_POINTER_EXCEPTION | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_COMMON_RESPONSE_REQUEST_MISMATCH | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_COMMON_UNDEFINED_ERROR | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_KEYSTORE_ERROR | This error constant is returned as part of createContainer(CreationParams) API call. |
|||||||||
int | TZ_KEYSTORE_INIT_FAILED | This error constant is returned as part of createContainer(CreationParams) API call. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Deprecated
in API level 30
NOTE: This API is not available since Android 13. | |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 10. | |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 10. | |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 10. | |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 13. | |||||||||||
Get the object to access 'App Permission Monitor' Policy.
| |||||||||||
Get the object to access the Advanced Restriction Policy Policy.
| |||||||||||
Get the object to access the Application Policy.
| |||||||||||
Get the object to access the AuditLogPolicy.
| |||||||||||
Get the object to access the Base Password Policy.
| |||||||||||
API to get the object that accesses the BootBanner APIs.
| |||||||||||
Get the object to access the Browser Policy.
| |||||||||||
Get the object to access the Certificate Policy.
| |||||||||||
API that gets the object that accesses the Certificate Provisioning.
| |||||||||||
Get the object to access the Client Certificate Manager Policy.
| |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 13. | |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 13. | |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 13. | |||||||||||
Get the object to access the Container Configuration Policy.
| |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 13. | |||||||||||
Get the object to access the Knox DLP.
| |||||||||||
Get the object to access the DateTime Policy.
| |||||||||||
Get the object to access the DeviceAccount Policy.
| |||||||||||
Get the object to access 'DualDAR' Policy.
| |||||||||||
Get the object to access the EmailAccount Policy.
| |||||||||||
Get the object to access the EmailPolicy.
| |||||||||||
Get the object to access the Enterprise Billing Policy
| |||||||||||
Get the object to access the Enterprise Certificate Enrollment Policy.
| |||||||||||
Get the object to access the ExchangeAccount Policy.
| |||||||||||
Get the object to access the Firewall.
| |||||||||||
Get the object to access the Geofencing Policy.
| |||||||||||
Get the object to access the KioskMode Policy.
| |||||||||||
Get the object to access the LDAP Account Policy.
| |||||||||||
Get the object to access the Location Policy.
| |||||||||||
Deprecated
in API level 35
NOTE: This API is not available since Android 13. | |||||||||||
Get the object to access the Password Policy.
| |||||||||||
API to access Container RCP Policy.
| |||||||||||
Get the object to access the Restriction Policy.
| |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 13. | |||||||||||
Get the object to access the Universal Credential Manager Policy.
| |||||||||||
Get the object to access the Wifi Policy.
| |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 13. | |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 13. | |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 10. | |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 13. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This broadcast intent is sent when the container is administrator locked.
This intent contains data which is inside Bundle object INTENT_BUNDLE
. Data in Bundle object is Container Id CONTAINER_ID
.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This intent is sent after container creation is either success or failure. The status code is sent
as CONTAINER_CREATION_STATUS_CODE
. When its a non zero and positive value, this can be treated as
container id. Where as a negative status code might represent an actual error code.CONTAINER_CREATION_REQUEST_ID
is for
MDMs to match the request id returned by createContainer(CreationParams)
API.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This broadcast intent is sent when the container is removed.
This intent contains data which is inside Bundle object INTENT_BUNDLE
. Data in Bundle object is Container Id CONTAINER_ID
.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This broadcast intent is sent when the container state is changed.
This intent contains data which is inside Bundle object INTENT_BUNDLE
. Data in Bundle object are Container Id CONTAINER_ID
, Container old state CONTAINER_OLD_STATE
and Container new state CONTAINER_NEW_STATE
.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This status is returned by getStatus()
API when container is active.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This constant should be used as a key for more specific error code in the Bundle that gets returned with the Intent, ACTION_CONTAINER_CREATION_STATUS
.
It is for MDMs to match the request id returned by createContainer(CreationParams)
API.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This status is returned by getStatus()
API when container setup is in progress.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This constant should be used as a key in the Bundle that gets returned with the Intent, ACTION_CONTAINER_CREATION_STATUS
.
It is for MDMs to match the request id returned by createContainer(CreationParams)
API.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This constant should be used as a key in the Bundle that gets returned with the Intent, ACTION_CONTAINER_CREATION_STATUS
.
When its a non zero and positive value, this can be treated as container id.
Where as a negative status code might represent an actual error code. Please see
ERROR_FILESYSTEM_ERROR
ERROR_NO_ADMIN_APK
ERROR_NO_CONFIGURATION_TYPE
ERROR_ADMIN_INSTALLATION_FAILED
ERROR_ADMIN_ACTIVATION_FAILED
ERROR_MAX_LIMIT_REACHED
ERROR_INTERNAL_ERROR
ERROR_CREATION_ALREADY_IN_PROGRESS
ERROR_CREATION_CANCELLED
ERROR_CREATION_FAILED_TIMA_DISABLED
API level 11 |
KNOX 2.0 |
This status is returned by getStatus()
API when container doesn't exist. The non-existence of the container
could be because specified container has not been created yet.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This constant should be used as a key in the Bundle to retrieve the container id, that gets returned with the Intent, ACTION_CONTAINER_STATE_CHANGED
ACTION_CONTAINER_ADMIN_LOCK
ACTION_CONTAINER_REMOVED
.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This status is returned by getStatus()
API when container is inactive.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This constant is used in setContainerLayout(int)
API call.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This constant is used in setContainerLayout(int)
API call.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This status is returned by getStatus()
API when administrator locked the container.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This constant should be used as a key in the Bundle that gets returned with the Intent, #INTENT_CONTAINER_STATE_CHANGED. The list of possible bundle
CONTAINER_ACTIVE
CONTAINER_INACTIVE
CONTAINER_CREATION_IN_PROGRESS
CONTAINER_REMOVE_IN_PROGRESS
CONTAINER_LOCKED
CONTAINER_DOESNT_EXISTS
API level 11 |
KNOX 2.0 |
This constant should be used as a key in the Bundle that gets returned with the Intent, #INTENT_CONTAINER_STATE_CHANGED. The list of possible bundle
CONTAINER_ACTIVE
CONTAINER_INACTIVE
CONTAINER_CREATION_IN_PROGRESS
CONTAINER_REMOVE_IN_PROGRESS
CONTAINER_LOCKED
CONTAINER_DOESNT_EXISTS
API level 11 |
KNOX 2.0 |
This status is returned by getStatus()
API when container removal is in progress.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(String, String)
API call, in case the admin passed as parameter
couldn't be activated.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call, in case the admin passed as parameter
couldn't be installed.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
This error code is returned when MDM tries to create BYOD COM container.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 12 |
KNOX 2.1 |
This error constant is returned as part of createContainer(CreationParams)
API call.
This error code is returned when COM container creation failed because another container exist.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 12 |
KNOX 2.1 |
This error constant is returned as part of createContainer(CreationParams)
API call, when MDM tries to create a COM container even though device is in KIOSK mode.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 12 |
KNOX 2.1 |
This error constant is returned as part of createContainer(CreationParams)
API call.
This error code is returned when the device doesn't support
given container type.
API level 28 |
KNOX 3.3 |
This error constant is returned as part of createContainer(CreationParams)
API call, If another container creation/removal is in progress.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of extra (CONTAINER_CREATION_STATUS_CODE
) in the bundle of
ACTION_CONTAINER_CREATION_STATUS
, If container
creation is interrupted by user by cancelling the creation process.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
This error code is returned when regular container creation failed because Container
only mode(COM/Kiosk) container exist.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 12 |
KNOX 2.1 |
This error constant is returned as part of createContainer(CreationParams)
API call
API when MDM tries to create container in EmergencyMode.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This error constant is returned as part of createContainer(CreationParams)
API call
Failed to generate container master key or fails to save container master key for the reason that SKMM module fails to create KEK or FILE IO error occurs.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This error constant is returned as part of createContainer(CreationParams)
API call
This error code is returned when KnoxConfigurationType is null.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This error constant is returned as part of createContainer(CreationParams)
API call.
This error code is returned when CreationParam is null.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This error constant is returned as part of createContainer(CreationParams)
API call
This error code is returned when can't found request param in CreationParam list.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This error constant is returned as part of createContainer(CreationParams)
API call
This error code is returned when user info is wrong.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This error constant is returned as part of createContainer(CreationParams)
API call
This error code is returned when reserved configuration type is used.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This error constant is returned as part of createContainer(CreationParams)
API call
API when MDM tries to create container in Sub User.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This error constant is returned as part of createContainer(CreationParams)
API call, when TIMA (Trust zone based integrity meansurement architecture)
is disabled.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call
Failed to save password reset token in TimaKeystore due to its abnormal status.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 17 |
KNOX 2.5 |
This error constant is returned as part of removeContainer(int)
API call.
The container removal failed because It doesn't exist.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call or extra
(CONTAINER_CREATION_STATUS_CODE
) in the bundle of ACTION_CONTAINER_CREATION_STATUS
,
when there is not enough memory or there is a problem during creation of Knox file system.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call or extra
(CONTAINER_CREATION_STATUS_CODE
) in the bundle of ACTION_CONTAINER_CREATION_STATUS
, when an unknown/internal error occurs.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
Password reset token shall be in the range of 32 characters to 128 characters, and composed of a
combination with at least one letter and one non-letter.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 13 |
KNOX 2.2 |
This error constant is returned as part of createContainer(CreationParams)
API call, when the total number of containers existing are same as
MAX_CONTAINERS
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call, when an invalid or non-existant
admin is passed as parameter.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call, when an invalid KnoxConfigurationType
is passed as parameter.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
When this error is returned, MDM has to assume that the cloned type object doesn't match with
platform version. So the MDM has to recreate another type object. This usually comes only
in case of a Cloned configuration type after FOTA upgrade, if the configuration is created before FOTA upgrade.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 12 |
KNOX 2.1 |
This error constant is returned as part of createContainer(CreationParams)
API call, when particular device doesn't support sensitive data protection.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 13 |
KNOX 2.2 |
This constant should be used as a key to retrieve the Bundle that gets returned with the Intent, ACTION_CONTAINER_STATE_CHANGED
ACTION_CONTAINER_ADMIN_LOCK
ACTION_CONTAINER_REMOVED
.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This constant defines the maximum number of containers allowed on the device.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of removeContainer(int)
API call.
Container is successfully removed.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
Failed to shutdown TIMA KeyStore TrustZone application.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
Failed to communicate with TrustZone.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
TIMA KeyStore initialization failed: error to read /system/tima_measurement_info.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
Device compromised: Knox warranty bit is invalid.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
Device compromised: the system measurement does not match.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
Device compromised: /system/tima_measurement_info is modified.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
/system/tima_measurement_info has not been cached into secure memory yet.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
TIMA internal error.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
TIMA KeyStore context is null.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
Invalid response from TIMA KeyStore TrustZone application.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
TIMA KeyStore undefined error.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
TIMA KeyStore initialization failed: TIMA Service unreachable or TIMA version is not 3.0.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
This error constant is returned as part of createContainer(CreationParams)
API call.
TIMA KeyStore initialization failed: errro to get context.
NOTE: This constant is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
API level 11 |
KNOX 2.0 |
Deprecated
in API level 30
NOTE: This API is not available since Android 13.
API to add a custom configuration type object. The name parameter of the type object has to be unique for an admin.
ctx | Application's context. An instance of ContextImpl. |
---|---|
type | name of the configuration type |
true
if successfully added KnoxConfigurationType
object. false
otherwise.SecurityException | If caller does not have required permissions. |
---|
This API will add a custom configuration type object.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
try { KnoxConfigurationType predefinedConfiguration = KnoxContainerManager.getConfigurationTypeByName("knox-b2b"); KnoxConfigurationType newConfig = predefinedConfiguration.clone("custom-configuration"); //Clones and assigns a new name typeObj.setPasswordMinimumLength(length); typeObj.setCustomWallpaper(wallpaperPath); .... boolean status = KnoxContainerManager.addConfigurationType(context, type); } catch (SecurityException e) { .... } * |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |
Deprecated
in API level 30
NOTE: This API is not available since Android 10.
API to create a new Knox application container. Creator of the container has to be an MDM administrator. It retains all claims on the container and applies all policies on the container
ERROR_FILESYSTEM_ERROR
ERROR_NO_ADMIN_APK
ERROR_NO_CONFIGURATION_TYPE
ERROR_ADMIN_INSTALLATION_FAILED
ERROR_ADMIN_ACTIVATION_FAILED
ERROR_MAX_LIMIT_REACHED
ERROR_INTERNAL_ERROR
ERROR_CREATION_ALREADY_IN_PROGRESS
ERROR_CREATION_FAILED_TIMA_DISABLED
ERROR_CREATION_FAILED_CONTAINER_MODE_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_CONTAINER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_KIOSK_ON_OWNER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_BYOD_NOT_ALLOWED
TZ_KEYSTORE_ERROR
TZ_KEYSTORE_INIT_FAILED
TZ_COMMON_COMMUNICATION_ERROR
TZ_COMMON_CLOSE_COMMUNICATION_ERROR
TZ_COMMON_RESPONSE_REQUEST_MISMATCH
TZ_COMMON_INTERNAL_ERROR
TZ_COMMON_NULL_POINTER_EXCEPTION
TZ_COMMON_UNDEFINED_ERROR
TZ_COMMON_INIT_ERROR
TZ_COMMON_INIT_UNINITIALIZED_SECURE_MEM
TZ_COMMON_INIT_ERROR_TAMPER_FUSE_FAIL
TZ_COMMON_INIT_MSR_MISMATCH
TZ_COMMON_INIT_MSR_MODIFIED
ERROR_PLATFORM_VERSION_MISMATCH_IN_CONFIGURATION_TYPE
SecurityException | If caller does not have required permissions. |
---|
Use this API to create Knox Application container. Container creation process
is a two step process, where the API call just initiates a container creation process and doesn't actually create a container
based on the state of the device, if the API returns a positive value, it can be treated as a unique request id. A negative number
may mean that some kind of error might have happened.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
try { initialRequestId = KnoxContainerManager.createContainer("knox-b2b"); if(initialRequestId < 0) { switch(initialRequestId) { case KnoxContainerManager.ERROR_INTERNAL_ERROR: ....... (More cases) } } else { Log.d(TAG, "Container creation in progress with id:" + initialRequestId); } } catch (SecurityException e) { .... } Note:
Call to this API initiates a UI flow, which user has to complete before the actual container can be created.
The status of container creation is then notified through an intent
IntentFilter filter = new IntentFilter(); filter.addAction(KnoxContainerManager.ACTION_CONTAINER_CREATION_STATUS); registerReceiver(creationStatusReceiver, filter); private BroadcastReceiver creationStatusReceiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { int containerCreationRequestId = -1; int statusCode = ERROR_INTERNAL_ERROR; Bundle extras = intent.getExtras(); if (extras != null) { containerCreationRequestId = extras.getInt(CONTAINER_CREATION_REQUEST_ID); statusCode = extras.getInt(CONTAINER_CREATION_STATUS_CODE); } if(initialRequestId != containerCreationRequestId) { return; //Intent belongs to another MDM or a fake Intent. } if (statusCode >= 0) { showNoteWithToast("container created successfully."); } else { displayCreationErrorString(statusCode); } try { unregisterReceiver(creationStatusReceiver); } catch (IllegalArgumentException e) { e.printStackTrace(); } } }; |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |
ERROR_FILESYSTEM_ERROR
ERROR_NO_ADMIN_APK
ERROR_NO_CONFIGURATION_TYPE
ERROR_ADMIN_INSTALLATION_FAILED
ERROR_ADMIN_ACTIVATION_FAILED
ERROR_MAX_LIMIT_REACHED
ERROR_INTERNAL_ERROR
ERROR_CREATION_ALREADY_IN_PROGRESS
ERROR_CREATION_FAILED_TIMA_DISABLED
ERROR_CREATION_FAILED_CONTAINER_MODE_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_CONTAINER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_KIOSK_ON_OWNER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_BYOD_NOT_ALLOWED
TZ_KEYSTORE_ERROR
TZ_KEYSTORE_INIT_FAILED
TZ_COMMON_COMMUNICATION_ERROR
TZ_COMMON_CLOSE_COMMUNICATION_ERROR
TZ_COMMON_RESPONSE_REQUEST_MISMATCH
TZ_COMMON_INTERNAL_ERROR
TZ_COMMON_NULL_POINTER_EXCEPTION
TZ_COMMON_UNDEFINED_ERROR
TZ_COMMON_INIT_ERROR
TZ_COMMON_INIT_UNINITIALIZED_SECURE_MEM
TZ_COMMON_INIT_ERROR_TAMPER_FUSE_FAIL
TZ_COMMON_INIT_MSR_MISMATCH
TZ_COMMON_INIT_MSR_MODIFIED
ERROR_PLATFORM_VERSION_MISMATCH_IN_CONFIGURATION_TYPE
Deprecated
in API level 30
NOTE: This API is not available since Android 10.
API to create a SDP enabled Knox application container.
params | the creation parameters constructed through CreationParams . |
---|
ERROR_FILESYSTEM_ERROR
ERROR_NO_ADMIN_APK
ERROR_NO_CONFIGURATION_TYPE
ERROR_ADMIN_INSTALLATION_FAILED
ERROR_ADMIN_ACTIVATION_FAILED
ERROR_MAX_LIMIT_REACHED
ERROR_INTERNAL_ERROR
ERROR_CREATION_ALREADY_IN_PROGRESS
ERROR_CREATION_FAILED_TIMA_DISABLED
ERROR_CREATION_FAILED_CONTAINER_MODE_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_CONTAINER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_KIOSK_ON_OWNER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_BYOD_NOT_ALLOWED
TZ_KEYSTORE_ERROR
TZ_KEYSTORE_INIT_FAILED
TZ_COMMON_COMMUNICATION_ERROR
TZ_COMMON_CLOSE_COMMUNICATION_ERROR
TZ_COMMON_RESPONSE_REQUEST_MISMATCH
TZ_COMMON_INTERNAL_ERROR
TZ_COMMON_NULL_POINTER_EXCEPTION
TZ_COMMON_UNDEFINED_ERROR
TZ_COMMON_INIT_ERROR
TZ_COMMON_INIT_UNINITIALIZED_SECURE_MEM
TZ_COMMON_INIT_ERROR_TAMPER_FUSE_FAIL
TZ_COMMON_INIT_MSR_MISMATCH
TZ_COMMON_INIT_MSR_MODIFIED
ERROR_PLATFORM_VERSION_MISMATCH_IN_CONFIGURATION_TYPE
ERROR_SDP_NOTSUPPORTED
ERROR_INVALID_PASSWORD_RESET_TOKEN
SecurityException | If caller does not have required permissions. |
---|
Use this API to create Knox Application container. Container creation process
is a two step process, where the API call just initiates a container creation process and doesn't actually create a container
based on the state of the device, if the API returns a positive value, it can be treated as a unique request id. A negative number
may mean that some kind of error might have happened.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview. Note:
For Non-SDP container(A.K.A Default SDP): try { CreationParams params = new CreationParams(); // Build creation params as per your needs. params.setConfigurationName("knox-b2b"); initialRequestId = KnoxContainerManager.createContainer(params); if(initialRequestId < 0) { switch(initialRequestId) { case KnoxContainerManager.ERROR_INTERNAL_ERROR: ....... (More cases) } } else { Log.d(TAG, "Container creation in progress with id:" + initialRequestId); } } catch (SecurityException e) { .... } |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 13 |
KNOX 2.2 |
ERROR_FILESYSTEM_ERROR
ERROR_NO_ADMIN_APK
ERROR_NO_CONFIGURATION_TYPE
ERROR_ADMIN_INSTALLATION_FAILED
ERROR_ADMIN_ACTIVATION_FAILED
ERROR_MAX_LIMIT_REACHED
ERROR_INTERNAL_ERROR
ERROR_CREATION_ALREADY_IN_PROGRESS
ERROR_CREATION_FAILED_TIMA_DISABLED
ERROR_CREATION_FAILED_CONTAINER_MODE_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_CONTAINER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_KIOSK_ON_OWNER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_BYOD_NOT_ALLOWED
TZ_KEYSTORE_ERROR
TZ_KEYSTORE_INIT_FAILED
TZ_COMMON_COMMUNICATION_ERROR
TZ_COMMON_CLOSE_COMMUNICATION_ERROR
TZ_COMMON_RESPONSE_REQUEST_MISMATCH
TZ_COMMON_INTERNAL_ERROR
TZ_COMMON_NULL_POINTER_EXCEPTION
TZ_COMMON_UNDEFINED_ERROR
TZ_COMMON_INIT_ERROR
TZ_COMMON_INIT_UNINITIALIZED_SECURE_MEM
TZ_COMMON_INIT_ERROR_TAMPER_FUSE_FAIL
TZ_COMMON_INIT_MSR_MISMATCH
TZ_COMMON_INIT_MSR_MODIFIED
ERROR_PLATFORM_VERSION_MISMATCH_IN_CONFIGURATION_TYPE
ERROR_SDP_NOTSUPPORTED
ERROR_INVALID_PASSWORD_RESET_TOKEN
Deprecated
in API level 30
NOTE: This API is not available since Android 10.
API to create a new Knox application container with MDM inside the container.
type | The type string refers to the name getName() of KnoxConfigurationType |
---|---|
adminPackageName | Package name of the administrator component for whom ownership will be transferred. |
ERROR_FILESYSTEM_ERROR
ERROR_NO_ADMIN_APK
ERROR_NO_CONFIGURATION_TYPE
ERROR_ADMIN_INSTALLATION_FAILED
ERROR_ADMIN_ACTIVATION_FAILED
ERROR_MAX_LIMIT_REACHED
ERROR_INTERNAL_ERROR
ERROR_CREATION_ALREADY_IN_PROGRESS
ERROR_CREATION_FAILED_TIMA_DISABLED
ERROR_CREATION_FAILED_CONTAINER_MODE_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_CONTAINER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_KIOSK_ON_OWNER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_BYOD_NOT_ALLOWED
TZ_KEYSTORE_ERROR
TZ_KEYSTORE_INIT_FAILED
TZ_COMMON_COMMUNICATION_ERROR
TZ_COMMON_CLOSE_COMMUNICATION_ERROR
TZ_COMMON_RESPONSE_REQUEST_MISMATCH
TZ_COMMON_INTERNAL_ERROR
TZ_COMMON_NULL_POINTER_EXCEPTION
TZ_COMMON_UNDEFINED_ERROR
TZ_COMMON_INIT_ERROR
TZ_COMMON_INIT_UNINITIALIZED_SECURE_MEM
TZ_COMMON_INIT_ERROR_TAMPER_FUSE_FAIL
TZ_COMMON_INIT_MSR_MISMATCH
TZ_COMMON_INIT_MSR_MODIFIED
ERROR_PLATFORM_VERSION_MISMATCH_IN_CONFIGURATION_TYPE
SecurityException | If caller does not have required permissions. |
---|
This API takes an "administrator package" as parameter. Once the container is created,
framework will install the "administrator package" inside the container.
Then ownership of container gets transferred to the admin installed inside container from the creator application.
Creator of the container looses all claims on the container and will not be able to apply any policy at all.
Container creation process is a two step process, where the API call just initiates the container creation process and doesn't actually create a container based on the state of the device, if the API returns a positive value, it can be treated as a unique request id. A negative number signifies that an error has occured. The request id is used in the second step of container creation. NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
try { initialRequestId = KnoxContainerManager.createContainer("knox-b2b", "com.samsung.edmtest"); if(initialRequestId < 0) { switch(initialRequestId) { case KnoxContainerManager.ERROR_INTERNAL_ERROR: ....... (More cases) } } else { Log.d(TAG, "Container creation in progress with id:" + initialRequestId); } } catch (SecurityException e) { .... } Notes:
Call to this API initiates a UI flow, which user has to complete before the actual container can be created.
The status of container creation is then notified through an intent
IntentFilter filter = new IntentFilter(); filter.addAction(KnoxContainerManager.ACTION_CONTAINER_CREATION_STATUS); registerReceiver(creationStatusReceiver, filter); private BroadcastReceiver creationStatusReceiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { int containerCreationRequestId = -1; int statusCode = ERROR_INTERNAL_ERROR; Bundle extras = intent.getExtras(); if (extras != null) { containerCreationRequestId = extras.getInt(CONTAINER_CREATION_REQUEST_ID); statusCode = extras.getInt(CONTAINER_CREATION_STATUS_CODE); } if(initialRequestId != containerCreationRequestId) { return; //Intent belongs to another MDM or a fake Intent. } if (statusCode >= 0) { showNoteWithToast("container created successfully."); } else { displayCreationErrorString(statusCode); } try { unregisterReceiver(creationStatusReceiver); } catch (IllegalArgumentException e) { e.printStackTrace(); } } }; Please look at doSelfUninstall() for post creation steps. |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |
ERROR_FILESYSTEM_ERROR
ERROR_NO_ADMIN_APK
ERROR_NO_CONFIGURATION_TYPE
ERROR_ADMIN_INSTALLATION_FAILED
ERROR_ADMIN_ACTIVATION_FAILED
ERROR_MAX_LIMIT_REACHED
ERROR_INTERNAL_ERROR
ERROR_CREATION_ALREADY_IN_PROGRESS
ERROR_CREATION_FAILED_TIMA_DISABLED
ERROR_CREATION_FAILED_CONTAINER_MODE_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_CONTAINER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_KIOSK_ON_OWNER_EXIST
ERROR_CONTAINER_MODE_CREATION_FAILED_BYOD_NOT_ALLOWED
TZ_KEYSTORE_ERROR
TZ_KEYSTORE_INIT_FAILED
TZ_COMMON_COMMUNICATION_ERROR
TZ_COMMON_CLOSE_COMMUNICATION_ERROR
TZ_COMMON_RESPONSE_REQUEST_MISMATCH
TZ_COMMON_INTERNAL_ERROR
TZ_COMMON_NULL_POINTER_EXCEPTION
TZ_COMMON_UNDEFINED_ERROR
TZ_COMMON_INIT_ERROR
TZ_COMMON_INIT_UNINITIALIZED_SECURE_MEM
TZ_COMMON_INIT_ERROR_TAMPER_FUSE_FAIL
TZ_COMMON_INIT_MSR_MISMATCH
TZ_COMMON_INIT_MSR_MODIFIED
ERROR_PLATFORM_VERSION_MISMATCH_IN_CONFIGURATION_TYPE
Deprecated
in API level 30
NOTE: This API is not available since Android 13.
API that allows device administrator to uninstall itself.
SecurityException | If caller does not have required permissions. |
---|
Device administrator can remove self from device. This API is
intended to be used for BYOD scenario where IT administrator creates
a container and install itself as administrator inside container using
createContainer(String, String) . After container creation, MDM
can call this API to delete itself but that is optional.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview. |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |
Get the object to access 'App Permission Monitor' Policy.
Administrator can get the object to access the 'App Permission Monitor' Policy. |
API level 25 |
KNOX 3.1 |
Get the object to access the Advanced Restriction Policy Policy.
AdvancedRestrictionPolicy
object if success, else null
.Administrator can get the object to access the AdvancedRestrictionPolicy object.
|
API level 11 |
KNOX 2.0 |
Get the object to access the Application Policy.
ApplicationPolicy
object if success, else null
.Administrator can get the object to access the ApplicationPolicy object.
|
API level 11 |
KNOX 2.0 |
Get the object to access the AuditLogPolicy.
null
.Administrator can get the object to access the AuditLogPolicy object. |
API level 19 |
KNOX 2.6 |
Get the object to access the Base Password Policy.
BasePasswordPolicy
object if success, else null
.Administrator can get the object to access the BasePasswordPolicy object.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview. |
API level 11 |
KNOX 2.0 |
API to get the object that accesses the BootBanner APIs.
null
.An administrator can use this API to get the object that accesses the BootBanner APIs. |
API level 6 |
MDM 4.0 |
Get the object to access the Browser Policy.
BrowserPolicy
object if success, else null
.Administrator can get the object to access the BrowserPolicy .
Browser policies applied using this object will be enforced on the
Browser application belonging to the container represented by this
KnoxContainerManager object.
|
API level 11 |
KNOX 2.0 |
Get the object to access the Certificate Policy.
CertificatePolicy
object if success, else null
.Admin can get the object to access the CertificatePolicy object.
|
API level 12 |
KNOX 2.1 |
API that gets the object that accesses the Certificate Provisioning.
null
.An administrator can use this API to get the object that accesses the Certificate Provisioning. |
API level 2 |
MDM 2.0 |
Get the object to access the Client Certificate Manager Policy.
ClientCertificateManager
object if success, else null
.Admin can get the object to access the ClientCertificateManager object.
|
API level 12 |
KNOX 2.1 |
Deprecated
in API level 30
NOTE: This API is not available since Android 13.
API to return a configuration type object based on a container id, if the caller is an owner of the container.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
containerId | Id of the container |
---|
KnoxConfigurationType
.SecurityException | If caller does not have required permissions. |
---|
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |
Deprecated
in API level 30
NOTE: This API is not available since Android 13.
API to return a configuration type object based on a name.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
type | Name of the configuration type |
---|
KnoxConfigurationType
objectThe use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |
Deprecated
in API level 30
NOTE: This API is not available since Android 13.
API to return a list of accessible configuration types. It includes predefined types and custom types created by current admin.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
KnoxConfigurationType
objects.The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |
Get the object to access the Container Configuration Policy.
ContainerConfigurationPolicy
object if success, else null
.Administrator can get the object to access the ContainerConfigurationPolicy object.
|
API level 11 |
KNOX 2.0 |
Deprecated
in API level 30
NOTE: This API is not available since Android 13.
API to fetch a list of available Knox application containers. The list only contains the containers created by the current administrator.
SecurityException | If caller does not have required permissions. |
---|
Use this API to fetch a list of available Knox application containers.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview. |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |
Get the object to access the Knox DLP.
DLPManagerPolicy
object if success, else null
.Admin can get the object to access the DLPManagerPolicy object.
|
API level 19 |
KNOX 2.6 |
Get the object to access the DateTime Policy.
DateTimePolicy
object if success, else null
.Administrator can get the object to access the DateTimePolicy object.
|
API level 11 |
KNOX 2.0 |
Get the object to access the DeviceAccount Policy.
DeviceAccountPolicy
object if success, else null
.Administrator can get the object to access the DeviceAccountPolicy object.
|
API level 11 |
KNOX 2.0 |
Get the object to access 'DualDAR' Policy.
Administrator can get the object to access the 'DualDARPolicy' Policy. |
API level 28 |
KNOX 3.3 |
Get the object to access the EmailAccount Policy.
EmailAccountPolicy
object if success, else null
.Administrator can get the object to access the EmailAccountPolicy object.
|
API level 11 |
KNOX 2.0 |
Get the object to access the EmailPolicy.
EmailPolicy
object if success, else null
.Administrator can get the object to access the EmailPolicy object.
|
API level 11 |
KNOX 2.0 |
Get the object to access the Enterprise Billing Policy
EnterpriseBillingPolicy
objectAPI level 13 |
KNOX 2.2 |
Get the object to access the Enterprise Certificate Enrollment Policy.
cepProtocol | The Certificate enrollment protocol for which the policy object is retrieved
e.g. CERT_PROFILE_TYPE_SCEP for SCEP. |
---|
EnterpriseCertEnrollPolicy
object if success, else null
.Admin can get the object to access the EnterpriseCertEnrollPolicy depending up on the Certificate Enrollment Protocol Service to be used. |
API level 12 |
KNOX 2.1 |
Get the object to access the ExchangeAccount Policy.
ExchangeAccountPolicy
object if success, else null
.Administrator can get the object to access the ExchangeAccountPolicy object.
|
API level 11 |
KNOX 2.0 |
Get the object to access the Geofencing Policy.
Geofencing
object if success, else null
.Administrator can get the object to access the Geofencing object.
|
API level 11 |
KNOX 2.0 |
Get the object to access the LDAP Account Policy.
LDAPAccountPolicy
object if success, else null
.Administrator can get the object to access the LDAPAccountPolicy object.
|
API level 11 |
KNOX 2.0 |
Get the object to access the Location Policy.
LocationPolicy
object if success, else null
.Administrator can get the object to access the LocationPolicy object.
|
API level 11 |
KNOX 2.0 |
Deprecated
in API level 35
NOTE: This API is not available since Android 13.
API to get the object to access the Network Analytics platform.
NetworkAnalytics
object if success, else null
.Admin can get the object to access the NetworkAnalytics object.
|
API level 22 |
KNOX 2.8 |
Get the object to access the Password Policy.
PasswordPolicy
object if success, else null
.Administrator can get the object to access the PasswordPolicy object.
|
API level 11 |
KNOX 2.0 |
API to access Container RCP Policy.
RCPPolicy
object if success, else null
.Administrator can get the object to access the
RCPPolicy . RCP sync policies applied using
this object will be enforced on the container represented
by this KnoxContainerManager object.
|
API level 11 |
KNOX 2.0 |
Get the object to access the Restriction Policy.
RestrictionPolicy
object if success, else null
.Administrator can get the object to access the RestrictionPolicy object.
|
API level 11 |
KNOX 2.0 |
Deprecated
in API level 30
NOTE: This API is not available since Android 13.
API towill give the current container status.
API to retrive the current status for the specified container Id.
The status can be one of
CONTAINER_INACTIVE ,
CONTAINER_ACTIVE ,
CONTAINER_CREATION_IN_PROGRESS ,
CONTAINER_LOCKED or
CONTAINER_DOESNT_EXISTS .
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); try { KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); int status = kcm.getStatus(); } catch (NoSuchFieldException e) { Log.e(TAG, "UnsupportedOperationException: " + e); } |
API level 11 |
KNOX 2.0 |
Get the object to access the Universal Credential Manager Policy.
UniversalCredentialManager
object if success, else null
.Administrator can get the object to access the UniversalCredentialManager. |
API level 26 |
KNOX 3.2 |
Get the object to access the Wifi Policy.
WifiPolicy
object if success, else null
.Administrator can get the object to access the WifiPolicy object.
|
API level 11 |
KNOX 2.0 |
Deprecated
in API level 30
NOTE: This API is not available since Android 13.
API to lock the container.
true
if the container is successfully locked.false
otherwise.SecurityException | If caller does not have required permissions. Only administrator who created container can enforce policy, if the calling administrator is not an owner of container the API throws SecurityException. |
---|---|
NoSuchFieldException | If container does not exist or container creation/removal is in progress. |
Use this API to lock the container. It will return true if the
container was locked successfully. Calling this API will change the
status of the container to
CONTAINER_LOCKED
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview. EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); try { KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); boolean returnValue = kcm.lock(); } catch (SecurityException e) { Log.w(TAG, "SecurityException: " + e); } catch (NoSuchFieldException e) { Log.e(TAG, "UnsupportedOperationException: " + e); } |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |
Deprecated
in API level 30
NOTE: This API is not available since Android 13.
API to remove a custom configuration type object provided there are no active containers related to this type and the caller is creator of the type.
type | name of the configuration type |
---|
true
if successfully added KnoxConfigurationType
object. false
otherwise.SecurityException | If caller does not have required permissions. |
---|
This API will remove a custom configuration type object.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
try { boolean status = KnoxContainerManager.removeConfigurationType("knox-custom"); } catch (SecurityException e) { .... } * |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 13 |
KNOX 2.2 |
Deprecated
in API level 30
NOTE: This API is not available since Android 10.
API to remove a Knox application container.
id | of container. |
---|
SecurityException | If caller does not have required permissions. |
---|
Use this API to remove Knox Application container.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
try { int errorCode = KnoxContainerManager.removeContainer(100); if(containerId == KnoxContainerManager.REMOVE_CONTAINER_SUCCESS) { //success } else { switch(containerId) { case KnoxContainerManager.ERROR_INTERNAL_ERROR: ....... (More cases) } } } catch (SecurityException e) { .... } |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |
Deprecated
in API level 30
NOTE: This API is not available since Android 13.
API to unlock the container.
true
if the container is successfully unlocked.
false
otherwise.SecurityException | If caller does not have required permissions. Only administrator who created container can enforce policy, if the calling administrator is not an owner of container the API throws SecurityException. |
---|---|
NoSuchFieldException | If container does not exist or container creation/removal is in progress. |
Calling this API will unlock the container. It will return true if
the container was successfully unlocked. Calling this API will
change the status of the container to
CONTAINER_INACTIVE . The
container is in the
CONTAINER_INACTIVE state when
administrator calls unlock after locking the container.
NOTE: This API is impacted by changes made to the Workspace container in Knox 3.0. For more information, please see New container architecture overview.
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); try { KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); boolean returnValue = kcm.unlock(); } catch (SecurityException e) { Log.w(TAG, "SecurityException: " + e); } catch (NoSuchFieldException e) { Log.e(TAG, "UnsupportedOperationException: " + e); } |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |