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.launcher">
23
24    <original-package android:name="com.android.launcher2" />
25
26    <permission
27        android:name="com.android.launcher.permission.PRELOAD_WORKSPACE"
28        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
29        android:protectionLevel="signature|privileged" />
30    <permission
31        android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
32        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
33        android:protectionLevel="dangerous"
34        android:label="@string/permlab_install_shortcut"
35        android:description="@string/permdesc_install_shortcut" />
36    <permission
37        android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"
38        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
39        android:protectionLevel="dangerous"
40        android:label="@string/permlab_uninstall_shortcut"
41        android:description="@string/permdesc_uninstall_shortcut"/>
42    <permission
43        android:name="com.android.launcher.permission.READ_SETTINGS"
44        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
45        android:protectionLevel="normal"
46        android:label="@string/permlab_read_settings"
47        android:description="@string/permdesc_read_settings"/>
48    <permission
49        android:name="com.android.launcher.permission.WRITE_SETTINGS"
50        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
51        android:protectionLevel="signature|privileged"
52        android:label="@string/permlab_write_settings"
53        android:description="@string/permdesc_write_settings"/>
54
55    <uses-permission android:name="android.permission.CALL_PHONE" />
56    <uses-permission android:name="android.permission.SET_WALLPAPER" />
57    <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
58    <uses-permission android:name="android.permission.VIBRATE" />
59    <uses-permission android:name="android.permission.BIND_APPWIDGET" />
60    <uses-permission android:name="android.permission.GET_ACCOUNTS_PRIVILEGED" />
61    <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
62    <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS" />
63
64    <application
65        android:name="com.android.launcher2.LauncherApplication"
66        android:label="@string/application_name"
67        android:icon="@mipmap/ic_launcher_home"
68        android:hardwareAccelerated="true"
69        android:largeHeap="@bool/config_largeHeap"
70        android:supportsRtl="true">
71        <activity
72            android:name="com.android.launcher2.Launcher"
73            android:launchMode="singleTask"
74            android:clearTaskOnLaunch="true"
75            android:stateNotNeeded="true"
76            android:resumeWhilePausing="true"
77            android:theme="@style/Theme"
78            android:windowSoftInputMode="adjustPan"
79            android:screenOrientation="nosensor">
80            <intent-filter>
81                <action android:name="android.intent.action.MAIN" />
82                <category android:name="android.intent.category.HOME" />
83                <category android:name="android.intent.category.DEFAULT" />
84                <category android:name="android.intent.category.MONKEY"/>
85            </intent-filter>
86        </activity>
87
88        <activity
89            android:name="com.android.launcher2.WallpaperChooser"
90            android:theme="@style/Theme.WallpaperPicker"
91            android:label="@string/pick_wallpaper"
92            android:icon="@mipmap/ic_launcher_wallpaper"
93            android:finishOnCloseSystemDialogs="true"
94            android:process=":wallpaper_chooser">
95            <intent-filter>
96                <action android:name="android.intent.action.SET_WALLPAPER" />
97                <category android:name="android.intent.category.DEFAULT" />
98            </intent-filter>
99            <meta-data android:name="android.wallpaper.preview"
100                android:resource="@xml/wallpaper_picker_preview" />
101        </activity>
102
103        <!-- Intent received used to prepopulate the default workspace. -->
104        <receiver
105            android:name="com.android.launcher2.PreloadReceiver"
106            android:permission="com.android.launcher.permission.PRELOAD_WORKSPACE">
107            <intent-filter>
108                <action android:name="com.android.launcher.action.PRELOAD_WORKSPACE" />
109            </intent-filter>
110        </receiver>
111
112        <!-- Intent received used to install shortcuts from other applications -->
113        <receiver
114            android:name="com.android.launcher2.InstallShortcutReceiver"
115            android:permission="com.android.launcher.permission.INSTALL_SHORTCUT">
116            <intent-filter>
117                <action android:name="com.android.launcher.action.INSTALL_SHORTCUT" />
118            </intent-filter>
119        </receiver>
120
121        <!-- Intent received used to uninstall shortcuts from other applications -->
122        <receiver
123            android:name="com.android.launcher2.UninstallShortcutReceiver"
124            android:permission="com.android.launcher.permission.UNINSTALL_SHORTCUT">
125            <intent-filter>
126                <action android:name="com.android.launcher.action.UNINSTALL_SHORTCUT" />
127            </intent-filter>
128        </receiver>
129
130        <!-- New user initialization; set up initial wallpaper -->
131        <receiver
132            android:name="com.android.launcher2.UserInitializeReceiver"
133            android:exported="false">
134            <intent-filter>
135                <action android:name="android.intent.action.USER_INITIALIZE" />
136            </intent-filter>
137        </receiver>
138
139        <receiver android:name="com.android.launcher2.PackageChangedReceiver" >
140            <intent-filter>
141                <action android:name="android.intent.action.PACKAGE_CHANGED"/>
142                <action android:name="android.intent.action.PACKAGE_REPLACED"/>
143                <action android:name="android.intent.action.PACKAGE_REMOVED"/>
144                <data android:scheme="package"></data>
145            </intent-filter>
146        </receiver>
147
148        <!-- The settings provider contains Home's data, like the workspace favorites -->
149        <provider
150            android:name="com.android.launcher2.LauncherProvider"
151            android:authorities="com.android.launcher2.settings"
152            android:exported="true"
153            android:writePermission="com.android.launcher.permission.WRITE_SETTINGS"
154            android:readPermission="com.android.launcher.permission.READ_SETTINGS" />
155
156        <meta-data android:name="android.nfc.disable_beam_default"
157                       android:value="true" />
158    </application>
159</manifest>
160