How abdo10dz/spdclient works
SPDClient is a command-line tool for interacting with Spreadtrum/Unisoc BootROM devices over serial. Its main workflow connects to a device, loads FDL bootloaders when needed, and performs raw-address or named-partition operations; it also supports backups, device information, partition listing, and PAC loader extraction. The implementation is concentrated in spd.py. Several capabilities are documented in the README but their implementation details were not included in the excerpt, so those edges rely on the README rather than sampled call sites.
Main entry points: spd.py Command Dispatcher
Components 18
Command Line
- Command Dispatcher
spd.py
Device Protocol
- Serial Connection
spd.py - BootROM Commands
spd.py - FDL Loading
spd.py - Device Information
spd.py - Multi-device Management
spd.py
Flash Operations
- Raw Flash I/O
spd.py - Partition Operations
spd.py - Partition Table Fallback
spd.py - Backup and Restore
spd.py
Utilities
- PAC Extraction
spd.py - Profiles and Config
spd.py - Operation Journal
spd.py - Checksums
spd.py - Logging
spd.py
Other components
- Operator
- BootROM Device
- PAC Firmware File
Connections 14
- Operator → Command Dispatcher: runs commands
README.md - Command Dispatcher → Serial Connection: connects via
README.md - Serial Connection → BootROM Device: communicates with
README.md - Command Dispatcher → BootROM Commands: dispatches commands
README.md - BootROM Commands → FDL Loading: loads loaders
README.md - BootROM Commands → Raw Flash I/O: reads and writes
README.md - Command Dispatcher → Partition Operations: runs partition commands
README.md - Partition Operations → Partition Table Fallback: falls back to
README.md - Command Dispatcher → Backup and Restore: runs backups
README.md - Command Dispatcher → Device Information: requests info
README.md - Command Dispatcher → PAC Extraction: runs extraction
README.md - PAC Firmware File → PAC Extraction: provides firmware
README.md - Multi-device Management → Serial Connection: scans ports
spd.py - Operation Journal → Raw Flash I/O: tracks chunks
spd.py