AndroidManifest.xml revision f599ccfe96eae7e4854bddfedd3df945feb9b7f5
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    <uses-feature android:name="android.software.managed_profiles" android:required="false"/>
75
76    <application
77        android:name="com.android.launcher3.LauncherApplication"
78        android:label="@string/application_name"
79        android:icon="@mipmap/ic_launcher_home"
80        android:hardwareAccelerated="true"
81        android:largeHeap="@bool/config_largeHeap"
82        android:supportsRtl="true">
83        <activity
84            android:name="com.android.launcher3.Launcher"
85            android:launchMode="singleTask"
86            android:clearTaskOnLaunch="true"
87            android:stateNotNeeded="true"
88            android:theme="@style/Theme"
89            android:windowSoftInputMode="adjustPan"
90            android:screenOrientation="nosensor">
91            <intent-filter>
92                <action android:name="android.intent.action.MAIN" />
93                <category android:name="android.intent.category.HOME" />
94                <category android:name="android.intent.category.DEFAULT" />
95                <category android:name="android.intent.category.MONKEY"/>
96            </intent-filter>
97        </activity>
98
99        <activity
100            android:name="com.android.launcher3.ToggleWeightWatcher"
101            android:label="@string/toggle_weight_watcher"
102            android:enabled="@bool/debug_memory_enabled"
103            android:icon="@mipmap/ic_launcher_home">
104            <intent-filter>
105                <action android:name="android.intent.action.MAIN" />
106                <category android:name="android.intent.category.DEFAULT" />
107                <category android:name="android.intent.category.LAUNCHER" />
108            </intent-filter>
109        </activity>
110
111        <activity
112            android:name="com.android.launcher3.LauncherWallpaperPickerActivity"
113            android:theme="@style/Theme.WallpaperPicker"
114            android:label="@string/pick_wallpaper"
115            android:icon="@mipmap/ic_launcher_wallpaper"
116            android:finishOnCloseSystemDialogs="true"
117            android:process=":wallpaper_chooser">
118            <intent-filter>
119                <action android:name="android.intent.action.SET_WALLPAPER" />
120                <category android:name="android.intent.category.DEFAULT" />
121            </intent-filter>
122        </activity>
123
124        <activity
125            android:name="com.android.launcher3.WallpaperCropActivity"
126            android:theme="@style/Theme.WallpaperCropper"
127            android:label="@string/crop_wallpaper"
128            android:icon="@mipmap/ic_launcher_wallpaper"
129            android:finishOnCloseSystemDialogs="true"
130            android:process=":wallpaper_chooser">
131            <intent-filter>
132                <action android:name="android.service.wallpaper.CROP_AND_SET_WALLPAPER" />
133                <category android:name="android.intent.category.DEFAULT" />
134                <data android:mimeType="image/*" />
135            </intent-filter>
136        </activity>
137
138        <!-- Debugging tools -->
139        <activity
140            android:name="com.android.launcher3.MemoryDumpActivity"
141            android:theme="@android:style/Theme.NoDisplay"
142            android:label="@string/debug_memory_activity"
143            android:enabled="@bool/debug_memory_enabled"
144            android:excludeFromRecents="true"
145            android:icon="@mipmap/ic_launcher_home"
146            >
147            <intent-filter>
148                <action android:name="android.intent.action.MAIN" />
149                <category android:name="android.intent.category.DEFAULT" />
150                <category android:name="android.intent.category.LAUNCHER" />
151            </intent-filter>
152        </activity>
153
154        <service android:name="com.android.launcher3.MemoryTracker"
155            android:enabled="@bool/debug_memory_enabled"
156            >
157        </service>
158
159        <!-- Intent received used to prepopulate the default workspace. -->
160        <receiver
161            android:name="com.android.launcher3.PreloadReceiver"
162            android:permission="com.android.launcher3.permission.PRELOAD_WORKSPACE">
163            <intent-filter>
164                <action android:name="com.android.launcher3.action.PRELOAD_WORKSPACE" />
165            </intent-filter>
166        </receiver>
167
168        <receiver
169            android:name="com.android.launcher3.WallpaperChangedReceiver">
170            <intent-filter>
171                <action android:name="android.intent.action.WALLPAPER_CHANGED" />
172            </intent-filter>
173        </receiver>
174
175        <!-- Intent received used to install shortcuts from other applications -->
176        <receiver
177            android:name="com.android.launcher3.InstallShortcutReceiver"
178            android:permission="com.android.launcher3.permission.INSTALL_SHORTCUT">
179            <intent-filter>
180                <action android:name="com.android.launcher3.action.INSTALL_SHORTCUT" />
181            </intent-filter>
182        </receiver>
183
184        <!-- Intent received used to uninstall shortcuts from other applications -->
185        <receiver
186            android:name="com.android.launcher3.UninstallShortcutReceiver"
187            android:permission="com.android.launcher3.permission.UNINSTALL_SHORTCUT">
188            <intent-filter>
189                <action android:name="com.android.launcher3.action.UNINSTALL_SHORTCUT" />
190            </intent-filter>
191        </receiver>
192
193        <!-- New user initialization; set up initial wallpaper -->
194        <receiver
195            android:name="com.android.launcher3.UserInitializeReceiver"
196            android:exported="false">
197            <intent-filter>
198                <action android:name="android.intent.action.USER_INITIALIZE" />
199            </intent-filter>
200        </receiver>
201
202        <receiver android:name="com.android.launcher3.PackageChangedReceiver" >
203            <intent-filter>
204                <action android:name="android.intent.action.PACKAGE_CHANGED"/>
205                <action android:name="android.intent.action.PACKAGE_REPLACED"/>
206                <action android:name="android.intent.action.PACKAGE_REMOVED"/>
207                <data android:scheme="package"></data>
208            </intent-filter>
209        </receiver>
210
211        <receiver android:name="com.android.launcher3.StartupReceiver" >
212            <intent-filter>
213                <action android:name="android.intent.action.BOOT_COMPLETED" />
214            </intent-filter>
215        </receiver>
216
217        <!-- The settings provider contains Home's data, like the workspace favorites -->
218        <provider
219            android:name="com.android.launcher3.LauncherProvider"
220            android:authorities="com.android.launcher3.settings"
221            android:exported="true"
222            android:writePermission="com.android.launcher3.permission.WRITE_SETTINGS"
223            android:readPermission="com.android.launcher3.permission.READ_SETTINGS" />
224
225        <meta-data android:name="android.nfc.disable_beam_default"
226                       android:value="true" />
227    </application>
228</manifest>
229