IT guide: set up the directory via MDM
You need an MDM/UEM that can push managed configuration to Android apps. Pilot with 1–2 devices first.
1. Prepare the directory
- Export it as vCard (.vcf), CSV or JSON. Each contact needs a stable
id: if it changes, the app treats it as a different contact. - Large directories (vCard/CSV): host them at an HTTPS URL (intranet or cloud storage). Small ones: you can paste single-line minified JSON.
JSON example: [{"id":"emp-001","given_name":"Ana","family_name":"Lopez","phone_work":"+1 555 0100","email_work":"ana@company.com"}]
2. Paste the configuration in your MDM
- Add SecureContacts (com.adrimg.securecontacts) from managed Google Play and assign it to devices.
- Open its managed configuration (often called “App configuration”).
- Set
contacts_sourceto the HTTPS URL or the JSON. Leavecontacts_formatasauto. - If you use a URL, set
download_allowed_hoststo its domain (e.g.intranet.company.com). Empty means URL downloads are blocked. - If the file sits on an internal server with a private IP, turn off
block_private_ips; otherwise keep it on. - Grant the app the Contacts permission through your MDM policy. The current version does not ask the employee for it; without it, sync fails.
- Save and push the policy.
Useful options
account_display_name: account name shown in Contacts (default “SecureContacts”).read_only(on by default): asks Android to stop employees editing or deleting company contacts from the Contacts app. Some OEM Contacts apps may not fully honour it. Not yet verified on a device.wipe_on_remove(on by default): removes only the contacts in the SecureContacts account when you remove the app or clear its configuration; it does not wipe the phone or any other contacts. Not yet verified on a device. Note: since 528 (2.0.5), with this option off the app keeps its contacts when the configuration is cleared, but only if your MDM sends the option as a boolean (true/false). If it sends it as text ("false"), the app currently applies the default and removes them. We're fixing it.- Value types: today the app only recognises
read_only,wipe_on_remove,https_onlyandblock_private_ipsas booleans, andsync_frequency_hoursas an integer. If your MDM sends them as text, the app uses the default (the first four on and sync every 6 hours). We're fixing it. sync_frequency_hours: fallback retry interval (default 6, range 1–168). Android may delay it to save battery. Not yet verified on a device.source_sha256(optional): SHA-256 of the file; sync fails on mismatch. Compute withshasum -a 256 directory.vcf.https_only(on by default): rejectshttp://URLs.- Status in the console: the app sends your MDM, through Android and Google Play, seven notices about its status (sync, number of contacts and date, and which option is failing), with no contact data. Not every console shows them and they cannot be turned off from the app. The former
diagnostics_*options have been removed.
3. Check it works
- On a test device, open SecureContacts.
- It should show “Company directory ready”, “Configuration applied from: MDM” and “Synced contacts: N” with the expected count.
- Tap “Open Contacts app” and search for a directory contact.
- Change a contact, re-push the policy and tap “Sync now” to see it without waiting.
- If you see “Último error”, check
download_allowed_hosts, the URL and the Contacts permission (see troubleshooting).
When it updates
Open the app once; after that it syncs in the background (every 6 hours by default; Android may delay it) and with the “Sync now” button. Installed from managed Google Play. MDM changes are not instant: today the most reliable path is for the employee to open the app once after a change.