SafeDial
Not all rings are worth answering
The problem SafeDial solves
The Problem SafeDial Solves
India loses thousands of crores every year to SMS phishing, KYC fraud, OTP theft, and scam calls — and most victims never see it coming because the attack arrives as an ordinary-looking message or phone call.
Existing solutions fall short in two critical ways:
They only understand English — a scammer writing in Hindi, Tamil, or Bengali slips right through
They're reactive — they warn you after you've already read the message, or worse, after you've already clicked the link
SafeDial fixes this
For everyday users, SafeDial works silently in the background and instantly flags suspicious SMS messages and calls the moment they arrive — before you even open them. No manual action needed.
For users in regional India, SafeDial is the first fraud detector that understands scam messages written in Hindi, Hinglish, Tamil, Telugu, and Bengali — covering the languages that scammers actively exploit because no app was watching.
Against bot attacks, if a scammer or automated system floods your phone with multiple messages in rapid succession, SafeDial detects the burst pattern and auto-blocks the sender within 60 seconds — no other app does this at the device level.
For the community, SafeDial lets users report scam numbers directly to a shared Firebase database, building a crowdsourced blocklist of known Indian fraud numbers that protects everyone.
In short, SafeDial makes your phone:
- Safer against phishing, KYC fraud, OTP theft and fake government messages
-Smarter in 5 Indian languages, not just English
-Faster at blocking bot attacks before they overwhelm you
-More trustworthy — because you know who's really calling
Challenges we ran into
Challenges We Ran Into
MIUI Killed Everything — The Hardest Problem
The biggest challenge of the entire build was getting live SMS detection to work on a Redmi 9 Power running MIUI Android 12.
On stock Android, receiving an SMS broadcast is straightforward. On MIUI, it is not. No matter what we tried, the app simply would not receive incoming messages. The SMS_RECEIVED broadcast was being silently killed by MIUI's aggressive battery and background process management before it could reach the app.
We went through multiple failed approaches before landing on a solution:
Attempt 1 — Standard BroadcastReceiver with SMS_RECEIVED. MIUI blocked it silently. No error, no log, just nothing.
Attempt 2 — Added a ContentObserver on content://sms. Worked occasionally, but MIUI killed the background service within minutes.
Attempt 3 — Registered the app as the default SMS app, which forces Android to deliver SMS_DELIVER broadcasts exclusively to us. This finally worked — but required implementing all four mandatory components: SmsReceiver, SmsDeliverReceiver, MmsReceiver, HeadlessSmsSendService, and a SmsComposeActivity.
Final solution — Combined the default SMS app registration with a foreground SmsMonitorService (START_STICKY), a 60-second AlarmManager poller as a fallback, and a BootReceiver to restart everything after reboot. Three layers of redundancy just to reliably receive a text message.
Even after all that, MIUI required manual steps — Autostart had to be enabled and battery restrictions set to "No Restrictions" from the MIUI settings — because no API can do this programmatically on MIUI.
** Call Overlay Arriving Too Late**
The real-time call warning overlay was designed to appear the moment a suspicious call arrives. The first implementation routed the analysis through WorkManager — which introduced a 2–5 second delay. By the time the overlay appeared, the user had already seen the call screen with no warning.
The fix was to move fraud analysis directly into goAsync() inside the CallReceiver, cutting analysis time to under 100ms and making the overlay appear almost instantly.
MIUI's Double RINGING Broadcast
MIUI sends two PHONE_STATE RINGING broadcasts for every incoming call — the first with a null number, the second with the actual number. Our duplicate-call guard was checking state == lastState, which blocked the second broadcast entirely, meaning the overlay never showed because the number was always null.
The fix was changing the guard to caller == lastProcessedNumber instead, so the second broadcast with the real number always gets through.
Vernacular Keyword Matching at Scale
Building fraud keyword banks across 5 languages — Hindi (Devanagari), Tamil, Telugu, Bengali and Hinglish — without any external NLP library was a research and engineering challenge. Each language required understanding the cultural context of how scammers phrase their messages, not just direct translations of English fraud terms. For example, a UPI scam in Hindi uses completely different phrasing than its English equivalent, and a government impersonation scam in Tamil has its own set of trigger words.
Room Database Migration
Every major feature addition — India Spam Shield and Trusted Contacts — required a new Room database schema. Managing incremental migrations (v1 → v2 → v3) without wiping user data on upgrade required careful migration scripts and testing, especially since a failed migration crashes the app on launch.
Tracks Applied (1)
Special Track
Technologies used