• 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    <permission android:name="android.permission.ACCESS_TELEPHONY_SIMINFO_DB"
23                android:label="Read and write SIMINFO table in TelephonyProvider"
24                android:protectionLevel="signature" />
25
26    <uses-permission android:name="android.permission.RECEIVE_SMS" />
27    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
28    <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
29    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
30    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
31    <uses-permission android:name="android.permission.USE_RESERVED_DISK" />
32
33    <!-- Used to access PlatformCompat for security fix enforcement -->
34    <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG" />
35    <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE" />
36
37    <protected-broadcast android:name="android.provider.action.EXTERNAL_PROVIDER_CHANGE" />
38    <protected-broadcast android:name="android.intent.action.CONTENT_CHANGED" />
39
40    <!-- This permission is only used to send the ACTION_EXTERNAL_PROVIDER_CHANGE intent. -->
41    <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
42    <!-- Allows accessing the messages on ICC -->
43    <uses-permission android:name="android.permission.ACCESS_MESSAGES_ON_ICC" />
44
45    <application android:process="com.android.phone"
46                 android:allowClearUserData="false"
47                 android:fullBackupOnly="true"
48                 android:backupInForeground="true"
49                 android:backupAgent="TelephonyBackupAgent"
50                 android:restoreAnyVersion="true"
51                 android:label="@string/app_label"
52                 android:icon="@mipmap/ic_launcher_phone"
53                 android:usesCleartextTraffic="true"
54                 android:forceQueryable="true"
55                 android:defaultToDeviceProtectedStorage="true"
56                 android:directBootAware="true">
57
58        <provider android:name="TelephonyProvider"
59                  android:authorities="telephony"
60                  android:exported="true"
61                  android:singleUser="true"
62                  android:multiprocess="false" />
63
64        <!-- This is a singleton provider that is used by all users.
65             A new instance is not created for each user. And the db is shared
66             as well. -->
67        <provider android:name="SmsProvider"
68                  android:authorities="sms"
69                  android:multiprocess="false"
70                  android:exported="true"
71                  android:singleUser="true"
72                  android:readPermission="android.permission.READ_SMS" />
73
74        <provider android:name="SmsChangesProvider"
75                  android:authorities="sms-changes"
76                  android:multiprocess="false"
77                  android:exported="true"
78                  android:singleUser="true"
79                  android:readPermission="android.permission.READ_SMS" />
80
81        <!-- This is a singleton provider that is used by all users.
82             A new instance is not created for each user. And the db is shared
83             as well.
84
85             Note: We do not require a write permission as it is guarded by an app op.
86              -->
87        <provider android:name="MmsProvider"
88                  android:authorities="mms"
89                  android:multiprocess="false"
90                  android:exported="true"
91                  android:singleUser="true"
92                  android:readPermission="android.permission.READ_SMS">
93            <grant-uri-permission android:pathPrefix="/part/" />
94            <grant-uri-permission android:pathPrefix="/drm/" />
95        </provider>
96
97        <!-- This is a singleton provider that is used by all users.
98             A new instance is not created for each user. And the db is shared
99             as well. -->
100        <provider android:name="MmsSmsProvider"
101                  android:authorities="mms-sms"
102                  android:multiprocess="false"
103                  android:exported="true"
104                  android:singleUser="true"
105                  android:readPermission="android.permission.READ_SMS" />
106
107        <provider android:name="CarrierProvider"
108                  android:authorities="carrier_information"
109                  android:exported="true"
110                  android:singleUser="true"
111                  android:multiprocess="false"
112                  android:writePermission="android.permission.MODIFY_PHONE_STATE" />
113
114        <provider android:name="HbpcdLookupProvider"
115                  android:authorities="hbpcd_lookup"
116                  android:exported="true"
117                  android:singleUser="true"
118                  android:multiprocess="false"
119                  android:writePermission="android.permission.MODIFY_PHONE_STATE" />
120
121        <provider android:name="CarrierIdProvider"
122                  android:authorities="carrier_id"
123                  android:exported="true"
124                  android:singleUser="true"
125                  android:multiprocess="false" />
126
127        <service
128            android:name=".TelephonyBackupAgent$DeferredSmsMmsRestoreService"
129            android:exported="false" />
130    </application>
131</manifest>
132