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_PRIVILEGED_PHONE_STATE" />
     27     <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
     28     <uses-permission android:name="android.permission.WAKE_LOCK" />
     29     <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
     30     <uses-permission android:name="android.permission.VIBRATE" />
     31     <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
     32     <uses-permission android:name="android.permission.MANAGE_USERS" />
     33 
     34     <application android:name="CellBroadcastReceiverApp"
     35             android:label="@string/app_label"
     36             android:icon="@mipmap/ic_launcher_cell_broadcast"
     37             android:backupAgent="CellBroadcastBackupAgent"
     38             android:defaultToDeviceProtectedStorage="true"
     39             android:directBootAware="true">
     40 
     41         <meta-data android:name="com.google.android.backup.api_key"
     42             android:value="AEdPqrEAAAAI2_Lb4sDI0e0twL-kf6GIqXpZIfrR0OhnM1pNJQ" />
     43 
     44         <service android:name="CellBroadcastAlertAudio"
     45                  android:exported="false" />
     46 
     47         <service android:name="CellBroadcastAlertService"
     48                  android:exported="false" />
     49 
     50         <service android:name="CellBroadcastConfigService"
     51                  android:exported="false" />
     52 
     53         <service android:name="CellBroadcastAlertReminder"
     54                  android:exported="false" />
     55 
     56         <provider android:name="CellBroadcastContentProvider"
     57                   android:authorities="cellbroadcasts"
     58                   android:readPermission="android.permission.READ_CELL_BROADCASTS" />
     59 
     60         <activity android:name="CellBroadcastListActivity"
     61                   android:label="@string/app_label"
     62                   android:theme="@android:style/Theme.Material.Light"
     63                   android:configChanges="orientation|keyboardHidden"
     64                   android:launchMode="singleTask">
     65             <intent-filter>
     66                 <action android:name="android.intent.action.MAIN" />
     67 <!-- Uncomment this category to show the Cell Broadcasts launcher icon.
     68      Otherwise, set "config_cellBroadcastAppLinks" to true in a config.xml overlay
     69      to add links to Cell Broadcast activities via Settings and MMS menu items.
     70                 <category android:name="android.intent.category.LAUNCHER" />
     71  -->
     72                 <category android:name="android.intent.category.DEFAULT" />
     73             </intent-filter>
     74             <intent-filter>
     75                 <action android:name="android.cellbroadcastreceiver.UPDATE_LIST_VIEW" />
     76                 <category android:name="android.intent.category.DEFAULT" />
     77             </intent-filter>
     78         </activity>
     79 
     80         <!-- Settings opened by ListActivity menu, Settings app link or opt-out dialog. -->
     81         <activity android:name="CellBroadcastSettings"
     82                   android:theme="@style/CellBroadcastSettingsTheme"
     83                   android:label="@string/sms_cb_settings"
     84                   android:launchMode="singleTask"
     85                   android:exported="true" />
     86 
     87         <activity android:name="CellBroadcastAlertDialog"
     88                   android:theme="@android:style/Theme.Material.Light.Dialog"
     89                   android:launchMode="singleTask"
     90                   android:exported="false"
     91                   android:configChanges="orientation|keyboardHidden|keyboard|navigation">
     92             <intent-filter>
     93                 <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" />
     94             </intent-filter>
     95         </activity> 
     96 
     97         <!-- Full-screen version of CellBroadcastAlertDialog to display alerts over lock screen. -->
     98         <activity android:name="CellBroadcastAlertFullScreen"
     99                   android:excludeFromRecents="true"
    100                   android:theme="@style/AlertFullScreenTheme"
    101                   android:launchMode="singleTask"
    102                   android:exported="false"
    103                   android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
    104 
    105         <!-- Container activity for CMAS opt-in/opt-out dialog. -->
    106         <activity android:name="CellBroadcastOptOutActivity"
    107                   android:exported="false" />
    108 
    109         <!-- Require sender permissions to prevent SMS spoofing -->
    110         <receiver android:name="PrivilegedCellBroadcastReceiver"
    111             android:permission="android.permission.BROADCAST_SMS">
    112             <intent-filter>
    113                 <action android:name="android.provider.Telephony.SMS_EMERGENCY_CB_RECEIVED" />
    114             </intent-filter>
    115             <intent-filter>
    116                 <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" />
    117             </intent-filter>
    118             <intent-filter>
    119                 <action android:name="android.cellbroadcastreceiver.START_CONFIG" />
    120             </intent-filter>
    121             <intent-filter>
    122                 <action android:name="android.provider.Telephony.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED" />
    123             </intent-filter>
    124         </receiver>
    125 
    126         <!-- Require sender permission for querying latest area info broadcast -->
    127         <receiver android:name="CellBroadcastAreaInfoReceiver"
    128             android:permission="android.permission.READ_PHONE_STATE">
    129             <intent-filter>
    130                  <action android:name="android.cellbroadcastreceiver.GET_LATEST_CB_AREA_INFO" />
    131             </intent-filter>
    132         </receiver>
    133 
    134         <receiver android:name="CellBroadcastReceiver">
    135             <intent-filter>
    136                  <action android:name="android.intent.action.SERVICE_STATE" />
    137             </intent-filter>
    138             <intent-filter>
    139                 <action android:name="android.intent.action.ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED" />
    140             </intent-filter>
    141             <intent-filter>
    142                  <action android:name="android.intent.action.AIRPLANE_MODE" />
    143             </intent-filter>
    144         </receiver>
    145 
    146         <provider
    147                 android:name="CellBroadcastSearchIndexableProvider"
    148                 android:authorities="com.android.cellbroadcastreceiver"
    149                 android:multiprocess="false"
    150                 android:grantUriPermissions="true"
    151                 android:permission="android.permission.READ_SEARCH_INDEXABLES"
    152                 android:exported="true">
    153             <intent-filter>
    154                 <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
    155             </intent-filter>
    156         </provider>
    157 
    158     </application>
    159 </manifest>
    160