Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Marco Brohet | 8bd9470 | 2013-03-17 09:53:44 +0100 | [diff] [blame] | 2 | <!-- Copyright (C) 2012 Andrew Neal |
linus_lee | 71810eb | 2014-11-20 16:39:38 -0800 | [diff] [blame] | 3 | Copyright (C) 2014 The CyanogenMod Project |
Alexander Martinz | ebb83f6 | 2019-01-31 18:48:29 +0100 | [diff] [blame] | 4 | Copyright (C) 2019 The LineageOS Project |
Marco Brohet | 8bd9470 | 2013-03-17 09:53:44 +0100 | [diff] [blame] | 5 | |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | --> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 18 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
Alexander Martinz | ebb83f6 | 2019-01-31 18:48:29 +0100 | [diff] [blame] | 19 | xmlns:tools="http://schemas.android.com/tools" |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 20 | package="org.lineageos.eleven" |
Joey Rizzoli | 120fc6d | 2016-01-25 18:11:46 -0800 | [diff] [blame] | 21 | android:versionCode="3" |
Alexander Martinz | ebb83f6 | 2019-01-31 18:48:29 +0100 | [diff] [blame] | 22 | android:versionName="3.0" |
| 23 | tools:ignore="GradleOverrides"> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 24 | |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 25 | <uses-sdk |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 26 | android:minSdkVersion="26" |
| 27 | android:targetSdkVersion="28" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 28 | |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 29 | <original-package android:name="com.cyanogenmod.eleven" /> |
| 30 | |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 31 | <!-- Used for caching and creating new playlists --> |
| 32 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
| 33 | <!-- Used to check for a network connection --> |
| 34 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 35 | <!-- Used to download images --> |
| 36 | <uses-permission android:name="android.permission.INTERNET" /> |
| 37 | <!-- Used to keep the service running when the phone sleeps --> |
| 38 | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 39 | <!-- The main service uses a sticky broadcast --> |
| 40 | <uses-permission android:name="android.permission.BROADCAST_STICKY" /> |
| 41 | <!-- Lower or raise the music based on the phone state --> |
| 42 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 43 | <!-- Used to set the devices's ringtone --> |
| 44 | <uses-permission android:name="android.permission.WRITE_SETTINGS" /> |
| 45 | <!-- Used to create launcher shortcuts --> |
| 46 | <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> |
linuxx | 81e13fb | 2014-12-10 18:25:02 +0100 | [diff] [blame] | 47 | <!-- Allows Eleven to read from External Storage --> |
Shareef Ali | 715bd79 | 2014-06-13 22:38:16 -0400 | [diff] [blame] | 48 | <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
Arne Coucheron | 1cc8b9e | 2017-07-31 00:17:51 +0200 | [diff] [blame] | 49 | <!-- Allows Eleven to modify media files on external storage --> |
| 50 | <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 51 | |
linus_lee | 8274981 | 2014-11-19 17:52:53 -0800 | [diff] [blame] | 52 | <!-- Audio Visualizer Permissions --> |
| 53 | <uses-permission android:name="android.permission.RECORD_AUDIO" /> |
| 54 | <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
| 55 | |
Alexander Martinz | 5b70dfc | 2019-02-26 20:54:02 +0100 | [diff] [blame] | 56 | <!-- Allows Eleven to start services in foreground --> |
| 57 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
| 58 | |
Mikalacki Sava | 758ec43 | 2015-01-13 17:37:46 +0100 | [diff] [blame] | 59 | <!-- Accelerometer feature for shake to play --> |
| 60 | <uses-feature android:name="android.hardware.sensor.accelerometer" /> |
| 61 | |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 62 | <application |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 63 | android:name="org.lineageos.eleven.ElevenApplication" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 64 | android:allowBackup="true" |
| 65 | android:allowTaskReparenting="true" |
| 66 | android:hardwareAccelerated="@bool/config_hardwareAccelerated" |
Joey | 4492757 | 2018-01-25 12:16:58 +0100 | [diff] [blame] | 67 | android:appCategory="audio" |
Asher Simonds | 7915e65 | 2018-02-12 10:30:08 +0100 | [diff] [blame] | 68 | android:icon="@mipmap/ic_launcher" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 69 | android:label="@string/app_name" |
| 70 | android:largeHeap="@bool/config_largeHeap" |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 71 | android:taskAffinity="org.lineageos.eleven.task" |
linus_lee | ec7eb2e | 2014-08-29 19:44:58 -0700 | [diff] [blame] | 72 | android:theme="@style/Eleven.Theme"> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 73 | |
| 74 | <!-- Searchable --> |
| 75 | <meta-data |
| 76 | android:name="android.app.default_searchable" |
| 77 | android:value=".ui.activities.SearchActivity" /> |
| 78 | <!-- Main activity --> |
| 79 | <activity |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 80 | android:name="org.lineageos.eleven.ui.activities.HomeActivity" |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 81 | android:windowSoftInputMode="adjustPan" |
linus_lee | 93e7c9f | 2014-09-30 16:51:08 -0700 | [diff] [blame] | 82 | android:launchMode="singleTop" |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 83 | android:exported="true" |
| 84 | android:theme="@style/Eleven.Theme.ActionBar.Overlay"> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 85 | <intent-filter> |
| 86 | <action android:name="android.intent.action.MAIN" /> |
| 87 | <action android:name="android.intent.action.MUSIC_PLAYER" /> |
| 88 | |
| 89 | <category android:name="android.intent.category.LAUNCHER" /> |
| 90 | <category android:name="android.intent.category.APP_MUSIC" /> |
| 91 | <category android:name="android.intent.category.DEFAULT" /> |
| 92 | </intent-filter> |
Alexander Martinz | ebb83f6 | 2019-01-31 18:48:29 +0100 | [diff] [blame] | 93 | <intent-filter tools:ignore="AppLinkUrlError"> |
Danny Baumann | ceda239 | 2013-04-23 11:33:41 +0200 | [diff] [blame] | 94 | <action android:name="android.intent.action.VIEW" /> |
| 95 | |
| 96 | <category android:name="android.intent.category.DEFAULT" /> |
| 97 | |
| 98 | <data android:mimeType="vnd.android.cursor.dir/playlist" /> |
myfreeweb | 4e5a01c | 2014-03-12 21:10:27 +0400 | [diff] [blame] | 99 | <data android:mimeType="vnd.android.cursor.dir/albums" /> |
| 100 | <data android:mimeType="vnd.android.cursor.dir/artists" /> |
Danny Baumann | ceda239 | 2013-04-23 11:33:41 +0200 | [diff] [blame] | 101 | </intent-filter> |
| 102 | <intent-filter> |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 103 | <action android:name="org.lineageos.eleven.AUDIO_PLAYER" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 104 | |
| 105 | <category android:name="android.intent.category.DEFAULT" /> |
| 106 | </intent-filter> |
| 107 | </activity> |
| 108 | |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 109 | <!-- Search interface --> |
| 110 | <activity |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 111 | android:name="org.lineageos.eleven.ui.activities.SearchActivity" |
linus_lee | f164ce2 | 2014-09-04 18:09:11 -0700 | [diff] [blame] | 112 | android:windowSoftInputMode="adjustResize" |
linus_lee | 985f930 | 2014-08-27 10:53:57 -0700 | [diff] [blame] | 113 | android:exported="true" |
Linus Lee | 4427680 | 2015-04-17 18:52:24 -0700 | [diff] [blame] | 114 | android:theme="@style/Eleven.Theme"> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 115 | <intent-filter> |
| 116 | <action android:name="android.intent.action.SEARCH" /> |
| 117 | <action android:name="android.intent.action.MEDIA_SEARCH" /> |
| 118 | |
| 119 | <category android:name="android.intent.category.DEFAULT" /> |
| 120 | </intent-filter> |
| 121 | |
| 122 | <meta-data |
| 123 | android:name="android.app.searchable" |
| 124 | android:resource="@xml/searchable" /> |
| 125 | </activity> |
| 126 | <!-- Used to set options --> |
| 127 | <activity |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 128 | android:name="org.lineageos.eleven.ui.activities.SettingsActivity" |
Linus Lee | 4427680 | 2015-04-17 18:52:24 -0700 | [diff] [blame] | 129 | android:label="@string/menu_settings"/> |
Martin Brabham | dc90042 | 2015-05-27 15:52:06 -0700 | [diff] [blame] | 130 | <!-- Audio Preview --> |
| 131 | <activity |
| 132 | android:name=".ui.activities.preview.AudioPreviewActivity" |
| 133 | android:launchMode="singleTask" |
| 134 | android:excludeFromRecents="true" |
Danny Baumann | 2ee7c6e | 2016-02-02 16:19:56 +0100 | [diff] [blame] | 135 | android:taskAffinity="" |
Martin Brabham | dc90042 | 2015-05-27 15:52:06 -0700 | [diff] [blame] | 136 | android:theme="@style/Theme.AudioPreview"> |
| 137 | <intent-filter> |
| 138 | <action android:name="android.intent.action.VIEW" /> |
| 139 | |
| 140 | <category android:name="android.intent.category.DEFAULT" /> |
| 141 | |
| 142 | <data android:scheme="content" /> |
| 143 | <data android:mimeType="audio/*" /> |
| 144 | <data android:mimeType="application/ogg" /> |
| 145 | <data android:mimeType="application/x-ogg" /> |
| 146 | <data android:mimeType="application/itunes" /> |
| 147 | </intent-filter> |
| 148 | <intent-filter> |
| 149 | <action android:name="android.intent.action.VIEW" /> |
| 150 | |
| 151 | <category android:name="android.intent.category.DEFAULT" /> |
| 152 | |
| 153 | <data android:scheme="file" /> |
| 154 | <data android:mimeType="audio/*" /> |
| 155 | <data android:mimeType="application/ogg" /> |
| 156 | <data android:mimeType="application/x-ogg" /> |
| 157 | <data android:mimeType="application/itunes" /> |
| 158 | </intent-filter> |
| 159 | <intent-filter> |
| 160 | <action android:name="android.intent.action.VIEW" /> |
| 161 | |
| 162 | <category android:name="android.intent.category.DEFAULT" /> |
| 163 | <category android:name="android.intent.category.BROWSABLE" /> |
| 164 | |
| 165 | <data android:scheme="http" /> |
| 166 | <data android:mimeType="audio/*" /> |
| 167 | <data android:mimeType="application/ogg" /> |
| 168 | <data android:mimeType="application/x-ogg" /> |
| 169 | <data android:mimeType="application/itunes" /> |
| 170 | </intent-filter> |
| 171 | </activity> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 172 | <!-- 4x1 App Widget --> |
| 173 | <receiver |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 174 | android:name="org.lineageos.eleven.appwidgets.AppWidgetSmall" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 175 | android:exported="false" |
| 176 | android:label="@string/app_widget_small" > |
| 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_small" /> |
| 184 | </receiver> |
| 185 | <!-- 4x2 App Widget --> |
| 186 | <receiver |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 187 | android:name="org.lineageos.eleven.appwidgets.AppWidgetLarge" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 188 | android:exported="false" |
| 189 | android:label="@string/app_widget_large" > |
| 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" /> |
| 197 | </receiver> |
| 198 | <!-- 4x2 alternate App Widget --> |
| 199 | <receiver |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 200 | android:name="org.lineageos.eleven.appwidgets.AppWidgetLargeAlternate" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 201 | android:exported="false" |
| 202 | android:label="@string/app_widget_large_alt" > |
| 203 | <intent-filter> |
| 204 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
| 205 | </intent-filter> |
| 206 | |
| 207 | <meta-data |
| 208 | android:name="android.appwidget.provider" |
| 209 | android:resource="@xml/app_widget_large_alternate" /> |
| 210 | </receiver> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 211 | <!-- Media button receiver --> |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 212 | <receiver android:name="org.lineageos.eleven.MediaButtonIntentReceiver" > |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 213 | <intent-filter> |
| 214 | <action android:name="android.intent.action.MEDIA_BUTTON" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 215 | </intent-filter> |
| 216 | </receiver> |
linus_lee | 7124d4f | 2014-12-04 12:30:29 -0800 | [diff] [blame] | 217 | <!-- Used to recalculate sorting of songs based on the user's locale --> |
| 218 | <receiver android:name=".locale.LocaleChangeReceiver"> |
| 219 | <intent-filter> |
| 220 | <action android:name="android.intent.action.LOCALE_CHANGED"/> |
| 221 | </intent-filter> |
| 222 | </receiver> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 223 | <!-- Music service --> |
| 224 | <service |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 225 | android:name="org.lineageos.eleven.MusicPlaybackService" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 226 | android:label="@string/app_name" |
| 227 | android:process=":main" /> |
| 228 | </application> |
| 229 | |
Danny Baumann | 6677f51 | 2013-02-23 13:19:00 +0100 | [diff] [blame] | 230 | </manifest> |