OSDN Git Service

Eleven: Checkboxes to switches
[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             <intent-filter>
135                 <action android:name="android.intent.action.PICK" />
136                 <category android:name="android.intent.category.DEFAULT" />
137                 <category android:name="android.intent.category.OPENABLE" />
138                 <data android:mimeType="vnd.android.cursor.dir/audio"/>
139             </intent-filter>
140         </activity>
141
142         <!-- Search interface -->
143         <activity
144             android:name="com.cyanogenmod.eleven.ui.activities.SearchActivity"
145             android:windowSoftInputMode="adjustResize"
146             android:exported="true"
147             android:theme="@style/Eleven.Theme"
148             android:screenOrientation="portrait">
149             <intent-filter>
150                 <action android:name="android.intent.action.SEARCH" />
151                 <action android:name="android.intent.action.MEDIA_SEARCH" />
152
153                 <category android:name="android.intent.category.DEFAULT" />
154             </intent-filter>
155
156             <meta-data
157                 android:name="android.app.searchable"
158                 android:resource="@xml/searchable" />
159         </activity>
160         <!-- Used to set options -->
161         <activity
162             android:name="com.cyanogenmod.eleven.ui.activities.SettingsActivity"
163             android:label="@string/menu_settings"
164             android:screenOrientation="portrait"/>
165         <!-- 4x1 App Widget -->
166         <receiver
167             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetSmall"
168             android:exported="false"
169             android:label="@string/app_widget_small" >
170             <intent-filter>
171                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
172             </intent-filter>
173
174             <meta-data
175                 android:name="android.appwidget.provider"
176                 android:resource="@xml/app_widget_small" />
177         </receiver>
178         <!-- 4x2  App Widget -->
179         <receiver
180             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLarge"
181             android:exported="false"
182             android:label="@string/app_widget_large" >
183             <intent-filter>
184                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
185             </intent-filter>
186
187             <meta-data
188                 android:name="android.appwidget.provider"
189                 android:resource="@xml/app_widget_large" />
190         </receiver>
191         <!-- 4x2 alternate App Widget -->
192         <receiver
193             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLargeAlternate"
194             android:exported="false"
195             android:label="@string/app_widget_large_alt" >
196             <intent-filter>
197                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
198             </intent-filter>
199
200             <meta-data
201                 android:name="android.appwidget.provider"
202                 android:resource="@xml/app_widget_large_alternate" />
203         </receiver>
204         <!-- Media button receiver -->
205         <receiver android:name="com.cyanogenmod.eleven.MediaButtonIntentReceiver" >
206             <intent-filter>
207                 <action android:name="android.intent.action.MEDIA_BUTTON" />
208                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
209             </intent-filter>
210         </receiver>
211         <!-- Used to recalculate sorting of songs based on the user's locale -->
212         <receiver android:name=".locale.LocaleChangeReceiver">
213             <intent-filter>
214                 <action android:name="android.intent.action.LOCALE_CHANGED"/>
215             </intent-filter>
216         </receiver>
217         <!-- Music service -->
218         <service
219             android:name="com.cyanogenmod.eleven.MusicPlaybackService"
220             android:label="@string/app_name"
221             android:process=":main" />
222     </application>
223
224 </manifest>