In enterprise PC device management scenarios, an enterprise can engage multiple EMM vendors to jointly manage enterprise PC devices, distributing management authority to meet management requirements across different scenarios. In this context, MDM Kit abstracts different device administrator roles to support multiple EMM vendors in deploying their own MDM services simultaneously on PC devices. Since multiple MDM apps may call MDM management APIs concurrently in such scenarios, it is recommended that the enterprise and EMM vendors agree in advance on the management scope of their respective MDM apps to avoid policy conflicts. Policy conflicts may lead to management failures and issues such as enterprise data leakage.
The EnterpriseAdminExtensionAbility component can be activated in different ways, and its role varies depending on the activation mode.
Calling the adminManager.enableDeviceAdmin API activates the DA role. When an MDM app only needs to manage the device without managing other DA apps, it can be activated as DA.
Calling the adminManager.startAdminProvision API activates the BDA role. When an MDM app needs to perform limited management (such as disabling the camera or audio recording) on employees' personal devices in specific scenarios, it can be activated as BDA.
When multiple MDM apps are deployed on a single device, they may call the same MDM management API concurrently. Different policy values passed by these apps will lead to policy conflicts. The system has a built-in handling mechanism for such conflicts, and four conflict resolution rules are summarized below based on different policy types.
MDM Kit does not support custom policy conflict handling mechanisms. If the existing mechanism fails to meet the enterprise's management requirements, enterprises need to predefine the management scope for each MDM app to avoid conflicts, or use a single MDM app for device management.
Design principle: Data security protection is prioritized. If an MDM app configures a data management policy with a high security level, other MDM apps will be prohibited from setting policies with lower security levels. For example, if an enterprise IT administrator uses an MDM app to set a policy that disables the camera during meetings, other MDM apps cannot cancel this camera-disabling restriction.
Policy validity logic: If any MDM app still requires disabling, the disabling persists. The restriction is removed only when all MDM apps remove the disabling.
Example:
MDM A: The camera is disabled.
MDM B: The camera is not disabled.
Final policy: The camera is disabled.
Changes of the EnterpriseAdminExtensionAbility activation status:
If there are multiple MDM apps on the device, the final status of the policies delivered by the remaining MDM apps is recalculated based on the strict management policy logic after the EnterpriseAdminExtensionAbility component is deactivated or an MDM app is uninstalled. If any MDM app still requires disabling, the disabling persists.
If there is only one MDM app on the device, the related policies are removed completely after the EnterpriseAdminExtensionAbility component is deactivated or the MDM app is uninstalled.
Example 1: If MDM A first sets the location policy to forcibly enable the location service through the setLocationPolicy API, MDM B will receive a policy conflict error when attempting to set the location policy to disable the location service.
Example 2: If MDM A first sets the location policy to disable the location service through the setLocationPolicy API, MDM B will receive a policy conflict error when attempting to set the location policy to forcibly enable the location service.
Design principle: MDM Kit provides capabilities to simplify device management for enterprise IT administrators. It is typically used to replace manual user input or adapt to dynamic environments and requirements. Enterprise IT administrators can batch configure enterprise device information in the background to improve management efficiency. This capability handles policy conflicts through configuration rules.
Policy validity logic: The system either retains only the latest delivered policy, or it may retain multiple policies, but only the latest configuration takes effect.
Example 1:
MDM A: The NTP server is set to ntp.a.com.
MDM B: The NTP server is set to ntp.b.com.
Final policy: The NTP server is set to ntp.b.com (the latest configuration takes effect).
Example 2:
MDM A: The device is configured to connect to the Wi-Fi1 network.
MDM B: The device is configured to connect to the Wi-Fi2 network.
Final policy: Both Wi-Fi1 and Wi-Fi2 configurations are retained, but the device is connected to Wi-Fi2 by default.
Changes of the EnterpriseAdminExtensionAbility activation status: If the EnterpriseAdminExtensionAbility component is deactivated or the MDM app is uninstalled, the currently effective configurations remain in place regardless of whether there are other MDM apps on the device.
Design principle: Many management policies are set-based in nature and allow an MDM app to modify or add policy items multiple times. A merging rule is designed to resolve conflicts for such policies. Multiple MDM apps can append additional settings to the same policy, and all policies configured by these apps take effect.
Policy validity logic: The system combines the data sets configured by all MDM apps, takes the union of these data sets, and the merged data set takes effect. A data item is deleted from the final list only when it has been removed from the configuration lists of all MDM apps.
Example:
MDM app A: App 1 and app 2 are added to the allowed app list.
MDM app B: App 2 and app 3 are added to the allowed app list.
Final list: [app 1, app 2, app 3]
MDM app B: App 2 and app 3 are removed from the list.
Final list: [app 1, app 2]
Changes of the EnterpriseAdminExtensionAbility activation status:
If multiple MDM apps are installed on the device, the union set is recalculated based on the list data of the remaining MDM apps when the EnterpriseAdminExtensionAbility component is deactivated or an MDM app is uninstalled.
If only one MDM app is installed on the device, the related policies are completely removed and the corresponding lists are cleared when the EnterpriseAdminExtensionAbility component is deactivated or the MDM app is uninstalled.