Troubleshooting
Fix enrollment failures, Play Protect blocks, legacy Novus devices, offline compliance, and agent version drift.
App blocked by Play Protect
During QR setup, Google Play Protect may block the sideloaded MDM agent before device owner is established.
- Factory reset the tablet.
- Enable USB debugging (if not in setup-only mode, enable after partial setup then reset again if needed).
- Connect USB and run the helper script from the repo:
scripts\disable-play-protect-adb.bat
The script verifies adb devices shows one authorized device, then applies shell settings to reduce Play Protect interference and allow provisioning installs.
Factory reset again if required, then scan the enrollment QR from Admin → Enrollment.
Alternative: use ADB provisioning after running the script.
Novus → Capnis rebrand
Legacy devices enrolled with com.novusedtech.mdm cannot be migrated in place. The old DPC holds device owner until removed.
- Factory reset the device.
- Create a new enrollment profile and scan a fresh QR (or ADB provision with
com.capnis.mdm). - Retire the old device record in Admin if it still appears as stale.
Device owner / DPM errors
dpm set-device-owner fails when:
- A Google or other account exists on the device — factory reset.
- Another DPC is already device owner — factory reset.
- Wrong component — use
com.capnis.mdm/.AdminReceiverexactly.
Offline / compliance
Devices missing heartbeats beyond HEARTBEAT_TIMEOUT_MINUTES (default 30) show offline. Extended offline beyond COMPLIANCE_OFFLINE_HOURS (default 24) may flag non-compliant in fleet views.
- Confirm WiFi/cellular and correct server URL
https://capnis.one. - Check device time sync (TLS and HMAC auth require accurate clock).
- Re-open agent or reboot device to force heartbeat.
Upgrade agent from Admin
Ensure storage/app/mdm/mdm-agent.apk on the server is the desired build (3.0.1 / code 23). From Devices → device detail, use agent upgrade action. Verify new version after next heartbeat.
Direct download for manual sideload: /api/public/mdm-agent.apk
Enrollment profile inactive
QR codes from deactivated profiles or expired tokens are rejected. Create a new profile or reactivate in Enrollment.