OSDN Git Service

Merge "Eleven: Fix crash when launching a song from file manager" into cm-12.0
[android-x86/packages-apps-Eleven.git] / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2012 Andrew Neal
3      Copyright (C) 2014 The CyanogenMod Project
4
5      Licensed under the Apache License, Version 2.0 (the "License");
6      you may not use this file except in compliance with the License.
7      You may obtain a copy of the License at
8
9           http://www.apache.org/licenses/LICENSE-2.0
10
11      Unless required by applicable law or agreed to in writing, software
12      distributed under the License is distributed on an "AS IS" BASIS,
13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14      See the License for the specific language governing permissions and
15      limitations under the License.
16  -->
17 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
18     package="com.cyanogenmod.eleven"
19     android:versionCode="2"
20     android:versionName="1.1" >
21
22     <!-- ICS to Jelly Bean -->
23     <uses-sdk
24         android:minSdkVersion="17"
25         android:targetSdkVersion="20" />
26
27     <!-- Used for caching and creating new playlists -->
28     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
29     <!-- Used to check for a network connection -->
30     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
31     <!-- Used to download images -->
32     <uses-permission android:name="android.permission.INTERNET" />
33     <!-- Used to keep the service running when the phone sleeps -->
34     <uses-permission android:name="android.permission.WAKE_LOCK" />
35     <!-- The main service uses a sticky broadcast -->
36     <uses-permission android:name="android.permission.BROADCAST_STICKY" />
37     <!-- Lower or raise the music based on the phone state -->
38     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
39     <!-- Used to set the devices's ringtone -->
40     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
41     <!-- Used to create launcher shortcuts -->
42     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
43     <!-- Used to check if the app is in the background -->
44     <uses-permission android:name="android.permission.GET_TASKS" />
45     <!-- Allows Apollo to read from External Storage -->
46     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
47
48     <!-- Audio Visualizer Permissions -->
49     <uses-permission android:name="android.permission.RECORD_AUDIO" />
50     <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
51
52     <application
53         android:name="com.cyanogenmod.eleven.ElevenApplication"
54         android:allowBackup="true"
55         android:allowTaskReparenting="true"
56         android:hardwareAccelerated="@bool/config_hardwareAccelerated"
57         android:icon="@drawable/ic_launcher"
58         android:label="@string/app_name"
59         android:largeHeap="@bool/config_largeHeap"
60         android:taskAffinity="com.cyanogenmod.eleven.task"
61         android:theme="@style/Eleven.Theme">
62
63         <!-- Searchable -->
64         <meta-data
65             android:name="android.app.default_searchable"
66             android:value=".ui.activities.SearchActivity" />
67         <!-- Main activity -->
68         <activity
69             android:name="com.cyanogenmod.eleven.ui.activities.HomeActivity"
70             android:windowSoftInputMode="adjustPan"
71             android:launchMode="singleTop"
72             android:exported="true"
73             android:screenOrientation="portrait"
74             android:theme="@style/Eleven.Theme.ActionBar.Overlay">
75             <intent-filter>
76                 <action android:name="android.intent.action.MAIN" />
77                 <action android:name="android.intent.action.MUSIC_PLAYER" />
78
79                 <category android:name="android.intent.category.LAUNCHER" />
80                 <category android:name="android.intent.category.APP_MUSIC" />
81                 <category android:name="android.intent.category.DEFAULT" />
82             </intent-filter>
83
84             <intent-filter>
85                 <action android:name="android.intent.action.VIEW" />
86
87                 <category android:name="android.intent.category.DEFAULT" />
88
89                 <data android:scheme="content" />
90                 <data android:mimeType="audio/*" />
91                 <data android:mimeType="application/ogg" />
92                 <data android:mimeType="application/x-ogg" />
93                 <data android:mimeType="application/itunes" />
94             </intent-filter>
95             <intent-filter>
96                 <action android:name="android.intent.action.VIEW" />
97
98                 <category android:name="android.intent.category.DEFAULT" />
99
100                 <data android:scheme="file" />
101                 <data android:mimeType="audio/*" />
102                 <data android:mimeType="application/ogg" />
103                 <data android:mimeType="application/x-ogg" />
104                 <data android:mimeType="application/itunes" />
105             </intent-filter>
106             <intent-filter>
107                 <action android:name="android.intent.action.VIEW" />
108
109                 <category android:name="android.intent.category.DEFAULT" />
110                 <category android:name="android.intent.category.BROWSABLE" />
111
112                 <data android:scheme="http" />
113                 <data android:mimeType="audio/*" />
114                 <data android:mimeType="application/ogg" />
115                 <data android:mimeType="application/x-ogg" />
116                 <data android:mimeType="application/itunes" />
117             </intent-filter>
118             <intent-filter>
119                 <action android:name="android.intent.action.VIEW" />
120
121                 <category android:name="android.intent.category.DEFAULT" />
122
123                 <data android:mimeType="vnd.android.cursor.dir/playlist" />
124                 <data android:mimeType="vnd.android.cursor.dir/albums" />
125                 <data android:mimeType="vnd.android.cursor.dir/artists" />
126             </intent-filter>
127             <intent-filter>
128                 <action android:name="com.cyanogenmod.eleven.AUDIO_PLAYER" />
129
130                 <category android:name="android.intent.category.DEFAULT" />
131             </intent-filter>
132             <intent-filter>
133                 <action android:name="android.intent.action.PICK" />
134                 <category android:name="android.intent.category.DEFAULT" />
135                 <category android:name="android.intent.category.OPENABLE" />
136                 <data android:mimeType="vnd.android.cursor.dir/audio"/>
137             </intent-filter>
138         </activity>
139
140         <!-- Search interface -->
141         <activity
142             android:name="com.cyanogenmod.eleven.ui.activities.SearchActivity"
143             android:windowSoftInputMode="adjustResize"
144             android:exported="true"
145             android:theme="@style/Theme.ActionBarIcon"
146             android:screenOrientation="portrait">
147             <intent-filter>
148                 <action android:name="android.intent.action.SEARCH" />
149                 <action android:name="android.intent.action.MEDIA_SEARCH" />
150
151                 <category android:name="android.intent.category.DEFAULT" />
152             </intent-filter>
153
154             <meta-data
155                 android:name="android.app.searchable"
156                 android:resource="@xml/searchable" />
157         </activity>
158         <!-- Used to set options -->
159         <activity
160             android:name="com.cyanogenmod.eleven.ui.activities.SettingsActivity"
161             android:label="@string/menu_settings"
162             android:screenOrientation="portrait"/>
163         <!-- 4x1 App Widget -->
164         <receiver
165             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetSmall"
166             android:exported="false"
167             android:label="@string/app_widget_small" >
168             <intent-filter>
169                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
170             </intent-filter>
171
172             <meta-data
173                 android:name="android.appwidget.provider"
174                 android:resource="@xml/app_widget_small" />
175         </receiver>
176         <!-- 4x2  App Widget -->
177         <receiver
178             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLarge"
179             android:exported="false"
180             android:label="@string/app_widget_large" >
181             <intent-filter>
182                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
183             </intent-filter>
184
185             <meta-data
186                 android:name="android.appwidget.provider"
187                 android:resource="@xml/app_widget_large" />
188         </receiver>
189         <!-- 4x2 alternate App Widget -->
190         <receiver
191             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLargeAlternate"
192             android:exported="false"
193             android:label="@string/app_widget_large_alt" >
194             <intent-filter>
195                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
196             </intent-filter>
197
198             <meta-data
199                 android:name="android.appwidget.provider"
200                 android:resource="@xml/app_widget_large_alternate" />
201         </receiver>
202         <!-- Media button receiver -->
203         <receiver android:name="com.cyanogenmod.eleven.MediaButtonIntentReceiver" >
204             <intent-filter>
205                 <action android:name="android.intent.action.MEDIA_BUTTON" />
206                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
207             </intent-filter>
208         </receiver>
209         <!-- Used to recalculate sorting of songs based on the user's locale -->
210         <receiver android:name=".locale.LocaleChangeReceiver">
211             <intent-filter>
212                 <action android:name="android.intent.action.LOCALE_CHANGED"/>
213             </intent-filter>
214         </receiver>
215         <!-- Music service -->
216         <service
217             android:name="com.cyanogenmod.eleven.MusicPlaybackService"
218             android:label="@string/app_name"
219             android:process=":main" />
220     </application>
221
222 </manifest>