About this app
About Vigil
Vigil On-device SMS threat detection for Android. Vigil watches incoming text messages for scams, phishing, and harassment, and surfaces a real-time alert chip over your messaging app — all processing stays on the device. The app has no internet permission: nothing it reads can leave your phone. Install on your phone Grab the signed APK from Releases, open it on your phone, and allow "Install unknown apps" when prompted (no Play Store listing yet). Requires Android 8.0 (API 26) or higher. Building from source Requirements** Android Studio (latest stable) JDK 11+ Android SDK 36 (min SDK 26 / Android 8.0) Run it** Open the project in Android Studio, let Gradle sync, and run the app configuration on an emulator or device. Or from the command line: Testing** Run the app on an emulator, complete onboarding, then in the emulator toolbar click the three-dots icon (Extended Controls) → **Phone** → **SMS** and send yourself a message. Vigil will classify it and, if flagged, float an alert chip over the screen. How detection works 1. SmsReceiver catches incoming SMS broadcasts (RECEIVE_SMS). 2. OnnxMessageClassifier runs the message through a quantized DistilBERT model (app/src/main/assets/model_quantized.onnx, int8, ~67MB) with three labels: **SAFE / SCAM / HARASSMENT**. Tokenization is a from-scratch WordPiece implementation (WordPieceTokenizer.kt). Classification failures are caught…