java.lang.Object | |
↳ | com.samsung.android.knox.container.RCPPolicy |
Deprecated in API level 36
This class provides APIs to manage data import/export to/from the container.
API level 11 |
KNOX 2.0 |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CALENDAR | Deprecated in API level 36 | |||||||||
String | CONTACTS | Deprecated in API level 36 | |||||||||
String | EXPORT_DATA | Deprecated in API level 36 | |||||||||
String | IMPORT_DATA | Deprecated in API level 36 | |||||||||
String | NOTIFICATIONS | Deprecated in API level 36 | |||||||||
String | SANITIZE_DATA | Deprecated in API level 36 |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Deprecated
in API level 30
NOTE: This API is not available since Android 9. | |||||||||||
Deprecated
in API level 35
| |||||||||||
Deprecated
in API level 35
| |||||||||||
Deprecated
in API level 33
| |||||||||||
Deprecated
in API level 35
NOTE: This API is not available since Android 12. | |||||||||||
Deprecated
in API level 35
NOTE: This API is not available since Android 12. | |||||||||||
Deprecated
in API level 30
NOTE: This API is not available since Android 9. | |||||||||||
Deprecated
in API level 35
| |||||||||||
Deprecated
in API level 35
| |||||||||||
Deprecated
in API level 33
| |||||||||||
Deprecated
in API level 35
NOTE: This API is not available since Android 12. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Deprecated in API level 36
Predefined application supports data import/export.It is passed as the application parameter in the following APIs.
API level 11 |
KNOX 2.0 |
Deprecated in API level 36
Predefined application supports data import/export.It is passed as the application parameter in the following APIs.
API level 11 |
KNOX 2.0 |
Deprecated in API level 36
This constant is a sync property used to export data out of the container. For the applications it is set to true, will be allowed to sync data out of the container.
API level 11 |
KNOX 2.0 |
Deprecated in API level 36
This constant is a sync property used as a parameter while setting policies. This specifies if data needs to be synced from outside container to inside. Most of the time this gets choosen by user from a user settings. User set value can be overridden by this policy.
API level 11 |
KNOX 2.0 |
Deprecated in API level 36
Predefined application supports data import/export.It is passed as the application parameter in the following APIs.
API level 11 |
KNOX 2.0 |
Deprecated in API level 36
This constant is a sync property used to specify whether all the information needs to be synced across users or the data needs to be filtered. What data gets filtered for which type of app is defined by UX guidelines.
API level 11 |
KNOX 2.0 |
Deprecated
in API level 30
NOTE: This API is not available since Android 9.
API to set policy value for moving applications to inside the container.
allow | A boolean value which either enables or disables moving applications to inside the container. |
---|
true
If the policy is set properlySecurityException | If caller does not have required permissions. |
---|
An administrator can use this API to set a policy which either enables/disables moving applications to inside the container.
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); try { KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); RCPPolicy rcpPolicy = kcm.getRCPPolicy(); boolean status = rcpPolicy.allowMoveAppsToContainer(true); } catch (SecurityException e) { Log.e(TAG, "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 35
API to set policy value for moving files to inside the container.
allow | A boolean value which either enables or disables file moving to inside the container. |
---|
true
If the policy is set properlySecurityException | If caller does not have required permissions. |
---|
An administrator can use this API to set a policy which either enables/disables moving files to inside the container.
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); try { KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); RCPPolicy rcpPolicy = kcm.getRCPPolicy(); ArrayList |
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 35
API to set policy value for moving files to outside of the container.
allow | A boolean value which either enables or disables file moving to outside of the container. |
---|
true
If the policy is set properlySecurityException | If caller does not have required permissions. |
---|
An administrator can use this API to set a policy which either enables/disables moving files to outside of the container.
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); try { KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); RCPPolicy rcpPolicy = kcm.getRCPPolicy(); ArrayList |
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 33
API to set policy value for sharing clipboard to owner from container.
true
if successful else false
.SecurityException | If caller does not have required permissions. |
---|
An administrator can use this API to set the policy value of sharing clipboard to owner from 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); RCPPolicy rcpPolicy = kcm.getRCPSyncPolicy(); boolean retVal = rcpPolicy.allowShareClipboardDataToOwner(allow); } catch (SecurityException e) { Log.e(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_RCP" permission which has a protection level of signatureOrSystem. |
API level 19 |
KNOX 2.6 |
Deprecated
in API level 35
NOTE: This API is not available since Android 12.
API to get values set for a particular application's sync property.
appName | Name of the parameter. Possible values can be any of below or a custom string. |
---|---|
syncProperty | The corresponding value for the property, returns true if allowed.
|
true
if user is allowed to change the sync property.An administrator can use this API to get value that has been set for a particular application's sync property
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); try { KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); RCPPolicy rcpPolicy = kcm.getRCPPolicy(); String applications = rcpPolicy.geDataSyncPolicy(RCPPolicy.CONTACTS, RCPPolicy.EXPORT_DATA); } |
API level 11 |
KNOX 2.0 |
Deprecated
in API level 35
NOTE: This API is not available since Android 12.
API to get list of applications from allow change data sync policy based on property and its value.
syncProperty | Name of the property. Possible values can be any of below or a custom string. |
---|---|
value | The corresponding value for the sync property. |
List
of applications which are associated with the specified property and value.
The list of applications can contain one of the following values.
SecurityException | If caller does not have required permissions. |
---|
An administrator can use this API to get the list of applications which
satisfies the given criteria.
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); try { KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); RCPPolicy rcpPolicy = kcm.getRCPPolicy(); ArrayList |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER_RCP" 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 9.
API to get policy value for moving applications to inside the container.
An administrator can use this API to find the policy value of moving applications into the container.
true
if moving apps to container allowed else false
.API level 11 |
KNOX 2.0 |
Deprecated in API level 35
API to get policy value for moving files to inside the container.
true
if moving files to container allowed else false
.An administrator can use this API to find the policy value of moving files into the container. |
API level 11 |
KNOX 2.0 |
Deprecated in API level 35
API to get policy value for moving files to outside of the container.
An administrator can use this API to find the policy value of moving files to outside of the container.
true
if moving files to owner allowed else false
.API level 11 |
KNOX 2.0 |
Deprecated in API level 33
API to get policy value for sharing clipboard to owner from container.
true
if sharing clipboard data to owner allowed else false
.An administrator can use this API to find the policy value of sharing clipboard to owner from 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); RCPPolicy rcpPolicy = kcm.getRCPSyncPolicy(); boolean retVal = rcpPolicy.isShareClipboardDataToOwnerAllowed(); } catch (SecurityException e) { Log.e(TAG, "SecurityException: " + e); } catch (NoSuchFieldException e) { Log.e(TAG, "UnsupportedOperationException: " + e); } |
API level 19 |
KNOX 2.6 |
Deprecated
in API level 35
NOTE: This API is not available since Android 12.
API to set whether user can change Data Sync policies specific to applications.
appNames | A list of predefined applications or custom applications that provide container to user data sync. For a list of predefined applications please look at the below list. |
---|---|
syncProperty | Name of the property. Possible values can be any of below or a custom string. |
value | The corresponding value for the sync property, true for allowing user to change sync policies, otherwise false . |
true
if the policy gets added successfully.SecurityException | If caller does not have required permissions. |
---|
This API should be used to allow/disallow User to change applications specific sync policies.
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); try { KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); RCPPolicy rcpPolicy = kcm.getRCPPolicy(); boolean success = rcpPolicy.setAllowChangeDataSyncPolicy(RCPPolicy.CONTACTS, RCPPolicy.SANITIZE_DATA, true); } catch (SecurityException e) { Log.e(TAG, "SecurityException: " + e); } NOTE: From KNOX 2.3, in case of MDFPP(Mobile Device Fundamentals Protection Profile) SDP enabled container, notification sanitization is always enabled only for Email app. NOTE: From KNOX 3.0, DataSyncPolicy will be set to false when setAllowChangeDataSyncPolicy set to false. NOTE: |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CONTAINER_RCP" permission which has a protection level of signature. |
API level 11 |
KNOX 2.0 |