That's the issue, the documentation isn't too clear on what hooks you can get some the main system. Like this https://developer.android.com/reference/android/telecom/CallRedirectionService
You are hooking into the main outbound phone call flow to make a decision if the call is allowed or not. I want to query a web API with the number dialled to see if it's a bad number. I could add all these bad numbers to the device, but that might be a lot of data.