AndroidManifest.xml 9.53 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

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

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

58 59 60 61
    <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" />
62
    <uses-permission android:name="android.permission.BIND_APPWIDGET" />
63
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
64
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
65 66
    <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
67 68
    <uses-permission android:name="com.android.launcher3.permission.READ_SETTINGS" />
    <uses-permission android:name="com.android.launcher3.permission.WRITE_SETTINGS" />
69
    <uses-permission android:name="com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS" />
70

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

94 95 96
        <activity
            android:name="com.android.launcher3.ToggleWeightWatcher"
            android:label="@string/toggle_weight_watcher"
97
            android:enabled="@bool/debug_memory_enabled"
98 99 100 101 102 103 104 105
            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>

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

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

133 134 135 136 137 138
        <!-- 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"
139 140
            android:excludeFromRecents="true"
            android:icon="@mipmap/ic_launcher_home"
141 142 143 144 145 146 147 148
            >
            <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>

149 150 151 152 153
        <service android:name="com.android.launcher3.MemoryTracker"
            android:enabled="@bool/debug_memory_enabled"
            >
        </service>

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

163 164
        <!-- Intent received used to install shortcuts from other applications -->
        <receiver
Daniel Sandler's avatar
Daniel Sandler committed
165 166
            android:name="com.android.launcher3.InstallShortcutReceiver"
            android:permission="com.android.launcher3.permission.INSTALL_SHORTCUT">
167
            <intent-filter>
Daniel Sandler's avatar
Daniel Sandler committed
168
                <action android:name="com.android.launcher3.action.INSTALL_SHORTCUT" />
169 170 171 172 173
            </intent-filter>
        </receiver>

        <!-- Intent received used to uninstall shortcuts from other applications -->
        <receiver
Daniel Sandler's avatar
Daniel Sandler committed
174 175
            android:name="com.android.launcher3.UninstallShortcutReceiver"
            android:permission="com.android.launcher3.permission.UNINSTALL_SHORTCUT">
176
            <intent-filter>
Daniel Sandler's avatar
Daniel Sandler committed
177
                <action android:name="com.android.launcher3.action.UNINSTALL_SHORTCUT" />
178 179 180
            </intent-filter>
        </receiver>

181 182
        <!-- New user initialization; set up initial wallpaper -->
        <receiver
Daniel Sandler's avatar
Daniel Sandler committed
183
            android:name="com.android.launcher3.UserInitializeReceiver"
184 185 186 187 188
            android:exported="false">
            <intent-filter>
                <action android:name="android.intent.action.USER_INITIALIZE" />
            </intent-filter>
        </receiver>
Michael Jurka's avatar
Michael Jurka committed
189

Daniel Sandler's avatar
Daniel Sandler committed
190
        <receiver android:name="com.android.launcher3.PackageChangedReceiver" >
Michael Jurka's avatar
Michael Jurka committed
191 192 193 194 195 196 197 198
            <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>

199 200
        <!-- The settings provider contains Home's data, like the workspace favorites -->
        <provider
Daniel Sandler's avatar
Daniel Sandler committed
201 202
            android:name="com.android.launcher3.LauncherProvider"
            android:authorities="com.android.launcher3.settings"
203
            android:exported="true"
Daniel Sandler's avatar
Daniel Sandler committed
204 205
            android:writePermission="com.android.launcher3.permission.WRITE_SETTINGS"
            android:readPermission="com.android.launcher3.permission.READ_SETTINGS" />
206

207 208
        <meta-data android:name="android.nfc.disable_beam_default"
                       android:value="true" />
209 210
    </application>
</manifest>