Menu

Post image 1
Post image 2
1 / 2
0

Building an On-Device AI Scam Detector for Android — Gemma 4 + LiteRT

DEV Community·Rohit Raj·29 days ago
#1yfn0ylp
#android#ai#kotlin#mobile#rohitraj#tech
Reading 0:00
15s threshold

Rohit Raj

Originally published on rohitraj.tech

UPI fraud hit ₹805 cr in India last year. Cloud APIs leak data. So I built ScamRakshak — fully on-device scam detection.

3-tier inference engine:

  1. Gemma 4 LLM — context-aware classification
  2. LiteRT — fast pattern model
  3. Regex fallback — when battery low

Full architecture write-up: https://rohitraj.tech/en/notes/build-on-device-ai-scam-detector-android-gemma


Read the full version with code samples and diagrams: https://rohitraj.tech/en/notes/build-on-device-ai-scam-detector-android-gemma

Read More