1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* //device/apps/IM/AndroidManifest.xml 4 * 5 * Copyright (C) 2008 Esmertec AG. 6 * Copyright (C) 2008 The Android Open Source Project 7 * 8 * Licensed under the Apache License, Version 2.0 (the "License"); 9 * you may not use this file except in compliance with the License. 10 * You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 --> 21 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 22 package="com.android.im" android:sharedUserId="android.uid.im" 23 android:sharedUserLabel="@string/perm_label"> 24 25 <original-package android:name="com.android.im" /> 26 27 <uses-permission android:name="com.android.providers.imps.permission.READ_ONLY" /> 28 <uses-permission android:name="com.android.providers.imps.permission.WRITE_ONLY" /> 29 <uses-permission android:name="android.permission.WAKE_LOCK" /> 30 <uses-permission android:name="android.permission.VIBRATE" /> 31 <uses-permission android:name="android.permission.INTERNET" /> 32 <uses-permission android:name="android.permission.SEND_SMS" /> 33 <uses-permission android:name="android.permission.RECEIVE_SMS" /> 34 <uses-permission android:name="android.permission.READ_CONTACTS" /> 35 <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 36 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> 37 <uses-permission android:name="com.android.im.permission.IM_SERVICE" /> 38 39 <permission android:name="com.android.im.permission.IM_SERVICE" 40 android:permissionGroup="android.permission-group.MESSAGES" 41 android:protectionLevel="dangerous" 42 android:label="@string/perm_label" 43 android:description="@string/perm_desc" /> 44 45 <permission android:name="com.android.providers.imps.permission.READ_ONLY" 46 android:permissionGroup="android.permission-group.MESSAGES" 47 android:protectionLevel="dangerous" 48 android:label="@string/ro_perm_label" 49 android:description="@string/ro_perm_desc" /> 50 51 <permission android:name="com.android.providers.imps.permission.WRITE_ONLY" 52 android:permissionGroup="android.permission-group.MESSAGES" 53 android:protectionLevel="dangerous" 54 android:label="@string/wo_perm_label" 55 android:description="@string/wo_perm_desc" /> 56 57 <application android:name=".app.ImApp" 58 android:label="@string/im_label" 59 android:icon="@drawable/ic_launcher_im" 60 android:taskAffinity="android.task.im"> 61 62 <service android:name=".service.RemoteImService" 63 android:process="android.process.im" 64 android:exported="true" 65 android:permission="com.android.im.permission.IM_SERVICE"> 66 <intent-filter> 67 <action android:name="com.android.im.IRemoteImService" /> 68 <action android:name="com.android.im.SERVICE" /> 69 </intent-filter> 70 </service> 71 72 <provider android:name=".provider.ImpsProvider" 73 android:authorities="imps" 74 android:process="android.process.im" 75 android:multiprocess="false" 76 android:readPermission="com.android.providers.imps.permission.READ_ONLY" 77 android:writePermission="com.android.providers.imps.permission.WRITE_ONLY" 78 android:grantUriPermissions="true" /> 79 80 <activity android:name=".app.ChooseAccountActivity" 81 android:theme="@android:style/Theme.NoDisplay"> 82 <intent-filter> 83 <action android:name="android.intent.action.MAIN" /> 84 <action android:name="android.intent.action.VIEW" /> 85 <category android:name="android.intent.category.DEFAULT" /> 86 </intent-filter> 87 </activity> 88 89 <activity android:name=".app.ImUrlActivity" > 90 <intent-filter> 91 <action android:name="android.intent.action.SENDTO" /> 92 <category android:name="android.intent.category.DEFAULT" /> 93 <category android:name="com.android.im.category.AIM" /> 94 <category android:name="com.android.im.category.MSN" /> 95 <category android:name="com.android.im.category.YAHOO" /> 96 <data android:scheme="im" /> 97 </intent-filter> 98 99 <intent-filter> 100 <action android:name="android.intent.action.SENDTO" /> 101 <category android:name="android.intent.category.DEFAULT" /> 102 <data android:scheme="imto" android:host="aim"/> 103 <data android:scheme="imto" android:host="yahoo"/> 104 <data android:scheme="imto" android:host="msn"/> 105 </intent-filter> 106 </activity> 107 108 <activity android:name=".app.LandingPage"> 109 <intent-filter> 110 <action android:name="android.intent.action.MAIN" /> 111 <action android:name="android.intent.action.VIEW" /> 112 <category android:name="android.intent.category.DEFAULT" /> 113 <category android:name="android.intent.category.LAUNCHER" /> 114 </intent-filter> 115 <intent-filter> 116 <action android:name="android.intent.action.VIEW" /> 117 <category android:name="android.intent.category.DEFAULT" /> 118 <data android:mimeType="vnd.android.cursor.dir/imps-providers" /> 119 </intent-filter> 120 </activity> 121 122 <activity android:name=".app.AccountActivity" 123 android:configChanges="orientation|keyboardHidden" 124 android:windowSoftInputMode="stateUnchanged"> 125 <intent-filter> 126 <action android:name="android.intent.action.EDIT" /> 127 <category android:name="android.intent.category.DEFAULT" /> 128 <category android:name="com.android.im.IMPS_CATEGORY" /> 129 <data android:mimeType="vnd.android.cursor.item/imps-accounts" /> 130 </intent-filter> 131 <intent-filter> 132 <action android:name="android.intent.action.INSERT" /> 133 <category android:name="android.intent.category.DEFAULT" /> 134 <category android:name="com.android.im.IMPS_CATEGORY" /> 135 <data android:mimeType="vnd.android.cursor.item/imps-providers" /> 136 </intent-filter> 137 </activity> 138 139 <activity android:name=".app.SigningInActivity" 140 android:configChanges="orientation|keyboardHidden"> 141 <intent-filter> 142 <action android:name="android.intent.action.MAIN" /> 143 <category android:name="android.intent.category.DEFAULT" /> 144 </intent-filter> 145 </activity> 146 147 <activity android:name=".app.SignoutActivity"> 148 <intent-filter> 149 <action android:name="android.intent.action.MAIN" /> 150 <category android:name="android.intent.category.DEFAULT" /> 151 </intent-filter> 152 </activity> 153 154 <activity android:name=".app.ContactListActivity" android:launchMode="singleTop"> 155 <intent-filter> 156 <action android:name="android.intent.action.VIEW"/> 157 <category android:name="android.intent.category.DEFAULT"/> 158 <category android:name="com.android.im.IMPS_CATEGORY" /> 159 <data android:mimeType="vnd.android.cursor.dir/imps-contacts"/> 160 </intent-filter> 161 </activity> 162 163 <activity android:name=".app.AddContactActivity" 164 android:label="@string/add_contact_title"/> 165 166 <activity android:name=".app.NewChatActivity" 167 android:configChanges="orientation|keyboardHidden" 168 android:windowSoftInputMode="stateUnchanged"> 169 <intent-filter> 170 <action android:name="android.intent.action.VIEW" /> 171 <category android:name="android.intent.category.DEFAULT" /> 172 <category android:name="com.android.im.IMPS_CATEGORY" /> 173 <data android:mimeType="vnd.android.cursor.item/imps-chats" /> 174 </intent-filter> 175 <intent-filter> 176 <action android:name="android.intent.action.VIEW" /> 177 <category android:name="android.intent.category.DEFAULT" /> 178 <data android:mimeType="vnd.android.cursor.item/imps-invitations" /> 179 </intent-filter> 180 <intent-filter> 181 <action android:name="android.intent.action.IM_MANAGE_SUBSCRIPTION"/> 182 <category android:name="android.intent.category.DEFAULT"/> 183 <data android:mimeType="vnd.android.cursor.item/imps-contacts"/> 184 </intent-filter> 185 </activity> 186 187 <activity android:name=".app.ContactsPickerActivity" android:label="@string/contacts_picker_title"> 188 <intent-filter> 189 <action android:name="android.intent.action.PICK" /> 190 <category android:name="android.intent.category.DEFAULT" /> 191 <data android:mimeType="vnd.android.cursor.dir/imps-contacts" /> 192 </intent-filter> 193 </activity> 194 195 <activity android:name=".app.BlockedContactsActivity" android:label="@string/blocked_list_title"> 196 <intent-filter> 197 <action android:name="android.intent.action.VIEW" /> 198 <category android:name="android.intent.category.DEFAULT" /> 199 <data android:mimeType="vnd.android.cursor.dir/imps-blockedList" /> 200 </intent-filter> 201 </activity> 202 203 <activity android:name=".app.ContactPresenceActivity"> 204 <intent-filter> 205 <action android:name="android.intent.action.VIEW" /> 206 <category android:name="android.intent.category.DEFAULT" /> 207 <data android:mimeType="vnd.android.cursor.item/imps-contacts" /> 208 </intent-filter> 209 </activity> 210 211 <activity android:name=".app.PreferenceActivity"> 212 <intent-filter> 213 <action android:name="android.intent.action.VIEW" /> 214 </intent-filter> 215 </activity> 216 217 <activity android:name=".app.SettingActivity"> 218 <intent-filter> 219 <action android:name="android.intent.action.VIEW" /> 220 <category android:name="com.android.im.IMPS_CATEGORY" /> 221 <category android:name="android.intent.category.DEFAULT" /> 222 <data android:mimeType="vnd.android-dir/imps-providerSettings" /> 223 </intent-filter> 224 </activity> 225 226 <activity android:name=".app.SimpleInputActivity"> 227 <intent-filter> 228 <action android:name="android.intent.action.VIEW" /> 229 </intent-filter> 230 </activity> 231 232 <receiver android:name=".receiver.ImServiceAutoStarter" 233 android:process="android.process.im"> 234 <intent-filter> 235 <action android:name="android.intent.action.BOOT_COMPLETED"/> 236 </intent-filter> 237 </receiver> 238 239 <!--Plug-in Sevice started--> 240 <!-- 241 <service android:name="com.android.im.plugin.demo.DemoImPlugin"> 242 <intent-filter> 243 <action android:name="com.android.im.plugin" /> 244 </intent-filter> 245 <meta-data android:name="com.android.im.provider_name" 246 android:value="Demo"/> 247 <meta-data android:name="com.android.im.provider_full_name" 248 android:value="Demo IM Provider"/> 249 <meta-data android:name="com.android.im.signup_url" 250 android:value="http://xxx.xxx.xxx"/> 251 </service> 252 --> 253 <!--Plug-in Service end--> 254 255 </application> 256 257 </manifest> 258