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