TAKDataPackageGenerator

Generates TAK data packages (.zip) compatible with ATAK/iTAK/WinTAK import.

The data package follows the MissionPackageManifest v2 format:

Meshtastic_TAK_Server.zip
├── meshtastic-server.pref (ATAK connection preferences)
├── truststore.p12 (server cert — matches iOS "truststore.p12")
├── client.p12 (client identity for mTLS)
└── manifest.xml (MissionPackageManifest v2)

The bundled certificates / password match Meshtastic-Apple so a single exported package works on both ATAK (Android) and iTAK (iOS) without reconfiguration.

Override bundledCertBytesProvider in tests to avoid touching the real classpath resources. In production the default reads from TakCertLoader.

Properties

Link copied to clipboard

Platform-specific hook for reading the bundled TLS certificate bytes. Default implementation lives in jvmAndroidMain and reads them from classpath resources via TakCertLoader.

Functions

Link copied to clipboard
fun generateDataPackage(serverHost: String = "127.0.0.1", port: Int = DEFAULT_TAK_PORT, useTls: Boolean = true, description: String = "Meshtastic TAK Server"): ByteArray

Generate a complete TAK data package zip.