Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a android App work if phone is switch off [closed]

Whether it is possible to launch an android application like alarm while the phone is switched off.

like image 667
Anand Jain Avatar asked Sep 18 '15 04:09

Anand Jain


2 Answers

A bug had been filed almost 5 years ago regarding Android device's alarms not triggering when device is turned off.. It's status was then changed to "enhancement request"

And as you go deep down in that thread, you can see that it was "declined" . So officially Android doesn't support it, however some vendors have implemented this feature in their vendor specific ROM.

like image 162
Sharp Edge Avatar answered Sep 19 '22 15:09

Sharp Edge


Technically Android is based on a modified Linux kernel and all processes running in Android are regular Linux processes. As such, when the kernel goes down then all processes also shutdown.

Alarm Manager is a system service which is running, along with other system services, inside a single Linux process (System Server) through its Dalvik VM instance. As I've already said, System Server is also a Linux process like other processes and will shutdown once whole kernel has stopped running.

Basically, all Android system services (e.g. Notification manager, Package manager, Camera, ...) are running inside that System Server standalone process. (However, in newer versions of Android some of them are slitted up to multiple processes). And this process is no longer running whenever the kernel stops.

like image 23
frogatto Avatar answered Sep 22 '22 15:09

frogatto