• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:enableOnBackInvokedCallback="false"
120        android:configChanges="orientation|keyboardHidden|screenSize|keyboard|navigation">
121      <intent-filter>
122        <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" />
123      </intent-filter>
124    </activity>
125
126    <!-- Container activity for CMAS opt-in/opt-out dialog. -->
127    <activity android:name="CellBroadcastOptOutActivity"
128        android:excludeFromRecents="true"
129        android:exported="false" />
130
131    <receiver android:name="CellBroadcastReceiver"
132        android:exported="true">
133      <intent-filter>
134        <action android:name="android.provider.action.SMS_EMERGENCY_CB_RECEIVED" />
135        <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" />
136        <action android:name="android.provider.Telephony.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED" />
137        <action android:name="android.intent.action.LOCALE_CHANGED" />
138        <action android:name="android.telephony.action.DEFAULT_SMS_SUBSCRIPTION_CHANGED" />
139        <action android:name="android.telephony.action.CARRIER_CONFIG_CHANGED" />
140        <action android:name="android.intent.action.SERVICE_STATE" />
141        <action android:name="android.intent.action.BOOT_COMPLETED" />
142      </intent-filter>
143      <intent-filter>
144        <action android:name="android.telephony.action.SECRET_CODE" />
145        <!-- CMAS: To toggle test mode for cell broadcast testing on userdebug build -->
146        <data android:scheme="android_secret_code" android:host="2627" />
147      </intent-filter>
148    </receiver>
149
150    <receiver android:name="com.android.cellbroadcastreceiver.CellBroadcastInternalReceiver"
151              android:exported="false">
152      <!-- No intent filter on purpose: this should only receive explicit intents -->
153    </receiver>
154
155    <provider
156        android:name="CellBroadcastSearchIndexableProvider"
157        android:authorities="com.android.cellbroadcastreceiver"
158        android:multiprocess="false"
159        android:grantUriPermissions="true"
160        android:permission="android.permission.READ_SEARCH_INDEXABLES"
161        android:exported="true">
162      <intent-filter>
163        <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
164      </intent-filter>
165    </provider>
166
167  </application>
168</manifest>
169