To pass the GMS certification, the device must be not managed, that is, it should not have the device owner after the first start.
The system build of Headwind MDM claims itself as a device owner at first start and cannot be used in GMS-certified devices directly.
To make Headwind MDM safe for GMS certification, please perform the following changes in the source code of the launcher:
1. Remove the SystemUtils.java:becomeDeviceOwner() method and all references to it.
2. Remove the following protected permissions from the system flavor of AndroidManifest.xml: android.permission.MANAGE_DEVICE_ADMINS, android.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS
Rebuild the source code and sign it by the platform keys provided by the manufacturer.
Headwind MDM will still be able to update apps silently, but it will be GMS safe.