Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -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 | |
Jordan Liu | 2f4a12c | 2021-01-21 11:51:14 -0800 | [diff] [blame] | 24 | <uses-permission android:name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS" /> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 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" /> |
Jordan Liu | aa643b4 | 2020-11-30 15:01:15 -0800 | [diff] [blame] | 29 | <uses-permission android:name="android.permission.MODIFY_CELL_BROADCASTS" /> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 30 | <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> |
Chen Xu | 53ed486 | 2020-11-01 21:56:48 -0800 | [diff] [blame] | 31 | <uses-permission android:name="android.permission.STATUS_BAR" /> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 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" /> |
Jack Yu | 98edca3 | 2020-02-03 13:58:38 -0800 | [diff] [blame] | 37 | <uses-permission android:name="android.permission.READ_CELL_BROADCASTS" /> |
Chen Xu | b13ce2f | 2020-05-04 13:44:10 -0700 | [diff] [blame] | 38 | <uses-permission android:name="android.permission.READ_SMS" /> |
Jack Yu | a4e668d | 2020-02-13 16:04:41 -0800 | [diff] [blame] | 39 | <uses-permission android:name="android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS"/> |
Jordan Liu | 641bebd | 2020-02-04 13:31:48 -0800 | [diff] [blame] | 40 | <uses-permission android:name="com.android.cellbroadcastservice.FULL_ACCESS_CELL_BROADCAST_HISTORY" /> |
Chen Xu | 915aa49 | 2020-09-21 23:11:36 -0700 | [diff] [blame] | 41 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
Chen Xu | 395d44a | 2021-03-08 10:42:12 +0800 | [diff] [blame] | 42 | <uses-permission android:name="android.permission.BLUETOOTH" /> |
| 43 | <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> |
Steve Elliott | af8e893 | 2021-12-03 16:31:20 -0500 | [diff] [blame] | 44 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 45 | |
Chen Xu | 3246e54 | 2021-06-08 10:23:25 -0700 | [diff] [blame] | 46 | <uses-sdk android:minSdkVersion="21"/> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 47 | |
| 48 | <application android:name="CellBroadcastReceiverApp" |
| 49 | android:label="@string/app_label" |
| 50 | android:icon="@mipmap/ic_launcher_cell_broadcast" |
| 51 | android:backupAgent="CellBroadcastBackupAgent" |
| 52 | android:defaultToDeviceProtectedStorage="true" |
| 53 | android:supportsRtl="true" |
| 54 | android:directBootAware="true"> |
| 55 | |
Jordan Liu | c46de78 | 2019-09-20 16:07:58 -0700 | [diff] [blame] | 56 | <meta-data android:name="com.google.android.backup.api_key" |
| 57 | android:value="AEdPqrEAAAAI2_Lb4sDI0e0twL-kf6GIqXpZIfrR0OhnM1pNJQ" /> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 58 | |
Jordan Liu | c46de78 | 2019-09-20 16:07:58 -0700 | [diff] [blame] | 59 | <service android:name="CellBroadcastAlertAudio" |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 60 | android:exported="false" /> |
| 61 | |
| 62 | <service android:name="CellBroadcastAlertService" |
| 63 | android:exported="false" /> |
| 64 | |
| 65 | <service android:name="CellBroadcastConfigService" |
| 66 | android:exported="false" /> |
| 67 | |
| 68 | <service android:name="CellBroadcastAlertReminder" |
| 69 | android:exported="false" /> |
| 70 | |
| 71 | <provider android:name="CellBroadcastContentProvider" |
Chen Xu | 6d37764 | 2019-10-21 22:55:37 -0700 | [diff] [blame] | 72 | android:authorities="cellbroadcasts-app" |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 73 | android:readPermission="android.permission.READ_CELL_BROADCASTS" /> |
| 74 | |
| 75 | <activity android:name="CellBroadcastListActivity" |
| 76 | android:label="@string/app_label" |
Chen Xu | b46d35c | 2020-08-03 20:21:45 -0700 | [diff] [blame] | 77 | android:theme="@style/CellBroadcastListActivityTheme" |
Ashwini Oruganti | 4871622 | 2020-05-19 18:01:01 -0700 | [diff] [blame] | 78 | android:exported="true" |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 79 | android:configChanges="orientation|keyboardHidden" > |
| 80 | <intent-filter> |
| 81 | <action android:name="android.intent.action.MAIN" /> |
| 82 | <!-- Uncomment this category to show the Cell Broadcasts launcher icon. |
| 83 | Otherwise, set "config_cellBroadcastAppLinks" to true in a config.xml overlay |
| 84 | to add links to Cell Broadcast activities via Settings and MMS menu items. |
| 85 | <category android:name="android.intent.category.LAUNCHER" /> |
| 86 | --> |
| 87 | <category android:name="android.intent.category.DEFAULT" /> |
| 88 | </intent-filter> |
| 89 | <intent-filter> |
| 90 | <action android:name="android.cellbroadcastreceiver.UPDATE_LIST_VIEW" /> |
| 91 | <category android:name="android.intent.category.DEFAULT" /> |
| 92 | </intent-filter> |
| 93 | </activity> |
| 94 | |
Chen Xu | 0f22394 | 2020-05-11 09:19:30 -0700 | [diff] [blame] | 95 | <!-- Alias activity for CellBroadcastListActivity. Once enabled, it will appear in the launcher --> |
| 96 | <activity-alias android:name="CellBroadcastListLauncherActivity" |
| 97 | android:targetActivity="CellBroadcastListActivity" |
| 98 | android:enabled="false" |
| 99 | android:exported="true"> |
| 100 | <intent-filter> |
| 101 | <action android:name="android.intent.action.MAIN" /> |
| 102 | <category android:name="android.intent.category.LAUNCHER" /> |
| 103 | <category android:name="android.intent.category.DEFAULT" /> |
| 104 | </intent-filter> |
| 105 | </activity-alias> |
| 106 | |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 107 | <!-- Settings opened by ListActivity menu, Settings app link or opt-out dialog. --> |
| 108 | <activity android:name="CellBroadcastSettings" |
| 109 | android:theme="@style/CellBroadcastSettingsTheme" |
| 110 | android:label="@string/sms_cb_settings" |
| 111 | android:exported="true" /> |
| 112 | |
| 113 | <activity android:name="CellBroadcastAlertDialog" |
Chen Xu | b46d35c | 2020-08-03 20:21:45 -0700 | [diff] [blame] | 114 | android:theme="@style/CellBroadcastAlertTheme" |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 115 | android:launchMode="singleTask" |
| 116 | android:exported="false" |
| 117 | android:excludeFromRecents="true" |
Jordan Liu | f295b16 | 2020-12-08 12:56:12 -0800 | [diff] [blame] | 118 | android:configChanges="orientation|keyboardHidden|screenSize|keyboard|navigation"> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 119 | <intent-filter> |
| 120 | <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" /> |
| 121 | </intent-filter> |
| 122 | </activity> |
| 123 | |
| 124 | <!-- Container activity for CMAS opt-in/opt-out dialog. --> |
| 125 | <activity android:name="CellBroadcastOptOutActivity" |
| 126 | android:exported="false" /> |
| 127 | |
Ashwini Oruganti | 4871622 | 2020-05-19 18:01:01 -0700 | [diff] [blame] | 128 | <receiver android:name="CellBroadcastReceiver" |
| 129 | android:exported="true"> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 130 | <intent-filter> |
Chen Xu | 027161f | 2019-11-06 20:35:33 -0800 | [diff] [blame] | 131 | <action android:name="android.provider.action.SMS_EMERGENCY_CB_RECEIVED" /> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 132 | <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" /> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 133 | <action android:name="android.provider.Telephony.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED" /> |
| 134 | <action android:name="android.intent.action.LOCALE_CHANGED" /> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 135 | <action android:name="android.telephony.action.DEFAULT_SMS_SUBSCRIPTION_CHANGED" /> |
| 136 | <action android:name="android.telephony.action.CARRIER_CONFIG_CHANGED" /> |
Chen Xu | 3a0c7a0 | 2020-06-23 20:30:31 -0700 | [diff] [blame] | 137 | <action android:name="android.intent.action.SERVICE_STATE" /> |
Chen Xu | 915aa49 | 2020-09-21 23:11:36 -0700 | [diff] [blame] | 138 | <action android:name="android.intent.action.BOOT_COMPLETED" /> |
Jordan Liu | 77b2f04 | 2020-02-04 10:45:32 -0800 | [diff] [blame] | 139 | </intent-filter> |
| 140 | <intent-filter> |
Jack Yu | 28048d0 | 2019-12-05 16:29:59 -0800 | [diff] [blame] | 141 | <action android:name="android.telephony.action.SECRET_CODE" /> |
| 142 | <!-- CMAS: To toggle test mode for cell broadcast testing on userdebug build --> |
| 143 | <data android:scheme="android_secret_code" android:host="2627" /> |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 144 | </intent-filter> |
| 145 | </receiver> |
| 146 | |
Hall Liu | e514bc6 | 2020-08-20 19:06:57 -0700 | [diff] [blame] | 147 | <receiver android:name="com.android.cellbroadcastreceiver.CellBroadcastInternalReceiver" |
| 148 | android:exported="false"> |
| 149 | <!-- No intent filter on purpose: this should only receive explicit intents --> |
| 150 | </receiver> |
| 151 | |
Chen Xu | 1c56de1 | 2019-08-14 21:55:55 -0700 | [diff] [blame] | 152 | <provider |
| 153 | android:name="CellBroadcastSearchIndexableProvider" |
| 154 | android:authorities="com.android.cellbroadcastreceiver" |
| 155 | android:multiprocess="false" |
| 156 | android:grantUriPermissions="true" |
| 157 | android:permission="android.permission.READ_SEARCH_INDEXABLES" |
| 158 | android:exported="true"> |
| 159 | <intent-filter> |
| 160 | <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" /> |
| 161 | </intent-filter> |
| 162 | </provider> |
| 163 | |
| 164 | </application> |
| 165 | </manifest> |