blob: 4e2992b08c2322d9470230eebde3d00f12fb917b [file] [log] [blame]
Chen Xu1c56de12019-08-14 21:55:55 -07001<?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 Liu2f4a12c2021-01-21 11:51:14 -080024 <uses-permission android:name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS" />
Chen Xu1c56de12019-08-14 21:55:55 -070025 <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 Liuaa643b42020-11-30 15:01:15 -080029 <uses-permission android:name="android.permission.MODIFY_CELL_BROADCASTS" />
Chen Xu1c56de12019-08-14 21:55:55 -070030 <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
31 <uses-permission android:name="android.permission.VIBRATE" />
32 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
33 <uses-permission android:name="android.permission.MANAGE_USERS" />
34 <uses-permission android:name="android.permission.DEVICE_POWER" />
35 <uses-permission android:name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
Jack Yu98edca32020-02-03 13:58:38 -080036 <uses-permission android:name="android.permission.READ_CELL_BROADCASTS" />
Chen Xub13ce2f2020-05-04 13:44:10 -070037 <uses-permission android:name="android.permission.READ_SMS" />
Jack Yua4e668d2020-02-13 16:04:41 -080038 <uses-permission android:name="android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS"/>
Jordan Liu641bebd2020-02-04 13:31:48 -080039 <uses-permission android:name="com.android.cellbroadcastservice.FULL_ACCESS_CELL_BROADCAST_HISTORY" />
Chen Xu915aa492020-09-21 23:11:36 -070040 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Chen Xu395d44a2021-03-08 10:42:12 +080041 <uses-permission android:name="android.permission.BLUETOOTH" />
42 <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
Chen Xu1c56de12019-08-14 21:55:55 -070043
Chen Xu3246e542021-06-08 10:23:25 -070044 <uses-sdk android:minSdkVersion="21"/>
Chen Xu1c56de12019-08-14 21:55:55 -070045
46 <application android:name="CellBroadcastReceiverApp"
47 android:label="@string/app_label"
48 android:icon="@mipmap/ic_launcher_cell_broadcast"
49 android:backupAgent="CellBroadcastBackupAgent"
50 android:defaultToDeviceProtectedStorage="true"
51 android:supportsRtl="true"
52 android:directBootAware="true">
53
Jordan Liuc46de782019-09-20 16:07:58 -070054 <meta-data android:name="com.google.android.backup.api_key"
55 android:value="AEdPqrEAAAAI2_Lb4sDI0e0twL-kf6GIqXpZIfrR0OhnM1pNJQ" />
Chen Xu1c56de12019-08-14 21:55:55 -070056
Jordan Liuc46de782019-09-20 16:07:58 -070057 <service android:name="CellBroadcastAlertAudio"
Chen Xu1c56de12019-08-14 21:55:55 -070058 android:exported="false" />
59
60 <service android:name="CellBroadcastAlertService"
61 android:exported="false" />
62
63 <service android:name="CellBroadcastConfigService"
64 android:exported="false" />
65
66 <service android:name="CellBroadcastAlertReminder"
67 android:exported="false" />
68
69 <provider android:name="CellBroadcastContentProvider"
Chen Xu6d377642019-10-21 22:55:37 -070070 android:authorities="cellbroadcasts-app"
Chen Xu1c56de12019-08-14 21:55:55 -070071 android:readPermission="android.permission.READ_CELL_BROADCASTS" />
72
73 <activity android:name="CellBroadcastListActivity"
74 android:label="@string/app_label"
Chen Xub46d35c2020-08-03 20:21:45 -070075 android:theme="@style/CellBroadcastListActivityTheme"
Ashwini Oruganti48716222020-05-19 18:01:01 -070076 android:exported="true"
Chen Xu1c56de12019-08-14 21:55:55 -070077 android:configChanges="orientation|keyboardHidden" >
78 <intent-filter>
79 <action android:name="android.intent.action.MAIN" />
80 <!-- Uncomment this category to show the Cell Broadcasts launcher icon.
81 Otherwise, set "config_cellBroadcastAppLinks" to true in a config.xml overlay
82 to add links to Cell Broadcast activities via Settings and MMS menu items.
83 <category android:name="android.intent.category.LAUNCHER" />
84 -->
85 <category android:name="android.intent.category.DEFAULT" />
86 </intent-filter>
87 <intent-filter>
88 <action android:name="android.cellbroadcastreceiver.UPDATE_LIST_VIEW" />
89 <category android:name="android.intent.category.DEFAULT" />
90 </intent-filter>
91 </activity>
92
Chen Xu0f223942020-05-11 09:19:30 -070093 <!-- Alias activity for CellBroadcastListActivity. Once enabled, it will appear in the launcher -->
94 <activity-alias android:name="CellBroadcastListLauncherActivity"
95 android:targetActivity="CellBroadcastListActivity"
96 android:enabled="false"
97 android:exported="true">
98 <intent-filter>
99 <action android:name="android.intent.action.MAIN" />
100 <category android:name="android.intent.category.LAUNCHER" />
101 <category android:name="android.intent.category.DEFAULT" />
102 </intent-filter>
103 </activity-alias>
104
Chen Xu1c56de12019-08-14 21:55:55 -0700105 <!-- Settings opened by ListActivity menu, Settings app link or opt-out dialog. -->
106 <activity android:name="CellBroadcastSettings"
107 android:theme="@style/CellBroadcastSettingsTheme"
108 android:label="@string/sms_cb_settings"
109 android:exported="true" />
110
111 <activity android:name="CellBroadcastAlertDialog"
Chen Xub46d35c2020-08-03 20:21:45 -0700112 android:theme="@style/CellBroadcastAlertTheme"
Chen Xu1c56de12019-08-14 21:55:55 -0700113 android:launchMode="singleTask"
114 android:exported="false"
115 android:excludeFromRecents="true"
Jordan Liuf295b162020-12-08 12:56:12 -0800116 android:configChanges="orientation|keyboardHidden|screenSize|keyboard|navigation">
Chen Xu1c56de12019-08-14 21:55:55 -0700117 <intent-filter>
118 <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" />
119 </intent-filter>
120 </activity>
121
122 <!-- Container activity for CMAS opt-in/opt-out dialog. -->
123 <activity android:name="CellBroadcastOptOutActivity"
124 android:exported="false" />
125
Ashwini Oruganti48716222020-05-19 18:01:01 -0700126 <receiver android:name="CellBroadcastReceiver"
127 android:exported="true">
Chen Xu1c56de12019-08-14 21:55:55 -0700128 <intent-filter>
Chen Xu027161f2019-11-06 20:35:33 -0800129 <action android:name="android.provider.action.SMS_EMERGENCY_CB_RECEIVED" />
Chen Xu1c56de12019-08-14 21:55:55 -0700130 <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" />
131 <action android:name="android.cellbroadcastreceiver.START_CONFIG" />
132 <action android:name="android.provider.Telephony.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED" />
133 <action android:name="android.intent.action.LOCALE_CHANGED" />
Chen Xu1c56de12019-08-14 21:55:55 -0700134 <action android:name="android.telephony.action.DEFAULT_SMS_SUBSCRIPTION_CHANGED" />
135 <action android:name="android.telephony.action.CARRIER_CONFIG_CHANGED" />
Chen Xu3a0c7a02020-06-23 20:30:31 -0700136 <action android:name="android.intent.action.SERVICE_STATE" />
Chen Xu915aa492020-09-21 23:11:36 -0700137 <action android:name="android.intent.action.BOOT_COMPLETED" />
Mars Lin6605f5d2021-05-14 17:58:38 +0800138 <action android:name="android.telephony.action.SIM_CARD_STATE_CHANGED" />
Jordan Liu77b2f042020-02-04 10:45:32 -0800139 </intent-filter>
140 <intent-filter>
Jack Yu28048d02019-12-05 16:29:59 -0800141 <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 Xu1c56de12019-08-14 21:55:55 -0700144 </intent-filter>
145 </receiver>
146
Hall Liue514bc62020-08-20 19:06:57 -0700147 <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 Xu1c56de12019-08-14 21:55:55 -0700152 <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>