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 <!-- This is a singleton provider that is used by all users. 52 A new instance is not created for each user. And the db is shared 53 as well. --> 54 <provider android:name="SmsProvider" 55 android:authorities="sms" 56 android:multiprocess="false" 57 android:exported="true" 58 android:singleUser="true" 59 android:readPermission="android.permission.READ_SMS" /> 60 61 <!-- This is a singleton provider that is used by all users. 62 A new instance is not created for each user. And the db is shared 63 as well. 64 65 Note: We do not require a write permission as it is guarded by an app op. 66 --> 67 <provider android:name="MmsProvider" 68 android:authorities="mms" 69 android:multiprocess="false" 70 android:exported="true" 71 android:singleUser="true" 72 android:readPermission="android.permission.READ_SMS"> 73 <grant-uri-permission android:pathPrefix="/part/" /> 74 <grant-uri-permission android:pathPrefix="/drm/" /> 75 </provider> 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 <provider android:name="MmsSmsProvider" 81 android:authorities="mms-sms" 82 android:multiprocess="false" 83 android:exported="true" 84 android:singleUser="true" 85 android:readPermission="android.permission.READ_SMS" /> 86 87 <provider android:name="HbpcdLookupProvider" 88 android:authorities="hbpcd_lookup" 89 android:exported="true" 90 android:singleUser="true" 91 android:multiprocess="false" 92 android:writePermission="android.permission.MODIFY_PHONE_STATE" /> 93 94 <service 95 android:name=".TelephonyBackupAgent$DeferredSmsMmsRestoreService" 96 android:exported="false" /> 97 </application> 98 </manifest> 99