Wonkru MDM
An open-source Mobile Device Management (MDM) system for Android. The server and admin panel are written in Dart, and the device agent uses Flutter and Kotlin. Wonkru MDM manages devices enrolled with Android Enterprise Device Owner through a Flutter web panel and a Serverpod server.
Wonkru MDM is built for teams that need to enroll, configure, monitor, and remotely manage fleets of Android devices without depending on a closed SaaS service. It runs on a single server, whether rented or owned.
Features
Section titled “Features”- Device enrollment: QR-code provisioning enrolls a factory-reset device as a Device Owner.
- Policies: versioned packages of settings, restrictions, launcher configuration, apps, files, and certificates. The agent keeps using the latest policy offline and syncs when it reconnects.
- Remote commands: lock, reboot, clear app data, launch apps, send notifications,
collect installed apps, location, and logs. Commands are stored in
device_commandsand sent over a persistent Serverpod stream when the device connects. - Telemetry: full device sync (hardware, battery, network, security, installed apps, storage), heartbeat, event reports, and log collection.
- Admin panel: dashboard, device management, policy editor, application and certificate management, file storage, provisioning profiles, users, 2FA (TOTP + recovery codes), audit log, and TR/EN localization.
- Alerts: the panel shows offline devices, pending policy updates, and security alerts. You can also route alerts to email.
- File delivery: APKs are stored on the public disk. Private files and certificates use HMAC-signed links that expire.
Requirements
Section titled “Requirements”Run the Linux commands in a terminal on your Ubuntu or Debian server. The installer sets up Docker from its official APT repository if Docker is missing. If you already have Docker, use Compose 2.24.4 or later. For a small Linux installation, start with 1 vCPU, 2 GB of RAM, and a 20 GB SSD. For a local installation on a Mac, start Docker Desktop. System requirements
Quick start
Section titled “Quick start”Run Wonkru MDM on one server with the published Docker image. The installer starts the admin panel, API, PostgreSQL, and Caddy.
Ubuntu or Debian with domains and HTTPS
Section titled “Ubuntu or Debian with domains and HTTPS”Use this option when the panel and Android devices will connect over the internet. Replace the example domains with two names that point to your server. Leave port 80 reachable so Caddy can obtain certificates. During setup, allow HTTPS on port 443 for your own IP or trusted network. For a private CA on a local network, see Custom TLS certificate.
curl -fsSL https://wonkrumdm.com/install.sh | sudo bash -s -- \ --api-host api.example.com \ --panel-host app.example.com \Open https://app.example.com with your actual panel domain. The installer prints that
address at the end. The app uses port 443 for both domains.
Ubuntu or Debian with an IP address and HTTP
Section titled “Ubuntu or Debian with an IP address and HTTP”Use HTTP on a trusted local network. When the installer asks how to connect, press Enter to
choose HTTP. It shows the detected IPv4 address and suggests port 8080 for the API and
8082 for the panel.
curl -fsSL https://wonkrumdm.com/install.sh | sudo bashIf the detected address is out of reach for your devices or the default ports are in use, set them in the first install command. Replace the example IP with your server’s reachable address.
curl -fsSL https://wonkrumdm.com/install.sh | sudo bash -s -- \ --host 192.168.1.20 --api-port 9080 --panel-port 9082With these values, open http://192.168.1.20:9082 for the panel. The devices connect to
http://192.168.1.20:9080.
Start Docker Desktop and run the command in Terminal as your normal user.
curl -fsSL https://wonkrumdm.com/install.sh | bash -s -- \ --dir "$HOME/wonkru-mdm"Choose HTTP and accept the default values for a local installation. Open http://localhost:8082.
The API is at http://localhost:8080. With the default settings, both addresses are available
only on the Mac.
Create the first admin
Section titled “Create the first admin”Open the panel address, create your admin account, and enable two-factor authentication. You can then widen access to the people and devices that need it. Set the panel time zone under Settings.
Find the Starter device admin password
Section titled “Find the Starter device admin password”The installer generates a unique password for the Starter policy’s on-device IT page.
Read STARTER_ADMIN_PASSWORD from the installation .env.
sudo grep '^STARTER_ADMIN_PASSWORD=' /opt/wonkru-mdm/.envOn macOS, run grep in the directory you chose. To change the password later, edit
Policies → Starter → General → Admin Password in the panel. The value written at
install time stays in .env. See
Find the Starter device admin password.
Enroll an Android device
Section titled “Enroll an Android device”The first installation includes the Starter policy, the signed Wonkru MDM app, and a Wonkru MDM provisioning profile. From the dashboard, select Download MDM APK and enter the API address plus the enrollment key from Settings in the agent’s setup screen, or scan the setup QR code. For Device Owner provisioning, open Provisioning Profiles → Wonkru MDM, save a Wi-Fi network the device can use to reach the panel and API, then scan that profile’s QR code on a new or factory-reset device.
Wi-Fi, permissions, and a custom APK are covered in Enroll an Android device. Installer options, port changes, updates, and backups are on the installation guide. Settings and alternative setups are in the detailed deployment guide.
Documentation
Section titled “Documentation”The documentation is available in English (default) and Turkish; use the language selector in the header to switch.
- Documentation overview: guide and reference index
- Install: Docker Compose setup on one server
Security
Section titled “Security”Please do not open public issues for vulnerabilities. See Security policy.
Keep config/passwords.yaml, deploy/vps/.env, and release keystores out of Git.
Contributing
Section titled “Contributing”Contributions are welcome. See Contributing.
License
Section titled “License”Licensed under the Apache License 2.0.
Developers
Section titled “Developers”The component diagram is on the Architecture page. To build and run the project from source, follow Development environment setup.