Call Screener is a minimalist call blocker app. It works on Android 10 and newer.
The app is published on Google Play.
https://play.google.com/store/apps/details?id=com.gmail.leewkb1307.callscreener
The app is also available on Amazon Appstore.
https://www.amazon.com/gp/product/B0BRFRXG3S
The source code, an Android Studio project, is uploaded to a GitHub repo.
The main screen features a drop-down menu to select an operation mode.
There are four operation modes to select.
Allow call --> Allow all incoming calls
Block unknown only --> Block calls that do not show phone number
Allow contacts only --> Allow calls which phone number is contained in the contacts
Block all --> Block all incoming calls
For modes 'Allow contact only' and 'Block all', the app prompts for the permission to read contacts.
Unless the app can access the contacts, Android CallScreeningService API does not block calls which are in the user's contacts.
When the read contacts permission is granted, the app prompts for being the default caller ID & spam app.
Android system consults the default app if an incoming call should be blocked.
When the app is granted the required permissions, it is all set!