App code to enable/disable security system

If caught in a hostage situation and your phone is taken the app should require the code so that you can enter the emergency code and still have the police sent. It seems too simple to be able to disarm with just one push.