It seems I missed your thread. Or Probably I ignore it because it is posted in the wrong subforum.
The most effective call blocker can only be implemented by the maker of the phone. It should blocked the number and doesn't generate any call event to the phone (or automagic). Or even more effective, call your carrier and ask them to block these specific scam number. When a lot of people report the same, hopefully they will take action and block it.
Meanwhile, if you don't have that function at your phone, you can use Control Ui to solve your problem. My phone also doesn't react to the action End Call. But you can always use Control UI to press the end call button. So the trigger is Incoming Call - Ringing. It will supply you the caller number. Check the number, if it is in the list of your blocked number, then use Control UI to press the End Call button at your phone. Mine is
Code: Select all
clickById("com.android.dialer:id/floating_end_call_action_button");
Of course, modify to suit your phone. To store the block list, you can just simply use a newList(), and put it into the script. Most likely the list is not too, so just store it inside the same flow.
This will still give you a split second of distraction when the number call and immediately got rejected. Not the best solution, but at least you won't accidentally answer the call. Since human reaction is at most 100-300 ms fast, but Automagic can be as fast as 4 ms (at Control UI it is slower, probably 50 ms). The rejected call probably also generate missed call notification, you might want to remove it too.
As for adb, it is possible to use input keyevent 6 (END_CALL). But to do it without root, you have to use Control UI too, and change the keyboard to Automagic Keyboard using Set Default Input Method, which require root. So not possible to do it, and the method also takes longer (need to change keyboard - send event - change back the keyboard).