Project_SylDa/android
Repository files (latest commit first)
Filename Latest commit message Latest commit date
eddy 9a84b05b8a Replace compile-time HMAC key with USB provisioning
ESP firmware:
- Store HMAC key in NVS via Preferences library instead of compile-time
  hmac_key.h
- KEY? responds with HMAC_KEY:<hex> (if provisioned) or NO_KEY
- New SET_KEY:<64-hex> command stores key in NVS and responds OK
- Boot messages updated to reflect provisioning state

Android app:
- UsbKeyReceiver detects NO_KEY response and auto-provisions:
  generates random 32-byte key via SecureRandom, sends SET_KEY,
  waits for OK, saves key to SharedPreferences
- Read loop now breaks on both HMAC_KEY: and NO_KEY responses

Cleanup:
- Removed tools/generate_hmac_key.py and src/hmac_key.h
- Removed hmac_key.h from .gitignore
- README updated for new provisioning flow
2026-07-26 09:30:21 +02:00
..
app Replace compile-time HMAC key with USB provisioning 2026-07-26 09:30:21 +02:00
gradle/wrapper Initial commit: BLE relay controller for Atom VoiceS3R 2026-07-26 01:17:31 +02:00
build.gradle Initial commit: BLE relay controller for Atom VoiceS3R 2026-07-26 01:17:31 +02:00
gradle.properties Initial commit: BLE relay controller for Atom VoiceS3R 2026-07-26 01:17:31 +02:00
gradlew Initial commit: BLE relay controller for Atom VoiceS3R 2026-07-26 01:17:31 +02:00
settings.gradle Rewrite USB key reader: raw USB API + retry logic 2026-07-26 09:02:41 +02:00