AndroidManifest.xml revision e8a30577f7451ed0f50ce7cd86e0d3f0c0e0d0bc
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.launcher3">
23    <uses-sdk android:targetSdkVersion="19" android:minSdkVersion="16"/>
24
25    <permission
26        android:name="com.android.launcher3.permission.PRELOAD_WORKSPACE"
27        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
28        android:protectionLevel="signatureOrSystem" />
29    <permission
30        android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
31        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
32        android:protectionLevel="dangerous"
33        android:label="@string/permlab_install_shortcut"
34        android:description="@string/permdesc_install_shortcut" />
35    <permission
36        android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"
37        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
38        android:protectionLevel="dangerous"
39        android:label="@string/permlab_uninstall_shortcut"
40        android:description="@string/permdesc_uninstall_shortcut"/>
41    <permission
42        android:name="com.android.launcher3.permission.READ_SETTINGS"
43        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
44        android:protectionLevel="normal"
45        android:label="@string/permlab_read_settings"
46        android:description="@string/permdesc_read_settings"/>
47    <permission
48        android:name="com.android.launcher3.permission.WRITE_SETTINGS"
49        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
50        android:protectionLevel="signatureOrSystem"
51        android:label="@string/permlab_write_settings"
52        android:description="@string/permdesc_write_settings"/>
53
54    <permission
55        android:name="com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS"
56        android:protectionLevel="signature"
57        />
58
59    <uses-permission android:name="android.permission.CALL_PHONE" />
60    <uses-permission android:name="android.permission.SET_WALLPAPER" />
61    <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
62    <uses-permission android:name="android.permission.VIBRATE" />
63    <uses-permission android:name="android.permission.BIND_APPWIDGET" />
64    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
65    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
66    <uses-permission android:name="android.permission.BROADCAST_STICKY"/>
67    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
68    <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
69    <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS" />
70    <uses-permission android:name="com.android.launcher3.permission.READ_SETTINGS" />
71    <uses-permission android:name="com.android.launcher3.permission.WRITE_SETTINGS" />
72    <uses-permission android:name="com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS" />
73
74    <application
75        android:name="com.android.launcher3.LauncherApplication"
76        android:label="@string/application_name"
77        android:icon="@mipmap/ic_launcher_home"
78        android:hardwareAccelerated="true"
79        android:largeHeap="@bool/config_largeHeap"
80        android:supportsRtl="true">
81        <activity
82            android:name="com.android.launcher3.Launcher"
83            android:launchMode="singleTask"
84            android:clearTaskOnLaunch="true"
85            android:stateNotNeeded="true"
86            android:theme="@style/Theme"
87            android:windowSoftInputMode="adjustPan"
88            android:screenOrientation="nosensor">
89            <intent-filter>
90                <action android:name="android.intent.action.MAIN" />
91                <category android:name="android.intent.category.HOME" />
92                <category android:name="android.intent.category.DEFAULT" />
93                <category android:name="android.intent.category.MONKEY"/>
94            </intent-filter>
95        </activity>
96
97        <activity
98            android:name="com.android.launcher3.ToggleWeightWatcher"
99            android:label="@string/toggle_weight_watcher"
100            android:enabled="@bool/debug_memory_enabled"
101            android:icon="@mipmap/ic_launcher_home">
102            <intent-filter>
103                <action android:name="android.intent.action.MAIN" />
104                <category android:name="android.intent.category.DEFAULT" />
105                <category android:name="android.intent.category.LAUNCHER" />
106            </intent-filter>
107        </activity>
108
109        <activity
110            android:name="com.android.launcher3.LauncherWallpaperPickerActivity"
111            android:theme="@style/Theme.WallpaperPicker"
112            android:label="@string/pick_wallpaper"
113            android:icon="@mipmap/ic_launcher_wallpaper"
114            android:finishOnCloseSystemDialogs="true"
115            android:process=":wallpaper_chooser">
116            <intent-filter>
117                <action android:name="android.intent.action.SET_WALLPAPER" />
118                <category android:name="android.intent.category.DEFAULT" />
119            </intent-filter>
120        </activity>
121
122        <activity
123            android:name="com.android.launcher3.WallpaperCropActivity"
124            android:theme="@style/Theme.WallpaperCropper"
125            android:label="@string/crop_wallpaper"
126            android:icon="@mipmap/ic_launcher_wallpaper"
127            android:finishOnCloseSystemDialogs="true"
128            android:process=":wallpaper_chooser">
129            <intent-filter>
130                <action android:name="android.service.wallpaper.CROP_AND_SET_WALLPAPER" />
131                <category android:name="android.intent.category.DEFAULT" />
132                <data android:mimeType="image/*" />
133            </intent-filter>
134        </activity>
135
136        <!-- Debugging tools -->
137        <activity
138            android:name="com.android.launcher3.MemoryDumpActivity"
139            android:theme="@android:style/Theme.NoDisplay"
140            android:label="@string/debug_memory_activity"
141            android:enabled="@bool/debug_memory_enabled"
142            android:excludeFromRecents="true"
143            android:icon="@mipmap/ic_launcher_home"
144            >
145            <intent-filter>
146                <action android:name="android.intent.action.MAIN" />
147                <category android:name="android.intent.category.DEFAULT" />
148                <category android:name="android.intent.category.LAUNCHER" />
149            </intent-filter>
150        </activity>
151
152        <service android:name="com.android.launcher3.MemoryTracker"
153            android:enabled="@bool/debug_memory_enabled"
154            >
155        </service>
156
157        <!-- Intent received used to prepopulate the default workspace. -->
158        <receiver
159            android:name="com.android.launcher3.PreloadReceiver"
160            android:permission="com.android.launcher3.permission.PRELOAD_WORKSPACE">
161            <intent-filter>
162                <action android:name="com.android.launcher3.action.PRELOAD_WORKSPACE" />
163            </intent-filter>
164        </receiver>
165
166        <receiver
167            android:name="com.android.launcher3.WallpaperChangedReceiver">
168            <intent-filter>
169                <action android:name="android.intent.action.WALLPAPER_CHANGED" />
170            </intent-filter>
171        </receiver>
172
173        <!-- Intent received used to install shortcuts from other applications -->
174        <receiver
175            android:name="com.android.launcher3.InstallShortcutReceiver"
176            android:permission="com.android.launcher3.permission.INSTALL_SHORTCUT">
177            <intent-filter>
178                <action android:name="com.android.launcher3.action.INSTALL_SHORTCUT" />
179            </intent-filter>
180        </receiver>
181
182        <!-- Intent received used to uninstall shortcuts from other applications -->
183        <receiver
184            android:name="com.android.launcher3.UninstallShortcutReceiver"
185            android:permission="com.android.launcher3.permission.UNINSTALL_SHORTCUT">
186            <intent-filter>
187                <action android:name="com.android.launcher3.action.UNINSTALL_SHORTCUT" />
188            </intent-filter>
189        </receiver>
190
191        <!-- New user initialization; set up initial wallpaper -->
192        <receiver
193            android:name="com.android.launcher3.UserInitializeReceiver"
194            android:exported="false">
195            <intent-filter>
196                <action android:name="android.intent.action.USER_INITIALIZE" />
197            </intent-filter>
198        </receiver>
199
200        <receiver android:name="com.android.launcher3.PackageChangedReceiver" >
201            <intent-filter>
202                <action android:name="android.intent.action.PACKAGE_CHANGED"/>
203                <action android:name="android.intent.action.PACKAGE_REPLACED"/>
204                <action android:name="android.intent.action.PACKAGE_REMOVED"/>
205                <data android:scheme="package"></data>
206            </intent-filter>
207        </receiver>
208
209        <receiver android:name="com.android.launcher3.StartupReceiver" >
210            <intent-filter>
211                <action android:name="android.intent.action.BOOT_COMPLETED" />
212            </intent-filter>
213        </receiver>
214
215        <!-- The settings provider contains Home's data, like the workspace favorites -->
216        <provider
217            android:name="com.android.launcher3.LauncherProvider"
218            android:authorities="com.android.launcher3.settings"
219            android:exported="true"
220            android:writePermission="com.android.launcher3.permission.WRITE_SETTINGS"
221            android:readPermission="com.android.launcher3.permission.READ_SETTINGS" />
222
223        <meta-data android:name="android.nfc.disable_beam_default"
224                       android:value="true" />
225    </application>
226</manifest>
227