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 |
Albert Tang | bd5330f | 2023-08-09 19:26:00 -0500 | [diff] [blame] | 4 | Copyright (C) 2019-2023 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" |
Albert Tang | 19a28a9 | 2023-08-24 16:08:39 -0500 | [diff] [blame] | 21 | android:versionCode="420" |
| 22 | android:versionName="4.2.0" |
Alexander Martinz | ebb83f6 | 2019-01-31 18:48:29 +0100 | [diff] [blame] | 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 | 5aa000f | 2021-05-05 18:57:38 +0200 | [diff] [blame] | 26 | android:minSdkVersion="28" |
Alexander Martinz | 56ae82a | 2022-01-11 11:49:13 +0100 | [diff] [blame] | 27 | android:targetSdkVersion="31" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 28 | |
Joey | 00a6e30 | 2021-06-01 21:24:10 +0200 | [diff] [blame] | 29 | <!-- Android Studio will complain about not being able to |
| 30 | resove the symbol, but it compiles with no problem. |
| 31 | Do not remove for as long as there are officially supported |
| 32 | devices that were supported in 14.1 --> |
| 33 | <!-- suppress AndroidElementNotAllowed --> |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 34 | <original-package android:name="com.cyanogenmod.eleven" /> |
| 35 | |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 36 | <!-- Used for caching and creating new playlists --> |
| 37 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
DarkJoker360 | 24ecd25 | 2023-04-12 17:42:51 +0200 | [diff] [blame] | 38 | <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 39 | <!-- Used to check for a network connection --> |
| 40 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 41 | <!-- Used to keep the service running when the phone sleeps --> |
| 42 | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 43 | <!-- The main service uses a sticky broadcast --> |
| 44 | <uses-permission android:name="android.permission.BROADCAST_STICKY" /> |
| 45 | <!-- Lower or raise the music based on the phone state --> |
| 46 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 47 | <!-- Used to set the devices's ringtone --> |
Michael W | 005c2bd | 2021-12-19 23:59:06 +0100 | [diff] [blame] | 48 | <uses-permission android:name="android.permission.WRITE_SETTINGS" |
| 49 | tools:ignore="ProtectedPermissions" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 50 | <!-- Used to create launcher shortcuts --> |
| 51 | <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> |
linuxx | 81e13fb | 2014-12-10 18:25:02 +0100 | [diff] [blame] | 52 | <!-- Allows Eleven to read from External Storage --> |
Shareef Ali | 715bd79 | 2014-06-13 22:38:16 -0400 | [diff] [blame] | 53 | <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
Arne Coucheron | 1cc8b9e | 2017-07-31 00:17:51 +0200 | [diff] [blame] | 54 | <!-- Allows Eleven to modify media files on external storage --> |
Michael W | 005c2bd | 2021-12-19 23:59:06 +0100 | [diff] [blame] | 55 | <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" |
| 56 | tools:ignore="ProtectedPermissions" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 57 | |
linus_lee | 8274981 | 2014-11-19 17:52:53 -0800 | [diff] [blame] | 58 | <!-- Audio Visualizer Permissions --> |
| 59 | <uses-permission android:name="android.permission.RECORD_AUDIO" /> |
| 60 | <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
| 61 | |
Alexander Martinz | 5b70dfc | 2019-02-26 20:54:02 +0100 | [diff] [blame] | 62 | <!-- Allows Eleven to start services in foreground --> |
| 63 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
Georg Veichtlbauer | fe366f3 | 2023-11-14 21:29:10 +0100 | [diff] [blame] | 64 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" /> |
Alexander Martinz | 5b70dfc | 2019-02-26 20:54:02 +0100 | [diff] [blame] | 65 | |
Mikalacki Sava | 758ec43 | 2015-01-13 17:37:46 +0100 | [diff] [blame] | 66 | <!-- Accelerometer feature for shake to play --> |
| 67 | <uses-feature android:name="android.hardware.sensor.accelerometer" /> |
| 68 | |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 69 | <application |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 70 | android:name="org.lineageos.eleven.ElevenApplication" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 71 | android:allowTaskReparenting="true" |
Georg Veichtlbauer | 1ad5ff7 | 2023-09-06 17:23:32 +0200 | [diff] [blame] | 72 | android:enableOnBackInvokedCallback="true" |
LuK1337 | e972ce8 | 2020-09-10 20:46:24 +0200 | [diff] [blame] | 73 | android:requestLegacyExternalStorage="true" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 74 | android:hardwareAccelerated="@bool/config_hardwareAccelerated" |
Joey | 4492757 | 2018-01-25 12:16:58 +0100 | [diff] [blame] | 75 | android:appCategory="audio" |
Asher Simonds | 7915e65 | 2018-02-12 10:30:08 +0100 | [diff] [blame] | 76 | android:icon="@mipmap/ic_launcher" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 77 | android:label="@string/app_name" |
| 78 | android:largeHeap="@bool/config_largeHeap" |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 79 | android:taskAffinity="org.lineageos.eleven.task" |
linus_lee | ec7eb2e | 2014-08-29 19:44:58 -0700 | [diff] [blame] | 80 | android:theme="@style/Eleven.Theme"> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 81 | |
Albert Tang | bd5330f | 2023-08-09 19:26:00 -0500 | [diff] [blame] | 82 | <meta-data android:name="com.google.android.gms.car.application" |
| 83 | android:resource="@xml/automotive_app_desc"/> |
| 84 | |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 85 | <!-- Main activity --> |
| 86 | <activity |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 87 | android:name="org.lineageos.eleven.ui.activities.HomeActivity" |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 88 | android:windowSoftInputMode="adjustPan" |
linus_lee | 93e7c9f | 2014-09-30 16:51:08 -0700 | [diff] [blame] | 89 | android:launchMode="singleTop" |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 90 | android:exported="true" |
| 91 | android:theme="@style/Eleven.Theme.ActionBar.Overlay"> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 92 | <intent-filter> |
| 93 | <action android:name="android.intent.action.MAIN" /> |
| 94 | <action android:name="android.intent.action.MUSIC_PLAYER" /> |
| 95 | |
| 96 | <category android:name="android.intent.category.LAUNCHER" /> |
| 97 | <category android:name="android.intent.category.APP_MUSIC" /> |
| 98 | <category android:name="android.intent.category.DEFAULT" /> |
| 99 | </intent-filter> |
Alexander Martinz | ebb83f6 | 2019-01-31 18:48:29 +0100 | [diff] [blame] | 100 | <intent-filter tools:ignore="AppLinkUrlError"> |
Danny Baumann | ceda239 | 2013-04-23 11:33:41 +0200 | [diff] [blame] | 101 | <action android:name="android.intent.action.VIEW" /> |
| 102 | |
| 103 | <category android:name="android.intent.category.DEFAULT" /> |
| 104 | |
| 105 | <data android:mimeType="vnd.android.cursor.dir/playlist" /> |
myfreeweb | 4e5a01c | 2014-03-12 21:10:27 +0400 | [diff] [blame] | 106 | <data android:mimeType="vnd.android.cursor.dir/albums" /> |
| 107 | <data android:mimeType="vnd.android.cursor.dir/artists" /> |
Danny Baumann | ceda239 | 2013-04-23 11:33:41 +0200 | [diff] [blame] | 108 | </intent-filter> |
| 109 | <intent-filter> |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 110 | <action android:name="org.lineageos.eleven.AUDIO_PLAYER" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 111 | |
| 112 | <category android:name="android.intent.category.DEFAULT" /> |
| 113 | </intent-filter> |
| 114 | </activity> |
| 115 | |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 116 | <!-- Used to set options --> |
| 117 | <activity |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 118 | android:name="org.lineageos.eleven.ui.activities.SettingsActivity" |
Alexander Martinz | 56ae82a | 2022-01-11 11:49:13 +0100 | [diff] [blame] | 119 | android:exported="false" |
Alexander Martinz | bb1a94d | 2019-02-27 19:55:07 +0100 | [diff] [blame] | 120 | android:label="@string/menu_settings" |
| 121 | android:theme="@style/Eleven.Theme.ActionBar.Overlay"/> |
Martin Brabham | dc90042 | 2015-05-27 15:52:06 -0700 | [diff] [blame] | 122 | <!-- Audio Preview --> |
| 123 | <activity |
| 124 | android:name=".ui.activities.preview.AudioPreviewActivity" |
Martin Brabham | dc90042 | 2015-05-27 15:52:06 -0700 | [diff] [blame] | 125 | android:excludeFromRecents="true" |
Alexander Martinz | 56ae82a | 2022-01-11 11:49:13 +0100 | [diff] [blame] | 126 | android:exported="true" |
| 127 | android:launchMode="singleTask" |
Danny Baumann | 2ee7c6e | 2016-02-02 16:19:56 +0100 | [diff] [blame] | 128 | android:taskAffinity="" |
Martin Brabham | dc90042 | 2015-05-27 15:52:06 -0700 | [diff] [blame] | 129 | android:theme="@style/Theme.AudioPreview"> |
| 130 | <intent-filter> |
| 131 | <action android:name="android.intent.action.VIEW" /> |
| 132 | |
| 133 | <category android:name="android.intent.category.DEFAULT" /> |
| 134 | |
| 135 | <data android:scheme="content" /> |
| 136 | <data android:mimeType="audio/*" /> |
| 137 | <data android:mimeType="application/ogg" /> |
| 138 | <data android:mimeType="application/x-ogg" /> |
| 139 | <data android:mimeType="application/itunes" /> |
| 140 | </intent-filter> |
| 141 | <intent-filter> |
| 142 | <action android:name="android.intent.action.VIEW" /> |
| 143 | |
| 144 | <category android:name="android.intent.category.DEFAULT" /> |
| 145 | |
| 146 | <data android:scheme="file" /> |
| 147 | <data android:mimeType="audio/*" /> |
| 148 | <data android:mimeType="application/ogg" /> |
| 149 | <data android:mimeType="application/x-ogg" /> |
| 150 | <data android:mimeType="application/itunes" /> |
| 151 | </intent-filter> |
| 152 | <intent-filter> |
| 153 | <action android:name="android.intent.action.VIEW" /> |
| 154 | |
| 155 | <category android:name="android.intent.category.DEFAULT" /> |
| 156 | <category android:name="android.intent.category.BROWSABLE" /> |
| 157 | |
| 158 | <data android:scheme="http" /> |
| 159 | <data android:mimeType="audio/*" /> |
| 160 | <data android:mimeType="application/ogg" /> |
| 161 | <data android:mimeType="application/x-ogg" /> |
| 162 | <data android:mimeType="application/itunes" /> |
| 163 | </intent-filter> |
| 164 | </activity> |
Tim Schumacher | b6dbaa2 | 2022-10-27 23:13:32 +0200 | [diff] [blame] | 165 | <!-- Square App Widget --> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 166 | <receiver |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 167 | android:name="org.lineageos.eleven.appwidgets.AppWidgetSmall" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 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 |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 180 | android:name="org.lineageos.eleven.appwidgets.AppWidgetLarge" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 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 |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 193 | android:name="org.lineageos.eleven.appwidgets.AppWidgetLargeAlternate" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 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> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 204 | <!-- Media button receiver --> |
Alexander Martinz | 56ae82a | 2022-01-11 11:49:13 +0100 | [diff] [blame] | 205 | <receiver |
| 206 | android:name="org.lineageos.eleven.MediaButtonIntentReceiver" |
| 207 | android:exported="false"> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 208 | <intent-filter> |
| 209 | <action android:name="android.intent.action.MEDIA_BUTTON" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 210 | </intent-filter> |
| 211 | </receiver> |
linus_lee | 7124d4f | 2014-12-04 12:30:29 -0800 | [diff] [blame] | 212 | <!-- Used to recalculate sorting of songs based on the user's locale --> |
Alexander Martinz | 56ae82a | 2022-01-11 11:49:13 +0100 | [diff] [blame] | 213 | <receiver |
| 214 | android:name=".locale.LocaleChangeReceiver" |
| 215 | android:exported="false"> |
linus_lee | 7124d4f | 2014-12-04 12:30:29 -0800 | [diff] [blame] | 216 | <intent-filter> |
| 217 | <action android:name="android.intent.action.LOCALE_CHANGED"/> |
| 218 | </intent-filter> |
| 219 | </receiver> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 220 | <!-- Music service --> |
| 221 | <service |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 222 | android:name="org.lineageos.eleven.MusicPlaybackService" |
Albert Tang | bd5330f | 2023-08-09 19:26:00 -0500 | [diff] [blame] | 223 | android:exported="true" |
Georg Veichtlbauer | fe366f3 | 2023-11-14 21:29:10 +0100 | [diff] [blame] | 224 | android:foregroundServiceType="mediaPlayback" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 225 | android:label="@string/app_name" |
Albert Tang | bd5330f | 2023-08-09 19:26:00 -0500 | [diff] [blame] | 226 | android:process=":main"> |
| 227 | <intent-filter> |
| 228 | <action android:name="android.media.browse.MediaBrowserService"/> |
| 229 | </intent-filter> |
| 230 | </service> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 231 | </application> |
Danny Baumann | 6677f51 | 2013-02-23 13:19:00 +0100 | [diff] [blame] | 232 | </manifest> |