OSDN Git Service

When reparenting, prefer GROUP_ROW_ID but allow fallback.
[android-x86/packages-apps-Contacts.git] / AndroidManifest.xml
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.contacts"
19     android:sharedUserId="android.uid.shared"
20 >
21
22     <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
23     <uses-permission android:name="android.permission.READ_CONTACTS" />
24     <uses-permission android:name="android.permission.WRITE_CONTACTS" />
25     <uses-permission android:name="android.permission.INTERNET" />
26     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
27     <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
28     <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" />
29     <uses-permission android:name="android.permission.WAKE_LOCK" />
30     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
31     <uses-permission android:name="android.permission.USE_CREDENTIALS" />
32
33     <application
34         android:label="@string/contactsList"
35         android:icon="@drawable/ic_launcher_contacts"
36         android:process="android.process.acore"
37         android:taskAffinity="android.task.contacts"
38     >
39
40         <!-- A virtual 12 key dialer -->
41         <activity android:name="TwelveKeyDialer"
42             android:launchMode="singleTop"
43         >
44             <intent-filter>
45                 <action android:name="com.android.phone.action.TOUCH_DIALER" />
46                 <category android:name="android.intent.category.DEFAULT" />
47                 <category android:name="android.intent.category.TAB" />
48             </intent-filter>
49         </activity>
50
51         <!-- A list of recent calls -->
52         <activity android:name="RecentCallsListActivity"
53             android:label="@string/recentCallsIconLabel"
54         >
55             <intent-filter>
56                 <action android:name="com.android.phone.action.RECENT_CALLS" />
57                 <category android:name="android.intent.category.DEFAULT" />
58                 <category android:name="android.intent.category.TAB" />
59             </intent-filter>
60         </activity>
61
62         <!-- Tab container for TwelveKeyDialer and RecentCallsList -->
63         <activity android:name="DialtactsActivity"
64             android:label="@string/launcherDialer"
65             android:theme="@style/DialtactsTheme"
66             android:launchMode="singleTask"
67             android:clearTaskOnLaunch="true"
68             android:icon="@drawable/ic_launcher_phone"
69             android:screenOrientation="nosensor"
70         >
71             <intent-filter>
72                 <action android:name="android.intent.action.DIAL" />
73                 <category android:name="android.intent.category.DEFAULT" />
74                 <category android:name="android.intent.category.BROWSABLE" />
75                 <data android:mimeType="vnd.android.cursor.item/phone" />
76                 <data android:mimeType="vnd.android.cursor.item/person" />
77             </intent-filter>
78             <intent-filter>
79                 <action android:name="android.intent.action.DIAL" />
80                 <category android:name="android.intent.category.DEFAULT" />
81                 <category android:name="android.intent.category.BROWSABLE" />
82                 <data android:scheme="voicemail" />
83             </intent-filter>
84             <intent-filter>
85                 <action android:name="android.intent.action.DIAL" />
86                 <category android:name="android.intent.category.DEFAULT" />
87             </intent-filter>
88             <intent-filter>
89                 <action android:name="android.intent.action.MAIN" />
90                 <category android:name="android.intent.category.DEFAULT" />
91                 <category android:name="android.intent.category.LAUNCHER" />
92                 <category android:name="android.intent.category.BROWSABLE" />
93             </intent-filter>
94             <intent-filter>
95                 <action android:name="android.intent.action.VIEW" />
96                 <action android:name="android.intent.action.DIAL" />
97                 <category android:name="android.intent.category.DEFAULT" />
98                 <category android:name="android.intent.category.BROWSABLE" />
99                 <data android:scheme="tel" />
100             </intent-filter>
101             <intent-filter>
102                 <action android:name="android.intent.action.VIEW" />
103                 <category android:name="android.intent.category.DEFAULT" />
104                 <category android:name="android.intent.category.BROWSABLE" />
105                 <data android:mimeType="vnd.android.cursor.dir/calls" />
106             </intent-filter>
107             <intent-filter>
108                 <action android:name="android.intent.action.CALL_BUTTON" />
109                 <category android:name="android.intent.category.DEFAULT" />
110                 <category android:name="android.intent.category.BROWSABLE" />
111             </intent-filter>
112         </activity>
113
114         <!-- Tab container for Activity Stream and Contacts -->
115         <activity-alias android:name="DialtactsContactsEntryActivity"
116             android:targetActivity="DialtactsActivity"
117             android:label="@string/contactsList"
118             android:icon="@drawable/ic_launcher_contacts"
119         >
120             <intent-filter>
121                 <action android:name="android.intent.action.MAIN" />
122                 <category android:name="android.intent.category.DEFAULT" />
123                 <category android:name="android.intent.category.LAUNCHER" />
124                 <category android:name="android.intent.category.BROWSABLE" />
125             </intent-filter>
126
127             <intent-filter>
128                 <action android:name="android.intent.action.VIEW" />
129                 <category android:name="android.intent.category.DEFAULT" />
130                 <data android:mimeType="vnd.android.cursor.dir/person" android:host="contacts" />
131                 <data android:mimeType="vnd.android.cursor.dir/contact" android:host="com.android.contacts" />
132             </intent-filter>
133
134             <intent-filter>
135                 <action android:name="com.android.contacts.action.FILTER_CONTACTS" />
136                 <category android:name="android.intent.category.DEFAULT" />
137             </intent-filter>
138         </activity-alias>
139
140         <!-- An empty activity that presents the DialtactActivity's Favorites tab -->
141         <activity-alias android:name="DialtactsFavoritesEntryActivity"
142             android:targetActivity="DialtactsActivity"
143         >
144             <intent-filter>
145                 <action android:name="android.intent.action.MAIN" />
146                 <category android:name="android.intent.category.DEFAULT" />
147             </intent-filter>
148         </activity-alias>
149
150         <!-- The actual list of contacts, usually embedded in ContactsActivity -->
151         <activity android:name="ContactsListActivity"
152             android:label="@string/contactsList"
153             android:clearTaskOnLaunch="true"
154         >
155             <intent-filter>
156                 <action android:name="com.android.contacts.action.LIST_DEFAULT" />
157                 <category android:name="android.intent.category.DEFAULT" />
158                 <category android:name="android.intent.category.TAB" />
159             </intent-filter>
160
161             <intent-filter>
162                 <action android:name="com.android.contacts.action.LIST_CONTACTS" />
163                 <category android:name="android.intent.category.DEFAULT" />
164                 <category android:name="android.intent.category.TAB" />
165             </intent-filter>
166
167             <intent-filter>
168                 <action android:name="com.android.contacts.action.LIST_ALL_CONTACTS" />
169                 <category android:name="android.intent.category.DEFAULT" />
170                 <category android:name="android.intent.category.TAB" />
171             </intent-filter>
172
173             <intent-filter>
174                 <action android:name="com.android.contacts.action.LIST_CONTACTS_WITH_PHONES" />
175                 <category android:name="android.intent.category.DEFAULT" />
176                 <category android:name="android.intent.category.TAB" />
177             </intent-filter>
178
179             <intent-filter android:label="@string/starredList">
180                 <action android:name="com.android.contacts.action.LIST_STARRED" />
181                 <category android:name="android.intent.category.DEFAULT" />
182                 <category android:name="android.intent.category.TAB" />
183             </intent-filter>
184
185             <intent-filter android:label="@string/frequentList">
186                 <action android:name="com.android.contacts.action.LIST_FREQUENT" />
187                 <category android:name="android.intent.category.DEFAULT" />
188                 <category android:name="android.intent.category.TAB" />
189             </intent-filter>
190
191             <intent-filter android:label="@string/strequentList">
192                 <action android:name="com.android.contacts.action.LIST_STREQUENT" />
193                 <category android:name="android.intent.category.DEFAULT" />
194                 <category android:name="android.intent.category.TAB" />
195             </intent-filter>
196
197             <intent-filter>
198                 <action android:name="android.intent.action.INSERT_OR_EDIT" />
199                 <category android:name="android.intent.category.DEFAULT" />
200                 <data android:mimeType="vnd.android.cursor.item/person" />
201                 <data android:mimeType="vnd.android.cursor.item/contact" />
202                 <data android:mimeType="vnd.android.cursor.item/raw_contact" />
203             </intent-filter>
204
205             <intent-filter>
206                 <action android:name="android.intent.action.PICK" />
207                 <category android:name="android.intent.category.DEFAULT" />
208                 <data android:mimeType="vnd.android.cursor.dir/contact" android:host="com.android.contacts" />
209                 <data android:mimeType="vnd.android.cursor.dir/person" android:host="contacts" />
210                 <data android:mimeType="vnd.android.cursor.dir/phone_v2" android:host="com.android.contacts" />
211                 <data android:mimeType="vnd.android.cursor.dir/phone" android:host="contacts" />
212                 <data android:mimeType="vnd.android.cursor.dir/postal-address_v2" android:host="com.android.contacts" />
213                 <data android:mimeType="vnd.android.cursor.dir/postal-address" android:host="contacts" />
214             </intent-filter>
215
216             <intent-filter>
217                 <action android:name="android.intent.action.GET_CONTENT" />
218                 <category android:name="android.intent.category.DEFAULT" />
219                 <data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts" />
220                 <data android:mimeType="vnd.android.cursor.item/person" android:host="contacts" />
221                 <data android:mimeType="vnd.android.cursor.item/phone_v2" android:host="com.android.contacts" />
222                 <data android:mimeType="vnd.android.cursor.item/phone" android:host="contacts" />
223                 <data android:mimeType="vnd.android.cursor.item/postal-address_v2" android:host="com.android.contacts" />
224                 <data android:mimeType="vnd.android.cursor.item/postal-address" android:host="contacts" />
225             </intent-filter>
226
227             <intent-filter>
228                 <action android:name="android.intent.action.SEARCH" />
229                 <category android:name="android.intent.category.DEFAULT" />
230             </intent-filter>
231
232             <meta-data android:name="android.app.searchable"
233                 android:resource="@xml/searchable"
234             />
235         </activity>
236
237         <!-- An activity for joining contacts -->
238         <activity android:name="ContactsListActivity$JoinContactActivity"
239             android:theme="@style/TallTitleBarTheme"
240             android:clearTaskOnLaunch="true"
241         >
242             <intent-filter>
243                 <action android:name="com.android.contacts.action.JOIN_AGGREGATE" />
244                 <category android:name="android.intent.category.DEFAULT" />
245             </intent-filter>
246         </activity>
247
248
249         <!-- Used to select display and sync groups -->
250         <activity android:name=".ui.DisplayGroupsActivity" android:label="@string/displayGroups" />
251
252         <activity
253             android:name=".ui.ShowOrCreateActivity"
254             android:theme="@style/FullyTranslucent">
255
256             <intent-filter>
257                 <action android:name="com.android.contacts.action.SHOW_OR_CREATE_CONTACT" />
258                 <category android:name="android.intent.category.DEFAULT" />
259                 <data android:scheme="mailto" />
260                 <data android:scheme="tel" />
261             </intent-filter>
262         </activity>
263
264         <!-- Used to show QuickContact window over a translucent activity, which is a
265              temporary hack until we add better framework support. -->
266         <activity
267             android:name=".ui.QuickContactActivity"
268             android:theme="@style/FullyTranslucent.QuickContact"
269             android:launchMode="singleTop"
270             android:excludeFromRecents="true"
271             android:taskAffinity="android.task.quickcontact">
272
273             <intent-filter>
274                 <action android:name="com.android.contacts.action.QUICK_CONTACT" />
275                 <category android:name="android.intent.category.DEFAULT" />
276                 <data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts" />
277             </intent-filter>
278         </activity>
279
280         <activity-alias android:name="ContactShortcut"
281             android:targetActivity="ContactsListActivity"
282             android:label="@string/shortcutContact"
283             android:icon="@drawable/ic_launcher_shortcut_contact">
284
285             <intent-filter>
286                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
287                 <category android:name="android.intent.category.DEFAULT" />
288             </intent-filter>
289
290         </activity-alias>
291
292         <activity-alias android:name="alias.DialShortcut"
293             android:targetActivity="ContactsListActivity"
294             android:label="@string/shortcutDialContact"
295             android:icon="@drawable/ic_launcher_shortcut_directdial">
296
297             <intent-filter>
298                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
299                 <category android:name="android.intent.category.DEFAULT" />
300             </intent-filter>
301
302         </activity-alias>
303
304         <activity-alias android:name="alias.MessageShortcut"
305             android:targetActivity="ContactsListActivity"
306             android:label="@string/shortcutMessageContact"
307             android:icon="@drawable/ic_launcher_shortcut_directmessage">
308
309             <intent-filter>
310                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
311                 <category android:name="android.intent.category.DEFAULT" />
312             </intent-filter>
313
314         </activity-alias>
315
316         <activity android:name="CallDetailActivity"
317             android:label="@string/callDetailTitle"
318             android:theme="@style/TallTitleBarTheme"
319         >
320             <intent-filter>
321                 <action android:name="android.intent.action.VIEW" />
322                 <category android:name="android.intent.category.DEFAULT" />
323                 <data android:mimeType="vnd.android.cursor.item/calls" />
324             </intent-filter>
325         </activity>
326
327         <!-- Views the details of a single contact -->
328         <activity android:name="ViewContactActivity"
329             android:label="@string/viewContactTitle"
330             android:theme="@style/TallTitleBarTheme">
331
332             <intent-filter android:label="@string/viewContactDesription">
333                 <action android:name="android.intent.action.VIEW" />
334                 <category android:name="android.intent.category.DEFAULT" />
335                 <data android:mimeType="vnd.android.cursor.item/person" android:host="contacts" />
336                 <data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts" />
337                 <data android:mimeType="vnd.android.cursor.item/raw_contact" android:host="com.android.contacts" />
338             </intent-filter>
339         </activity>
340
341         <!-- Edit or insert details for a contact -->
342         <activity
343             android:name=".ui.EditContactActivity"
344             android:label="@string/editContactDescription"
345             android:windowSoftInputMode="stateHidden|adjustResize">
346
347             <intent-filter android:label="@string/editContactDescription">
348                 <action android:name="android.intent.action.EDIT" />
349                 <category android:name="android.intent.category.DEFAULT" />
350                 <data android:mimeType="vnd.android.cursor.item/person" android:host="contacts" />
351                 <data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts" />
352                 <data android:mimeType="vnd.android.cursor.item/raw_contact" android:host="com.android.contacts" />
353             </intent-filter>
354
355             <intent-filter android:label="@string/insertContactDescription">
356                 <action android:name="android.intent.action.INSERT" />
357                 <category android:name="android.intent.category.DEFAULT" />
358                 <data android:mimeType="vnd.android.cursor.dir/person" />
359                 <data android:mimeType="vnd.android.cursor.dir/contact" />
360                 <data android:mimeType="vnd.android.cursor.dir/raw_contact" />
361             </intent-filter>
362
363         </activity>
364
365         <!-- Stub service used to keep our process alive long enough for
366              background threads to finish their operations. -->
367         <service
368             android:name=".util.EmptyService"
369             android:exported="false" />
370
371         <!-- Views the details of a single contact -->
372         <activity android:name="ContactOptionsActivity"
373             android:label="@string/contactOptionsTitle"
374         >
375             <intent-filter>
376                 <action android:name="android.intent.action.EDIT" />
377                 <category android:name="android.intent.category.DEFAULT" />
378             </intent-filter>
379         </activity>
380
381         <!-- Attaches a photo to a contact. Started from external applications -->
382         <activity android:name="AttachImage"
383             android:label="@string/attachToContact"
384             android:taskAffinity="">
385             <intent-filter>
386                 <action android:name="android.intent.action.ATTACH_DATA" />
387                 <data android:mimeType="image/*" />
388                 <category android:name="android.intent.category.DEFAULT" />
389             </intent-filter>
390             />
391         </activity>
392
393         <!-- Makes .ContactsListActivity the search target for any activity in Contacts -->
394         <meta-data android:name="android.app.default_searchable"
395                    android:value=".ContactsListActivity" />
396
397
398         <!-- LIVE FOLDERS -->
399         <activity
400             android:name=".ContactsLiveFolders$AllContacts"
401             android:label="@string/liveFolderAll"
402             android:icon="@drawable/ic_launcher_folder_live_contacts">
403             <intent-filter>
404                 <action android:name="android.intent.action.CREATE_LIVE_FOLDER" />
405                 <category android:name="android.intent.category.DEFAULT" />
406             </intent-filter>
407         </activity>
408
409         <activity
410             android:name=".ContactsLiveFolders$StarredContacts"
411             android:label="@string/liveFolderFavorites"
412             android:icon="@drawable/ic_launcher_folder_live_contacts_starred">
413             <intent-filter>
414                 <action android:name="android.intent.action.CREATE_LIVE_FOLDER" />
415                 <category android:name="android.intent.category.DEFAULT" />
416             </intent-filter>
417         </activity>
418
419         <activity
420             android:name=".ContactsLiveFolders$PhoneContacts"
421             android:label="@string/liveFolderPhone"
422             android:icon="@drawable/ic_launcher_folder_live_contacts_phone">
423             <intent-filter>
424                 <action android:name="android.intent.action.CREATE_LIVE_FOLDER" />
425                 <category android:name="android.intent.category.DEFAULT" />
426             </intent-filter>
427         </activity>
428
429         <activity android:name=".ImportVCardActivity"
430             android:theme="@style/BackgroundOnly" />
431
432         <activity android:name=".ExportVCardActivity"
433             android:theme="@style/BackgroundOnly" />
434     </application>
435 </manifest>