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