$ show salokrwhite/OplusEdlTool
OplusEdlTool is a cross-platform desktop application (Avalonia UI / .NET) for flashing, backing up, and managing Oplus (Oppo/OnePlus) Android devices in Qualcomm EDL (Emergency Download) mode. The tool provides a graphical interface for reading partition tables, backing up individual partitions, merging super partition images from JSON definitions (super_def.json), applying firmware patch files, and verifying file integrity via SHA checksums. It integrates with Qualcomm's fh_loader.exe for low-level device communication and supports Oplus-specific ROM formats (.ofp, .ops). The application stores working data in LocalApplicationData, generates XML partition reports, and includes comprehensive logging. It is bilingual (English/Chinese) and explicitly warns users about dangerous operations like flashing the persist partition.
The LLM identified 3 files worth highlighting for reuse:
Parses super_def.json partition definitions, reads raw partition images, and merges them into a unified super.img. Handles edge cases (no partitions to merge, missing raw files), cleans up temporary files, and reports progress via event callbacks. This is a self-contained binary data transformation pattern that could be adapted for other firmware image assembly or partition merging tasks.
Uses System.Security.Cryptography to verify file integrity against a checksum manifest (all_files_checksum.txt). Demonstrates a reusable pattern for validating firmware distributions or any file bundle where integrity verification is required before processing.
Encapsulates the EDL (Emergency Download) protocol communication with Qualcomm devices. Provides a service-layer abstraction that isolates low-level device interaction from UI logic, making the protocol handling potentially reusable for other EDL-based tools.