# d4c1-labs/flipper-arf architecture

> Architecture diagram of the GitHub repository d4c1-labs/flipper-arf, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/d4c1-labs/flipper-arf
- Repository: https://github.com/d4c1-labs/flipper-arf

## Overview

Flipper-ARF is a Flipper Zero firmware fork focused on automotive and access-control radio research. The documented user workflow is to select or scan a Sub-GHz signal, decode it with supported protocol implementations, inspect or manage rolling-code/key data, then configure and transmit an emulation. The tree includes related Sub-GHz tools and storage, but most protocol and UI implementations were not sampled; dashed links mark those unverified relationships. The README documents capabilities, not their exact runtime wiring.

Main entry points: [`applications/main/subghz`](https://github.com/d4c1-labs/flipper-arf/tree/main/applications/main/subghz) (Sub-GHz tools), [`applications/system/RollJam/helpers/rolljam_storage.c`](https://github.com/d4c1-labs/flipper-arf/blob/main/applications/system/RollJam/helpers/rolljam_storage.c) (Rolling-code storage), [`applications/main/subghz/helpers/subghz_frequency_analyzer_worker.c`](https://github.com/d4c1-labs/flipper-arf/blob/main/applications/main/subghz/helpers/subghz_frequency_analyzer_worker.c) (Frequency analyzer), [`applications/main/infrared`](https://github.com/d4c1-labs/flipper-arf/tree/main/applications/main/infrared) (Custom emulation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Research tools"]
  node_subghz_app["Sub-GHz tools"]
  node_scanner["Frequency analyzer"]
  node_custom_emulation["Custom emulation"]
  node_rolljam["RollJam research"]
end

subgraph group_radio["Radio protocols"]
  node_protocols["Automotive protocols"]
  node_subghz_workers["Radio workers"]
  node_protocol_encoder["Protocol encoding"]
end

subgraph group_state["Keys and state"]
  node_key_manager["Key management"]
  node_rolljam_storage["Rolling-code storage<br/>[rolljam_storage.c]"]
  node_storage_api["Storage API"]
  node_sd_store[("SD storage<br/>[storage_ext.c]")]
end

node_researcher(("Researcher"))

node_researcher -.->|"selects tool"| node_subghz_app
node_subghz_app -.->|"scans bands"| node_scanner
node_subghz_app -.->|"selects protocol"| node_protocols
node_scanner -.->|"uses radio"| node_subghz_workers
node_protocols -.->|"decodes signals"| node_subghz_workers
node_protocols -.->|"encodes signals"| node_protocol_encoder
node_researcher -.->|"manages keys"| node_key_manager
node_key_manager -.->|"stores state"| node_rolljam_storage
node_rolljam -.->|"persists data"| node_rolljam_storage
node_researcher -.->|"configures emulation"| node_custom_emulation
node_custom_emulation -.->|"encodes signal"| node_protocol_encoder
node_rolljam_storage -.->|"uses storage"| node_storage_api
node_storage_api -->|"accesses SD"| node_sd_store

click node_subghz_app "https://github.com/d4c1-labs/flipper-arf/tree/main/applications/main/subghz"
click node_scanner "https://github.com/d4c1-labs/flipper-arf/blob/main/applications/main/subghz/helpers/subghz_frequency_analyzer_worker.c"
click node_custom_emulation "https://github.com/d4c1-labs/flipper-arf/tree/main/applications/main/infrared"
click node_rolljam "https://github.com/d4c1-labs/flipper-arf/tree/main/applications/system/RollJam"
click node_protocols "https://github.com/d4c1-labs/flipper-arf/tree/main/applications/main/subghz"
click node_subghz_workers "https://github.com/d4c1-labs/flipper-arf/blob/main/lib/subghz/subghz_tx_rx_worker.c"
click node_protocol_encoder "https://github.com/d4c1-labs/flipper-arf/blob/main/applications/system/Weather-Editor-EN/weather_editor_engine.c"
click node_key_manager "https://github.com/d4c1-labs/flipper-arf/tree/main/applications/main/subghz"
click node_rolljam_storage "https://github.com/d4c1-labs/flipper-arf/blob/main/applications/system/RollJam/helpers/rolljam_storage.c"
click node_storage_api "https://github.com/d4c1-labs/flipper-arf/blob/main/applications/services/storage/storage_external_api.c"
click node_sd_store "https://github.com/d4c1-labs/flipper-arf/blob/main/applications/services/storage/storages/storage_ext.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_subghz_app,node_scanner,node_custom_emulation,node_rolljam toneBlue
class node_protocols,node_subghz_workers,node_protocol_encoder toneAmber
class node_key_manager,node_rolljam_storage,node_storage_api,node_sd_store toneMint
class node_researcher toneIndigo
```

## Components

### Research tools

- [Sub-GHz tools](https://github.com/d4c1-labs/flipper-arf/tree/main/applications/main/subghz): `applications/main/subghz`
- [Frequency analyzer](https://github.com/d4c1-labs/flipper-arf/blob/main/applications/main/subghz/helpers/subghz_frequency_analyzer_worker.c): `applications/main/subghz/helpers/subghz_frequency_analyzer_worker.c`
- [Custom emulation](https://github.com/d4c1-labs/flipper-arf/tree/main/applications/main/infrared): `applications/main/infrared`
- [RollJam research](https://github.com/d4c1-labs/flipper-arf/tree/main/applications/system/RollJam): `applications/system/RollJam`

### Radio protocols

- [Automotive protocols](https://github.com/d4c1-labs/flipper-arf/tree/main/applications/main/subghz): `applications/main/subghz`
- [Radio workers](https://github.com/d4c1-labs/flipper-arf/blob/main/lib/subghz/subghz_tx_rx_worker.c): `lib/subghz/subghz_tx_rx_worker.c`
- [Protocol encoding](https://github.com/d4c1-labs/flipper-arf/blob/main/applications/system/Weather-Editor-EN/weather_editor_engine.c): `applications/system/Weather-Editor-EN/weather_editor_engine.c`

### Keys and state

- [Key management](https://github.com/d4c1-labs/flipper-arf/tree/main/applications/main/subghz): `applications/main/subghz`
- [Rolling-code storage](https://github.com/d4c1-labs/flipper-arf/blob/main/applications/system/RollJam/helpers/rolljam_storage.c): `applications/system/RollJam/helpers/rolljam_storage.c`
- [Storage API](https://github.com/d4c1-labs/flipper-arf/blob/main/applications/services/storage/storage_external_api.c): `applications/services/storage/storage_external_api.c`
- [SD storage](https://github.com/d4c1-labs/flipper-arf/blob/main/applications/services/storage/storages/storage_ext.c): `applications/services/storage/storages/storage_ext.c`

### Other components

- **Researcher**

## Connections

- Researcher → Sub-GHz tools: selects tool
- Sub-GHz tools → Frequency analyzer: scans bands
- Sub-GHz tools → Automotive protocols: selects protocol
- Frequency analyzer → Radio workers: uses radio
- Automotive protocols → Radio workers: decodes signals
- Automotive protocols → Protocol encoding: encodes signals
- Researcher → Key management: manages keys
- Key management → Rolling-code storage: stores state
- RollJam research → Rolling-code storage: persists data
- Researcher → Custom emulation: configures emulation
- Custom emulation → Protocol encoding: encodes signal
- Rolling-code storage → Storage API: uses storage
- Storage API → SD storage: accesses SD (evidence: `applications/services/storage/storage_external_api.c`)
