OSDN Git Service

Fix crashing of the Android-x86 version
[android-x86/packages-apps-Taskbar.git] / app / src / androidx86 / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2017 Braden Farmer
3
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
16
17 <!-- Manifest used for Android-x86 builds of Taskbar, with the following changes:
18
19      * HomeActivity is enabled by default
20      * SendSettingsReceiver and ReceiveSettingsReceiver are not exposed
21 -->
22 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
23           package="com.farmerbb.taskbar" >
24
25     <permission android:name="com.farmerbb.taskbar.androidx86.START_STOP_TASKBAR"
26         android:protectionLevel="signature" />
27
28     <permission android:name="com.farmerbb.taskbar.androidx86.ENABLE_DISABLE_HOME"
29         android:protectionLevel="signature" />
30
31     <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
32     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
33     <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
34     <uses-permission android:name="com.farmerbb.taskbar.androidx86.START_STOP_TASKBAR" />
35     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
36     <uses-permission android:name="android.permission.GET_TASKS" />
37     <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
38     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
39     <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
40
41     <uses-feature
42         android:name="android.hardware.touchscreen"
43         android:required="false"/>
44
45     <supports-screens
46         android:anyDensity="true"
47         android:largeScreens="true"
48         android:normalScreens="true"
49         android:smallScreens="true"
50         android:xlargeScreens="true"/>
51
52     <application
53         android:allowBackup="true"
54         android:icon="@mipmap/ic_launcher"
55         android:label="@string/app_name"
56         android:theme="@style/AppTheme" >
57
58         <activity
59             android:name=".MainActivity"
60             android:label="@string/app_name"
61             android:launchMode="singleTask" >
62             <intent-filter>
63                 <action android:name="android.intent.action.MAIN"/>
64                 <action android:name="android.intent.action.APPLICATION_PREFERENCES"/>
65
66                 <category android:name="android.intent.category.LAUNCHER"/>
67             </intent-filter>
68         </activity>
69         <activity
70             android:name=".activity.InvisibleActivity"
71             android:documentLaunchMode="always"
72             android:excludeFromRecents="true"
73             android:launchMode="singleTask"
74             android:theme="@style/AppTheme.InvisibleActivity"/>
75         <activity
76             android:name=".activity.InvisibleActivityAlt"
77             android:documentLaunchMode="always"
78             android:excludeFromRecents="true"
79             android:launchMode="singleTask"
80             android:theme="@style/AppTheme.Incognito"/>
81         <activity
82             android:name=".activity.dark.InvisibleActivityAltDark"
83             android:documentLaunchMode="always"
84             android:excludeFromRecents="true"
85             android:launchMode="singleTask"
86             android:theme="@style/AppTheme.Incognito.Dark"/>
87         <activity
88             android:name=".activity.InvisibleActivityFreeform"
89             android:documentLaunchMode="always"
90             android:excludeFromRecents="true"
91             android:launchMode="singleInstance"
92             android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize|layoutDirection"
93             android:theme="@style/AppTheme.InvisibleActivity"/>
94         <activity
95             android:name=".activity.HomeActivity"
96             android:label="@string/app_name"
97             android:launchMode="singleTask"
98             android:enabled="true"
99             android:theme="@style/AppTheme.HomeActivity">
100             <intent-filter>
101                 <action android:name="android.intent.action.MAIN"/>
102
103                 <category android:name="android.intent.category.DEFAULT"/>
104                 <category android:name="android.intent.category.HOME"/>
105             </intent-filter>
106         </activity>
107         <activity
108             android:name=".activity.KeyboardShortcutActivity"
109             android:label="@string/app_name"
110             android:documentLaunchMode="always"
111             android:excludeFromRecents="true"
112             android:launchMode="singleTask"
113             android:enabled="false"
114             android:theme="@android:style/Theme.NoDisplay">
115             <intent-filter>
116                 <action android:name="android.intent.action.MAIN"/>
117                 <action android:name="android.intent.action.ASSIST" />
118
119                 <category android:name="android.intent.category.DEFAULT"/>
120                 <category android:name="android.intent.category.APP_MAPS" />
121                 <category android:name="android.intent.category.APP_CALENDAR" />
122             </intent-filter>
123         </activity>
124         <activity
125             android:name=".activity.ContextMenuActivity"
126             android:documentLaunchMode="always"
127             android:excludeFromRecents="true"
128             android:theme="@style/AppTheme.Dialog"/>
129         <activity
130             android:name=".activity.dark.ContextMenuActivityDark"
131             android:documentLaunchMode="always"
132             android:excludeFromRecents="true"
133             android:theme="@style/AppTheme.Dialog.Dark"/>
134         <activity
135             android:name=".activity.SelectAppActivity"
136             android:theme="@style/AppTheme.Dialog.Blacklist"/>
137         <activity
138             android:name=".activity.dark.SelectAppActivityDark"
139             android:theme="@style/AppTheme.Dialog.Blacklist.Dark"/>
140         <activity
141             android:name=".activity.DummyActivity"
142             android:documentLaunchMode="always"
143             android:excludeFromRecents="true"
144             android:theme="@style/AppTheme.Incognito"/>
145         <activity
146             android:name=".activity.ImportSettingsActivity"
147             android:theme="@style/AppTheme.Dialog"/>
148         <activity
149             android:name=".activity.IconPackActivity"
150             android:theme="@style/AppTheme.Dialog.Blacklist"/>
151         <activity
152             android:name=".activity.dark.IconPackActivityDark"
153             android:theme="@style/AppTheme.Dialog.Blacklist.Dark"/>
154         <activity
155             android:name=".activity.IconPackApplyActivity"
156             android:launchMode="singleTask"
157             android:theme="@style/AppTheme.Dialog"
158             android:exported="true">
159             <intent-filter>
160                 <action android:name="android.intent.action.MAIN"/>
161                 <action android:name="com.farmerbb.taskbar.APPLY_ICON_PACK"/>
162
163                 <category android:name="android.intent.category.DEFAULT"/>
164             </intent-filter>
165         </activity>
166         <activity
167             android:name=".activity.ShortcutActivity"
168             android:icon="@mipmap/ic_freeform_mode"
169             android:label="@string/pref_header_freeform"
170             android:documentLaunchMode="always"
171             android:excludeFromRecents="true"
172             android:enabled="false"
173             android:theme="@android:style/Theme.NoDisplay" >
174             <intent-filter>
175                 <action android:name="android.intent.action.MAIN" />
176                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
177
178                 <category android:name="android.intent.category.DEFAULT" />
179             </intent-filter>
180         </activity>
181         <activity
182             android:name=".activity.StartTaskbarActivity"
183             android:label="@string/start_taskbar"
184             android:documentLaunchMode="always"
185             android:excludeFromRecents="true"
186             android:enabled="true"
187             android:theme="@android:style/Theme.NoDisplay" >
188             <intent-filter>
189                 <action android:name="android.intent.action.MAIN" />
190                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
191
192                 <category android:name="android.intent.category.DEFAULT" />
193             </intent-filter>
194         </activity>
195         <activity
196             android:name=".activity.ClearDataActivity"
197             android:theme="@style/AppTheme.Dialog.Blacklist"/>
198         <activity
199             android:name=".activity.dark.ClearDataActivityDark"
200             android:theme="@style/AppTheme.Dialog.Blacklist.Dark"/>
201         <activity
202             android:name=".activity.DashboardActivity"
203             android:documentLaunchMode="always"
204             android:excludeFromRecents="true"
205             android:launchMode="singleTask"
206             android:theme="@style/AppTheme.Incognito"/>
207         <activity
208             android:name=".activity.dark.DashboardActivityDark"
209             android:documentLaunchMode="always"
210             android:excludeFromRecents="true"
211             android:launchMode="singleTask"
212             android:theme="@style/AppTheme.Incognito.Dark"/>
213         <activity
214             android:name=".activity.NavigationBarButtonsActivity"
215             android:theme="@style/AppTheme.Dialog.Preference"/>
216         <activity
217             android:name=".activity.dark.NavigationBarButtonsActivityDark"
218             android:theme="@style/AppTheme.Dialog.Preference.Dark"/>
219
220         <service android:name=".service.TaskbarService"/>
221         <service android:name=".service.StartMenuService"/>
222         <service android:name=".service.NotificationService"/>
223         <service android:name=".service.DashboardService"/>
224         <service
225             android:name=".service.PowerMenuService"
226             android:enabled="true"
227             android:exported="true"
228             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
229             <intent-filter>
230                 <action android:name="android.accessibilityservice.AccessibilityService" />
231             </intent-filter>
232             <meta-data android:name="android.accessibilityservice"
233                        android:resource="@xml/accessibility_service" />
234         </service>
235         <service
236             android:name=".service.QuickSettingsTileService"
237             android:label="@string/app_name"
238             android:icon="@drawable/ic_allapps"
239             android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
240             <intent-filter>
241                 <action android:name="android.service.quicksettings.action.QS_TILE" />
242             </intent-filter>
243             <meta-data android:name="android.service.quicksettings.ACTIVE_TILE"
244                        android:value="true" />
245         </service>
246
247         <receiver
248             android:name=".receiver.ShowHideTaskbarReceiver"
249             android:permission="com.farmerbb.taskbar.androidx86.START_STOP_TASKBAR" >
250             <intent-filter>
251                 <action android:name="com.farmerbb.taskbar.SHOW_HIDE_TASKBAR"/>
252             </intent-filter>
253         </receiver>
254         <receiver
255             android:name=".receiver.StartReceiver"
256             android:enabled="true"
257             android:exported="true"
258             android:permission="com.farmerbb.taskbar.androidx86.START_STOP_TASKBAR" >
259             <intent-filter>
260                 <action android:name="com.farmerbb.taskbar.START"/>
261             </intent-filter>
262         </receiver>
263         <receiver
264             android:name=".receiver.QuitReceiver"
265             android:enabled="true"
266             android:exported="true"
267             android:permission="com.farmerbb.taskbar.androidx86.START_STOP_TASKBAR" >
268             <intent-filter>
269                 <action android:name="com.farmerbb.taskbar.QUIT"/>
270             </intent-filter>
271         </receiver>
272         <receiver
273             android:name=".receiver.BootReceiver"
274             android:enabled="true"
275             android:exported="true">
276             <intent-filter>
277                 <action android:name="android.intent.action.BOOT_COMPLETED"/>
278             </intent-filter>
279         </receiver>
280         <receiver
281             android:name=".receiver.PackageUpgradeReceiver"
282             android:enabled="true"
283             android:exported="true">
284             <intent-filter>
285                 <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
286             </intent-filter>
287         </receiver>
288         <receiver android:name=".receiver.LockDeviceReceiver"
289                   android:label="@string/app_name"
290                   android:enabled="false"
291                   android:exported="true"
292                   android:description="@string/device_admin_description_short"
293                   android:permission="android.permission.BIND_DEVICE_ADMIN">
294             <meta-data android:name="android.app.device_admin"
295                        android:resource="@xml/device_admin" />
296             <intent-filter>
297                 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
298             </intent-filter>
299         </receiver>
300         <receiver
301             android:name=".receiver.UninstallReceiver"
302             android:enabled="true"
303             android:exported="true" >
304             <intent-filter>
305                 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
306                 <data android:scheme="package" />
307             </intent-filter>
308         </receiver>
309         <receiver
310             android:name=".receiver.EnableHomeReceiver"
311             android:enabled="true"
312             android:exported="true"
313             android:permission="com.farmerbb.taskbar.androidx86.ENABLE_DISABLE_HOME" >
314             <intent-filter>
315                 <action android:name="com.farmerbb.taskbar.ENABLE_HOME"/>
316             </intent-filter>
317         </receiver>
318         <receiver
319             android:name=".receiver.DisableHomeReceiver"
320             android:enabled="true"
321             android:exported="true"
322             android:permission="com.farmerbb.taskbar.androidx86.ENABLE_DISABLE_HOME" >
323             <intent-filter>
324                 <action android:name="com.farmerbb.taskbar.DISABLE_HOME"/>
325             </intent-filter>
326         </receiver>
327         <receiver
328             android:name=".receiver.ToggleFreeformModeReceiver"
329             android:permission="com.farmerbb.taskbar.androidx86.START_STOP_TASKBAR" >
330             <intent-filter>
331                 <action android:name="com.farmerbb.taskbar.TOGGLE_FREEFORM_MODE"/>
332             </intent-filter>
333         </receiver>
334
335     </application>
336
337 </manifest>