Home | History | Annotate | Download | only in TelephonyProvider
      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     <application android:process="com.android.phone"
     28                  android:allowClearUserData="false"
     29                  android:allowBackup="false"
     30                  android:label="@string/app_label"
     31                  android:icon="@mipmap/ic_launcher_phone"
     32                  android:usesCleartextTraffic="false">
     33 
     34         <provider android:name="TelephonyProvider"
     35                   android:authorities="telephony"
     36                   android:exported="true"
     37                   android:singleUser="true"
     38                   android:multiprocess="false" />
     39 
     40         <!-- This is a singleton provider that is used by all users.
     41              A new instance is not created for each user. And the db is shared
     42              as well. -->
     43         <provider android:name="SmsProvider"
     44                   android:authorities="sms"
     45                   android:multiprocess="false"
     46                   android:exported="true"
     47                   android:singleUser="true"
     48                   android:readPermission="android.permission.READ_SMS" />
     49 
     50         <!-- This is a singleton provider that is used by all users.
     51              A new instance is not created for each user. And the db is shared
     52              as well.
     53 
     54              Note: We do not require a write permission as it is guarded by an app op.
     55               -->
     56         <provider android:name="MmsProvider"
     57                   android:authorities="mms"
     58                   android:multiprocess="false"
     59                   android:exported="true"
     60                   android:singleUser="true"
     61                   android:readPermission="android.permission.READ_SMS">
     62             <grant-uri-permission android:pathPrefix="/part/" />
     63             <grant-uri-permission android:pathPrefix="/drm/" />
     64         </provider>
     65 
     66         <!-- This is a singleton provider that is used by all users.
     67              A new instance is not created for each user. And the db is shared
     68              as well. -->
     69         <provider android:name="MmsSmsProvider"
     70                   android:authorities="mms-sms"
     71                   android:multiprocess="false"
     72                   android:exported="true"
     73                   android:singleUser="true"
     74                   android:readPermission="android.permission.READ_SMS" />
     75 
     76         <provider android:name="HbpcdLookupProvider"
     77                   android:authorities="hbpcd_lookup"
     78                   android:exported="true"
     79                   android:singleUser="true"
     80                   android:multiprocess="false"
     81                   android:writePermission="android.permission.MODIFY_PHONE_STATE" />
     82     </application>
     83 </manifest>
     84