OSDN Git Service

Moving LauncherExtension to a separate package
[android-x86/packages-apps-Launcher3.git] / AndroidManifest.xml
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:allowBackup="@bool/enable_backup"
69         android:backupAgent="com.android.launcher3.LauncherBackupAgentHelper"
70         android:hardwareAccelerated="true"
71         android:icon="@mipmap/ic_launcher_home"
72         android:label="@string/application_name"
73         android:largeHeap="@bool/config_largeHeap"
74         android:restoreAnyVersion="true"
75         android:supportsRtl="true" >
76
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             android:resumeWhilePausing="true"
86             android:taskAffinity=""
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         <!-- ENABLE_FOR_TESTING
97
98         <activity
99             android:name="com.android.launcher3.testing.LauncherExtension"
100             android:launchMode="singleTask"
101             android:clearTaskOnLaunch="true"
102             android:stateNotNeeded="true"
103             android:theme="@style/Theme"
104             android:windowSoftInputMode="adjustPan"
105             android:screenOrientation="nosensor"
106             android:enabled="false">
107             <intent-filter>
108                 <action android:name="android.intent.action.MAIN" />
109                 <category android:name="android.intent.category.HOME" />
110                 <category android:name="android.intent.category.DEFAULT" />
111                 <category android:name="android.intent.category.MONKEY"/>
112             </intent-filter>
113         </activity>
114
115         -->
116
117         <activity
118             android:name="com.android.launcher3.ToggleWeightWatcher"
119             android:label="@string/toggle_weight_watcher"
120             android:enabled="@bool/debug_memory_enabled"
121             android:icon="@mipmap/ic_launcher_home">
122             <intent-filter>
123                 <action android:name="android.intent.action.MAIN" />
124                 <category android:name="android.intent.category.DEFAULT" />
125                 <category android:name="android.intent.category.LAUNCHER" />
126             </intent-filter>
127         </activity>
128
129         <activity
130             android:name="com.android.launcher3.WallpaperPickerActivity"
131             android:theme="@style/Theme.WallpaperPicker"
132             android:label="@string/pick_wallpaper"
133             android:icon="@mipmap/ic_launcher_wallpaper"
134             android:finishOnCloseSystemDialogs="true"
135             android:process=":wallpaper_chooser">
136             <intent-filter>
137                 <action android:name="android.intent.action.SET_WALLPAPER" />
138                 <category android:name="android.intent.category.DEFAULT" />
139             </intent-filter>
140         </activity>
141
142         <activity
143             android:name="com.android.launcher3.WallpaperCropActivity"
144             android:theme="@style/Theme.WallpaperCropper"
145             android:label="@string/crop_wallpaper"
146             android:icon="@mipmap/ic_launcher_wallpaper"
147             android:finishOnCloseSystemDialogs="true"
148             android:process=":wallpaper_chooser">
149             <intent-filter>
150                 <action android:name="android.service.wallpaper.CROP_AND_SET_WALLPAPER" />
151                 <category android:name="android.intent.category.DEFAULT" />
152                 <data android:mimeType="image/*" />
153             </intent-filter>
154         </activity>
155
156         <activity
157             android:name="com.android.launcher3.SettingsActivity"
158             android:label="@string/settings_button_text"
159             android:autoRemoveFromRecents="true"
160             android:process=":settings_process">
161         </activity>
162
163         <!-- Debugging tools -->
164         <activity
165             android:name="com.android.launcher3.MemoryDumpActivity"
166             android:theme="@android:style/Theme.NoDisplay"
167             android:label="@string/debug_memory_activity"
168             android:enabled="@bool/debug_memory_enabled"
169             android:excludeFromRecents="true"
170             android:icon="@mipmap/ic_launcher_home"
171             >
172             <intent-filter>
173                 <action android:name="android.intent.action.MAIN" />
174                 <category android:name="android.intent.category.DEFAULT" />
175                 <category android:name="android.intent.category.LAUNCHER" />
176             </intent-filter>
177         </activity>
178
179         <service android:name="com.android.launcher3.MemoryTracker"
180             android:enabled="@bool/debug_memory_enabled"
181             >
182         </service>
183
184         <receiver
185             android:name="com.android.launcher3.WallpaperChangedReceiver">
186             <intent-filter>
187                 <action android:name="android.intent.action.WALLPAPER_CHANGED" />
188             </intent-filter>
189         </receiver>
190
191         <!-- Intent received used to install shortcuts from other applications -->
192         <receiver
193             android:name="com.android.launcher3.InstallShortcutReceiver"
194             android:permission="com.android.launcher.permission.INSTALL_SHORTCUT">
195             <intent-filter>
196                 <action android:name="com.android.launcher.action.INSTALL_SHORTCUT" />
197             </intent-filter>
198         </receiver>
199
200         <!-- Intent received used to initialize a restored widget -->
201         <receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver" >
202             <intent-filter>
203                 <action android:name="android.appwidget.action.APPWIDGET_HOST_RESTORED"/>
204             </intent-filter>
205         </receiver>
206
207         <receiver android:name="com.android.launcher3.StartupReceiver" >
208             <intent-filter>
209                 <action android:name="android.intent.action.BOOT_COMPLETED" />
210             </intent-filter>
211         </receiver>
212
213         <!-- The settings provider contains Home's data, like the workspace favorites -->
214         <provider
215             android:name="com.android.launcher3.LauncherProvider"
216             android:authorities="com.android.launcher3.settings"
217             android:exported="true"
218             android:writePermission="com.android.launcher3.permission.WRITE_SETTINGS"
219             android:readPermission="com.android.launcher3.permission.READ_SETTINGS" />
220
221         <meta-data android:name="android.nfc.disable_beam_default"
222                        android:value="true" />
223     </application>
224 </manifest>