Root access is possible.
Basically I need a way to read content://settings/system/alarm_alert from an application and get the time (or time remaining) of the alarms.
I found the old project android-alarm-database, but that only works for the older alarm clock application.
The DeskClock application (that replaced the older AlarmClock application) sets alarms using the Alarm Manager. Unfortunately its not possible to read the existing alarms from the Alarm Manager, unless you know the PendingIntent that created it. DeskClock stores these PendingIntents, as well as other alarm information, in an internal database. However, there is another way to discover the time of the last alarm set or removed:
DeskClock sends out a broadcast intent called
android.intent.action.ALARM_CHANGEDwhen it updates the status bar icon (with an extra booleanalarmSetto indicate on/off) and updatesSystems.Settings.NEXT_ALARM_FORMATTEDwhich you can receive using the following broadcast receiver:and with the following intent filter in your AndroidManifest.xml: