@marcosnaka : Hi,
I have a workmate whose mother also behave very similar like yours. She can call her daughter 20-30 consecutively persistently until my workmate pick it up. We already habituated hearing the ringtone singing for several minutes repeating all over again! Fortunately her mother doesn't know how to use Whatsapp call/video (only use feature phone). I told her about your post and she just thought that she is not alone.
I quite understand how you feel, although I don't experience it myself. This causing the children doesn't want to pick up the phone when actually it is emergency. It is bad habit, but sometimes we just can't help with it. The only way we can do is to reduce the impact on your side.
Below are only my ideas, I don't take any responsibililty for any damage that will happen if you act upon it. As blocking phone call can lead to unknown risk. Continue reading with your own risk!
There are several choices you can do, and Automagic can help you in most cases :
1. At your mother's phone, setup exactly just like Rafi4 pointed, block all outgoing call to certain number. For whatsapp you have to use UI Event and Control UI to end the call/video call for those number. You shouldn't block all call. But this is not effective. If I am your mother, once I found out this, I will try to uninstall AutomagiC. I will rant to you that this phone is bad, can't make a call, buy me another phone. Or other circumstance, she just call from another phone.
2. At all the children's phone, block the call from that number. If it doesn't have call blocking function, use Automagic to end the call. For whatsapp, also do the same. End the call immediately after called from mother's number. Downside are this will create many notification and still disturb the children's phones. And it require all recepient to have the Automagic. Your mother also might ask you to buy other phone, same as point 1.
3. Same as point 2, but only silent the ringing and back to the home/previous app. You don't reject the call, but simply let it ring without picking it up. You can still continue doing stuff. And your mother only know that you don't pick up, so won't think that the phone is not working. But again the same downside, and added that other maybe can't call you during the call.
4. The best solution I can think is plausible deniability method and misdirection. You only need to install Automagic at your mother phone and set it up. There are still many variations of what you can do. The main point is to make your mother think the call is in progress, but actually have ended. So the recepient won't have any distraction at all.
- You will need to take various screenshot of the call menu and whatsapp call/video and crop it to fit into widget.
- When your mother call certain number, use show widget to show the fake screenshot that the call is still in progress.
- End the call immediately, but still create sound to replace the calling tone. Make it as long as the usual calling time before auto terminated (usually around 30-45 seconds), then stop the sound and hide the widget to go back to the previous menu.
- At the widget, add another action around the end button, so if she press that, it will hide the widget immediately (call already ended before).
- You can perfectly block the phone call without any missed call notif at the recepient, as the call is ended before the recepient began ringing.
Whatsapp call/video
- For Whatsapp, almost similar method. Once call is made, ended it and replace with fake screenshot. But the problem is you still have the missed call notif in the recepient.
- You can use transparent widget method to overlay over the call/video call button, and use it to trigger the fake screenshot of calling. This way, no call is being made, but it behaves almost like calling.
- The transparent widget only shown when you are viewing certain profile. You need to make a lot of those, as you have multiple ways to call via Whatsapp. From the profile, call menu, tapping the profile photo or from the chat.
- Since it is difficult to create all those widget, maybe it is better to misdirect only after the call is being made (you still have the notif missed call)
- Video call is harder, as it need to show live stream of the front camera. I don't know how to block this, so better misdirect the button to make the same whatsapp call. (pressing the video call will make fake whatsapp call instead).
- Other specific method of blocking any call/video call from whatsapp is to disable the internet. You can turn off the wifi or mobile data (might require root if set system setting is not working).
- Or you can install another app : adguard. Then use automagic to tell adguard to block Whatsapp internet connection when call is being made to any of the specified contacts. This happen in background, so nothing is visible, the wifi/mobile data is still on, making a silent blocking. But you still have the notif of misses call. At least it won't bother you all day long, only the split moment of missed call.
MIUI is fine with Accessibility (UI event & Control UI), as long as you grant the permission, exclude Automagic from the kill list and turn off MIUI optimization. Most of these solution require you to work with Trigger UI Event and Action Control UI. As both of these are very phone specific feature (the parameter needed is different in each different phone), you have to figure it out how to use it by yourself. It require many trial and error. So, sometimes we just think is it worth the trouble to create all those?
But yeah, modern problem require modern solution. If you are OK and want to continue with it, I can guide as you create the flow. You can take a look at my Control UI tutorial :
viewtopic.php?f=6&t=7320