On my other android phones, I've collated spam calls that have called me and added them to a contact in my phone book called "spam". To prevent further calls, I can mark the contact as blocked which then prevents repeated calls.

In graphene, there is the ability to add numbers to be blocked but not the ability to block a contact, could I request this as a feature / ask the community for a work around.

Cheerd

Thanks so much

ACuriousFellow

  1. Open the dialer
  2. Go to "call list"
  3. Long press on contact or number
  4. Block

I dont get your problem, but you may have tried from the contacts app which doesnt support this

    missing-root thanks so much for your steps.

    So I found that because I'm in a secondary account I can't block a number.

    Once I'd swapped to the owner profile, I choose a number in the call log that was associated with my "spam" contact, however only the number that called was blocked, not the whole contact which is what I want to do.

    Are you able to block a contact with multiple numbers and all of them be blocked?

      ACuriousFellow are u aware what you are asking for? You basically are requesting a call monitoring service is added like Google has. When u block numbers with their dialer app, it records huge swaths of data for learning why u block the number. So recent conversations with the blockee, frequency of conversationsz topics etc in order to "improve services " for the future.

      They also use lists collected this way to block spammers and scammers. In some countries like china and india people's contacts lists are added to databbases which make the services like Call Screening and help prevent spammers/scammer calling numbers from getting through in the first place.

      That is what is involved in your phones apps knowing multiple phone numbers for the same people and it auto blocking each of them automatically

        nullable thanks for taking an interest in my request, I think I need to expand further on what I wanted to request.

        What my request boils down to is a convenience.

        When you block a single number from the dialer, this calls blocknumber() on FilteredNumberAsyncQueryHandler . This method adds the requested number to the mySql database which is check when a call is received.

        What I'm suggesting / requesting is a new property on BaseAccountType.java ( I think this is the right class) of something along the lines of isBlockedContact.

        Then on save of a contact, if the value is true, blockNumber() is called with in a loop with every number attached to the contact to update the internal db (if needed). Conversely, on unblock, the db is checked to confirm the number is not blocked. To make this effecient, isBlockedNumber should be called to stop unneeded inserts.

        This would allow for a "contact" to be blocked and the db maintained correctly each time a contact is updated.

        I call this a convenience because I could go through each number and manually insert but that too is time consuming, an alternative could be an import function that takes a vcf or CSV of numbers .

        In regards to development of the dialler and contacts, the github readme states its only added for reference so are modifications to the platform_packages_apps_Dialler accepted, or does graphene keep this repo in sync with aosp?

          ACuriousFellow

          I think I was looking in wrong repo, this seeks to be the screen for inputting blocked numbers.

          https://github.com/GrapheneOS/platform_packages_services_Telecomm/blob/15/src/com/android/server/telecom/settings/BlockedNumbersActivity.java

          On this page, adding an import from CSV would be good and a clear all.

          That way you could update from a third party list or maintain your own. With out having to expose when and whom was calling you.