English | Русский
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.
- 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
| 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:
- Java
- Android SDK, minSdk 16 (no external libraries)
- PhoneStateListener for incoming call detection
- Scheduled airplane mode via AlarmManager and TIME_TICK receiver
- 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
./gradlew assembleRelease