# Dhvani

- **Event:** [Google DeepMind Bangalore Hackathon](https://cerebralvalley.ai/e/google-deepmind-bangalore-hackathon)
- **When:** Sat, Jul 11 at 9:00 AM – 10:00 PM (GMT+5:30)
- **Where:** Marathahalli, Marathahalli Main Road
- **Team:** [Sourashis Sarkar](https://cerebralvalley.ai/u/sarkar_arthur), [Neel Dholiya](https://cerebralvalley.ai/u/neeldholiya04), [Suraj Kumar](https://cerebralvalley.ai/u/a_bit_off)
- **GitHub:** https://github.com/its-wasp/dhvani
- **Demo video:** https://drive.google.com/drive/folders/1BZxkUGDjv_LVtCzAUEjGrFk9_buqfC6z?usp=sharing
- **Gallery:** https://cerebralvalley.ai/e/google-deepmind-bangalore-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/google-deepmind-bangalore-hackathon/hackathon/gallery/78

Project Description
Dhvani is an intelligent, on-device Android application designed to protect vulnerable users from real-time phone and UPI (Unified Payments Interface) scams. Operating on a Sense → Decide → Act → Check architectural framework, the app silently monitors active phone calls and incoming SMS messages, leveraging a hybrid local/cloud AI approach to intercept fraudulent activity before a user can be tricked into transferring funds.

The Problem It Solves
Social engineering and telephonic financial fraud (impersonation scams, fake lottery wins, panic-induced transfers) are skyrocketing. Existing spam-blocking tools only flag known numbers before a call, leaving users entirely unprotected once a conversation begins. Dhvani bridges this gap by providing active, real-time intervention during the call itself—safeguarding users who are actively being manipulated.

How It Works
Sense: A background service (CallMonitoringCoordinator and AudioCaptureManager) securely captures real-time call audio alongside incoming SMS messages (detecting OTPs or fraudulent payment requests).

Decide: The application runs a continuous evaluation loop. It streams live transcripts to the cloud via Gemini Live for heavy-duty threat scoring while simultaneously running an offline, on-device threat assessment using Gemma (via Google AI Edge LiteRT-LM) to ensure resilience and low latency.

Act: If the fused risk score crosses a critical threshold, the app takes immediate control via an Android Accessibility Service. It instantly locks down all UPI payment applications, drops a full-screen threat overlay warning to break the scammer's psychological hold, and triggers haptic alerts.

Check: The loop validates that the application lock is successfully maintained. If it detects an bypass attempt, it automatically dispatches an emergency SMS alert to a trusted contact or next of kin.

Built natively in Kotlin using Jetpack Compose, LiteRT, and robust Android system-level APIs, Dhvani acts as a bulletproof digital guardian for real-time mobile transaction security.

---

Markdown version of https://cerebralvalley.ai/e/google-deepmind-bangalore-hackathon/hackathon/gallery/78. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
