SheShield – Safety Beyond Connectivity

Inspiration

Women's safety applications often depend on stable internet connectivity, centralized services, and manual SOS activation. But emergencies do not always happen under ideal conditions. A person might be in an area with poor network coverage, unable to unlock their phone, or unable to communicate their location continuously.

I wanted to build something that goes beyond simply sending an emergency alert. My vision was to create a safety system that helps users prepare before an incident, respond during an emergency, and preserve important evidence afterward.

This idea led me to SheShield – Safety Beyond Connectivity.

What it does

SheShield is a three-stage women's safety application built around Before, During, and After an incident.

1. Before – Proactive Safety and Planning

  • Safe Route Planner that evaluates alternative routes using safety scores from 0 to 100.
  • Considers street lighting and visibility, commercial activity, proximity to police stations, and community warnings.
  • Allows users to configure trusted contacts and emergency permissions in advance.

2. During – Intelligent Emergency Response

  • Multiple SOS activation methods: triple-shake detection, home-screen widget, Quick Settings Tile, and in-app SOS button.
  • A 10-second cancellation window to prevent accidental activation.
  • Emergency SMS alerts with GPS location and subsequent location updates.
  • Automatic audio recording during an SOS incident.
  • Offline Peer-to-Peer communication using Bluetooth-based Android Nearby Connections.
  • Multi-hop relay that allows nearby devices to forward emergency messages beyond direct communication range.
  • Write-Ahead Log (WAL) for queuing messages and Hybrid Logical Clocks (HLC) with duplicate suppression for reliable message handling.

3. After – Evidence Preservation and Legal Action

  • PIN-protected Evidence Vault for storing incident recordings and supporting evidence.
  • AES-256-GCM encryption using Android Keystore.
  • SHA-256 fingerprints to help verify evidence integrity.
  • Automated Legal Complaint Builder that generates editable police complaint letters with incident details, location links, and evidence fingerprints.
  • PDF export for easier sharing and reporting.

How I built it

I developed SheShield as a native Android application using Kotlin, Jetpack Compose, and Material 3.

My major technologies include:

  • Frontend: Kotlin, Jetpack Compose, Material 3, Navigation Compose.
  • Cloud and synchronization: Supabase, PostgreSQL, and WorkManager.
  • Offline communication: Android Nearby Connections, Bluetooth P2P, Write-Ahead Log, and Hybrid Logical Clocks.
  • Security: Android Keystore, AES-256-GCM encryption, SHA-256 hashing, and salted PIN hashing.
  • Maps and routing: OSMDroid, OpenStreetMap, OSRM Routing API, and Overpass API.
  • Emergency functionality: Android Foreground Services, Accelerometer, MediaRecorder, and SmsManager.

I developed the application in phases, starting with the SOS core and sensor-based activation, followed by emergency alert dispatching, Bluetooth communication, offline message handling, and finally the evidence vault, route planner, and complaint generation.

Challenges I ran into

Building a safety application that works under unreliable connectivity and Android background restrictions came with several challenges.

  • Duplicate message relay: Multiple nearby devices could forward the same SOS, resulting in repeated alerts. I addressed this using message hashing and deduplication.
  • Device clock mismatches: Offline devices may have unsynchronized clocks, making message ordering difficult. I implemented Hybrid Logical Clocks to maintain reliable message ordering.
  • Android foreground-service restrictions: Newer Android versions introduced stricter background execution requirements. I addressed this through appropriate foreground-service types, immediate notifications, and a location-only SMS fallback.
  • Offline message reliability: I implemented a Write-Ahead Log to retain pending messages for processing and synchronization.

These challenges helped me think beyond making individual features work and focus on how the complete safety system behaves during an emergency.

Accomplishments that I'm proud of

I am proud of bringing multiple safety mechanisms together into one application rather than building just another SOS button.

My key accomplishments include:

  • Multiple accessible SOS activation methods, including shake detection.
  • Offline device-to-device communication and multi-hop relay architecture.
  • A safety-score-based route planning system.
  • Secure incident recording and encrypted evidence storage.
  • Automated police complaint generation.
  • Message reliability mechanisms using WAL, HLC, and duplicate suppression.

Most importantly, I built SheShield around the idea that safety assistance should not stop simply because internet connectivity is unavailable.

What I learned

Through this project, I gained practical experience in native Android development, Bluetooth-based communication, background services, location services, encryption, and cloud synchronization.

I also learned that building an emergency application requires more than implementing features. Reliability, privacy, accessibility, battery usage, and handling unexpected failures are equally important.

Working on offline communication especially helped me understand message delivery, device discovery, duplicate handling, and synchronization in distributed systems.

What's next for SheShield – Safety Beyond Connectivity

I want to continue improving SheShield and make it more accessible and reliable.

My planned enhancements include:

  • Hindi and Punjabi language support.
  • Journey timers and automatic safety check-ins.
  • Stalkerware auditing to help users identify potential device-monitoring risks.
  • Further testing and improvements to offline multi-hop communication.
  • Improving evidence management and emergency response workflows.

My long-term vision is to make SheShield a dependable safety companion that supports users before, during, and after emergencies.

SheShield – Prepared. Alerted. Protected. Safety should never depend on connectivity.

Built With

  • aes-256-gcm
  • android
  • android-keystore
  • android-nearby-connections
  • android-sensors
  • bluetooth
  • gps
  • hybrid-logical-clocks
  • jetpack-compose
  • kotlin
  • material-design-3
  • openstreetmap
  • osmdroid
  • osrm
  • overpass-api
  • peer-to-peer-communication
  • postgresql
  • sha-256
  • supabase
  • workmanager
  • write-ahead-logging
Share this project:

Updates

Submission history