Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 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" /> |
Sanket Padawe | 6881bc3 | 2015-07-14 18:52:15 -0700 | [diff] [blame] | 26 | <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" /> |
Sanket Padawe | c4ef611 | 2015-07-14 11:17:26 -0700 | [diff] [blame] | 27 | <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /> |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 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" /> |
Jake Hamby | 8524c0a | 2012-11-30 14:06:46 -0800 | [diff] [blame] | 31 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> |
xinhe | 0224bab | 2014-11-14 13:50:50 -0800 | [diff] [blame] | 32 | <uses-permission android:name="android.permission.MANAGE_USERS" /> |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 33 | |
| 34 | <application android:name="CellBroadcastReceiverApp" |
| 35 | android:label="@string/app_label" |
Alexandra Gherghina | bef086e | 2014-04-11 11:27:07 +0000 | [diff] [blame] | 36 | android:icon="@mipmap/ic_launcher_cell_broadcast"> |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 37 | |
| 38 | <service android:name="CellBroadcastAlertAudio" |
| 39 | android:exported="false" /> |
| 40 | |
| 41 | <service android:name="CellBroadcastAlertService" |
| 42 | android:exported="false" /> |
| 43 | |
| 44 | <service android:name="CellBroadcastConfigService" |
| 45 | android:exported="false" /> |
| 46 | |
Jake Hamby | 4589e8a | 2013-02-26 17:05:00 -0800 | [diff] [blame] | 47 | <service android:name="CellBroadcastAlertReminder" |
| 48 | android:exported="false" /> |
| 49 | |
Jake Hamby | da5c415 | 2012-04-17 18:26:46 -0700 | [diff] [blame] | 50 | <provider android:name="CellBroadcastContentProvider" |
| 51 | android:authorities="cellbroadcasts" |
| 52 | android:readPermission="android.permission.READ_CELL_BROADCASTS" /> |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 53 | |
| 54 | <activity android:name="CellBroadcastListActivity" |
| 55 | android:label="@string/app_label" |
Dan Sandler | 946d40b | 2014-10-14 20:57:50 -0400 | [diff] [blame] | 56 | android:theme="@android:style/Theme.Material.Light" |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 57 | android:configChanges="orientation|keyboardHidden" |
Jake Hamby | 57273eb | 2012-10-08 19:41:30 -0700 | [diff] [blame] | 58 | android:launchMode="singleTask"> |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 59 | <intent-filter> |
| 60 | <action android:name="android.intent.action.MAIN" /> |
Jake Hamby | 80bf203 | 2012-06-21 11:01:48 -0700 | [diff] [blame] | 61 | <!-- Uncomment this category to show the Cell Broadcasts launcher icon. |
| 62 | Otherwise, set "config_cellBroadcastAppLinks" to true in a config.xml overlay |
| 63 | to add links to Cell Broadcast activities via Settings and MMS menu items. |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 64 | <category android:name="android.intent.category.LAUNCHER" /> |
Jake Hamby | 80bf203 | 2012-06-21 11:01:48 -0700 | [diff] [blame] | 65 | --> |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 66 | <category android:name="android.intent.category.DEFAULT" /> |
| 67 | </intent-filter> |
Jake Hamby | 00b8706 | 2012-02-13 18:34:01 -0800 | [diff] [blame] | 68 | <intent-filter> |
| 69 | <action android:name="android.cellbroadcastreceiver.UPDATE_LIST_VIEW" /> |
| 70 | <category android:name="android.intent.category.DEFAULT" /> |
| 71 | </intent-filter> |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 72 | </activity> |
| 73 | |
Jake Hamby | 57273eb | 2012-10-08 19:41:30 -0700 | [diff] [blame] | 74 | <!-- Settings opened by ListActivity menu, Settings app link or opt-out dialog. --> |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 75 | <activity android:name="CellBroadcastSettings" |
Andrew Lee | 051fc79 | 2014-09-29 17:02:03 -0700 | [diff] [blame] | 76 | android:theme="@style/CellBroadcastSettingsTheme" |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 77 | android:label="@string/sms_cb_settings" |
Jake Hamby | 57273eb | 2012-10-08 19:41:30 -0700 | [diff] [blame] | 78 | android:launchMode="singleTask" |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 79 | android:exported="true" /> |
| 80 | |
Jake Hamby | 00b8706 | 2012-02-13 18:34:01 -0800 | [diff] [blame] | 81 | <activity android:name="CellBroadcastAlertDialog" |
Andrew Lee | 051fc79 | 2014-09-29 17:02:03 -0700 | [diff] [blame] | 82 | android:theme="@android:style/Theme.Material.Light.Dialog" |
Jake Hamby | 57273eb | 2012-10-08 19:41:30 -0700 | [diff] [blame] | 83 | android:launchMode="singleTask" |
Jake Hamby | 00b8706 | 2012-02-13 18:34:01 -0800 | [diff] [blame] | 84 | android:exported="false" |
Jack Yu | 5323b81 | 2015-07-08 01:27:34 -0700 | [diff] [blame] | 85 | android:configChanges="orientation|keyboardHidden|keyboard|navigation"> |
| 86 | <intent-filter> |
| 87 | <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" /> |
| 88 | </intent-filter> |
| 89 | </activity> |
Jake Hamby | 00b8706 | 2012-02-13 18:34:01 -0800 | [diff] [blame] | 90 | |
| 91 | <!-- Full-screen version of CellBroadcastAlertDialog to display alerts over lock screen. --> |
| 92 | <activity android:name="CellBroadcastAlertFullScreen" |
| 93 | android:excludeFromRecents="true" |
| 94 | android:theme="@style/AlertFullScreenTheme" |
Jake Hamby | 57273eb | 2012-10-08 19:41:30 -0700 | [diff] [blame] | 95 | android:launchMode="singleTask" |
Jake Hamby | 00b8706 | 2012-02-13 18:34:01 -0800 | [diff] [blame] | 96 | android:exported="false" |
| 97 | android:configChanges="orientation|keyboardHidden|keyboard|navigation" /> |
| 98 | |
Jake Hamby | 57273eb | 2012-10-08 19:41:30 -0700 | [diff] [blame] | 99 | <!-- Container activity for CMAS opt-in/opt-out dialog. --> |
| 100 | <activity android:name="CellBroadcastOptOutActivity" |
| 101 | android:exported="false" /> |
| 102 | |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 103 | <!-- Require sender permissions to prevent SMS spoofing --> |
| 104 | <receiver android:name="PrivilegedCellBroadcastReceiver" |
| 105 | android:permission="android.permission.BROADCAST_SMS"> |
| 106 | <intent-filter> |
| 107 | <action android:name="android.provider.Telephony.SMS_EMERGENCY_CB_RECEIVED" /> |
| 108 | </intent-filter> |
| 109 | |
| 110 | <intent-filter> |
| 111 | <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" /> |
| 112 | </intent-filter> |
Jake Hamby | 00b8706 | 2012-02-13 18:34:01 -0800 | [diff] [blame] | 113 | |
| 114 | <intent-filter> |
| 115 | <action android:name="android.provider.Telephony.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED" /> |
| 116 | </intent-filter> |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 117 | </receiver> |
| 118 | |
Jake Hamby | 8524c0a | 2012-11-30 14:06:46 -0800 | [diff] [blame] | 119 | <!-- Require sender permission for querying latest area info broadcast --> |
| 120 | <receiver android:name="PrivilegedCellBroadcastReceiver" |
| 121 | android:permission="android.permission.READ_PHONE_STATE"> |
| 122 | <intent-filter> |
| 123 | <action android:name="android.cellbroadcastreceiver.GET_LATEST_CB_AREA_INFO" /> |
| 124 | </intent-filter> |
| 125 | </receiver> |
| 126 | |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 127 | <receiver android:name="CellBroadcastReceiver"> |
| 128 | <intent-filter> |
xinhe | 0a2aef9 | 2014-09-30 15:14:39 -0700 | [diff] [blame] | 129 | <action android:name="android.intent.action.SERVICE_STATE" /> |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 130 | </intent-filter> |
Sanket Padawe | c4ef611 | 2015-07-14 11:17:26 -0700 | [diff] [blame] | 131 | <intent-filter> |
| 132 | <action android:name="android.intent.action.internal_sim_state_changed" /> |
| 133 | </intent-filter> |
| 134 | |
| 135 | <intent-filter> |
| 136 | <action android:name="android.intent.action.AIRPLANE_MODE" /> |
| 137 | </intent-filter> |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 138 | </receiver> |
| 139 | |
Fabrice Di Meglio | eda3757 | 2014-04-09 18:28:08 -0700 | [diff] [blame] | 140 | <provider |
| 141 | android:name="CellBroadcastSearchIndexableProvider" |
| 142 | android:authorities="com.android.cellbroadcastreceiver" |
| 143 | android:multiprocess="false" |
| 144 | android:grantUriPermissions="true" |
| 145 | android:permission="android.permission.READ_SEARCH_INDEXABLES" |
| 146 | android:exported="true"> |
| 147 | <intent-filter> |
| 148 | <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" /> |
| 149 | </intent-filter> |
| 150 | </provider> |
| 151 | |
Jake Hamby | 50a624a | 2011-05-17 18:49:03 -0700 | [diff] [blame] | 152 | </application> |
| 153 | </manifest> |