by Gabriel Dario Caffaratti
If there is an emergency and someone texts you "SOS", "sos" or "Sos", your phone will wake up, disable your silence mode, make sure to draw your attention and offer to call that person.
You can customise it to only do this if the text you receive is from someone in your contacts, or only a certain group in your contacts.
The calling is optional, and presented in a dialogue.
All credits to Isaiah "papaya" for the original flow.
I've only added some catchs in case the phone is not rooted (the emergency light led won't work).
Also added extra checks for SMS strings like "SOS", "sos" and "Sos".
In addition, the flow won't stop if the SMS is a normal message different than SOS.
Rate and review within the app in the Community section.