forked from yuriykulikov/AlarmClock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAndroidManifest.xml
200 lines (185 loc) · 9.17 KB
/
AndroidManifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.better.alarm"
android:versionCode="2802"
android:versionName="2.8.02" >
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="21" >
</uses-sdk>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.android.alarm.permission.SET_ALARM"/>
<application
android:name=".AlarmApplication"
android:icon="@mipmap/ic_launcher_alarmclock"
android:label="@string/simple_alarm_clock" >
<!-- Activity to set a new or modify existing alarm -->
<activity
android:name=".presenter.AlarmsListActivity"
android:configChanges="orientation|keyboardHidden|keyboard|navigation"
android:exported="true"
android:label="@string/alarm_list_title"
android:taskAffinity="">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Activity to set new or modify existing alarm -->
<activity
android:name=".presenter.AlarmDetailsActivity"
android:configChanges="orientation|keyboardHidden|keyboard|navigation"
android:label="@string/set_alarm">
</activity>
<!-- Application Settings -->
<activity
android:name=".presenter.SettingsActivity"
android:excludeFromRecents="true"
android:label="@string/settings"
android:taskAffinity="" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity
android:name=".HandleSetAlarm"
android:excludeFromRecents="true"
android:permission="com.android.alarm.permission.SET_ALARM"
android:theme="@android:style/Theme.NoDisplay" >
<intent-filter>
<action android:name="android.intent.action.SET_ALARM" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- Forwards intents to the AlarmAlert or AlarmAlertFullScreen -->
<receiver
android:name=".presenter.alert.AlarmAlertReceiver"
android:exported="false" >
<intent-filter>
<action android:name="com.better.alarm.ALARM_ALERT" />
<action android:name="com.better.alarm.ALARM_PREALARM_ACTION" />
<action android:name="com.better.alarm.ALARM_SNOOZE" />
<action android:name="com.better.alarm.ACTION_CANCEL_SNOOZE" />
<action android:name="com.better.alarm.ALARM_DISMISS" />
<action android:name="com.better.alarm.ACTION_SOUND_EXPIRED" />
</intent-filter>
</receiver>
<!-- Alarm alert with snooze and dismiss buttons -->
<activity
android:name=".presenter.alert.AlarmAlert"
android:configChanges="orientation|keyboardHidden|keyboard|navigation"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:theme="@android:style/Theme.Holo.Dialog"
android:taskAffinity="" />
<!-- This activity is basically the same as AlarmAlert
but full-screen so that it can turn the display on. -->
<activity
android:name=".presenter.alert.AlarmAlertFullScreen"
android:configChanges="orientation|keyboardHidden|keyboard|navigation"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:taskAffinity="" />
<!-- Transparent activity with TimPickerFragment -->
<activity
android:name=".presenter.TransparentActivity"
android:configChanges="orientation|keyboardHidden|keyboard|navigation"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:theme="@android:style/Theme.Holo.Dialog.NoActionBar"
android:taskAffinity="" />
<!-- KlaxonPresenter plays sound -->
<receiver
android:name=".presenter.background.KlaxonService$Receiver"
android:exported="false" >
<intent-filter>
<action android:name="com.better.alarm.ALARM_ALERT" />
<action android:name="com.better.alarm.ALARM_PREALARM_ACTION" />
<action android:name="com.better.alarm.ALARM_SNOOZE" />
<action android:name="com.better.alarm.ALARM_DISMISS" />
<action android:name="com.better.alarm.ACTION_SOUND_EXPIRED" />
<action android:name="com.better.alarm.ACTION_START_PREALARM_SAMPLE" />
<action android:name="com.better.alarm.ACTION_STOP_PREALARM_SAMPLE" />
<action android:name="com.better.alarm.ACTION_START_ALARM_SAMPLE" />
<action android:name="com.better.alarm.ACTION_STOP_ALARM_SAMPLE" />
<action android:name="com.better.alarm.ACTION_MUTE" />
<action android:name="com.better.alarm.ACTION_DEMUTE" />
</intent-filter>
</receiver>
<service
android:name=".presenter.background.KlaxonService"
android:description="@string/alarm_klaxon_service_desc"
android:exported="false" >
</service>
<!-- VibrationPresenter vibrates -->
<receiver
android:name=".presenter.background.VibrationService$Receiver"
android:exported="false" >
<intent-filter>
<action android:name="com.better.alarm.ALARM_ALERT" />
<action android:name="com.better.alarm.ALARM_SNOOZE" />
<action android:name="com.better.alarm.ALARM_DISMISS" />
<action android:name="com.better.alarm.ACTION_SOUND_EXPIRED" />
<action android:name="com.better.alarm.ACTION_MUTE" />
<action android:name="com.better.alarm.ACTION_DEMUTE" />
</intent-filter>
</receiver>
<service
android:name=".presenter.background.VibrationService"
android:description="@string/alarm_klaxon_service_desc"
android:exported="false" >
</service>
<!-- Reacts on Alarms being set/unset and changes notification bar and lockscreen -->
<receiver
android:name=".presenter.background.ScheduledReceiver"
android:exported="false" >
<intent-filter>
<action android:name="com.better.alarm.model.Intents.ACTION_ALARMS_UNSCHEDULED" />
<action android:name="com.better.alarm.model.Intents.ACTION_ALARM_SCHEDULED" />
</intent-filter>
</receiver>
<!-- Reacts on Alarms set and displays a toast -->
<receiver
android:name=".presenter.background.ToastPresenter"
android:exported="false" >
<intent-filter>
<action android:name="com.better.alarm.model.Intents.ACTION_ALARM_SET" />
</intent-filter>
</receiver>
<!-- Model -->
<receiver
android:name=".model.AlarmsService$Receiver"
android:exported="false" >
<intent-filter>
<action android:name="com.better.alarm.ACTION_FIRED" />
<action android:name="com.better.alarm.ACTION_SNOOZED_FIRED" />
<action android:name="com.better.alarm.ACTION_SOUND_EXPIRED" />
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.TIME_SET" />
<action android:name="android.intent.action.TIMEZONE_CHANGED" />
<action android:name="android.intent.action.LOCALE_CHANGED" />
</intent-filter>
</receiver>
<service
android:name=".model.AlarmsService"
android:exported="false" >
</service>
<!-- Persistence -->
<provider
android:name=".model.persistance.AlarmProvider"
android:authorities="com.better.alarm.model"
android:exported="false" />
<service
android:name=".model.persistance.DataBaseService"
android:exported="false" >
<intent-filter>
<action android:name="com.better.alarm.ACTION_SAVE_ALARM" />
</intent-filter>
</service>
</application>
</manifest>