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