Voeg post-flash CRC/SHA verificatie toe aan USB flashing #18
Labels
No labels
bug
bug
critical
documentation
duplicate
enhancement
enhancement
feature
good first issue
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eddy/Project_SylDa#18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Probleem:
EspFlasher.ktschrijft firmware naar ESP32 via USB CDC maar verifieert niet dat de geschreven data correct is. OTA (BLE) heeft wél SHA-256 verificatie.Voorstel:
Voeg een verify-stap toe na het flashen:
Alternatief: documenteer waarom dit niet nodig is (stub betrouwbaar?)
Locatie:
EspFlasher.kt:117-128(writeFlash loop)Labels: enhancement, android, firmware
Prioriteit: medium
Opgelost.
De bibliotheek
esp32-flash-libvoert al impliciet MD5-verificatie uit na elkewriteFlash()— de 2-arg versie roept internwriteFlash(addr, data, true)aan, watverifyFlash(addr, data)uitvoert. Bij MD5-mismatch wordtProtocolFatalExceptiongegooid en faalt de flash.Er is een
Log.ilogregel toegevoegd zodat verificatie zichtbaar is in de logs. De OTA SHA-256 verificatie blijft ongemoeid — die dient een ander doel (BLE-transmissie-integriteit). Geen extra CRC/SHA verificatie nodig.