{"id":51446041,"url":"https://github.com/gitubpatrice/sos-tech","last_synced_at":"2026-07-05T16:00:55.154Z","repository":{"id":359618612,"uuid":"1246714731","full_name":"gitubpatrice/SOS-TECH","owner":"gitubpatrice","description":"Dedicated personal-safety Android app — Kotlin + Compose + SQLCipher. Zero cloud, zero telemetry. Companion to SMS Tech for extended emergency features.","archived":false,"fork":false,"pushed_at":"2026-05-22T19:09:28.000Z","size":446,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-22T20:50:31.458Z","etag":null,"topics":["android","emergency","f-droid","files-tech","floss","jetpack-compose","kotlin","privacy","safety","sms","sqlcipher"],"latest_commit_sha":null,"homepage":"https://files-tech.com","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitubpatrice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-22T13:29:31.000Z","updated_at":"2026-05-22T19:09:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gitubpatrice/SOS-TECH","commit_stats":null,"previous_names":["gitubpatrice/sos-tech"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/gitubpatrice/SOS-TECH","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitubpatrice%2FSOS-TECH","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitubpatrice%2FSOS-TECH/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitubpatrice%2FSOS-TECH/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitubpatrice%2FSOS-TECH/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitubpatrice","download_url":"https://codeload.github.com/gitubpatrice/SOS-TECH/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitubpatrice%2FSOS-TECH/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35160046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","emergency","f-droid","files-tech","floss","jetpack-compose","kotlin","privacy","safety","sms","sqlcipher"],"created_at":"2026-07-05T16:00:54.095Z","updated_at":"2026-07-05T16:00:55.084Z","avatar_url":"https://github.com/gitubpatrice.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SOS Tech \u0026nbsp; [`github.com/gitubpatrice/SOS-TECH`](https://github.com/gitubpatrice/SOS-TECH)\n\nA dedicated personal-safety app for Android — built with Kotlin, Jetpack Compose and\nMaterial 3. No cloud, no telemetry, no account. Apache-2.0 licensed. F-Droid friendly.\n\n\u003e **Status**: v0.2.0 — first usable emergency path (SMS trigger live; cascade / voice / siren / live GPS / recording / webhook are scaffolded contracts, full implementation in v0.3+).\n\nSOS Tech is the dedicated companion to [SMS Tech](https://github.com/gitubpatrice/SMS-TECH).\nSMS Tech keeps its emergency mode minimal (4 buttons + URGENCE SMS hold-3s) so 95 % of\nusers carry no useless weight. The extended emergency features (continuous voice keyword\ndetection, automatic call cascade, siren + flash strobe, live GPS sharing, ambient recording,\nwebhook diffusion) live here, opt-in per feature.\n\n## ✨ What's working today (v0.2.0)\n\n- **Emergency contacts CRUD** — stored locally in a SQLCipher-encrypted Room database\n  (AES-256-GCM passphrase wrapped by AndroidKeyStore alias `sostech_db_master`).\n- **Emergency SMS trigger** — dual-clock anti-spam cooldown (wall + monotonic), single-flight\n  guard, per-recipient dispatch, locale-aware body (FR/EN), optional GPS location.\n- **Direct emergency calls** — 112 / 15 (SAMU) / 17 (Police) / 18 (Fire) with strict whitelist,\n  three behaviour modes (DIALER_ONLY / HOLD_3S_DIRECT_CALL / TAP_DIRECT_CALL).\n- **Trusted-contact call** — separate code path, same cooldown, pocket-dial chain protection.\n- **First-launch welcome splash** (5 s, skippable, idempotent dismiss).\n- **Settings**: SMS template picker (NEED_HELP / DANGER / DISCREET), GPS-in-SMS opt-in,\n  per-feature ON/OFF toggles (features themselves are stubs until v0.3+).\n- **FR + EN UI** — full parity, vouvoiement on the French side.\n- **34 garde-régression tests** locking down conservative defaults and crypto invariants.\n\n## 🚧 What's scaffolded but not yet implemented (v0.3+)\n\n| Feature | Contract posed | Real impl |\n|---|---|---|\n| Voice keyword spotting (Vosk, no cloud) | ✓ | v0.3 |\n| Automatic call cascade | ✓ | v0.3 |\n| Siren + rear-flash strobe | ✓ | v0.3 |\n| Live GPS sharing | ✓ | v0.3 |\n| Ambient recording (with FR legal disclaimer) | ✓ | v0.3 |\n| Webhook diffusion (HTTP POST) | ✓ | v0.3 |\n| App-lock PIN + biometric + panic-decoy | ✓ | v0.3 |\n\n## 📦 Build\n\n```bash\n./gradlew assembleDebug         # → app/build/outputs/apk/debug/*.apk\n./gradlew assembleRelease       # → app/build/outputs/apk/release/*-unsigned.apk\n./gradlew testReleaseUnitTest   # → 34 tests, all green\n./gradlew lintVitalRelease      # → clean\n```\n\nRequires JDK 17. Min SDK 26 (Android 8.0). Compile / Target SDK 35.\n\n## 🏗️ Architecture\n\n```\ncore/      Outcome\u003cT\u003e, AppError, crypto (AES-GCM + Keystore + wipe), Timber wrapper\ndata/      Room (entities, DAOs), DataStore (settings), SmsDispatcher, LocationResolver, repositories\ndomain/    Immutable models, repository interfaces, EmergencyTemplate, PanicGuard, UseCases\ndi/        Hilt modules + qualifiers (@IoDispatcher, @ApplicationScope)\nsecurity/  EmergencyCallHelper (whitelist + single-flight + dual-clock cooldown)\nsystem/    Foreground services (Voice, Cascade), WorkManager, BootReceiver\nui/        Theme (M3, BrandBlue + BrandDanger + BrandEmergency), Navigation, Compose screens, ViewModels\n```\n\nThe emergency SMS path end-to-end:\n```\nEmergencyScreen URGENCE button\n    → EmergencyViewModel.triggerEmergencySms() — single-flight AtomicBoolean\n    → TriggerEmergencyUseCase()\n        → PanicGuard.isPanicActive()            // silent suppress if duress\n        → settings.emergency.{lastTriggeredAt, monotonicLastTriggeredAt}  // dual-clock cooldown\n        → EmergencyContactRepository.getAll()\n        → LocationResolver.getCurrentLocation() // F-Droid clean, no Google Play Services\n        → EmergencyMessageRenderer.render()     // locale-aware body\n        → SendSmsUseCase(recipients, body)\n            → SmsDispatcher.dispatch() per recipient\n                → SmsManager.divideMessage + send{Multipart}TextMessage\n        → settings.update { stamp cooldown }\n    → Channel\u003cEmergencyEvent\u003e → snackbar\n```\n\n## 🔐 Privacy \u0026amp; Security\n\nWe collect **nothing**. No analytics, no crash reporting, no remote logging.\nThe only network call SOS Tech can make is the webhook diffusion to **your own configured URL**\n(opt-in, default off, minimal `{trigger, ts, lat?, lng?}` payload — no contact names, no SMS body).\n\nLocal data is protected by SQLCipher with a Keystore-wrapped passphrase. Phone numbers are\n**always redacted in logs** (prefix + suffix only). Locations are never persisted; they are\nresolved on demand and dropped after the SMS is sent.\n\nRecording feature carries a mandatory French legal disclaimer (art. 226-15 Code pénal —\nconsent of all parties required) shown before activation can be persisted.\n\nSee [SECURITY.md](SECURITY.md) for the full threat model.\n\n## 🔗 Files Tech portfolio\n\n| App | Role | Repo |\n|---|---|---|\n| **SMS Tech** | Default SMS/MMS — minimal emergency | [`gitubpatrice/SMS-TECH`](https://github.com/gitubpatrice/SMS-TECH) |\n| **SOS Tech** | Dedicated personal safety — extended emergency (this repo) | — |\n| **Pass Tech** | Encrypted password vault | [`gitubpatrice/PASS-TECH`](https://github.com/gitubpatrice/PASS-TECH) |\n| **Notes Tech** | Encrypted notes | [`gitubpatrice/NOTES-TECH`](https://github.com/gitubpatrice/NOTES-TECH) |\n| **AI Tech** | Local Gemma chat | [`gitubpatrice/AI-TECH`](https://github.com/gitubpatrice/AI-TECH) |\n| **PDF Tech** | 23 PDF tools | [`gitubpatrice/PDF-TECH`](https://github.com/gitubpatrice/PDF-TECH) |\n| **Read Files Tech** | OCR | [`gitubpatrice/READ-FILES-TECH`](https://github.com/gitubpatrice/READ-FILES-TECH) |\n| **Health Tech** | Calendar / SQLCipher | [`gitubpatrice/health_tech`](https://github.com/gitubpatrice/health_tech) |\n\nPortfolio site: [files-tech.com](https://files-tech.com).\n\n## 📃 License\n\nApache License 2.0 — see [LICENSE](LICENSE).\n© 2026 Patrice Haltaya.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitubpatrice%2Fsos-tech","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitubpatrice%2Fsos-tech","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitubpatrice%2Fsos-tech/lists"}