I know way more advanced and feature-rich solutions exist but I’m not sure if they have the feature of a phone call being the trigger. Probably someone will find this one useful for DIY projects or something.
Warning: using this app for creation of explosive devices and other illegal purposes is not recommended and may result in legal trouble. Make sure to check local laws before creating any automated device.
Does the action run on incoming our outgoing calls? Sorry if question is autistic.
Incoming based on the code here:
https://github.com/coleblvck/MethodCall/blob/main/app/src/main/java/com/coleblvck/methodcall/services/ScreeningService.kt
Incoming obviously. Making it work on outgoing calls wouldn’t make much sense.