• 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.RECEIVE_SMS" />
25    <uses-permission android:name="android.permission.RECEIVE_EMERGENCY_BROADCAST" />
26    <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
27    <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
28    <uses-permission android:name="android.permission.WAKE_LOCK" />
29    <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
30    <uses-permission android:name="android.permission.VIBRATE" />
31    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
32    <uses-permission android:name="android.permission.MANAGE_USERS" />
33    <uses-permission android:name="android.permission.DEVICE_POWER" />
34    <uses-permission android:name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
35
36    <uses-sdk android:minSdkVersion="21"/>
37
38    <application android:name="CellBroadcastReceiverApp"
39            android:label="@string/app_label"
40            android:icon="@mipmap/ic_launcher_cell_broadcast"
41            android:backupAgent="CellBroadcastBackupAgent"
42            android:defaultToDeviceProtectedStorage="true"
43            android:supportsRtl="true"
44            android:directBootAware="true">
45
46        <meta-data android:name="com.google.android.backup.api_key"
47            android:value="AEdPqrEAAAAI2_Lb4sDI0e0twL-kf6GIqXpZIfrR0OhnM1pNJQ" />
48
49        <service android:name="CellBroadcastAlertAudio"
50                 android:exported="false" />
51
52        <service android:name="CellBroadcastAlertService"
53                 android:exported="false" />
54
55        <service android:name="CellBroadcastConfigService"
56                 android:exported="false" />
57
58        <service android:name="CellBroadcastAlertReminder"
59                 android:exported="false" />
60
61        <provider android:name="CellBroadcastContentProvider"
62                  android:authorities="cellbroadcasts"
63                  android:readPermission="android.permission.READ_CELL_BROADCASTS" />
64
65        <activity android:name="CellBroadcastListActivity"
66                  android:label="@string/app_label"
67                  android:theme="@style/CellBroadcastSettingsTheme"
68                  android:configChanges="orientation|keyboardHidden" >
69            <intent-filter>
70                <action android:name="android.intent.action.MAIN" />
71<!-- Uncomment this category to show the Cell Broadcasts launcher icon.
72     Otherwise, set "config_cellBroadcastAppLinks" to true in a config.xml overlay
73     to add links to Cell Broadcast activities via Settings and MMS menu items.
74                <category android:name="android.intent.category.LAUNCHER" />
75 -->
76                <category android:name="android.intent.category.DEFAULT" />
77            </intent-filter>
78            <intent-filter>
79                <action android:name="android.cellbroadcastreceiver.UPDATE_LIST_VIEW" />
80                <category android:name="android.intent.category.DEFAULT" />
81            </intent-filter>
82        </activity>
83
84        <!-- Settings opened by ListActivity menu, Settings app link or opt-out dialog. -->
85        <activity android:name="CellBroadcastSettings"
86                  android:theme="@style/CellBroadcastSettingsTheme"
87                  android:label="@string/sms_cb_settings"
88                  android:exported="true" />
89
90        <activity android:name="CellBroadcastAlertDialog"
91                  android:theme="@android:style/Theme.DeviceDefault.Light.Dialog"
92                  android:launchMode="singleTask"
93                  android:exported="false"
94                  android:excludeFromRecents="true"
95                  android:configChanges="orientation|keyboardHidden|keyboard|navigation">
96            <intent-filter>
97                <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" />
98            </intent-filter>
99        </activity>
100
101        <!-- Container activity for CMAS opt-in/opt-out dialog. -->
102        <activity android:name="CellBroadcastOptOutActivity"
103                  android:exported="false" />
104
105        <!-- Require sender permissions to prevent SMS spoofing -->
106        <receiver android:name="PrivilegedCellBroadcastReceiver"
107            android:permission="android.permission.BROADCAST_SMS">
108            <intent-filter>
109                <action android:name="android.provider.Telephony.SMS_EMERGENCY_CB_RECEIVED" />
110                <action android:name="android.provider.Telephony.SMS_CB_RECEIVED" />
111                <action android:name="android.cellbroadcastreceiver.START_CONFIG" />
112                <action android:name="android.provider.Telephony.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED" />
113                <action android:name="android.intent.action.LOCALE_CHANGED" />
114            </intent-filter>
115        </receiver>
116
117        <!-- Require sender permission for querying latest area info broadcast -->
118        <receiver android:name="CellBroadcastAreaInfoReceiver"
119            android:permission="android.permission.READ_PHONE_STATE">
120            <intent-filter>
121                 <action android:name="com.android.cellbroadcastreceiver.GET_LATEST_CB_AREA_INFO" />
122            </intent-filter>
123        </receiver>
124
125        <receiver android:name="CellBroadcastReceiver">
126            <intent-filter>
127                 <action android:name="android.telephony.action.DEFAULT_SMS_SUBSCRIPTION_CHANGED" />
128                 <action android:name="android.telephony.action.CARRIER_CONFIG_CHANGED" />
129                 <action android:name="android.intent.action.SERVICE_STATE" />
130            </intent-filter>
131        </receiver>
132
133        <provider
134                android:name="CellBroadcastSearchIndexableProvider"
135                android:authorities="com.android.cellbroadcastreceiver"
136                android:multiprocess="false"
137                android:grantUriPermissions="true"
138                android:permission="android.permission.READ_SEARCH_INDEXABLES"
139                android:exported="true">
140            <intent-filter>
141                <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
142            </intent-filter>
143        </provider>
144
145    </application>
146</manifest>
147