Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block calls with failed verification #26

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

papjul
Copy link

@papjul papjul commented Feb 8, 2025

Fix #21

Requires Android >= 11 and advanced blocking mode.
Successfully show a blocked call notification when the call fails verification.

However, this won't show in the call logs, because as far as I can see, Android doesn't store this information in call logs.
If we want to show it, we would need to duplicate all calls in a local database table, and have some way to make received calls match with Android system logs. Not a trivial work.

At least the feature is working as intended, so I believe this can be a good first step.

if (callDetails.getCallerNumberVerificationStatus() ==
Connection.VERIFICATION_STATUS_NOT_VERIFIED
) {
LOG.trace("onScreenCall() not verified");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you live in France like me, mobile phone numbers always return NOT_VERIFIED.
So, to test the feature, you could add isFailedVerification = true; here and have someone call you (remember to remove it afterwards).

@papjul
Copy link
Author

papjul commented Mar 25, 2025

@Vinetos Hi, do you need help with the two PR pending?

If you don't have time to review them at the moment, would it be possible to merge develop in main and make a new release of what is already ready? So that we can at least have a new release targetting latest Android SDK and getting rid of GreenDAO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant