blob: 48d2186788aab41353255bb654be04663f5b8f30 [file] [log] [blame]
Andrew Nealad90d962012-11-20 18:41:37 -06001<?xml version="1.0" encoding="utf-8"?>
Marco Brohet8bd94702013-03-17 09:53:44 +01002<!-- Copyright (C) 2012 Andrew Neal
linus_lee71810eb2014-11-20 16:39:38 -08003 Copyright (C) 2014 The CyanogenMod Project
Marco Brohet8bd94702013-03-17 09:53:44 +01004
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 -->
Andrew Nealad90d962012-11-20 18:41:37 -060017<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Michael Bestas869ef7e2018-01-22 21:06:57 +020018 package="org.lineageos.eleven"
Joey Rizzoli120fc6d2016-01-25 18:11:46 -080019 android:versionCode="3"
20 android:versionName="3.0" >
Andrew Nealad90d962012-11-20 18:41:37 -060021
Andrew Nealad90d962012-11-20 18:41:37 -060022 <uses-sdk
Diogo Ferreira43d13ea2016-08-26 21:37:22 +010023 android:minSdkVersion="24"
24 android:targetSdkVersion="24" />
Andrew Nealad90d962012-11-20 18:41:37 -060025
Michael Bestas869ef7e2018-01-22 21:06:57 +020026 <original-package android:name="com.cyanogenmod.eleven" />
27
Andrew Nealad90d962012-11-20 18:41:37 -060028 <!-- Used for caching and creating new playlists -->
29 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
30 <!-- Used to check for a network connection -->
31 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
32 <!-- Used to download images -->
33 <uses-permission android:name="android.permission.INTERNET" />
34 <!-- Used to keep the service running when the phone sleeps -->
35 <uses-permission android:name="android.permission.WAKE_LOCK" />
36 <!-- The main service uses a sticky broadcast -->
37 <uses-permission android:name="android.permission.BROADCAST_STICKY" />
38 <!-- Lower or raise the music based on the phone state -->
39 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
40 <!-- Used to set the devices's ringtone -->
41 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
42 <!-- Used to create launcher shortcuts -->
43 <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
linuxx81e13fb2014-12-10 18:25:02 +010044 <!-- Allows Eleven to read from External Storage -->
Shareef Ali715bd792014-06-13 22:38:16 -040045 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
Arne Coucheron1cc8b9e2017-07-31 00:17:51 +020046 <!-- Allows Eleven to modify media files on external storage -->
47 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
Andrew Nealad90d962012-11-20 18:41:37 -060048
linus_lee82749812014-11-19 17:52:53 -080049 <!-- Audio Visualizer Permissions -->
50 <uses-permission android:name="android.permission.RECORD_AUDIO" />
51 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
52
Mikalacki Sava758ec432015-01-13 17:37:46 +010053 <!-- Accelerometer feature for shake to play -->
54 <uses-feature android:name="android.hardware.sensor.accelerometer" />
55
Andrew Nealad90d962012-11-20 18:41:37 -060056 <application
Michael Bestas869ef7e2018-01-22 21:06:57 +020057 android:name="org.lineageos.eleven.ElevenApplication"
Andrew Nealad90d962012-11-20 18:41:37 -060058 android:allowBackup="true"
59 android:allowTaskReparenting="true"
60 android:hardwareAccelerated="@bool/config_hardwareAccelerated"
Joey44927572018-01-25 12:16:58 +010061 android:appCategory="audio"
Michael Bestas0ee0e9b2015-02-02 09:02:31 +020062 android:icon="@mipmap/ic_launcher_eleven"
Andrew Nealad90d962012-11-20 18:41:37 -060063 android:label="@string/app_name"
64 android:largeHeap="@bool/config_largeHeap"
Michael Bestas869ef7e2018-01-22 21:06:57 +020065 android:taskAffinity="org.lineageos.eleven.task"
linus_leeec7eb2e2014-08-29 19:44:58 -070066 android:theme="@style/Eleven.Theme">
Andrew Nealad90d962012-11-20 18:41:37 -060067
68 <!-- Searchable -->
69 <meta-data
70 android:name="android.app.default_searchable"
71 android:value=".ui.activities.SearchActivity" />
72 <!-- Main activity -->
73 <activity
Michael Bestas869ef7e2018-01-22 21:06:57 +020074 android:name="org.lineageos.eleven.ui.activities.HomeActivity"
linus_lee5d1b1792014-08-21 18:52:12 -070075 android:windowSoftInputMode="adjustPan"
linus_lee93e7c9f2014-09-30 16:51:08 -070076 android:launchMode="singleTop"
linus_lee5d1b1792014-08-21 18:52:12 -070077 android:exported="true"
78 android:theme="@style/Eleven.Theme.ActionBar.Overlay">
Andrew Nealad90d962012-11-20 18:41:37 -060079 <intent-filter>
80 <action android:name="android.intent.action.MAIN" />
81 <action android:name="android.intent.action.MUSIC_PLAYER" />
82
83 <category android:name="android.intent.category.LAUNCHER" />
84 <category android:name="android.intent.category.APP_MUSIC" />
85 <category android:name="android.intent.category.DEFAULT" />
86 </intent-filter>
Andrew Nealad90d962012-11-20 18:41:37 -060087 <intent-filter>
Danny Baumannceda2392013-04-23 11:33:41 +020088 <action android:name="android.intent.action.VIEW" />
89
90 <category android:name="android.intent.category.DEFAULT" />
91
92 <data android:mimeType="vnd.android.cursor.dir/playlist" />
myfreeweb4e5a01c2014-03-12 21:10:27 +040093 <data android:mimeType="vnd.android.cursor.dir/albums" />
94 <data android:mimeType="vnd.android.cursor.dir/artists" />
Danny Baumannceda2392013-04-23 11:33:41 +020095 </intent-filter>
96 <intent-filter>
Michael Bestas869ef7e2018-01-22 21:06:57 +020097 <action android:name="org.lineageos.eleven.AUDIO_PLAYER" />
Andrew Nealad90d962012-11-20 18:41:37 -060098
99 <category android:name="android.intent.category.DEFAULT" />
100 </intent-filter>
101 </activity>
102
Andrew Nealad90d962012-11-20 18:41:37 -0600103 <!-- Search interface -->
104 <activity
Michael Bestas869ef7e2018-01-22 21:06:57 +0200105 android:name="org.lineageos.eleven.ui.activities.SearchActivity"
linus_leef164ce22014-09-04 18:09:11 -0700106 android:windowSoftInputMode="adjustResize"
linus_lee985f9302014-08-27 10:53:57 -0700107 android:exported="true"
Linus Lee44276802015-04-17 18:52:24 -0700108 android:theme="@style/Eleven.Theme">
Andrew Nealad90d962012-11-20 18:41:37 -0600109 <intent-filter>
110 <action android:name="android.intent.action.SEARCH" />
111 <action android:name="android.intent.action.MEDIA_SEARCH" />
112
113 <category android:name="android.intent.category.DEFAULT" />
114 </intent-filter>
115
116 <meta-data
117 android:name="android.app.searchable"
118 android:resource="@xml/searchable" />
119 </activity>
120 <!-- Used to set options -->
121 <activity
Michael Bestas869ef7e2018-01-22 21:06:57 +0200122 android:name="org.lineageos.eleven.ui.activities.SettingsActivity"
Linus Lee44276802015-04-17 18:52:24 -0700123 android:label="@string/menu_settings"/>
Martin Brabhamdc900422015-05-27 15:52:06 -0700124 <!-- Audio Preview -->
125 <activity
126 android:name=".ui.activities.preview.AudioPreviewActivity"
127 android:launchMode="singleTask"
128 android:excludeFromRecents="true"
Danny Baumann2ee7c6e2016-02-02 16:19:56 +0100129 android:taskAffinity=""
Martin Brabhamdc900422015-05-27 15:52:06 -0700130 android:theme="@style/Theme.AudioPreview">
131 <intent-filter>
132 <action android:name="android.intent.action.VIEW" />
133
134 <category android:name="android.intent.category.DEFAULT" />
135
136 <data android:scheme="content" />
137 <data android:mimeType="audio/*" />
138 <data android:mimeType="application/ogg" />
139 <data android:mimeType="application/x-ogg" />
140 <data android:mimeType="application/itunes" />
141 </intent-filter>
142 <intent-filter>
143 <action android:name="android.intent.action.VIEW" />
144
145 <category android:name="android.intent.category.DEFAULT" />
146
147 <data android:scheme="file" />
148 <data android:mimeType="audio/*" />
149 <data android:mimeType="application/ogg" />
150 <data android:mimeType="application/x-ogg" />
151 <data android:mimeType="application/itunes" />
152 </intent-filter>
153 <intent-filter>
154 <action android:name="android.intent.action.VIEW" />
155
156 <category android:name="android.intent.category.DEFAULT" />
157 <category android:name="android.intent.category.BROWSABLE" />
158
159 <data android:scheme="http" />
160 <data android:mimeType="audio/*" />
161 <data android:mimeType="application/ogg" />
162 <data android:mimeType="application/x-ogg" />
163 <data android:mimeType="application/itunes" />
164 </intent-filter>
165 </activity>
Andrew Nealad90d962012-11-20 18:41:37 -0600166 <!-- 4x1 App Widget -->
167 <receiver
Michael Bestas869ef7e2018-01-22 21:06:57 +0200168 android:name="org.lineageos.eleven.appwidgets.AppWidgetSmall"
Andrew Nealad90d962012-11-20 18:41:37 -0600169 android:exported="false"
170 android:label="@string/app_widget_small" >
171 <intent-filter>
172 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
173 </intent-filter>
174
175 <meta-data
176 android:name="android.appwidget.provider"
177 android:resource="@xml/app_widget_small" />
178 </receiver>
179 <!-- 4x2 App Widget -->
180 <receiver
Michael Bestas869ef7e2018-01-22 21:06:57 +0200181 android:name="org.lineageos.eleven.appwidgets.AppWidgetLarge"
Andrew Nealad90d962012-11-20 18:41:37 -0600182 android:exported="false"
183 android:label="@string/app_widget_large" >
184 <intent-filter>
185 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
186 </intent-filter>
187
188 <meta-data
189 android:name="android.appwidget.provider"
190 android:resource="@xml/app_widget_large" />
191 </receiver>
192 <!-- 4x2 alternate App Widget -->
193 <receiver
Michael Bestas869ef7e2018-01-22 21:06:57 +0200194 android:name="org.lineageos.eleven.appwidgets.AppWidgetLargeAlternate"
Andrew Nealad90d962012-11-20 18:41:37 -0600195 android:exported="false"
196 android:label="@string/app_widget_large_alt" >
197 <intent-filter>
198 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
199 </intent-filter>
200
201 <meta-data
202 android:name="android.appwidget.provider"
203 android:resource="@xml/app_widget_large_alternate" />
204 </receiver>
Andrew Nealad90d962012-11-20 18:41:37 -0600205 <!-- Media button receiver -->
Michael Bestas869ef7e2018-01-22 21:06:57 +0200206 <receiver android:name="org.lineageos.eleven.MediaButtonIntentReceiver" >
Andrew Nealad90d962012-11-20 18:41:37 -0600207 <intent-filter>
208 <action android:name="android.intent.action.MEDIA_BUTTON" />
209 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
210 </intent-filter>
211 </receiver>
linus_lee7124d4f2014-12-04 12:30:29 -0800212 <!-- Used to recalculate sorting of songs based on the user's locale -->
213 <receiver android:name=".locale.LocaleChangeReceiver">
214 <intent-filter>
215 <action android:name="android.intent.action.LOCALE_CHANGED"/>
216 </intent-filter>
217 </receiver>
Andrew Nealad90d962012-11-20 18:41:37 -0600218 <!-- Music service -->
219 <service
Michael Bestas869ef7e2018-01-22 21:06:57 +0200220 android:name="org.lineageos.eleven.MusicPlaybackService"
Andrew Nealad90d962012-11-20 18:41:37 -0600221 android:label="@string/app_name"
222 android:process=":main" />
223 </application>
224
Danny Baumann6677f512013-02-23 13:19:00 +0100225</manifest>