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 <protected-broadcast android:name="android.provider.action.EXTERNAL_PROVIDER_CHANGE" /> 30 <protected-broadcast android:name="android.intent.action.CONTENT_CHANGED" /> 31 32 <!-- This permission is only used to send the ACTION_EXTERNAL_PROVIDER_CHANGE intent. --> 33 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /> 34 35 <application android:process="com.android.phone" 36 android:allowClearUserData="false" 37 android:fullBackupOnly="true" 38 android:backupInForeground="true" 39 android:backupAgent="TelephonyBackupAgent" 40 android:restoreAnyVersion="true" 41 android:label="@string/app_label" 42 android:icon="@mipmap/ic_launcher_phone" 43 android:usesCleartextTraffic="true" 44 android:defaultToDeviceProtectedStorage="true" 45 android:directBootAware="true"> 46 47 <provider android:name="TelephonyProvider" 48 android:authorities="telephony" 49 android:exported="true" 50 android:singleUser="true" 51 android:multiprocess="false" /> 52 53 <provider android:name="ServiceStateProvider" 54 android:authorities="service-state" 55 android:exported="true" 56 android:singleUser="true" 57 android:writePermission="android.permission.MODIFY_PHONE_STATE" 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 <provider android:name="RcsProvider" 124 android:authorities="rcs" 125 android:multiprocess="false" 126 android:exported="false" 127 android:singleUser="true" /> 128 129 <service 130 android:name=".TelephonyBackupAgent$DeferredSmsMmsRestoreService" 131 android:exported="false" /> 132 </application> 133</manifest> 134