LockdownCoordinator

Coordinates lockdown passphrase authentication for firmware-locked devices.

Implementations handle the full authentication lifecycle: auto-unlock with a stored passphrase, manual passphrase submission, lock-now, and session lifecycle hooks.

Functions

Link copied to clipboard
abstract fun handleLockdownStatus(status: LockdownStatus)

Routes an incoming typed LockdownStatus from FromRadio.

Link copied to clipboard
abstract fun lockNow(): Boolean
Link copied to clipboard
abstract fun onConfigComplete()

Lifecycle hook called on every config_complete_id from the device.

Link copied to clipboard
abstract fun onConnect()

Called when a BLE connection is established, before the first config request.

Link copied to clipboard
abstract fun onDisconnect()

Called when a BLE connection is lost.

Link copied to clipboard
abstract fun submitPassphrase(passphrase: String, boots: Int, hours: Int, maxSessionSeconds: Int = 0, disable: Boolean = false): Boolean

Submits a passphrase to authenticate with the locked device.