CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
BackupMenuUi.cpp File Reference

Expert-menu Backup UI: Export / Import / Delete flows. More...

#include "AppUiInternal.h"
#include "cdc_os_ui/BackupManager.h"
#include "cdc_views/PasswordT9View.h"
#include "serial_cmd/ICommandRegistry.h"
#include "serial_cmd/SubCommand.h"
#include "serial_cmd/Console.h"
#include <mbedtls/platform_util.h>
#include <cstdio>
#include <cstring>

Go to the source code of this file.

Classes

class  cdc::ui::Console

Namespaces

namespace  cdc
namespace  cdc::ui
 Centralized key-code constants for cdc_views.

Functions

void cdc::ui::showBackupMenu ()
 Shows the Backup submenu (Export / Import / Delete).
void cdc::ui::registerBackupSerialCommand ()
 Registers the AUTH-gated BACKUP serial command.

Detailed Description

Expert-menu Backup UI: Export / Import / Delete flows.

Export collects a passphrase via T9 twice (with a match check), encrypts a semantic backup to the vFAT partition and toasts the result. Import reads the single on-device file (or toasts when absent), decrypts best-effort and shows a per-section summary. Delete confirms, then removes the file.

Definition in file BackupMenuUi.cpp.