Home | History | Annotate | Download | only in Mms
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4  * Copyright (C) 2007-2008 Esmertec AG.
      5  * Copyright (C) 2007-2008 The Android Open Source Project
      6  *
      7  * Licensed under the Apache License, Version 2.0 (the "License");
      8  * you may not use this file except in compliance with the License.
      9  * You may obtain a copy of the License at
     10  *
     11  *      http://www.apache.org/licenses/LICENSE-2.0
     12  *
     13  * Unless required by applicable law or agreed to in writing, software
     14  * distributed under the License is distributed on an "AS IS" BASIS,
     15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16  * See the License for the specific language governing permissions and
     17  * limitations under the License.
     18  */
     19 -->
     20 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     21         package="com.android.mms">
     22 
     23     <original-package android:name="com.android.mms" />
     24 
     25     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
     26     <uses-permission android:name="android.permission.CALL_PHONE" />
     27     <uses-permission android:name="android.permission.READ_CONTACTS" />
     28     <uses-permission android:name="android.permission.WRITE_CONTACTS" />
     29     <uses-permission android:name="android.permission.RECEIVE_SMS" />
     30     <uses-permission android:name="android.permission.RECEIVE_MMS" />
     31     <uses-permission android:name="android.permission.SEND_SMS" />
     32     <uses-permission android:name="android.permission.VIBRATE" />
     33     <uses-permission android:name="android.permission.INTERNET" />
     34     <uses-permission android:name="android.permission.READ_SMS"/>
     35     <uses-permission android:name="android.permission.WRITE_SMS"/>
     36     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
     37     <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
     38     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
     39     <uses-permission android:name="android.permission.WAKE_LOCK" />
     40     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
     41     <uses-permission android:name="android.permission.INSTALL_DRM" />
     42 
     43     <application android:name="MmsApp"
     44             android:label="@string/app_label"
     45             android:icon="@drawable/ic_launcher_smsmms"
     46             android:taskAffinity="android.task.mms"
     47             android:allowTaskReparenting="true">
     48 
     49         <service android:name=".transaction.TransactionService"
     50                  android:exported="true" />
     51 
     52         <service android:name=".transaction.SmsReceiverService"
     53                  android:exported="true" />
     54 
     55         <activity android:name=".ui.ConversationList"
     56                   android:label="@string/app_label"
     57                   android:configChanges="orientation|keyboardHidden"
     58                   android:launchMode="singleTop">
     59             <intent-filter>
     60                 <action android:name="android.intent.action.MAIN" />
     61                 <category android:name="android.intent.category.LAUNCHER" />
     62                 <category android:name="android.intent.category.DEFAULT" />
     63             </intent-filter>
     64             <intent-filter>
     65                 <action android:name="android.intent.action.MAIN" />
     66                 <category android:name="android.intent.category.DEFAULT" />
     67                 <data android:mimeType="vnd.android.cursor.dir/mms" />
     68             </intent-filter>
     69             <intent-filter>
     70                 <action android:name="android.intent.action.MAIN" />
     71                 <category android:name="android.intent.category.DEFAULT" />
     72                 <data android:mimeType="vnd.android-dir/mms-sms" />
     73             </intent-filter>
     74         </activity>
     75 
     76         <activity android:name=".ui.ComposeMessageActivity"
     77                   android:configChanges="orientation|keyboardHidden"
     78                   android:windowSoftInputMode="stateHidden"
     79                   android:launchMode="singleTop" >
     80             <intent-filter>
     81                 <action android:name="android.intent.action.VIEW" />
     82                 <category android:name="android.intent.category.DEFAULT" />
     83                 <data android:mimeType="vnd.android-dir/mms-sms" />
     84             </intent-filter>
     85             <intent-filter>
     86                 <action android:name="android.intent.action.VIEW" />
     87                 <action android:name="android.intent.action.SENDTO" />
     88                 <category android:name="android.intent.category.DEFAULT" />
     89                 <category android:name="android.intent.category.BROWSABLE" />
     90                 <data android:scheme="sms" />
     91                 <data android:scheme="smsto" />
     92             </intent-filter>
     93             <intent-filter>
     94                 <action android:name="android.intent.action.VIEW" />
     95                 <action android:name="android.intent.action.SENDTO" />
     96                 <category android:name="android.intent.category.DEFAULT" />
     97                 <category android:name="android.intent.category.BROWSABLE" />
     98                 <data android:scheme="mms" />
     99                 <data android:scheme="mmsto" />
    100             </intent-filter>
    101            <intent-filter>
    102                <action android:name="android.intent.action.SEND" />
    103                <category android:name="android.intent.category.DEFAULT" />
    104                <data android:mimeType="image/*" />
    105            </intent-filter>
    106            <intent-filter>
    107                <action android:name="android.intent.action.SEND" />
    108                <category android:name="android.intent.category.DEFAULT" />
    109                <data android:mimeType="video/*" />
    110            </intent-filter>
    111            <intent-filter>
    112                <action android:name="android.intent.action.SEND" />
    113                <category android:name="android.intent.category.DEFAULT" />
    114                <data android:mimeType="text/plain" />
    115            </intent-filter>
    116            <intent-filter>
    117                <action android:name="android.intent.action.SEND_MULTIPLE" />
    118                <category android:name="android.intent.category.DEFAULT" />
    119                <data android:mimeType="*/*" />
    120            </intent-filter>
    121         </activity>
    122 
    123         <activity-alias android:name=".ui.ForwardMessageActivity"
    124                   android:targetActivity=".ui.ComposeMessageActivity"
    125                   android:configChanges="orientation|keyboardHidden"
    126                   android:windowSoftInputMode="stateHidden" >
    127         </activity-alias>
    128 
    129         <activity android:name=".ui.DeliveryReportActivity"
    130             android:label="@string/delivery_report_activity"
    131             android:theme="@android:style/Theme.Dialog">
    132         </activity>
    133 
    134         <activity android:name=".ui.WarnOfStorageLimitsActivity"
    135                 android:theme="@android:style/Theme.Dialog"
    136                 android:label="@string/storage_limits_activity"
    137                 android:excludeFromRecents="true">
    138         </activity>
    139 
    140         <activity android:name=".ui.EditSlideDurationActivity"
    141             android:label="@string/change_duration_activity"
    142             android:theme="@android:style/Theme.Dialog">
    143         </activity>
    144 
    145         <activity android:name=".ui.SlideshowEditActivity"
    146             android:label="@string/edit_slideshow_activity" />
    147 
    148         <activity android:name=".ui.SlideEditorActivity"
    149             android:windowSoftInputMode="adjustResize"
    150             android:label="@string/edit_slide_activity" />
    151 
    152         <activity android:name=".ui.SlideshowActivity"
    153             android:noHistory="true"
    154             android:label="@string/slideshow_activity">
    155         </activity>
    156 
    157         <activity android:name=".ui.ClassZeroActivity"
    158             android:label="@string/class_0_message_activity"
    159             android:theme="@android:style/Theme.Translucent"
    160             android:excludeFromRecents="true">
    161         </activity>
    162 
    163         <activity android:name=".ui.MessagingPreferenceActivity"
    164             android:label="@string/preferences_title" />
    165 
    166         <receiver android:name=".transaction.PushReceiver"
    167             android:permission="android.permission.BROADCAST_WAP_PUSH">
    168             <intent-filter>
    169                 <action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />
    170                 <data android:mimeType="application/vnd.wap.mms-message" />
    171             </intent-filter>
    172         </receiver>
    173 
    174         <receiver android:name=".transaction.MmsSystemEventReceiver">
    175             <intent-filter>
    176                 <action android:name="android.intent.action.CONTENT_CHANGED" />
    177             </intent-filter>
    178             <intent-filter>
    179                 <action android:name="android.intent.action.BOOT_COMPLETED" />
    180             </intent-filter>
    181         </receiver>
    182 
    183         <activity android:name=".ui.ManageSimMessages"
    184                   android:launchMode="singleTop"
    185                   android:label="@string/sim_manage_messages_title">
    186             <intent-filter>
    187                 <action android:name="android.intent.action.VIEW" />
    188             </intent-filter>
    189         </activity>
    190 
    191         <!-- Require sender permissions to prevent SMS spoofing -->
    192         <receiver android:name=".transaction.PrivilegedSmsReceiver"
    193             android:permission="android.permission.BROADCAST_SMS">
    194             <intent-filter>
    195                 <action android:name="android.provider.Telephony.SMS_RECEIVED" />
    196             </intent-filter>
    197         </receiver>
    198 
    199         <!-- Catch-all receiver for broadcasts that don't have associated security -->
    200         <receiver android:name=".transaction.SmsReceiver">
    201             <intent-filter>
    202                 <action android:name="android.intent.action.BOOT_COMPLETED" />
    203             </intent-filter>
    204             <intent-filter>
    205                 <action android:name="com.android.mms.transaction.MESSAGE_SENT" />
    206                 <!-- TODO Do a better data match here. -->
    207                 <data android:scheme="content" />
    208             </intent-filter>
    209             <intent-filter>
    210                 <action android:name="android.intent.action.SEND_MESSAGE" />
    211             </intent-filter>
    212         </receiver>
    213 
    214         <receiver android:name=".transaction.MessageStatusReceiver">
    215             <intent-filter>
    216                 <action android:name="com.android.mms.transaction.MessageStatusReceiver.MESSAGE_STATUS_RECEIVED" />
    217             </intent-filter>
    218         </receiver>
    219 
    220         <receiver android:name=".transaction.SimFullReceiver">
    221             <intent-filter>
    222                 <action android:name="android.provider.Telephony.SIM_FULL" />
    223             </intent-filter>
    224         </receiver>
    225 
    226         <receiver android:name=".transaction.SmsRejectedReceiver">
    227             <intent-filter>
    228                 <action android:name="android.provider.Telephony.SMS_REJECTED" />
    229             </intent-filter>
    230         </receiver>
    231 
    232         <activity android:name=".ui.ConfirmRateLimitActivity"
    233                   android:theme="@android:style/Theme.Dialog">
    234             <intent-filter>
    235                 <action android:name="com.android.mms.RATE_LIMIT_SURPASSED" />
    236                 <category android:name="android.intent.category.DEFAULT" />
    237             </intent-filter>
    238         </activity>
    239 
    240         <activity android:name=".ui.SearchActivity"
    241             android:label="@string/search"
    242             android:configChanges="orientation|keyboardHidden" >
    243             <intent-filter>
    244                 <action android:name="android.intent.action.SEARCH" />
    245                 <category android:name="android.intent.category.DEFAULT" />
    246             </intent-filter>
    247             <meta-data android:name="android.app.searchable"
    248                 android:resource="@xml/searchable" />
    249         </activity>
    250 
    251         <meta-data android:name="android.app.default_searchable"
    252             android:value=".ui.SearchActivity" />
    253 
    254         <!-- Search Suggestions Provider -->
    255         <provider android:name="SuggestionsProvider"
    256             android:readPermission="android.permission.READ_SMS"
    257             android:authorities="com.android.mms.SuggestionsProvider" >
    258             <path-permission
    259                     android:pathPrefix="/search_suggest_query"
    260                     android:readPermission="android.permission.GLOBAL_SEARCH" />
    261             <path-permission
    262                     android:pathPrefix="/search_suggest_shortcut"
    263                     android:readPermission="android.permission.GLOBAL_SEARCH" />
    264         </provider>
    265 
    266     </application>
    267 </manifest>
    268