OSDN Git Service

New Material icon
[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="2.0" >
21
22     <uses-sdk
23         android:minSdkVersion="21"
24         android:targetSdkVersion="21" />
25
26     <!-- Used for caching and creating new playlists -->
27     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
28     <!-- Used to check for a network connection -->
29     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
30     <!-- Used to download images -->
31     <uses-permission android:name="android.permission.INTERNET" />
32     <!-- Used to keep the service running when the phone sleeps -->
33     <uses-permission android:name="android.permission.WAKE_LOCK" />
34     <!-- The main service uses a sticky broadcast -->
35     <uses-permission android:name="android.permission.BROADCAST_STICKY" />
36     <!-- Lower or raise the music based on the phone state -->
37     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
38     <!-- Used to set the devices's ringtone -->
39     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
40     <!-- Used to create launcher shortcuts -->
41     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
42     <!-- Used to check if the app is in the background -->
43     <uses-permission android:name="android.permission.GET_TASKS" />
44     <!-- Allows Eleven to read from External Storage -->
45     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
46
47     <!-- Audio Visualizer Permissions -->
48     <uses-permission android:name="android.permission.RECORD_AUDIO" />
49     <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
50
51     <application
52         android:name="com.cyanogenmod.eleven.ElevenApplication"
53         android:allowBackup="true"
54         android:allowTaskReparenting="true"
55         android:hardwareAccelerated="@bool/config_hardwareAccelerated"
56         android:icon="@mipmap/ic_launcher_eleven"
57         android:label="@string/app_name"
58         android:largeHeap="@bool/config_largeHeap"
59         android:taskAffinity="com.cyanogenmod.eleven.task"
60         android:theme="@style/Eleven.Theme">
61
62         <!-- Searchable -->
63         <meta-data
64             android:name="android.app.default_searchable"
65             android:value=".ui.activities.SearchActivity" />
66         <!-- Main activity -->
67         <activity
68             android:name="com.cyanogenmod.eleven.ui.activities.HomeActivity"
69             android:windowSoftInputMode="adjustPan"
70             android:launchMode="singleTop"
71             android:exported="true"
72             android:screenOrientation="portrait"
73             android:theme="@style/Eleven.Theme.ActionBar.Overlay">
74             <intent-filter>
75                 <action android:name="android.intent.action.MAIN" />
76                 <action android:name="android.intent.action.MUSIC_PLAYER" />
77
78                 <category android:name="android.intent.category.LAUNCHER" />
79                 <category android:name="android.intent.category.APP_MUSIC" />
80                 <category android:name="android.intent.category.DEFAULT" />
81             </intent-filter>
82
83             <intent-filter>
84                 <action android:name="android.intent.action.VIEW" />
85
86                 <category android:name="android.intent.category.DEFAULT" />
87
88                 <data android:scheme="content" />
89                 <data android:mimeType="audio/*" />
90                 <data android:mimeType="application/ogg" />
91                 <data android:mimeType="application/x-ogg" />
92                 <data android:mimeType="application/itunes" />
93             </intent-filter>
94             <intent-filter>
95                 <action android:name="android.intent.action.VIEW" />
96
97                 <category android:name="android.intent.category.DEFAULT" />
98
99                 <data android:scheme="file" />
100                 <data android:mimeType="audio/*" />
101                 <data android:mimeType="application/ogg" />
102                 <data android:mimeType="application/x-ogg" />
103                 <data android:mimeType="application/itunes" />
104             </intent-filter>
105             <intent-filter>
106                 <action android:name="android.intent.action.VIEW" />
107
108                 <category android:name="android.intent.category.DEFAULT" />
109                 <category android:name="android.intent.category.BROWSABLE" />
110
111                 <data android:scheme="http" />
112                 <data android:mimeType="audio/*" />
113                 <data android:mimeType="application/ogg" />
114                 <data android:mimeType="application/x-ogg" />
115                 <data android:mimeType="application/itunes" />
116             </intent-filter>
117             <intent-filter>
118                 <action android:name="android.intent.action.VIEW" />
119
120                 <category android:name="android.intent.category.DEFAULT" />
121
122                 <data android:mimeType="vnd.android.cursor.dir/playlist" />
123                 <data android:mimeType="vnd.android.cursor.dir/albums" />
124                 <data android:mimeType="vnd.android.cursor.dir/artists" />
125             </intent-filter>
126             <intent-filter>
127                 <action android:name="com.cyanogenmod.eleven.AUDIO_PLAYER" />
128
129                 <category android:name="android.intent.category.DEFAULT" />
130             </intent-filter>
131             <intent-filter>
132                 <action android:name="android.intent.action.PICK" />
133                 <category android:name="android.intent.category.DEFAULT" />
134                 <category android:name="android.intent.category.OPENABLE" />
135                 <data android:mimeType="vnd.android.cursor.dir/audio"/>
136             </intent-filter>
137         </activity>
138
139         <!-- Search interface -->
140         <activity
141             android:name="com.cyanogenmod.eleven.ui.activities.SearchActivity"
142             android:windowSoftInputMode="adjustResize"
143             android:exported="true"
144             android:theme="@style/Eleven.Theme"
145             android:screenOrientation="portrait">
146             <intent-filter>
147                 <action android:name="android.intent.action.SEARCH" />
148                 <action android:name="android.intent.action.MEDIA_SEARCH" />
149
150                 <category android:name="android.intent.category.DEFAULT" />
151             </intent-filter>
152
153             <meta-data
154                 android:name="android.app.searchable"
155                 android:resource="@xml/searchable" />
156         </activity>
157         <!-- Used to set options -->
158         <activity
159             android:name="com.cyanogenmod.eleven.ui.activities.SettingsActivity"
160             android:label="@string/menu_settings"
161             android:screenOrientation="portrait"/>
162         <!-- 4x1 App Widget -->
163         <receiver
164             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetSmall"
165             android:exported="false"
166             android:label="@string/app_widget_small" >
167             <intent-filter>
168                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
169             </intent-filter>
170
171             <meta-data
172                 android:name="android.appwidget.provider"
173                 android:resource="@xml/app_widget_small" />
174         </receiver>
175         <!-- 4x2  App Widget -->
176         <receiver
177             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLarge"
178             android:exported="false"
179             android:label="@string/app_widget_large" >
180             <intent-filter>
181                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
182             </intent-filter>
183
184             <meta-data
185                 android:name="android.appwidget.provider"
186                 android:resource="@xml/app_widget_large" />
187         </receiver>
188         <!-- 4x2 alternate App Widget -->
189         <receiver
190             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLargeAlternate"
191             android:exported="false"
192             android:label="@string/app_widget_large_alt" >
193             <intent-filter>
194                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
195             </intent-filter>
196
197             <meta-data
198                 android:name="android.appwidget.provider"
199                 android:resource="@xml/app_widget_large_alternate" />
200         </receiver>
201         <!-- Media button receiver -->
202         <receiver android:name="com.cyanogenmod.eleven.MediaButtonIntentReceiver" >
203             <intent-filter>
204                 <action android:name="android.intent.action.MEDIA_BUTTON" />
205                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
206             </intent-filter>
207         </receiver>
208         <!-- Used to recalculate sorting of songs based on the user's locale -->
209         <receiver android:name=".locale.LocaleChangeReceiver">
210             <intent-filter>
211                 <action android:name="android.intent.action.LOCALE_CHANGED"/>
212             </intent-filter>
213         </receiver>
214         <!-- Music service -->
215         <service
216             android:name="com.cyanogenmod.eleven.MusicPlaybackService"
217             android:label="@string/app_name"
218             android:process=":main" />
219     </application>
220
221 </manifest>