Since this would never pass Apple's approval, why not take another approach: create an app that checks in automatically on a pre-set interval. If the phone ever gets turned off and a check-in is missed, the dead man's switch will flip. When you're in danger, just turn the phone off. This also has the added benefit of triggering the alert if the captor/aggressor turns off or destroys the phone. Just enable it when you know you're going to be entering a dicey situation.