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