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="202" android:versionName="2.0.2">
      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="@drawable/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.Wallpaper.NoTitleBar"
     26                 android:icon="@drawable/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:taskAffinity=""
     45                 android:excludeFromRecents="true"
     46                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"
     47                 android:exported="true" />
     48 
     49         <activity-alias android:name="com.android.alarmclock.AlarmClock"
     50                 android:targetActivity="com.android.deskclock.AlarmClock"
     51                 android:exported="true" />
     52 
     53         <activity android:name="SettingsActivity"
     54                 android:label="@string/settings"
     55                 android:taskAffinity=""
     56                 android:excludeFromRecents="true"
     57                 >
     58             <intent-filter>
     59                 <action android:name="android.intent.action.MAIN" />
     60             </intent-filter>
     61         </activity>
     62 
     63         <activity android:name="SetAlarm" android:label="@string/set_alarm"
     64                 android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
     65 
     66         <activity android:name="AlarmAlert"
     67                 android:excludeFromRecents="true"
     68                 android:theme="@style/alarm_alert"
     69                 android:launchMode="singleInstance"
     70                 android:taskAffinity=""
     71                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>
     72 
     73         <!-- This activity is basically the same as AlarmAlert but with a more
     74              generic theme. It also shows as full screen (with status bar) but
     75              with the wallpaper background. -->
     76         <activity android:name="AlarmAlertFullScreen"
     77                 android:excludeFromRecents="true"
     78                 android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
     79                 android:launchMode="singleInstance"
     80                 android:taskAffinity=""
     81                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>
     82 
     83         <receiver android:name="AlarmReceiver">
     84             <intent-filter>
     85                 <action android:name="com.android.deskclock.ALARM_ALERT" />
     86                 <action android:name="alarm_killed" />
     87                 <action android:name="cancel_snooze" />
     88             </intent-filter>
     89         </receiver>
     90 
     91         <activity android:name="HandleSetAlarm"
     92                 android:theme="@android:style/Theme.NoDisplay"
     93                 android:excludeFromRecents="true"
     94                 android:permission="com.android.alarm.permission.SET_ALARM">
     95             <intent-filter>
     96                 <action android:name="android.intent.action.SET_ALARM" />
     97                 <category android:name="android.intent.category.DEFAULT" />
     98             </intent-filter>
     99         </activity>
    100 
    101         <!-- This service receives the same intent as AlarmReceiver but it does
    102              not respond to the same broadcast. The AlarmReceiver will receive
    103              the alert broadcast and will start this service with the same
    104              intent. The service plays the alarm alert and vibrates the device.
    105              This allows the alert to continue playing even if another activity
    106              causes the AlarmAlert activity to pause. -->
    107         <service android:name="AlarmKlaxon"
    108                 android:description="@string/alarm_klaxon_service_desc"
    109                 >
    110             <intent-filter>
    111                 <action android:name="com.android.deskclock.ALARM_ALERT" />
    112             </intent-filter>
    113         </service>
    114 
    115         <receiver android:name="AlarmInitReceiver">
    116             <intent-filter>
    117                 <action android:name="android.intent.action.BOOT_COMPLETED" />
    118                 <action android:name="android.intent.action.TIME_SET" />
    119                 <action android:name="android.intent.action.TIMEZONE_CHANGED" />
    120                 <action android:name="android.intent.action.LOCALE_CHANGED" />
    121             </intent-filter>
    122         </receiver>
    123 
    124         <receiver android:name="com.android.alarmclock.AnalogAppWidgetProvider" android:label="@string/analog_gadget"
    125         	android:icon="@drawable/ic_widget_analog_clock">
    126             <intent-filter>
    127                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
    128             </intent-filter>
    129             <meta-data android:name="android.appwidget.oldName" android:value="com.android.deskclock.AnalogAppWidgetProvider" />
    130             <meta-data android:name="android.appwidget.provider" android:resource="@xml/analog_appwidget" />
    131         </receiver>
    132     </application>
    133 </manifest>
    134 
    135