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