1 <?xml version="1.0" encoding="utf-8"?>
5 ** Copyright 2008, The Android Open Source Project
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
11 ** http://www.apache.org/licenses/LICENSE-2.0
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.
21 xmlns:android="http://schemas.android.com/apk/res/android"
22 package="com.android.launcher3">
23 <uses-sdk android:targetSdkVersion="23" android:minSdkVersion="21"/>
25 Manifest entries specific to Launcher3. This is merged with AndroidManifest-common.xml.
26 Refer comments around specific entries on how to extend individual components.
30 Permissions required for read/write access to the workspace data. These permission name
31 should not conflict with that defined in other apps, as such an app should embed its package
32 name in the permissions. eq com.mypackage.permission.READ_SETTINGS
35 android:name="com.android.launcher3.permission.READ_SETTINGS"
36 android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
37 android:protectionLevel="normal"
38 android:label="@string/permlab_read_settings"
39 android:description="@string/permdesc_read_settings"/>
41 android:name="com.android.launcher3.permission.WRITE_SETTINGS"
42 android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
43 android:protectionLevel="signatureOrSystem"
44 android:label="@string/permlab_write_settings"
45 android:description="@string/permdesc_write_settings"/>
47 <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
48 <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS" />
49 <uses-permission android:name="com.android.launcher3.permission.READ_SETTINGS" />
50 <uses-permission android:name="com.android.launcher3.permission.WRITE_SETTINGS" />
55 Main launcher activity. When extending only change the name, and keep all the
56 attributes and intent filters the same
59 android:name="com.android.launcher3.Launcher"
60 android:launchMode="singleTask"
61 android:clearTaskOnLaunch="true"
62 android:stateNotNeeded="true"
63 android:theme="@style/LauncherTheme"
64 android:windowSoftInputMode="adjustPan"
65 android:screenOrientation="nosensor"
66 android:configChanges="keyboard|keyboardHidden|navigation"
67 android:resumeWhilePausing="true"
68 android:taskAffinity=""
69 android:enabled="true">
71 <action android:name="android.intent.action.MAIN" />
72 <category android:name="android.intent.category.HOME" />
73 <category android:name="android.intent.category.DEFAULT" />
74 <category android:name="android.intent.category.MONKEY"/>
79 The settings activity. When extending keep the intent filter present
82 android:name="com.android.launcher3.SettingsActivity"
83 android:label="@string/settings_button_text"
84 android:autoRemoveFromRecents="true">
86 <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
87 <category android:name="android.intent.category.DEFAULT" />
92 The settings provider contains Home's data, like the workspace favorites. The permissions
93 should be changed to what is defined above. The authorities should also be changed to
94 represent the package name.
97 android:name="com.android.launcher3.LauncherProvider"
98 android:authorities="com.android.launcher3.settings"
99 android:exported="true"
100 android:writePermission="com.android.launcher3.permission.WRITE_SETTINGS"
101 android:readPermission="com.android.launcher3.permission.READ_SETTINGS" />
103 <!-- ENABLE_FOR_TESTING
106 android:name="com.android.launcher3.testing.LauncherExtension"
107 android:launchMode="singleTask"
108 android:clearTaskOnLaunch="true"
109 android:stateNotNeeded="true"
110 android:theme="@style/Theme"
111 android:windowSoftInputMode="adjustPan"
112 android:screenOrientation="nosensor"
115 <action android:name="android.intent.action.MAIN" />
116 <category android:name="android.intent.category.HOME" />
117 <category android:name="android.intent.category.DEFAULT" />
118 <category android:name="android.intent.category.MONKEY"/>
123 android:name="com.android.launcher3.testing.MemoryDumpActivity"
124 android:theme="@android:style/Theme.NoDisplay"
125 android:label="* HPROF"
126 android:excludeFromRecents="true"
127 android:icon="@mipmap/ic_launcher_home"
130 <action android:name="android.intent.action.MAIN" />
131 <category android:name="android.intent.category.DEFAULT" />
132 <category android:name="android.intent.category.LAUNCHER" />
137 android:name="com.android.launcher3.testing.ToggleWeightWatcher"
138 android:label="Show Mem"
139 android:icon="@mipmap/ic_launcher_home">
141 <action android:name="android.intent.action.MAIN" />
142 <category android:name="android.intent.category.DEFAULT" />
143 <category android:name="android.intent.category.LAUNCHER" />
147 <service android:name="com.android.launcher3.testing.MemoryTracker" />