I was wondering about this: it seems that when you set an alarm, even if you switch off your smartphone, on reaching that time the alarm manages to ring.

Is the Android framework still running and hence the Alarm Service is able to detect change in time, or other reason?


1 Answer 1


There was a question here asking if it is an expected behavior, it has two answers saying not much more as simple yes.

I am going to answer this question as a question of why is it so, whether Android is running, and how it works if not.

The answer is: no, Android is not running nowhere, nor is Linux underneath him. Wake up on alarm is a hardware feature which was around a long time and was actually very common a time ago. The feature involves hardware. And because of the associated costs, I think, manufacturers started to implement it less and less. There is quite a lot of expensive phones today, which don't have it.

The alarm clock while power off feature has nothing to do with Android or whatever OS is on the phone. Any device today is never quite completely off. There are always few chips powered. No conspiracy here, those chips in question are well documented power chips, without any special spying powers if that is in question. We can say a phone, or other device, is on if it's processor is on. That can be woken-up by various events, only one of which is the power button. If you plug a charger to a powered off phone, it will power on, determine what's happened, then it shows a battery charging graphics. There is usually separate boot for each such event. One of such could be a signal from an alarm clock. You have phones which shows such alarms while they boot to special alarm clock mode, and then you have phones which will go through normal boot to show alarm in its alarm App.

But it's not just to send the wake signal. Phones offer multiple alarms, you have timezones, silent modes, and there need to be a way to store the alarm value from an alarm app when you set an alarm time into the clock chip. I don't think it's all such a big deal, especially when a basic clock is usually there somewhere anyway, but it's cheaper without it.

  • 1
    I am still in confusion here, if android isn't running and the feature is hardware related then why does it sound the same alarm that was set in android OS, how does it know where to find the sound played when alarm goes off without android running?
    – AguThadeus
    Sep 16, 2015 at 7:43
  • 2
    It either boots up the full Android, or some special alarm mode which takes less time to start. Either way, the alarm app then reads the configuration you set and acts accordingly. So when the alarm sounds, either android or a special alarm mode are running.
    – Josef
    Sep 16, 2015 at 8:06
  • 2
    In particular, one of the things that is (and must, if you think about it!) always be running, even if the phone is powered off, is the clock. It then becomes fairly trivial to attach a small microcontroller to the clock (actually, it would simply come as part of the clock chip) which can be programmed with a time and a date and send a wake-up signal to some sort of I/O or power management microcontroller, which will then power up the rest of the system. Sep 16, 2015 at 9:07
  • 2
    you set alarm for 9AM, from 1AM until 8.59AM both you and the Android are sleeping. At 8.59AM the hardware clock will wake Android up, 9.00AM Android will wake you up. The phone is running in some form at the alarm time only, or just immediately before it. But not the whole night.
    – papo
    Sep 16, 2015 at 22:03

Not the answer you're looking for? Browse other questions tagged .