Code Monkey home page Code Monkey logo

snag-android's Introduction

What?

Snag is a spam filter for Android. The idea is to intelligently detect and block spam by matching content against trained data. You can read more about it here: https://kehers.github.com/2014/09/07/building-an-sms-spam-filter.html

Status

Unfortunately, I have to stop further development. The way Snag should work is

  1. Intercept incoming SMS
  2. Match against trained data
  3. If spam, save in a separate db and block from reaching the phone message inbox (or any other message app)

1 and 2 work already. However, from Android 4.4 (Kitkat), you can no longer block SMS from other messaging apps. More details about this here. Well unless you develop a full featured SMS application. In other words, while Snag will work for Android versions < 4.4, it won't for >= 4.4 as not being able to stop messages from the message inbox defeats the purpose.

What good is it then?

If you are interested in developing it for < 4.4, this source is a good headstart for you. I have done the heavy work already. The only things left to do are:

  1. Create single message view. (The list view for all messages done already)
  2. Allow users add a message to the training data (using the + icon)
  3. Let users delete and "un-spam" a message
  4. Add boring static content - about, feedback, rate

Another thing you can use this for is to create an app that listens to incoming messages to perform an action - OTP verification for example. Just strip away the spam classification part and use the SMSListener part.

DB Schema

You will find the database in /assets/snag.db. It includes sample training data.

Credits

Icon credits from Noun Project

License

MIT

snag-android's People

Contributors

kehers avatar

Stargazers

ASHIN P CHANDRAN avatar 'Damilare Darmie Akinlaja avatar Onyekachi Mbaike avatar Esther Olatunde avatar

Watchers

 avatar James Cloos avatar Esther Olatunde avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.