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