Skip to content

Repository files navigation

English | Русский

CallStopSpam

Android Java License

A lightweight Android app for old devices: it automatically rejects incoming calls from numbers that are not in the phone book, and can switch airplane mode on a schedule. Target platform: Android 4.1.2 (API 16) and newer.

Features

  • Anti-spam mode: incoming calls from unknown numbers are rejected automatically; the mode can be turned off in one tap
  • Airplane mode scheduler: turns airplane mode on and off by schedule
  • Works on very old Android versions where modern spam apps are not available

Two versions

Version How the contact lookup works Trade-off
fast Single-step lookup in the phone book Phone numbers must be stored in the format +7 123 456-78-90
slow Sequential comparison with every contact (11 digits required) Slower rejection, but any phone number format works

Both APKs are available in the apk-release folder of this repository:

Screenshot

Screenshot

Technologies

  • Java
  • Android SDK, minSdk 16 (no external libraries)
  • PhoneStateListener for incoming call detection
  • Scheduled airplane mode via AlarmManager and TIME_TICK receiver

Permissions used

  • READ_PHONE_STATE - detect incoming calls
  • READ_CONTACTS - check if the caller is in the phone book
  • CALL_PHONE - reject the call
  • MODIFY_PHONE_STATE - toggle airplane mode
  • SET_ALARM - schedule the airplane mode

Build

./gradlew assembleRelease

License

MIT

About

Android app (Java, API 16+): auto-rejects calls from unknown numbers, airplane mode scheduler. Two APK builds (fast/slow)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages