OSDN Git Service

Merge "eleven: remove_ACTION_PICK from manifest" into cm-12.1
[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     <!-- Accelerometer feature for shake to play -->
52     <uses-feature android:name="android.hardware.sensor.accelerometer" />
53
54     <application
55         android:name="com.cyanogenmod.eleven.ElevenApplication"
56         android:allowBackup="true"
57         android:allowTaskReparenting="true"
58         android:hardwareAccelerated="@bool/config_hardwareAccelerated"
59         android:icon="@mipmap/ic_launcher_eleven"
60         android:label="@string/app_name"
61         android:largeHeap="@bool/config_largeHeap"
62         android:taskAffinity="com.cyanogenmod.eleven.task"
63         android:theme="@style/Eleven.Theme">
64
65         <!-- Searchable -->
66         <meta-data
67             android:name="android.app.default_searchable"
68             android:value=".ui.activities.SearchActivity" />
69         <!-- Main activity -->
70         <activity
71             android:name="com.cyanogenmod.eleven.ui.activities.HomeActivity"
72             android:windowSoftInputMode="adjustPan"
73             android:launchMode="singleTop"
74             android:exported="true"
75             android:screenOrientation="portrait"
76             android:theme="@style/Eleven.Theme.ActionBar.Overlay">
77             <intent-filter>
78                 <action android:name="android.intent.action.MAIN" />
79                 <action android:name="android.intent.action.MUSIC_PLAYER" />
80
81                 <category android:name="android.intent.category.LAUNCHER" />
82                 <category android:name="android.intent.category.APP_MUSIC" />
83                 <category android:name="android.intent.category.DEFAULT" />
84             </intent-filter>
85
86             <intent-filter>
87                 <action android:name="android.intent.action.VIEW" />
88
89                 <category android:name="android.intent.category.DEFAULT" />
90
91                 <data android:scheme="content" />
92                 <data android:mimeType="audio/*" />
93                 <data android:mimeType="application/ogg" />
94                 <data android:mimeType="application/x-ogg" />
95                 <data android:mimeType="application/itunes" />
96             </intent-filter>
97             <intent-filter>
98                 <action android:name="android.intent.action.VIEW" />
99
100                 <category android:name="android.intent.category.DEFAULT" />
101
102                 <data android:scheme="file" />
103                 <data android:mimeType="audio/*" />
104                 <data android:mimeType="application/ogg" />
105                 <data android:mimeType="application/x-ogg" />
106                 <data android:mimeType="application/itunes" />
107             </intent-filter>
108             <intent-filter>
109                 <action android:name="android.intent.action.VIEW" />
110
111                 <category android:name="android.intent.category.DEFAULT" />
112                 <category android:name="android.intent.category.BROWSABLE" />
113
114                 <data android:scheme="http" />
115                 <data android:mimeType="audio/*" />
116                 <data android:mimeType="application/ogg" />
117                 <data android:mimeType="application/x-ogg" />
118                 <data android:mimeType="application/itunes" />
119             </intent-filter>
120             <intent-filter>
121                 <action android:name="android.intent.action.VIEW" />
122
123                 <category android:name="android.intent.category.DEFAULT" />
124
125                 <data android:mimeType="vnd.android.cursor.dir/playlist" />
126                 <data android:mimeType="vnd.android.cursor.dir/albums" />
127                 <data android:mimeType="vnd.android.cursor.dir/artists" />
128             </intent-filter>
129             <intent-filter>
130                 <action android:name="com.cyanogenmod.eleven.AUDIO_PLAYER" />
131
132                 <category android:name="android.intent.category.DEFAULT" />
133             </intent-filter>
134         </activity>
135
136         <!-- Search interface -->
137         <activity
138             android:name="com.cyanogenmod.eleven.ui.activities.SearchActivity"
139             android:windowSoftInputMode="adjustResize"
140             android:exported="true"
141             android:theme="@style/Eleven.Theme"
142             android:screenOrientation="portrait">
143             <intent-filter>
144                 <action android:name="android.intent.action.SEARCH" />
145                 <action android:name="android.intent.action.MEDIA_SEARCH" />
146
147                 <category android:name="android.intent.category.DEFAULT" />
148             </intent-filter>
149
150             <meta-data
151                 android:name="android.app.searchable"
152                 android:resource="@xml/searchable" />
153         </activity>
154         <!-- Used to set options -->
155         <activity
156             android:name="com.cyanogenmod.eleven.ui.activities.SettingsActivity"
157             android:label="@string/menu_settings"
158             android:screenOrientation="portrait"/>
159         <!-- 4x1 App Widget -->
160         <receiver
161             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetSmall"
162             android:exported="false"
163             android:label="@string/app_widget_small" >
164             <intent-filter>
165                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
166             </intent-filter>
167
168             <meta-data
169                 android:name="android.appwidget.provider"
170                 android:resource="@xml/app_widget_small" />
171         </receiver>
172         <!-- 4x2  App Widget -->
173         <receiver
174             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLarge"
175             android:exported="false"
176             android:label="@string/app_widget_large" >
177             <intent-filter>
178                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
179             </intent-filter>
180
181             <meta-data
182                 android:name="android.appwidget.provider"
183                 android:resource="@xml/app_widget_large" />
184         </receiver>
185         <!-- 4x2 alternate App Widget -->
186         <receiver
187             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLargeAlternate"
188             android:exported="false"
189             android:label="@string/app_widget_large_alt" >
190             <intent-filter>
191                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
192             </intent-filter>
193
194             <meta-data
195                 android:name="android.appwidget.provider"
196                 android:resource="@xml/app_widget_large_alternate" />
197         </receiver>
198         <!-- Media button receiver -->
199         <receiver android:name="com.cyanogenmod.eleven.MediaButtonIntentReceiver" >
200             <intent-filter>
201                 <action android:name="android.intent.action.MEDIA_BUTTON" />
202                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
203             </intent-filter>
204         </receiver>
205         <!-- Used to recalculate sorting of songs based on the user's locale -->
206         <receiver android:name=".locale.LocaleChangeReceiver">
207             <intent-filter>
208                 <action android:name="android.intent.action.LOCALE_CHANGED"/>
209             </intent-filter>
210         </receiver>
211         <!-- Music service -->
212         <service
213             android:name="com.cyanogenmod.eleven.MusicPlaybackService"
214             android:label="@string/app_name"
215             android:process=":main" />
216     </application>
217
218 </manifest>