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

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

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

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

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

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

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

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

156 157 158 159 160 161 162
        <receiver
            android:name="com.android.launcher3.WallpaperChangedReceiver">
            <intent-filter>
                <action android:name="android.intent.action.WALLPAPER_CHANGED" />
            </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 183 184 185 186 187
        <!-- Intent received used to initialize a restored widget -->
        <receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver" >
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_HOST_RESTORED"/>
            </intent-filter>
        </receiver>

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

Daniel Sandler's avatar
Daniel Sandler committed
197
        <receiver android:name="com.android.launcher3.PackageChangedReceiver" >
Michael Jurka's avatar
Michael Jurka committed
198 199 200 201 202 203 204 205
            <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>

206 207 208 209 210 211
        <receiver android:name="com.android.launcher3.StartupReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

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

220 221
        <meta-data android:name="android.nfc.disable_beam_default"
                       android:value="true" />
222 223
    </application>
</manifest>