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.BROADCAST_CLOSE_SYSTEM_DIALOGS" /> 25 <uses-permission android:name="android.permission.RECEIVE_SMS" /> 26 <uses-permission android:name="android.permission.RECEIVE_EMERGENCY_BROADCAST" /> 27 <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" /> 28 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /> 29 <uses-permission android:name="android.permission.MODIFY_CELL_BROADCASTS" /> 30 <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> 31 <uses-permission android:name="android.permission.STATUS_BAR" /> 32 <uses-permission android:name="android.permission.VIBRATE" /> 33 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> 34 <uses-permission android:name="android.permission.MANAGE_USERS" /> 35 <uses-permission android:name="android.permission.DEVICE_POWER" /> 36 <uses-permission android:name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" /> 37 <uses-permission android:name="android.permission.READ_CELL_BROADCASTS" /> 38 <uses-permission android:name="android.permission.READ_SMS" /> 39 <uses-permission android:name="android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS"/> 40 <uses-permission android:name="com.android.cellbroadcastservice.FULL_ACCESS_CELL_BROADCAST_HISTORY" /> 41 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> 42 <uses-permission android:name="android.permission.BLUETOOTH" /> 43 <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> 44 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> 45 <uses-permission android:name="android.permission.WAKE_LOCK" /> 46 47 <uses-sdk android:minSdkVersion="21"/> 48 49 <application android:name="CellBroadcastReceiverApp" 50 android:label="@string/app_label" 51 android:icon="@mipmap/ic_launcher_cell_broadcast" 52 android:backupAgent="CellBroadcastBackupAgent" 53 android:defaultToDeviceProtectedStorage="true" 54 android:supportsRtl="true" 55 android:directBootAware="true"> 56 57 <meta-data android:name="com.google.android.backup.api_key" 58 android:value="AEdPqrEAAAAI2_Lb4sDI0e0twL-kf6GIqXpZIfrR0OhnM1pNJQ" /> 59 60 <service android:name="CellBroadcastAlertAudio" 61 android:exported="false" /> 62 63 <service android:name="CellBroadcastAlertService" 64 android:exported="false" /> 65 66 <service android:name="CellBroadcastConfigService" 67 android:exported="false" /> 68 69 <service android:name="CellBroadcastAlertReminder" 70 android:exported="false" /> 71 72 <provider android:name="CellBroadcastContentProvider" 73 android:authorities="cellbroadcasts-app" 74 android:readPermission="android.permission.READ_CELL_BROADCASTS" /> 75 76 <activity android:name="CellBroadcastListActivity" 77 android:label="@string/app_label" 78 android:theme="@style/CellBroadcastListActivityTheme" 79 android:exported="true" 80 android:configChanges="orientation|keyboardHidden" > 81 <intent-filter> 82 <action android:name="android.intent.action.MAIN" /> 83 <!-- Uncomment this category to show the Cell Broadcasts launcher icon. 84 Otherwise, set "config_cellBroadcastAppLinks" to true in a config.xml overlay 85 to add links to Cell Broadcast activities via Settings and MMS menu items. 86 <category android:name="android.intent.category.LAUNCHER" /> 87 --> 88 <category android:name="android.intent.category.DEFAULT" /> 89 </intent-filter> 90 <intent-filter> 91 <action android:name="android.cellbroadcastreceiver.UPDATE_LIST_VIEW" /> 92 <category android:name="android.intent.category.DEFAULT" /> 93 </intent-filter> 94 </activity> 95 96 <!-- Alias activity for CellBroadcastListActivity. Once enabled, it will appear in the launcher --> 97 <activity-alias android:name="CellBroadcastListLauncherActivity" 98 android:targetActivity="CellBroadcastListActivity" 99 android:enabled="false" 100 android:exported="true"> 101 <intent-filter> 102 <action android:name="android.intent.action.MAIN" /> 103 <category android:name="android.intent.category.LAUNCHER" /> 104 <category android:name="android.intent.category.DEFAULT" /> 105 </intent-filter> 106 </activity-alias> 107 108 <!-- Settings opened by ListActivity menu, Settings app link or opt-out dialog. --> 109 <activity android:name="CellBroadcastSettings" 110 android:theme="@style/CellBroadcastSettingsTheme" 111 android:label="@string/sms_cb_settings" 112 android:exported="true" /> 113 114 <activity android:name="CellBroadcastAlertDialog" 115 android:theme="@style/CellBroadcastAlertTheme" 116 android:launchMode="singleTask" 117 android:exported="false" 118 android:excludeFromRecents="true" 119 android:configChanges="orientation|keyboardHidden|screenSize|keyboard|navigation"> 120 <intent-filter> 121 <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" /> 122 </intent-filter> 123 </activity> 124 125 <!-- Container activity for CMAS opt-in/opt-out dialog. --> 126 <activity android:name="CellBroadcastOptOutActivity" 127 android:excludeFromRecents="true" 128 android:exported="false" /> 129 130 <receiver android:name="CellBroadcastReceiver" 131 android:exported="true"> 132 <intent-filter> 133 <action android:name="android.provider.action.SMS_EMERGENCY_CB_RECEIVED" /> 134 <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" /> 135 <action android:name="android.provider.Telephony.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED" /> 136 <action android:name="android.intent.action.LOCALE_CHANGED" /> 137 <action android:name="android.telephony.action.DEFAULT_SMS_SUBSCRIPTION_CHANGED" /> 138 <action android:name="android.telephony.action.CARRIER_CONFIG_CHANGED" /> 139 <action android:name="android.intent.action.SERVICE_STATE" /> 140 <action android:name="android.intent.action.BOOT_COMPLETED" /> 141 </intent-filter> 142 <intent-filter> 143 <action android:name="android.telephony.action.SECRET_CODE" /> 144 <!-- CMAS: To toggle test mode for cell broadcast testing on userdebug build --> 145 <data android:scheme="android_secret_code" android:host="2627" /> 146 </intent-filter> 147 </receiver> 148 149 <receiver android:name="com.android.cellbroadcastreceiver.CellBroadcastInternalReceiver" 150 android:exported="false"> 151 <!-- No intent filter on purpose: this should only receive explicit intents --> 152 </receiver> 153 154 <provider 155 android:name="CellBroadcastSearchIndexableProvider" 156 android:authorities="com.android.cellbroadcastreceiver" 157 android:multiprocess="false" 158 android:grantUriPermissions="true" 159 android:permission="android.permission.READ_SEARCH_INDEXABLES" 160 android:exported="true"> 161 <intent-filter> 162 <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" /> 163 </intent-filter> 164 </provider> 165 166 </application> 167</manifest> 168