AndroidManifest.xml 10.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2008, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
**     http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
Daniel Sandler's avatar
Daniel Sandler committed
22
    package="com.android.launcher3">
23
    <uses-sdk android:targetSdkVersion="19" android:minSdkVersion="16"/>
24

25
    <permission
Daniel Sandler's avatar
Daniel Sandler committed
26
        android:name="com.android.launcher3.permission.PRELOAD_WORKSPACE"
27
        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
28
        android:protectionLevel="signatureOrSystem" />
29
    <permission
30
        android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
31
        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
32
        android:protectionLevel="dangerous"
33 34 35
        android:label="@string/permlab_install_shortcut"
        android:description="@string/permdesc_install_shortcut" />
    <permission
36
        android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"
37
        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
38
        android:protectionLevel="dangerous"
39 40 41
        android:label="@string/permlab_uninstall_shortcut"
        android:description="@string/permdesc_uninstall_shortcut"/>
    <permission
Daniel Sandler's avatar
Daniel Sandler committed
42
        android:name="com.android.launcher3.permission.READ_SETTINGS"
43 44 45 46 47
        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
        android:protectionLevel="normal"
        android:label="@string/permlab_read_settings"
        android:description="@string/permdesc_read_settings"/>
    <permission
Daniel Sandler's avatar
Daniel Sandler committed
48
        android:name="com.android.launcher3.permission.WRITE_SETTINGS"
49
        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
50
        android:protectionLevel="signatureOrSystem"
51 52 53
        android:label="@string/permlab_write_settings"
        android:description="@string/permdesc_write_settings"/>

54 55 56 57 58
    <permission
        android:name="com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS"
        android:protectionLevel="signature"
        />

59 60 61 62
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.SET_WALLPAPER" />
    <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
    <uses-permission android:name="android.permission.VIBRATE" />
63
    <uses-permission android:name="android.permission.BIND_APPWIDGET" />
64
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
65
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
66 67
    <uses-permission android:name="android.permission.BROADCAST_STICKY"/>
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
68 69
    <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
    <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS" />
Daniel Sandler's avatar
Daniel Sandler committed
70 71
    <uses-permission android:name="com.android.launcher3.permission.READ_SETTINGS" />
    <uses-permission android:name="com.android.launcher3.permission.WRITE_SETTINGS" />
72
    <uses-permission android:name="com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS" />
73

74
    <application
Daniel Sandler's avatar
Daniel Sandler committed
75
        android:name="com.android.launcher3.LauncherApplication"
76
        android:label="@string/application_name"
77
        android:icon="@mipmap/ic_launcher_home"
78
        android:hardwareAccelerated="true"
79 80
        android:largeHeap="@bool/config_largeHeap"
        android:supportsRtl="true">
81
        <activity
Daniel Sandler's avatar
Daniel Sandler committed
82
            android:name="com.android.launcher3.Launcher"
83 84 85
            android:launchMode="singleTask"
            android:clearTaskOnLaunch="true"
            android:stateNotNeeded="true"
Adam Cohen's avatar
Adam Cohen committed
86
            android:theme="@style/Theme"
87
            android:windowSoftInputMode="adjustPan"
88
            android:screenOrientation="nosensor">
89 90
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
Joe Onorato's avatar
Joe Onorato committed
91
                <category android:name="android.intent.category.HOME" />
92
                <category android:name="android.intent.category.DEFAULT" />
Joe Onorato's avatar
Joe Onorato committed
93
                <category android:name="android.intent.category.MONKEY"/>
94 95 96
            </intent-filter>
        </activity>

97 98 99
        <activity
            android:name="com.android.launcher3.ToggleWeightWatcher"
            android:label="@string/toggle_weight_watcher"
100
            android:enabled="@bool/debug_memory_enabled"
101 102 103 104 105 106 107 108
            android:icon="@mipmap/ic_launcher_home">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

109
        <activity
110
            android:name="com.android.launcher3.LauncherWallpaperPickerActivity"
111
            android:theme="@style/Theme.WallpaperPicker"
112 113 114 115 116
            android:label="@string/pick_wallpaper"
            android:icon="@mipmap/ic_launcher_wallpaper"
            android:finishOnCloseSystemDialogs="true"
            android:process=":wallpaper_chooser">
            <intent-filter>
117
                <action android:name="android.intent.action.SET_WALLPAPER" />
118 119 120 121
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

122 123
        <activity
            android:name="com.android.launcher3.WallpaperCropActivity"
124 125
            android:theme="@style/Theme.WallpaperCropper"
            android:label="@string/crop_wallpaper"
126 127 128 129
            android:icon="@mipmap/ic_launcher_wallpaper"
            android:finishOnCloseSystemDialogs="true"
            android:process=":wallpaper_chooser">
            <intent-filter>
130
                <action android:name="android.service.wallpaper.CROP_AND_SET_WALLPAPER" />
131
                <category android:name="android.intent.category.DEFAULT" />
132
                <data android:mimeType="image/*" />
133 134
            </intent-filter>
        </activity>
135

136 137 138 139 140 141
        <!-- Debugging tools -->
        <activity
            android:name="com.android.launcher3.MemoryDumpActivity"
            android:theme="@android:style/Theme.NoDisplay"
            android:label="@string/debug_memory_activity"
            android:enabled="@bool/debug_memory_enabled"
142 143
            android:excludeFromRecents="true"
            android:icon="@mipmap/ic_launcher_home"
144 145 146 147 148 149 150 151
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

152 153 154 155 156
        <service android:name="com.android.launcher3.MemoryTracker"
            android:enabled="@bool/debug_memory_enabled"
            >
        </service>

157 158
        <!-- Intent received used to prepopulate the default workspace. -->
        <receiver
Daniel Sandler's avatar
Daniel Sandler committed
159 160
            android:name="com.android.launcher3.PreloadReceiver"
            android:permission="com.android.launcher3.permission.PRELOAD_WORKSPACE">
161
            <intent-filter>
Daniel Sandler's avatar
Daniel Sandler committed
162
                <action android:name="com.android.launcher3.action.PRELOAD_WORKSPACE" />
163 164 165
            </intent-filter>
        </receiver>

166 167 168 169 170 171 172
        <receiver
            android:name="com.android.launcher3.WallpaperChangedReceiver">
            <intent-filter>
                <action android:name="android.intent.action.WALLPAPER_CHANGED" />
            </intent-filter>
        </receiver>

173 174
        <!-- Intent received used to install shortcuts from other applications -->
        <receiver
Daniel Sandler's avatar
Daniel Sandler committed
175 176
            android:name="com.android.launcher3.InstallShortcutReceiver"
            android:permission="com.android.launcher3.permission.INSTALL_SHORTCUT">
177
            <intent-filter>
Daniel Sandler's avatar
Daniel Sandler committed
178
                <action android:name="com.android.launcher3.action.INSTALL_SHORTCUT" />
179 180 181 182 183
            </intent-filter>
        </receiver>

        <!-- Intent received used to uninstall shortcuts from other applications -->
        <receiver
Daniel Sandler's avatar
Daniel Sandler committed
184 185
            android:name="com.android.launcher3.UninstallShortcutReceiver"
            android:permission="com.android.launcher3.permission.UNINSTALL_SHORTCUT">
186
            <intent-filter>
Daniel Sandler's avatar
Daniel Sandler committed
187
                <action android:name="com.android.launcher3.action.UNINSTALL_SHORTCUT" />
188 189 190
            </intent-filter>
        </receiver>

191 192
        <!-- New user initialization; set up initial wallpaper -->
        <receiver
Daniel Sandler's avatar
Daniel Sandler committed
193
            android:name="com.android.launcher3.UserInitializeReceiver"
194 195 196 197 198
            android:exported="false">
            <intent-filter>
                <action android:name="android.intent.action.USER_INITIALIZE" />
            </intent-filter>
        </receiver>
Michael Jurka's avatar
Michael Jurka committed
199

Daniel Sandler's avatar
Daniel Sandler committed
200
        <receiver android:name="com.android.launcher3.PackageChangedReceiver" >
Michael Jurka's avatar
Michael Jurka committed
201 202 203 204 205 206 207 208
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_CHANGED"/>
                <action android:name="android.intent.action.PACKAGE_REPLACED"/>
                <action android:name="android.intent.action.PACKAGE_REMOVED"/>
                <data android:scheme="package"></data>
            </intent-filter>
        </receiver>

209 210 211 212 213 214
        <receiver android:name="com.android.launcher3.StartupReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

215 216
        <!-- The settings provider contains Home's data, like the workspace favorites -->
        <provider
Daniel Sandler's avatar
Daniel Sandler committed
217 218
            android:name="com.android.launcher3.LauncherProvider"
            android:authorities="com.android.launcher3.settings"
219
            android:exported="true"
Daniel Sandler's avatar
Daniel Sandler committed
220 221
            android:writePermission="com.android.launcher3.permission.WRITE_SETTINGS"
            android:readPermission="com.android.launcher3.permission.READ_SETTINGS" />
222

223 224
        <meta-data android:name="android.nfc.disable_beam_default"
                       android:value="true" />
225 226
    </application>
</manifest>