Manual / kiosk path

ADB provisioning

Use when QR scanning at factory setup is unavailable — common on Telpo and custom kiosk builds. Install the agent over USB, set device owner, then sync enrollment.

1

Prepare the device

Verify ADB connection
adb devices

Expect exactly one device in device state (not unauthorized).

2

Install the agent APK

Download mdm-agent.apk or copy from the server at storage/app/mdm/mdm-agent.apk.

Install
adb install -r mdm-agent.apk
3

Set device owner

Must run on a device with no accounts and no existing device owner. This grants Device Owner to the Capnis DPC.

Device Policy Manager
adb shell dpm set-device-owner com.capnis.mdm/.AdminReceiver

Success message: Success: Device owner set to … AdminReceiver. If it fails, factory reset and retry before adding any account.

4

Pass enrollment token

Create an enrollment profile in Admin → Enrollment and copy the enrollment token from the profile (or QR JSON payload).

Option A — launch with extras (if supported by your build):

Enrollment extras
adb shell am start -n com.capnis.mdm/.MainActivity \
  --es enrollment_token YOUR_ENROLLMENT_TOKEN \
  --es server_url https://capnis.one

Option B — post-provision sync: Open the Capnis MDM agent on device, enter server URL https://capnis.one, and complete registration when prompted. The agent calls POST /api/device/register.

5

Verify