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