Home | History | Annotate | Download | only in CellBroadcastReceiver
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4  * Copyright (C) 2011 The Android Open Source Project
      5  *
      6  * Licensed under the Apache License, Version 2.0 (the "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *      http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  */
     18 -->
     19 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     20         package="com.android.cellbroadcastreceiver">
     21 
     22     <original-package android:name="com.android.cellbroadcastreceiver" />
     23 
     24     <uses-permission android:name="android.permission.RECEIVE_SMS" />
     25     <uses-permission android:name="android.permission.RECEIVE_EMERGENCY_BROADCAST" />
     26     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
     27     <uses-permission android:name="android.permission.WAKE_LOCK" />
     28     <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
     29     <uses-permission android:name="android.permission.VIBRATE" />
     30     <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
     31     <uses-permission android:name="android.permission.MANAGE_USERS" />
     32 
     33     <application android:name="CellBroadcastReceiverApp"
     34             android:label="@string/app_label"
     35             android:icon="@mipmap/ic_launcher_cell_broadcast">
     36 
     37         <service android:name="CellBroadcastAlertAudio"
     38                  android:exported="false" />
     39 
     40         <service android:name="CellBroadcastAlertService"
     41                  android:exported="false" />
     42 
     43         <service android:name="CellBroadcastConfigService"
     44                  android:exported="false" />
     45 
     46         <service android:name="CellBroadcastAlertReminder"
     47                  android:exported="false" />
     48 
     49         <provider android:name="CellBroadcastContentProvider"
     50                   android:authorities="cellbroadcasts"
     51                   android:readPermission="android.permission.READ_CELL_BROADCASTS" />
     52 
     53         <activity android:name="CellBroadcastListActivity"
     54                   android:label="@string/app_label"
     55                   android:theme="@android:style/Theme.Material.Light"
     56                   android:configChanges="orientation|keyboardHidden"
     57                   android:launchMode="singleTask">
     58             <intent-filter>
     59                 <action android:name="android.intent.action.MAIN" />
     60 <!-- Uncomment this category to show the Cell Broadcasts launcher icon.
     61      Otherwise, set "config_cellBroadcastAppLinks" to true in a config.xml overlay
     62      to add links to Cell Broadcast activities via Settings and MMS menu items.
     63                 <category android:name="android.intent.category.LAUNCHER" />
     64  -->
     65                 <category android:name="android.intent.category.DEFAULT" />
     66             </intent-filter>
     67             <intent-filter>
     68                 <action android:name="android.cellbroadcastreceiver.UPDATE_LIST_VIEW" />
     69                 <category android:name="android.intent.category.DEFAULT" />
     70             </intent-filter>
     71         </activity>
     72 
     73         <!-- Settings opened by ListActivity menu, Settings app link or opt-out dialog. -->
     74         <activity android:name="CellBroadcastSettings"
     75                   android:theme="@style/CellBroadcastSettingsTheme"
     76                   android:label="@string/sms_cb_settings"
     77                   android:launchMode="singleTask"
     78                   android:exported="true" />
     79 
     80         <activity android:name="CellBroadcastAlertDialog"
     81                   android:theme="@android:style/Theme.Material.Light.Dialog"
     82                   android:launchMode="singleTask"
     83                   android:exported="false"
     84                   android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
     85 
     86         <!-- Full-screen version of CellBroadcastAlertDialog to display alerts over lock screen. -->
     87         <activity android:name="CellBroadcastAlertFullScreen"
     88                   android:excludeFromRecents="true"
     89                   android:theme="@style/AlertFullScreenTheme"
     90                   android:launchMode="singleTask"
     91                   android:exported="false"
     92                   android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
     93 
     94         <!-- Container activity for CMAS opt-in/opt-out dialog. -->
     95         <activity android:name="CellBroadcastOptOutActivity"
     96                   android:exported="false" />
     97 
     98         <!-- Require sender permissions to prevent SMS spoofing -->
     99         <receiver android:name="PrivilegedCellBroadcastReceiver"
    100             android:permission="android.permission.BROADCAST_SMS">
    101             <intent-filter>
    102                 <action android:name="android.provider.Telephony.SMS_EMERGENCY_CB_RECEIVED" />
    103             </intent-filter>
    104 
    105             <intent-filter>
    106                 <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" />
    107             </intent-filter>
    108 
    109             <intent-filter>
    110                 <action android:name="android.provider.Telephony.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED" />
    111             </intent-filter>
    112         </receiver>
    113 
    114         <!-- Require sender permission for querying latest area info broadcast -->
    115         <receiver android:name="PrivilegedCellBroadcastReceiver"
    116             android:permission="android.permission.READ_PHONE_STATE">
    117             <intent-filter>
    118                  <action android:name="android.cellbroadcastreceiver.GET_LATEST_CB_AREA_INFO" />
    119             </intent-filter>
    120         </receiver>
    121 
    122         <receiver android:name="CellBroadcastReceiver">
    123             <intent-filter>
    124                  <action android:name="android.intent.action.SERVICE_STATE" />
    125             </intent-filter>
    126 
    127             <intent-filter>
    128                  <action android:name="android.intent.action.AIRPLANE_MODE" />
    129             </intent-filter>
    130         </receiver>
    131 
    132         <provider
    133                 android:name="CellBroadcastSearchIndexableProvider"
    134                 android:authorities="com.android.cellbroadcastreceiver"
    135                 android:multiprocess="false"
    136                 android:grantUriPermissions="true"
    137                 android:permission="android.permission.READ_SEARCH_INDEXABLES"
    138                 android:exported="true">
    139             <intent-filter>
    140                 <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
    141             </intent-filter>
    142         </provider>
    143 
    144     </application>
    145 </manifest>
    146