AndroidManifest.xml revision 2ca0ae7d7c4d5f6b24a1b3d987813cad9ee4197f
1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4** 5** Copyright 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 21 xmlns:android="http://schemas.android.com/apk/res/android" 22 package="com.android.launcher2" 23 > 24 25 <permission 26 android:name="com.android.launcher.permission.INSTALL_SHORTCUT" 27 android:permissionGroup="android.permission-group.SYSTEM_TOOLS" 28 android:protectionLevel="normal" 29 android:label="@string/permlab_install_shortcut" 30 android:description="@string/permdesc_install_shortcut" /> 31 <permission 32 android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" 33 android:permissionGroup="android.permission-group.SYSTEM_TOOLS" 34 android:protectionLevel="normal" 35 android:label="@string/permlab_uninstall_shortcut" 36 android:description="@string/permdesc_uninstall_shortcut"/> 37 <permission 38 android:name="com.android.launcher.permission.READ_SETTINGS" 39 android:permissionGroup="android.permission-group.SYSTEM_TOOLS" 40 android:protectionLevel="normal" 41 android:label="@string/permlab_read_settings" 42 android:description="@string/permdesc_read_settings"/> 43 <permission 44 android:name="com.android.launcher.permission.WRITE_SETTINGS" 45 android:permissionGroup="android.permission-group.SYSTEM_TOOLS" 46 android:protectionLevel="normal" 47 android:label="@string/permlab_write_settings" 48 android:description="@string/permdesc_write_settings"/> 49 50 <uses-permission android:name="android.permission.CALL_PHONE" /> 51 <uses-permission android:name="android.permission.EXPAND_STATUS_BAR" /> 52 <uses-permission android:name="android.permission.GET_TASKS" /> 53 <uses-permission android:name="android.permission.READ_CONTACTS"/> 54 <uses-permission android:name="android.permission.SET_WALLPAPER" /> 55 <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" /> 56 <uses-permission android:name="android.permission.VIBRATE" /> 57 <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 58 <uses-permission android:name="android.permission.BIND_APPWIDGET" /> 59 <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" /> 60 <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS" /> 61 62 <application 63 android:name="LauncherApplication" 64 android:label="@string/application_name" 65 android:icon="@drawable/ic_launcher_home"> 66 67 <activity 68 android:name="Launcher" 69 android:launchMode="singleTask" 70 android:clearTaskOnLaunch="true" 71 android:stateNotNeeded="true" 72 android:theme="@style/Theme" 73 android:screenOrientation="nosensor" 74 android:windowSoftInputMode="stateUnspecified|adjustPan"> 75 <intent-filter> 76 <action android:name="android.intent.action.MAIN" /> 77 <category android:name="android.intent.category.HOME" /> 78 <category android:name="android.intent.category.DEFAULT" /> 79 <category android:name="android.intent.category.MONKEY"/> 80 </intent-filter> 81 </activity> 82 83 <activity 84 android:name="WallpaperChooser" 85 android:label="@string/pick_wallpaper" 86 android:icon="@drawable/ic_launcher_wallpaper" 87 android:screenOrientation="nosensor" 88 android:finishOnCloseSystemDialogs="true"> 89 <intent-filter> 90 <action android:name="android.intent.action.SET_WALLPAPER" /> 91 <category android:name="android.intent.category.DEFAULT" /> 92 </intent-filter> 93 </activity> 94 95 <!-- Enable system-default search mode for any activity in Home --> 96 <meta-data 97 android:name="android.app.default_searchable" 98 android:value="*" /> 99 100 <!-- Intent received used to install shortcuts from other applications --> 101 <receiver 102 android:name=".InstallShortcutReceiver" 103 android:permission="com.android.launcher.permission.INSTALL_SHORTCUT"> 104 <intent-filter> 105 <action android:name="com.android.launcher.action.INSTALL_SHORTCUT" /> 106 </intent-filter> 107 </receiver> 108 109 <!-- Intent received used to uninstall shortcuts from other applications --> 110 <receiver 111 android:name=".UninstallShortcutReceiver" 112 android:permission="com.android.launcher.permission.UNINSTALL_SHORTCUT"> 113 <intent-filter> 114 <action android:name="com.android.launcher.action.UNINSTALL_SHORTCUT" /> 115 </intent-filter> 116 </receiver> 117 118 <!-- The settings provider contains Home's data, like the workspace favorites --> 119 <provider 120 android:name="LauncherProvider" 121 android:authorities="com.android.launcher2.settings" 122 android:writePermission="com.android.launcher.permission.WRITE_SETTINGS" 123 android:readPermission="com.android.launcher.permission.READ_SETTINGS" /> 124 125 </application> 126</manifest> 127