When using AlarmManager, Android device can wake up from sleeping at some time.
How does Android schedule the wakeup at lower level?
I tried using rtcwake
, but it fails with rtcwake: /dev/rtc0 not enabled for wakeup events
(if I force rtcwake to proceed and make necessary ioctls I still don't see the device being woken up on time)
Which syscalls does Android use to set up an alarm and how to do them from console myself?