Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2006 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.dialer" |
| 19 | android:sharedUserId="android.uid.shared"> |
| 20 | |
| 21 | <uses-permission android:name="android.permission.CALL_PRIVILEGED" /> |
| 22 | <uses-permission android:name="android.permission.READ_CONTACTS" /> |
| 23 | <uses-permission android:name="android.permission.WRITE_CONTACTS" /> |
| 24 | <uses-permission android:name="android.permission.READ_CALL_LOG" /> |
| 25 | <uses-permission android:name="android.permission.WRITE_CALL_LOG" /> |
| 26 | <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /> |
| 27 | <uses-permission android:name="android.permission.GET_ACCOUNTS" /> |
| 28 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
| 29 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
| 30 | <uses-permission android:name="android.permission.READ_PROFILE" /> |
| 31 | <uses-permission android:name="android.permission.WRITE_PROFILE" /> |
| 32 | <uses-permission android:name="android.permission.READ_SOCIAL_STREAM" /> |
| 33 | <uses-permission android:name="android.permission.INTERNET" /> |
| 34 | <uses-permission android:name="android.permission.NFC" /> |
| 35 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 36 | <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
| 37 | <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /> |
| 38 | <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" /> |
| 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.WRITE_SETTINGS" /> |
| 42 | <uses-permission android:name="android.permission.USE_CREDENTIALS" /> |
| 43 | <uses-permission android:name="android.permission.VIBRATE" /> |
| 44 | <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" /> |
| 45 | <uses-permission android:name="com.android.voicemail.permission.ADD_VOICEMAIL" /> |
| 46 | <uses-permission android:name="com.android.voicemail.permission.READ_WRITE_ALL_VOICEMAIL" /> |
| 47 | <uses-permission android:name="android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK" /> |
| 48 | <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/> |
| 49 | <!-- allow broadcasting secret code intents that reboot the phone --> |
| 50 | <uses-permission android:name="android.permission.REBOOT" /> |
| 51 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
| 52 | |
| 53 | <application |
| 54 | android:label="@string/applicationLabel" |
| 55 | android:icon="@mipmap/ic_launcher_contacts" |
| 56 | android:taskAffinity="android.task.contacts" |
| 57 | android:hardwareAccelerated="true" |
| 58 | > |
| 59 | |
| 60 | <!-- Intercept Dialer Intents for devices without a phone. |
| 61 | This activity should have the same intent filters as the DialtactsActivity, |
| 62 | so that its capturing the same events. Omit android.intent.category.LAUNCHER, because we |
| 63 | don't want this to show up in the Launcher. The priorities of the intent-filters |
| 64 | are set lower, so that the user does not see a disambig dialog --> |
| 65 | <activity |
| 66 | android:name=".NonPhoneActivity" |
| 67 | android:theme="@style/NonPhoneActivityTheme" |
| 68 | > |
| 69 | <intent-filter android:priority="-1"> |
| 70 | <action android:name="android.intent.action.DIAL" /> |
| 71 | <category android:name="android.intent.category.DEFAULT" /> |
| 72 | <category android:name="android.intent.category.BROWSABLE" /> |
| 73 | <data android:mimeType="vnd.android.cursor.item/phone" /> |
| 74 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 75 | </intent-filter> |
| 76 | <intent-filter android:priority="-1"> |
| 77 | <action android:name="android.intent.action.DIAL" /> |
| 78 | <category android:name="android.intent.category.DEFAULT" /> |
| 79 | <category android:name="android.intent.category.BROWSABLE" /> |
| 80 | <data android:scheme="voicemail" /> |
| 81 | </intent-filter> |
| 82 | <intent-filter android:priority="-1"> |
| 83 | <action android:name="android.intent.action.DIAL" /> |
| 84 | <category android:name="android.intent.category.DEFAULT" /> |
| 85 | </intent-filter> |
| 86 | <intent-filter android:priority="-1"> |
| 87 | <action android:name="android.intent.action.MAIN" /> |
| 88 | <category android:name="android.intent.category.DEFAULT" /> |
| 89 | <category android:name="android.intent.category.BROWSABLE" /> |
| 90 | </intent-filter> |
| 91 | <intent-filter android:priority="-1"> |
| 92 | <action android:name="android.intent.action.VIEW" /> |
| 93 | <action android:name="android.intent.action.DIAL" /> |
| 94 | <category android:name="android.intent.category.DEFAULT" /> |
| 95 | <category android:name="android.intent.category.BROWSABLE" /> |
| 96 | <data android:scheme="tel" /> |
| 97 | </intent-filter> |
| 98 | <intent-filter android:priority="-1"> |
| 99 | <action android:name="android.intent.action.VIEW" /> |
| 100 | <category android:name="android.intent.category.DEFAULT" /> |
| 101 | <category android:name="android.intent.category.BROWSABLE" /> |
| 102 | <data android:mimeType="vnd.android.cursor.dir/calls" /> |
| 103 | </intent-filter> |
| 104 | <intent-filter android:priority="-1"> |
| 105 | <action android:name="android.intent.action.CALL_BUTTON" /> |
| 106 | <category android:name="android.intent.category.DEFAULT" /> |
| 107 | <category android:name="android.intent.category.BROWSABLE" /> |
| 108 | </intent-filter> |
| 109 | </activity> |
| 110 | |
| 111 | <!-- The entrance point for Phone UI. |
| 112 | stateAlwaysHidden is set to suppress keyboard show up on |
| 113 | dialpad screen. --> |
| 114 | <activity android:name=".DialtactsActivity" |
| 115 | android:label="@string/launcherDialer" |
| 116 | android:theme="@style/DialtactsTheme" |
| 117 | android:uiOptions="splitActionBarWhenNarrow" |
| 118 | android:launchMode="singleTask" |
| 119 | android:clearTaskOnLaunch="true" |
| 120 | android:icon="@mipmap/ic_launcher_phone" |
| 121 | android:screenOrientation="nosensor" |
| 122 | android:enabled="@*android:bool/config_voice_capable" |
| 123 | android:taskAffinity="android.task.contacts.phone" |
| 124 | android:windowSoftInputMode="stateAlwaysHidden|adjustNothing"> |
| 125 | <intent-filter> |
| 126 | <action android:name="android.intent.action.DIAL" /> |
| 127 | <category android:name="android.intent.category.DEFAULT" /> |
| 128 | <category android:name="android.intent.category.BROWSABLE" /> |
| 129 | <data android:mimeType="vnd.android.cursor.item/phone" /> |
| 130 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 131 | </intent-filter> |
| 132 | <intent-filter> |
| 133 | <action android:name="android.intent.action.DIAL" /> |
| 134 | <category android:name="android.intent.category.DEFAULT" /> |
| 135 | <category android:name="android.intent.category.BROWSABLE" /> |
| 136 | <data android:scheme="voicemail" /> |
| 137 | </intent-filter> |
| 138 | <intent-filter> |
| 139 | <action android:name="android.intent.action.DIAL" /> |
| 140 | <category android:name="android.intent.category.DEFAULT" /> |
| 141 | </intent-filter> |
| 142 | <intent-filter> |
| 143 | <action android:name="android.intent.action.MAIN" /> |
| 144 | <category android:name="android.intent.category.DEFAULT" /> |
| 145 | <category android:name="android.intent.category.LAUNCHER" /> |
| 146 | <category android:name="android.intent.category.BROWSABLE" /> |
| 147 | </intent-filter> |
| 148 | <intent-filter> |
| 149 | <action android:name="android.intent.action.VIEW" /> |
| 150 | <action android:name="android.intent.action.DIAL" /> |
| 151 | <category android:name="android.intent.category.DEFAULT" /> |
| 152 | <category android:name="android.intent.category.BROWSABLE" /> |
| 153 | <data android:scheme="tel" /> |
| 154 | </intent-filter> |
| 155 | <intent-filter> |
| 156 | <action android:name="android.intent.action.VIEW" /> |
| 157 | <category android:name="android.intent.category.DEFAULT" /> |
| 158 | <category android:name="android.intent.category.BROWSABLE" /> |
| 159 | <data android:mimeType="vnd.android.cursor.dir/calls" /> |
| 160 | </intent-filter> |
| 161 | <intent-filter> |
| 162 | <action android:name="android.intent.action.CALL_BUTTON" /> |
| 163 | <category android:name="android.intent.category.DEFAULT" /> |
| 164 | <category android:name="android.intent.category.BROWSABLE" /> |
| 165 | </intent-filter> |
| 166 | <!-- This was never intended to be public, but is here for backward |
| 167 | compatibility. Use Intent.ACTION_DIAL instead. --> |
| 168 | <intent-filter> |
| 169 | <action android:name="com.android.phone.action.TOUCH_DIALER" /> |
| 170 | <category android:name="android.intent.category.DEFAULT" /> |
| 171 | <category android:name="android.intent.category.TAB" /> |
| 172 | </intent-filter> |
| 173 | <intent-filter android:label="@string/recentCallsIconLabel"> |
| 174 | <action android:name="com.android.phone.action.RECENT_CALLS" /> |
| 175 | <category android:name="android.intent.category.DEFAULT" /> |
| 176 | <category android:name="android.intent.category.TAB" /> |
| 177 | </intent-filter> |
| 178 | </activity> |
| 179 | |
| 180 | <activity android:name="com.android.dialer.CallDetailActivity" |
| 181 | android:label="@string/callDetailTitle" |
| 182 | android:theme="@style/CallDetailActivityTheme" |
| 183 | android:screenOrientation="portrait" |
| 184 | android:icon="@mipmap/ic_launcher_phone" |
| 185 | android:taskAffinity="android.task.contacts.phone" |
| 186 | > |
| 187 | <intent-filter> |
| 188 | <action android:name="android.intent.action.VIEW"/> |
| 189 | <category android:name="android.intent.category.DEFAULT"/> |
| 190 | <data android:mimeType="vnd.android.cursor.item/calls"/> |
| 191 | </intent-filter> |
| 192 | </activity> |
| 193 | |
| 194 | <activity android:name="com.android.contacts.common.test.FragmentTestActivity"> |
| 195 | <intent-filter> |
| 196 | <category android:name="android.intent.category.TEST"/> |
| 197 | </intent-filter> |
| 198 | </activity> |
| 199 | |
| 200 | <!-- Backwards compatibility: "Phone" from Gingerbread and earlier --> |
| 201 | <activity-alias android:name="DialtactsActivity" |
| 202 | android:targetActivity=".DialtactsActivity" |
| 203 | android:exported="true" |
| 204 | /> |
| 205 | |
| 206 | <!-- Backwards compatibility: "Call log" from Gingerbread and earlier --> |
| 207 | <activity-alias android:name="RecentCallsListActivity" |
| 208 | android:targetActivity=".DialtactsActivity" |
| 209 | android:exported="true" |
| 210 | /> |
| 211 | |
| 212 | <!-- Backwards compatibility: "Call log" from ICS --> |
| 213 | <activity-alias android:name=".activities.CallLogActivity" |
| 214 | android:targetActivity=".DialtactsActivity" |
| 215 | android:exported="true" |
| 216 | /> |
| 217 | |
| 218 | <receiver android:name=".calllog.CallLogReceiver" |
| 219 | android:enabled="@*android:bool/config_voice_capable"> |
| 220 | <intent-filter> |
| 221 | <action android:name="android.intent.action.NEW_VOICEMAIL" /> |
| 222 | <data |
| 223 | android:scheme="content" |
| 224 | android:host="com.android.voicemail" |
| 225 | android:mimeType="vnd.android.cursor.item/voicemail" |
| 226 | /> |
| 227 | </intent-filter> |
| 228 | <intent-filter android:priority="100"> |
| 229 | <action android:name="android.intent.action.BOOT_COMPLETED"/> |
| 230 | </intent-filter> |
| 231 | </receiver> |
| 232 | |
| 233 | <service |
| 234 | android:name=".calllog.CallLogNotificationsService" |
| 235 | android:exported="false" |
| 236 | /> |
| 237 | |
| 238 | <!-- Service that is exclusively for the Phone application that sends out a view |
| 239 | notification. This service might be removed in future versions of the app --> |
| 240 | <service android:name=".ViewNotificationService" |
| 241 | android:permission="android.permission.WRITE_CONTACTS" |
| 242 | android:exported="true"> |
| 243 | <intent-filter> |
| 244 | <action android:name="com.android.contacts.VIEW_NOTIFICATION" /> |
| 245 | <data android:mimeType="vnd.android.cursor.item/contact" /> |
| 246 | </intent-filter> |
| 247 | </service> |
| 248 | </application> |
| 249 | </manifest> |