Home | History | Annotate | Download | only in DeskClock
      1 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
      2         package="com.android.deskclock"
      3         android:versionCode="203" android:versionName="2.0.3">
      4 
      5     <original-package android:name="com.android.alarmclock" />
      6     <original-package android:name="com.android.deskclock" />
      7 
      8     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
      9     <uses-permission android:name="android.permission.WAKE_LOCK"/>
     10     <uses-permission android:name="android.permission.VIBRATE"/>
     11     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
     12     <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
     13     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
     14     <uses-permission android:name="android.permission.DEVICE_POWER" />
     15 
     16     <application android:label="@string/app_label"
     17                  android:icon="@mipmap/ic_launcher_alarmclock">
     18 
     19         <provider android:name="AlarmProvider"
     20                 android:authorities="com.android.deskclock"
     21                 android:exported="false" />
     22 
     23         <activity android:name="DeskClock"
     24                 android:label="@string/app_label"
     25                 android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar"
     26                 android:icon="@mipmap/ic_launcher_alarmclock"
     27                 android:launchMode="singleInstance"
     28                 android:configChanges="orientation|keyboardHidden|keyboard|navigation">
     29                 >
     30 
     31             <!-- while docked, this is our home application -->
     32             <meta-data android:name="android.dock_home" android:value="true" />
     33 
     34             <intent-filter>
     35                 <action android:name="android.intent.action.MAIN" />
     36                 <category android:name="android.intent.category.DEFAULT" />
     37                 <category android:name="android.intent.category.LAUNCHER" />
     38                 <category android:name="android.intent.category.DESK_DOCK" />
     39             </intent-filter>
     40         </activity>
     41 
     42         <activity android:name="AlarmClock"
     43                 android:label="@string/alarm_list_title"
     44                 android:theme="@style/AlarmClockTheme"
     45                 android:taskAffinity=""
     46                 android:excludeFromRecents="true"
     47                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"
     48                 android:exported="true" />
     49 
     50         <activity-alias android:name="com.android.alarmclock.AlarmClock"
     51                 android:targetActivity="com.android.deskclock.AlarmClock"
     52                 android:exported="true" />
     53 
     54         <activity android:name="SettingsActivity"
     55                 android:label="@string/settings"
     56                 android:taskAffinity=""
     57                 android:excludeFromRecents="true"
     58                 >
     59             <intent-filter>
     60                 <action android:name="android.intent.action.MAIN" />
     61             </intent-filter>
     62         </activity>
     63 
     64         <activity android:name="SetAlarm" 
     65                 android:label="@string/set_alarm"
     66                 android:theme="@style/SetAlarmTheme"
     67                 android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
     68 
     69         <activity android:name="AlarmAlert"
     70                 android:excludeFromRecents="true"
     71                 android:theme="@android:style/Theme.Holo.Dialog"
     72                 android:launchMode="singleInstance"
     73                 android:taskAffinity=""
     74                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>
     75 
     76         <!-- This activity is basically the same as AlarmAlert 
     77              but full-screen so that it can turn the display on. -->
     78         <activity android:name="AlarmAlertFullScreen"
     79                 android:excludeFromRecents="true"
     80                 android:theme="@style/AlarmAlertFullScreenTheme"
     81                 android:launchMode="singleInstance"
     82                 android:taskAffinity=""
     83                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>
     84 
     85         <receiver android:name="AlarmReceiver"
     86                 android:exported="false">
     87             <intent-filter>
     88                 <action android:name="com.android.deskclock.ALARM_ALERT" />
     89                 <action android:name="alarm_killed" />
     90                 <action android:name="cancel_snooze" />
     91             </intent-filter>
     92         </receiver>
     93 
     94         <receiver android:name="DeskClock$DeskClockReceiver"
     95             android:exported="false">
     96             <intent-filter>
     97                 <action android:name="android.intent.action.DOCK_EVENT" />
     98             </intent-filter>
     99         </receiver>
    100 
    101         <activity android:name="HandleSetAlarm"
    102                 android:theme="@android:style/Theme.NoDisplay"
    103                 android:excludeFromRecents="true"
    104                 android:permission="com.android.alarm.permission.SET_ALARM">
    105             <intent-filter>
    106                 <action android:name="android.intent.action.SET_ALARM" />
    107                 <category android:name="android.intent.category.DEFAULT" />
    108             </intent-filter>
    109         </activity>
    110 
    111         <!-- This service receives the same intent as AlarmReceiver but it does
    112              not respond to the same broadcast. The AlarmReceiver will receive
    113              the alert broadcast and will start this service with the same
    114              intent. The service plays the alarm alert and vibrates the device.
    115              This allows the alert to continue playing even if another activity
    116              causes the AlarmAlert activity to pause. -->
    117         <service android:name="AlarmKlaxon"
    118                 android:exported="false"
    119                 android:description="@string/alarm_klaxon_service_desc">
    120             <intent-filter>
    121                 <action android:name="com.android.deskclock.ALARM_ALERT" />
    122             </intent-filter>
    123         </service>
    124 
    125         <receiver android:name="AlarmInitReceiver">
    126             <intent-filter>
    127                 <action android:name="android.intent.action.BOOT_COMPLETED" />
    128                 <action android:name="android.intent.action.TIME_SET" />
    129                 <action android:name="android.intent.action.TIMEZONE_CHANGED" />
    130                 <action android:name="android.intent.action.LOCALE_CHANGED" />
    131             </intent-filter>
    132         </receiver>
    133 
    134         <receiver android:name="com.android.alarmclock.AnalogAppWidgetProvider" android:label="@string/analog_gadget"
    135         	android:icon="@mipmap/ic_widget_analog_clock">
    136             <intent-filter>
    137                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
    138             </intent-filter>
    139             <meta-data android:name="android.appwidget.oldName" android:value="com.android.deskclock.AnalogAppWidgetProvider" />
    140             <meta-data android:name="android.appwidget.provider" android:resource="@xml/analog_appwidget" />
    141         </receiver>
    142 
    143         <activity android:name=".Screensaver"
    144             android:label="@string/app_label"
    145             android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
    146             android:hardwareAccelerated="true"
    147             >
    148             <intent-filter>
    149                 <action android:name="android.intent.action.MAIN" />
    150                 <category android:name="android.intent.category.DEFAULT" />
    151                 <category android:name="android.intent.category.DREAM" />
    152             </intent-filter>
    153         </activity>
    154     </application>
    155 </manifest>
    156 
    157