java.lang.Object | |
↳ | com.samsung.android.knox.EnterpriseDeviceManager |
Public interface for managing policies enforced on a device. Most clients of this class must have published a DeviceAdminReceiver that the user has currently enabled.
API level 1 |
MDM 1.0 |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EnterpriseDeviceManager.KNOX_VERSION_CODES | Enumeration of the currently known SDK version codes. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACTION_USER_STATE_CHANGED | Broadcast Action: Sent to inform the owner of DO/PO/Legacy Container about user state change. | |||||||||
String | EXTRA_USER_ID | Used as int extra field with ACTION_USER_STATE_CHANGED . |
|||||||||
String | EXTRA_USER_STATE | Used as int extra field with ACTION_USER_STATE_CHANGED . |
|||||||||
int | USER_ACTIVE | This status is returned by getUserStatus(int)
API when user is active. |
|||||||||
int | USER_CREATION_IN_PROGRESS | This status is returned by getUserStatus(int)
API when user creation is in progress. |
|||||||||
int | USER_DOESNT_EXIST | This status is returned by getUserStatus(int)
API when user doesn't exist. |
|||||||||
int | USER_LOCKED | This status is returned by getUserStatus(int)
API when user is locked. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
API to retrieve the Knox SDK version supported on the device.
| |||||||||||
Get the object to access 'App Permission Monitor' Policy.
| |||||||||||
Deprecated
in API level 35
| |||||||||||
Deprecated
in API level 35
| |||||||||||
API that gets the object that accesses the APN Settings Policy.
| |||||||||||
API to get the object that accesses the Application policy.
| |||||||||||
Deprecated
in API level 35
| |||||||||||
API that gets the object that accesses the Bluetooth Policy.
| |||||||||||
API that gets the object that accesses the Bluetooth Secure Mode Policy.
| |||||||||||
API to get the object that accesses the BootBanner APIs.
| |||||||||||
API that gets the object that accesses the Browser Policy.
| |||||||||||
API that gets the object that accesses the Certificate Provisioning.
| |||||||||||
API that gets the object that accesses the Date Time Policy.
| |||||||||||
API that gets the object that accesses the Device Account Policy.
| |||||||||||
API that gets the object that accesses the Device Inventory.
| |||||||||||
API that gets the object that accesses the Device Security Policy.
| |||||||||||
API that gets the object that accesses the Dex Manager.
| |||||||||||
API that gets the object that accesses the Dual DAR Policy.
| |||||||||||
API that gets the object that accesses the Email Account Policy.
| |||||||||||
API that gets the object that accesses the Email Policy.
| |||||||||||
API that gets the object that accesses the Microsoft Exchange Account policy
| |||||||||||
API that gets the object that accesses the Firewall.
| |||||||||||
API to get the object that accesses the Font APIs.
| |||||||||||
API to get the object that accesses the Geofencing module.
| |||||||||||
Deprecated
in API level 35
| |||||||||||
API to create an instance of EnterpriseDeviceManager class.
| |||||||||||
API to get the object that accesses the KPCC Manager.
| |||||||||||
API to get the object that accesses the KioskMode module.
| |||||||||||
API that gets the object that accesses the LDAP Account Policy.
| |||||||||||
API that gets the object that accesses the Location Policy.
| |||||||||||
API to get the object that accesses the Lockscreen Overlay.
| |||||||||||
API to get the object that accesses the MultiUserManager.
| |||||||||||
API that gets the object that accesses the Nfc Policy.
| |||||||||||
API to create an parent instance of EnterpriseDeviceManager class.
| |||||||||||
API that gets the object that accesses the Password Policy.
| |||||||||||
API that gets the object that accesses the Phone Restriction Policy.
| |||||||||||
API that gets the object that accesses the Phone Restriction policy for the SIM Card with the given iccId
| |||||||||||
API to get the object that accesses the ProfilePolicy
| |||||||||||
API to get the object that accesses the RemoteInjection module.
| |||||||||||
API that gets the object that accesses the Restriction Policy.
| |||||||||||
API that gets the object that accesses the Roaming policy.
| |||||||||||
API that gets the object that accesses the SPD Control Policy.
| |||||||||||
API to get the user id in integer for given UserHandle.
| |||||||||||
API to get the user status.
| |||||||||||
API that gets the object that accesses the VPN Policy.
| |||||||||||
API that gets the object that accesses the WiFi Policy.
| |||||||||||
Return
true if the given administrator component is currently active (enabled) in the system,
else false . | |||||||||||
Deprecated
in API level 35
| |||||||||||
Deprecated
in API level 35
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Broadcast Action: Sent to inform the owner of DO/PO/Legacy Container about user state change.
This targeted broadcast is sent only to owner of DO/PO/Legacy Container.
The intent will have the following extra value:
EXTRA_USER_ID
:
"0", "10" etc.
EXTRA_USER_STATE
:
USER_ACTIVE
USER_LOCKED
USER_CREATION_IN_PROGRESS
API level 24 |
KNOX 3.0 |
Used as int extra field with ACTION_USER_STATE_CHANGED
.
Contains the user id information.
API level 24 |
KNOX 3.0 |
Used as int extra field with ACTION_USER_STATE_CHANGED
.
Contains the user current state information.
API level 24 |
KNOX 3.0 |
This status is returned by getUserStatus(int)
API when user is active.
API level 24 |
KNOX 3.0 |
This status is returned by getUserStatus(int)
API when user creation is in progress.
API level 24 |
KNOX 3.0 |
This status is returned by getUserStatus(int)
API when user doesn't exist.
API level 24 |
KNOX 3.0 |
This status is returned by getUserStatus(int)
API when user is locked.
API level 24 |
KNOX 3.0 |
API to retrieve the Knox SDK version supported on the device.
See EnterpriseDeviceManager.KNOX_VERSION_CODES
for possible values.
KNOX_NOT_SUPPORTED
if Knox is not supported on the device
API level 24 |
KNOX 3.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 |
Deprecated in API level 35
API to get the removable status of the calling administrator.
true
if the administrator can be removed, false
if the administrator cannot be
removed.An administrator can determine its removable status to check whether a user can remove
that administrator from the Settings application. If false , the user cannot remove the
administrator.
|
API level 2 |
MDM 2.0 |
User Scope |
Deprecated in API level 35
API to get the administrator removable status of another administrator application.
packageName | Name of the administrator whose removable status is queried |
---|
true
if the administrator can be removed, false
if the administrator cannot be
removedAn administrator can use this API to get the removable status of another administrator
application. If false , an administrator cannot remove the administrator being checked.
|
API level 6 |
MDM 4.0 |
User Scope |
API that gets the object that accesses the APN Settings Policy.
null
.An administrator can use this API to get the object that accesses the APN Settings Policy. |
API level 2 |
MDM 2.0 |
API to get the object that accesses the Application policy.
null
.An administrator can use this API to get the object that accesses the Application policy. |
API level 1 |
MDM 1.0 |
Deprecated in API level 35
Get the object to access the Base Password Policy
API level 27 |
KNOX 3.2.1 |
API that gets the object that accesses the Bluetooth Policy.
null
.An administrator can use this API to get the object that accesses the Bluetooth Policy. |
API level 2 |
MDM 2.0 |
API that gets the object that accesses the Bluetooth Secure Mode Policy.
null
.An administrator can use this API to get the object that accesses the Bluetooth Secure Mode Policy. |
API level 6 |
MDM 4.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 |
API that gets the object that accesses the Browser Policy.
null
.An administrator can use this API to get the object that accesses the Browser Policy. |
API level 2 |
MDM 2.0 |
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 |
API that gets the object that accesses the Date Time Policy.
null
.An administrator can use this API to get the object that accesses the Date Time Policy. |
API level 2 |
MDM 2.0 |
API that gets the object that accesses the Device Account Policy.
null
.An administrator can use this API to get the object that accesses the Device Account Policy. |
API level 6 |
MDM 4.0 |
API that gets the object that accesses the Device Inventory.
null
.An administrator can use this API to get the object that accesses the Device Inventory. |
API level 2 |
MDM 2.0 |
API that gets the object that accesses the Device Security Policy.
null
.An administrator can use this API to get the object that accesses the Device Security Policy. |
API level 2 |
MDM 2.0 |
API that gets the object that accesses the Dex Manager.
null
.An administrator can use this API to get the object that accesses the Dex Manager. |
API level 25 |
KNOX 3.1 |
API that gets the object that accesses the Dual DAR Policy.
null
.An administrator can use this API to get the object that accesses the DualDAR Policy. |
API level 35 |
KNOX 3.8 |
API that gets the object that accesses the Email Account Policy.
null
.An administrator can use this API to get the object that accesses the Email Account Policy. |
API level 2 |
MDM 2.0 |
API that gets the object that accesses the Email Policy.
null
.An administrator can use this API to get the object that accesses the Email Policy. |
API level 5 |
MDM 3.0 |
API that gets the object that accesses the Microsoft Exchange Account policy
null
.An administrator can use this API to get the object that accesses the Microsoft Exchange Account policy. |
API level 1 |
MDM 1.0 |
API that gets the object that accesses the Firewall.
null
.An administrator can use this API to get the object that accesses the Firewall. |
API level 17 |
MDM 5.5 |
API to get the object that accesses the Font APIs.
null
.An administrator can use this API to get the object that accesses the Font APIs. |
API level 1 |
MDM 1.0 |
API to get the object that accesses the Geofencing module.
null
.An administrator can use this API to get the object that accesses the Geofencing module. |
API level 6 |
MDM 4.0 |
Deprecated in API level 35
API that gets the object that accesses the Global Proxy.
null
.An administrator can use this API to get the object that accesses the Global Proxy. |
API level 17 |
MDM 5.5 |
API to create an instance of EnterpriseDeviceManager class.
context | context of the application or service using this class |
---|
null
Used to get access to EnterpriseDeviceManager object
EnterpriseDeviceManager edm = EnterpriseDeviceManager.getInstance(context); |
API level 24 |
API to get the object that accesses the KPCC Manager.
null
.An administrator can use this API to get the object that accesses the KPCC Manager. |
API level 29 |
KNOX 3.4 |
API to get the object that accesses the KioskMode module.
null
.An administrator can use this API to get the object that accesses the KioskMode module. |
API level 5 |
MDM 3.0 |
API that gets the object that accesses the LDAP Account Policy.
null
.An administrator can use this API to get the object that accesses the LDAP Account Policy. |
API level 6 |
MDM 4.0 |
API that gets the object that accesses the Location Policy.
null
.An administrator can use this API to get the object that accesses the Location Policy. |
API level 2 |
MDM 2.0 |
API to get the object that accesses the Lockscreen Overlay.
null
.An administrator can use this API to get the object that accesses the Lockscreen Overlay. |
API level 6 |
MDM 4.0 |
API to get the object that accesses the MultiUserManager.
null
.An administrator can use this API to get the object that accesses the MultiUserManager. |
API level 6 |
MDM 4.0 |
API that gets the object that accesses the Nfc Policy.
null
.An administrator can use this API to get the object that accesses the Nfc policy. |
API level 24 |
API to create an parent instance of EnterpriseDeviceManager class.
context | context of the application or service using this class |
---|
null
Used to get access to parent EnterpriseDeviceManager object
EnterpriseDeviceManager edm = EnterpriseDeviceManager.getInstance(context); |
API level 33 |
KNOX 3.7 |
API that gets the object that accesses the Password Policy.
null
.An administrator can use this API to get the object that accesses the Password Policy. |
API level 2 |
MDM 2.0 |
API that gets the object that accesses the Phone Restriction Policy.
null
.An administrator can use this API to get the object that accesses the Phone Restriction Policy. |
API level 2 |
MDM 2.0 |
API that gets the object that accesses the Phone Restriction policy for the SIM Card with the given iccId
PhoneRestrictionPolicy
object if successful, else null
.An administrator can use this API to get the object that accesses the Phone Restriction policy. |
API level 22 |
MDM 5.8 |
Global Scope |
API to get the object that accesses the ProfilePolicy
null
.profile owner or device owner can use this API to get the object that accesses the ProfilePolicy |
API level 35 |
MDM 3.8 |
API to get the object that accesses the RemoteInjection module.
null
.An administrator can use this API to get the object that accesses the RemoteInjection module. |
API level 3 |
MDM 2.1 |
API that gets the object that accesses the Restriction Policy.
null
.An administrator can use this API to get the object that accesses the Restriction Policy. |
API level 2 |
MDM 2.0 |
API that gets the object that accesses the Roaming policy.
null
.An administrator can use this API to get the object that accesses the Roaming policy. |
API level 1 |
MDM 1.0 |
API that gets the object that accesses the SPD Control Policy.
null
.An administrator can use this API to get the object that accesses the SPD Control Policy. |
API level 19 |
MDM 5.6 |
API to get the user id in integer for given UserHandle.
API level 26 |
KNOX 3.2 |
User Scope |
API to get the user status.
USER_LOCKED
, USER_ACTIVE
, USER_DOESNT_EXIST
and USER_CREATION_IN_PROGRESS
are the possible values.
API level 24 |
KNOX 3.0 |
User Scope |
API that gets the object that accesses the VPN Policy.
null
.An administrator can use this API to get the object that accesses the VPN Policy. |
API level 2 |
MDM 2.0 |
API that gets the object that accesses the WiFi Policy.
null
.An administrator can use this API to get the object that accesses the WiFi Policy. |
API level 2 |
MDM 2.0 |
Return true
if the given administrator component is currently active (enabled) in the system,
else false
.
true
if the given administrator component is currently active (enabled) in the
system, else false
.API level 2 |
MDM 2.0 |
Global Scope |
Deprecated in API level 35
API to set the removable status of another administrator application.
removable | true enables administrator removal, false disables administrator removal |
---|---|
packageName | Name of administrator whose removable status is set |
true
on success, false
on failureAn administrator can set the removable status of another administrator application. If
set to true , the user can remove the administrator through the Settings application.
If set to false , the user cannot remove the administrator through the Settings
application. Note: Currently this API does not support rollback so it is administrator responsibility to revoke this policy before de-registering itself. |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_ENTERPRISE_DEVICE_ADMIN" permission which has a protection level of signature. |
API level 6 |
MDM 4.0 |
User Scope |
Deprecated in API level 35
API to set the administrator removable status.
removable | true enables administrator removal, false disables administrator removal |
---|
true
on success, else false
.SecurityException | If caller does not have required permissions |
---|
An administrator can set their removable status. If set to true , the user can remove
the administrator through the Settings application. If set to false , the user cannot
remove the administrator through the Settings application. |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_ENTERPRISE_DEVICE_ADMIN" permission which has a protection level of signature. |
API level 2 |
MDM 2.0 |
User Scope |