DeskClock
AOSP based Clock app with automatic power on feature (working on Qualcomm devices) and other improvements
Install / Use
/learn @Batlin/DeskClockREADME
Based on latest AOSP Clock app (b89bbe70df hash) which keeps getting updates from Google, I've built it and added the following features:
-
Automatic power on feature(*). You can turn off your device, go to sleep and... two minutes before the alarm you scheduled is triggered, your device will turn on automatically!
-
Darker Theme (more comfortable for your eyes!)
And more features to come!
Source code on AOSP (that we have extended):
https://android.googlesource.com/platform/packages/apps/DeskClock.git
- Note: this only works on Qualcomm devices based on CAF. If your device doesn't support this feature, a prompt will be shown when opening the app.
Technical explanation:
Qualcomm based devices (CAF) contain an AlarmManager class which defines a hidden alarm time (not exposed through API), called RTC_POWEROFF_WAKEUP described as follows:
Alarm time in {@link System#currentTimeMillis System.currentTimeMillis()} (wall clock time in UTC), which will wake up the device when it goes off. And it will power on the devices when it shuts down. Set as 5 to make it be compatible with android_alarm_type.
Therefore, you can schedule alarms using this alarm type to power on the DUT at the schedule time you specified.
You should check if the framework your app is running on has this feature or not using reflection.
Lots of ideas are waiting to be implemented using this feature!
Waiting for your feedback!
Related Skills
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.4kCommit, push, and open a PR
