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.RECEIVE_BOOT_COMPLETED" />
     27     <uses-permission android:name="android.permission.READ_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 
     32     <application android:name="CellBroadcastReceiverApp"
     33             android:label="@string/app_label"
     34             android:icon="@mipmap/ic_launcher_cell_broadcast">
     35 
     36         <service android:name="CellBroadcastAlertAudio"
     37                  android:exported="false" />
     38 
     39         <service android:name="CellBroadcastAlertService"
     40                  android:exported="false" />
     41 
     42         <service android:name="CellBroadcastConfigService"
     43                  android:exported="false" />
     44 
     45         <provider android:name="CellBroadcastContentProvider"
     46                   android:authorities="cellbroadcasts"
     47                   android:readPermission="android.permission.READ_CELL_BROADCASTS" />
     48 
     49         <activity android:name="CellBroadcastListActivity"
     50                   android:label="@string/app_label"
     51                   android:configChanges="orientation|keyboardHidden"
     52                   android:launchMode="singleTop">
     53             <intent-filter>
     54                 <action android:name="android.intent.action.MAIN" />
     55 <!-- Uncomment this category to show the Cell Broadcasts launcher icon.
     56      Otherwise, set "config_cellBroadcastAppLinks" to true in a config.xml overlay
     57      to add links to Cell Broadcast activities via Settings and MMS menu items.
     58                 <category android:name="android.intent.category.LAUNCHER" />
     59  -->
     60                 <category android:name="android.intent.category.DEFAULT" />
     61             </intent-filter>
     62             <intent-filter>
     63                 <action android:name="android.cellbroadcastreceiver.UPDATE_LIST_VIEW" />
     64                 <category android:name="android.intent.category.DEFAULT" />
     65             </intent-filter>
     66         </activity>
     67 
     68         <activity android:name="CellBroadcastSettings"
     69                   android:label="@string/sms_cb_settings"
     70                   android:exported="true" />
     71 
     72         <activity android:name="CellBroadcastAlertDialog"
     73                   android:excludeFromRecents="true"
     74                   android:theme="@android:style/Theme.Holo.Dialog"
     75                   android:launchMode="singleInstance"
     76                   android:exported="false"
     77                   android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
     78 
     79         <!-- Full-screen version of CellBroadcastAlertDialog to display alerts over lock screen. -->
     80         <activity android:name="CellBroadcastAlertFullScreen"
     81                   android:excludeFromRecents="true"
     82                   android:theme="@style/AlertFullScreenTheme"
     83                   android:launchMode="singleInstance"
     84                   android:exported="false"
     85                   android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
     86 
     87         <!-- Require sender permissions to prevent SMS spoofing -->
     88         <receiver android:name="PrivilegedCellBroadcastReceiver"
     89             android:permission="android.permission.BROADCAST_SMS">
     90             <intent-filter>
     91                 <action android:name="android.provider.Telephony.SMS_EMERGENCY_CB_RECEIVED" />
     92             </intent-filter>
     93 
     94             <intent-filter>
     95                 <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" />
     96             </intent-filter>
     97 
     98             <intent-filter>
     99                 <action android:name="android.provider.Telephony.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED" />
    100             </intent-filter>
    101         </receiver>
    102 
    103         <receiver android:name="CellBroadcastReceiver">
    104             <intent-filter>
    105                  <action android:name="android.intent.action.BOOT_COMPLETED" />
    106             </intent-filter>
    107 
    108             <intent-filter>
    109                  <action android:name="android.intent.action.AIRPLANE_MODE" />
    110             </intent-filter>
    111         </receiver>
    112 
    113     </application>
    114 </manifest>
    115