Within the ROM image, grant the following permissions for Hexnode MDM app:.If your device is running OS below Android 5.0, copy the APK to /system/app folder for the device enrollment.If your device is running Android 5.0 or later, ensure that you’ve copied the APK to the /system/priv-app folder instead of /system/app or /data/app folders so that Hexnode UEM gets the privilege of silent app installation.Edit the ROM image and copy Hexnode MDM APK to the /system/priv-app or the /system/app folder.Build your own custom ROM using Android Open-Source Project (AOSP) or download one tailored to meet your needs.This process needs to be carried out by the device manufacturer. Step 1: Setting up the Android firmware.