Mobile DDD intake (new, unreleased source)¶
For Enterprise, use the new API service guide, including browser sign-in and central administration. The file configuration below remains authoritative for Pro and is adopted once by Enterprise.
For primary-server selection, download reminders and historical driving/rest views, see the mobile fleet API. These new reads require explicit additional token grants.
Android integration is available to Pro and Enterprise. Basic exposes no listener. Pro hosts intake in its in-process worker with SQLite; Enterprise accepts HTTP requests exclusively in FleetMiraApi with PostgreSQL and processes jobs in FleetMiraWorker. Enterprise Client starts no central import worker. The existing parser REST API is not an archive-import interface.
Setup¶
- Build/install this source including the
zeroconfdependency and run the regular versioned database migration. Use the existing backup procedure before upgrading. Never copy a development database into production. - Provide a valid TLS certificate and private key for the server DNS name. Restrict private-key access to the service account/administrators. Install internal CA certificates on Android devices when applicable.
- Create
config/mobile-api.jsonunder the data directory (the listener is disabled by default):
{
"enabled": true,
"bind": "0.0.0.0",
"port": 8443,
"certificate": "C:/ProgramData/FleetMira/tls/server-chain.pem",
"privateKey": "C:/ProgramData/FleetMira/tls/server-key.pem",
"advertise": true,
"address": "192.168.1.20",
"hostname": "fleet.example.internal"
}
Replace sample paths with actual absolute paths. address is the local IPv4 address for DNS-SD; hostname must resolve on the phone and match the certificate. Expose only the HTTPS port on the intended network. Restart the service/application after changes. Manual HTTPS configuration works without discovery.
- Create an integration token using the local administration utility. It requires interactive administrator authentication and verifies licensing, active users and permissions. For a Python source installation:
python mobile_admin.py --data-root C:\ProgramData\FleetMira --administrator ADMIN create-token --label Smartphone --user-id <user-id> --days 365
Add --calibration only for authorized calibration confirmations. Output contains the token once; transfer it securely and never copy it into logs. Revoke using python mobile_admin.py --data-root <data-directory> --administrator ADMIN revoke-token <token-id>. Enterprise uses its regular installation profile and stored PostgreSQL configuration, never SQLite fallback. Packaging this administration utility as a separate signed frozen CLI remains outstanding.
- Configure an Android Fleet Mira target with
https://fleet.example.internal:8443, token and optional expected server identity; associate it with a profile. Authenticated/api/mobile/v1/capabilitiesmust reportFLEET_MIRA, API 1 andddd-upload._fleetmira._tcpaids discovery and does not establish trust.
Processing¶
Original C/M files are streamed, SHA-256 checked and durably received. Reception and domain import are separate. The shared worker uses regular archiving, parsing, signature verification and vehicle matching. Identical content deduplicates even when also delivered through DLTNG. Invalid/unverifiable signatures produce QUARANTINED, not a successful verified import. Originals remain available. Persistent jobs, generations and leases protect network-loss recovery, restart and manual retries.
Scopes: uploads.write/archive.manage, uploads.read/archive.read, vehicles.read/fleet.read, calibration.confirm/fleet.manage. Disabling a user or removing permissions blocks existing tokens on their next request.
After verified M-file import, Android can request vehicle matching, deadlines and last complete downloads. Calibration uses the last server-verified record. Proposals show previous/proposed dates and expire after 15 minutes. Only explicit confirmation by an authorized user changes the deadline. Concurrent changes, ambiguous VINs, missing dates or invalid signatures block confirmation. Repeated confirmation is idempotent; audit event MOBILE_CALIBRATION_CONFIRMED carries proposal correlation. An already identical deadline causes no second change.
Operations and acceptance¶
The dedicated HTTPS listener requires TLS 1.2 or later; untrusted forwarded headers cannot establish HTTPS authentication. Versioned contract at /api/mobile/v1; upload headers: X-File-Name (URL-form encoded), X-Content-SHA256, Idempotency-Key; original file body, 128 MiB limit.
test_mobile_integration.py covers SQLite/PostgreSQL parity, Pro/Enterprise/Basic composition, original-file import, permissions, recovery and calibration. Reports: artifacts/test-reports/2026-11-03T134428Z. Frozen-product installation, service-account/TLS/firewall setup, target-network DNS-SD and the complete mandated installed Enterprise UI acceptance must be performed separately before release. This is not an already distributed product version.