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, incl. the container password)
├── truststore.p12 (this install's CA certificate only, no private key)
├── client.p12 (this install's client identity for mTLS)
└── manifest.xml (MissionPackageManifest v2)Content copied to clipboard
The certificates come from TakCertificateProvider.dataPackageCredentials and are unique to the exporting install, so the package only authenticates against the server that produced it.
Functions
Link copied to clipboard
fun generateDataPackage(credentials: TakDataPackageCredentials, serverHost: String = "127.0.0.1", port: Int = DEFAULT_TAK_PORT, description: String = "Meshtastic TAK Server"): ByteArray
Generate a complete TAK data package zip for credentials.