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