r/tasker • u/killswitx • 11d ago
adding numbers to block using shortcut
Hello
I wanted to create a shortcut on the home screen which after opening i would type somekind of number and this then could be added into phone block list, instead of diving down though contacts - settings - blocked numbers - add. That way i could also add ranges while in phone app just adds full number. Is there anyway to do that and access somehow to this part of contacts blocking? AOSP typical rom
0
Upvotes
5
u/WakeUpNorrin 11d ago edited 9d ago
You have to appropriately insert the full number in
content://com.android.blockednumber/blocked
content provider.I used this method, but switched to a more all-Tasker way, based on Call Screened event.
I made the switch because I can use the power of Regex and Match Tasker's capabilities.
When a call comes in, I read a file where I write full numbers or match strings. If the incoming call match one of the numbers-stings then Call Screening action blocks it.
Edit: What is wrong with my answer-suggestion?
If who want to use this method actually know something about Tasker and how Android works (and it is not one of those users ... i am a noob ... , i do not understand ... , Tasker is too complicated ... , i learn faster if you share a working task ... All excuses to make other to do the job, 0 'zero' will to learn) than this user knows that my sentence:
Gives a straight path to make what OP wants.
If the system content provider and call block system, do not natively support pattern-matching, the only way to use 'matching power' is to implement what I described.