• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18        package="com.android.providers.telephony"
19        coreApp="true"
20        android:sharedUserId="android.uid.phone">
21
22    <uses-permission android:name="android.permission.RECEIVE_SMS" />
23    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
24    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
25    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
26    <uses-permission android:name="android.permission.USE_RESERVED_DISK" />
27
28    <protected-broadcast android:name="android.provider.action.EXTERNAL_PROVIDER_CHANGE" />
29    <protected-broadcast android:name="android.intent.action.CONTENT_CHANGED" />
30
31    <!-- This permission is only used to send the ACTION_EXTERNAL_PROVIDER_CHANGE intent. -->
32    <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
33
34    <application android:process="com.android.phone"
35                 android:allowClearUserData="false"
36                 android:fullBackupOnly="true"
37                 android:backupInForeground="true"
38                 android:backupAgent="TelephonyBackupAgent"
39                 android:restoreAnyVersion="true"
40                 android:label="@string/app_label"
41                 android:icon="@mipmap/ic_launcher_phone"
42                 android:usesCleartextTraffic="true"
43                 android:defaultToDeviceProtectedStorage="true"
44                 android:directBootAware="true">
45
46        <provider android:name="TelephonyProvider"
47                  android:authorities="telephony"
48                  android:exported="true"
49                  android:singleUser="true"
50                  android:multiprocess="false" />
51
52        <provider android:name="ServiceStateProvider"
53                  android:authorities="service-state"
54                  android:exported="true"
55                  android:singleUser="true"
56                  android:writePermission="android.permission.MODIFY_PHONE_STATE"
57                  android:multiprocess="false" />
58
59        <!-- This is a singleton provider that is used by all users.
60             A new instance is not created for each user. And the db is shared
61             as well. -->
62        <provider android:name="SmsProvider"
63                  android:authorities="sms"
64                  android:multiprocess="false"
65                  android:exported="true"
66                  android:singleUser="true"
67                  android:readPermission="android.permission.READ_SMS" />
68
69        <!-- This is a singleton provider that is used by all users.
70             A new instance is not created for each user. And the db is shared
71             as well.
72
73             Note: We do not require a write permission as it is guarded by an app op.
74              -->
75        <provider android:name="MmsProvider"
76                  android:authorities="mms"
77                  android:multiprocess="false"
78                  android:exported="true"
79                  android:singleUser="true"
80                  android:readPermission="android.permission.READ_SMS">
81            <grant-uri-permission android:pathPrefix="/part/" />
82            <grant-uri-permission android:pathPrefix="/drm/" />
83        </provider>
84
85        <!-- This is a singleton provider that is used by all users.
86             A new instance is not created for each user. And the db is shared
87             as well. -->
88        <provider android:name="MmsSmsProvider"
89                  android:authorities="mms-sms"
90                  android:multiprocess="false"
91                  android:exported="true"
92                  android:singleUser="true"
93                  android:readPermission="android.permission.READ_SMS" />
94
95        <provider android:name="CarrierProvider"
96                  android:authorities="carrier_information"
97                  android:exported="true"
98                  android:singleUser="true"
99                  android:multiprocess="false"
100                  android:writePermission="android.permission.MODIFY_PHONE_STATE" />
101
102        <provider android:name="HbpcdLookupProvider"
103                  android:authorities="hbpcd_lookup"
104                  android:exported="true"
105                  android:singleUser="true"
106                  android:multiprocess="false"
107                  android:writePermission="android.permission.MODIFY_PHONE_STATE" />
108
109        <provider android:name="CarrierIdProvider"
110                  android:authorities="carrier_id"
111                  android:exported="true"
112                  android:singleUser="true"
113                  android:multiprocess="false" />
114
115        <service
116            android:name=".TelephonyBackupAgent$DeferredSmsMmsRestoreService"
117            android:exported="false" />
118    </application>
119</manifest>
120