Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable Safety assistance emergency mode

Its a very interesting and new thing for me to implement and learn. There are some requirement of my application. For that I have searched a lot but couldn't find proper and valuable thing or links. So i am posting my question here. The functionality are :

1) In Samsung device there is Safety Assistance menu in which you can find Emergency Mode option.

2) Now while Emergency mode at that time I want to create a one or more primary contacts to Emergency Mode. So now while holds the home and volume buttons the emergency will be activated and notify by notification.

3) Now while the emergency will be activated at the same moment GPS would be enabled automatically and the two photos of current location would be captured automatically and finally locations and that two photos will send to that contacts which are added in Emergency mode as a primary contact as a MMS.

Note : If sound recorder option will be enabled then recorded file will also send in MMS.

So if anyone knows or anyone implemented then I am very thankful to him/her. Help would be appreciated.

like image 949
Piyush Avatar asked Feb 17 '15 07:02

Piyush


People also ask

What happens if I turn on emergency mode?

Emergency mode conserves your device's remaining power when you are in an emergency situation. Battery power is saved by: Turning off Mobile data when the screen is off. Restricting usage to essential apps and those you select.

What is safety assistance on Android?

Safety assistance is an app included in your Samsung smartphone. With it, you can use different tools that can help you during emergency situations. All you have to do to use these services is to access the Safety assistance main menu and tap on the different icons.

How do I get my phone out of emergency call mode?

Leave your phone turned on, but remove the battery from the phone. Then let it sit for 5 to 10 minutes before putting the battery in and turning the phone back on. This resets the phone and makes it begin working again without using the emergency mode.

What happens if you press emergency mode on Samsung?

Emergency mode enables you to extend your device's standby time when you are in an emergency situation and you want your device to conserve power for as long as possible.

What is home assistant’s “safe mode”?

When this happens, Home Assistant will start in “Safe mode” using this integration. In this mode, nothing is loaded, but it does give you access to the Home Assistant frontend, settings and add-ons.

What is safe mode in Windows 10?

Safe mode starts Windows in a basic state, using a limited set of files and drivers. If a problem doesn't happen in safe mode, this means that default settings and basic device drivers aren't causing the issue. Observing Windows in safe mode enables you to narrow down the source of a problem, and can help you troubleshoot problems on your PC.

What happens if a problem doesn't happen in safe mode?

If a problem doesn't happen in safe mode, this means that default settings and basic device drivers aren't causing the issue. Observing Windows in safe mode enables you to narrow down the source of a problem, and can help you troubleshoot problems on your PC. There are two versions of safe mode: Safe Mode and Safe Mode with Networking.

What are the different types of safe mode?

There are two versions of safe mode: Safe Mode and Safe Mode with Networking. Safe Mode with Networking adds the network drivers and services you'll need to access the internet and other computers on your network.


Video Answer


2 Answers

I guess this is not a simple task, since the trigger is a keypress of vol+ and vol- for three seconds (if I remember correctly). I'm not sure if it is possible to hook those keys from a service (since this would a keylogger also do). However if you got this managed you just need to enable GPS by code. When done you just need to get the users position.

The next step is to let the user select some contacts where the data should been send. That should been the easest part. The next step is to make some photos and record some audio and send those data per mms to the desired persons.

like image 144
rekire Avatar answered Oct 10 '22 22:10

rekire


It's not possible to capture home button event from service. You can capture volume up/down event using BroadcastReceiver when phone is unlocked.

This looks like nice idea but also not doable in this way.

like image 37
N Sharma Avatar answered Oct 10 '22 22:10

N Sharma