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 |
Marcos Lopez | ba4ec3a | 2021-02-01 18:39:18 +0100 | [diff] [blame] | 4 | Copyright (C) 2019-2021 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" |
Alexander Martinz | b0cb044 | 2021-12-31 12:05:57 +0100 | [diff] [blame] | 21 | android:versionCode="410" |
| 22 | android:versionName="4.1.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" /> |
| 38 | <!-- Used to check for a network connection --> |
| 39 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 40 | <!-- Used to keep the service running when the phone sleeps --> |
| 41 | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 42 | <!-- The main service uses a sticky broadcast --> |
| 43 | <uses-permission android:name="android.permission.BROADCAST_STICKY" /> |
| 44 | <!-- Lower or raise the music based on the phone state --> |
| 45 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 46 | <!-- Used to set the devices's ringtone --> |
Michael W | 005c2bd | 2021-12-19 23:59:06 +0100 | [diff] [blame] | 47 | <uses-permission android:name="android.permission.WRITE_SETTINGS" |
| 48 | tools:ignore="ProtectedPermissions" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 49 | <!-- Used to create launcher shortcuts --> |
| 50 | <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> |
linuxx | 81e13fb | 2014-12-10 18:25:02 +0100 | [diff] [blame] | 51 | <!-- Allows Eleven to read from External Storage --> |
Shareef Ali | 715bd79 | 2014-06-13 22:38:16 -0400 | [diff] [blame] | 52 | <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
Arne Coucheron | 1cc8b9e | 2017-07-31 00:17:51 +0200 | [diff] [blame] | 53 | <!-- Allows Eleven to modify media files on external storage --> |
Michael W | 005c2bd | 2021-12-19 23:59:06 +0100 | [diff] [blame] | 54 | <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" |
| 55 | tools:ignore="ProtectedPermissions" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 56 | |
linus_lee | 8274981 | 2014-11-19 17:52:53 -0800 | [diff] [blame] | 57 | <!-- Audio Visualizer Permissions --> |
| 58 | <uses-permission android:name="android.permission.RECORD_AUDIO" /> |
| 59 | <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
| 60 | |
Alexander Martinz | 5b70dfc | 2019-02-26 20:54:02 +0100 | [diff] [blame] | 61 | <!-- Allows Eleven to start services in foreground --> |
| 62 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
| 63 | |
Mikalacki Sava | 758ec43 | 2015-01-13 17:37:46 +0100 | [diff] [blame] | 64 | <!-- Accelerometer feature for shake to play --> |
| 65 | <uses-feature android:name="android.hardware.sensor.accelerometer" /> |
| 66 | |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 67 | <application |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 68 | android:name="org.lineageos.eleven.ElevenApplication" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 69 | android:allowBackup="true" |
| 70 | android:allowTaskReparenting="true" |
LuK1337 | e972ce8 | 2020-09-10 20:46:24 +0200 | [diff] [blame] | 71 | android:requestLegacyExternalStorage="true" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 72 | android:hardwareAccelerated="@bool/config_hardwareAccelerated" |
Joey | 4492757 | 2018-01-25 12:16:58 +0100 | [diff] [blame] | 73 | android:appCategory="audio" |
Asher Simonds | 7915e65 | 2018-02-12 10:30:08 +0100 | [diff] [blame] | 74 | android:icon="@mipmap/ic_launcher" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 75 | android:label="@string/app_name" |
| 76 | android:largeHeap="@bool/config_largeHeap" |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 77 | android:taskAffinity="org.lineageos.eleven.task" |
linus_lee | ec7eb2e | 2014-08-29 19:44:58 -0700 | [diff] [blame] | 78 | android:theme="@style/Eleven.Theme"> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 79 | |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 80 | <!-- Main activity --> |
| 81 | <activity |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 82 | android:name="org.lineageos.eleven.ui.activities.HomeActivity" |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 83 | android:windowSoftInputMode="adjustPan" |
linus_lee | 93e7c9f | 2014-09-30 16:51:08 -0700 | [diff] [blame] | 84 | android:launchMode="singleTop" |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 85 | android:exported="true" |
| 86 | android:theme="@style/Eleven.Theme.ActionBar.Overlay"> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 87 | <intent-filter> |
| 88 | <action android:name="android.intent.action.MAIN" /> |
| 89 | <action android:name="android.intent.action.MUSIC_PLAYER" /> |
| 90 | |
| 91 | <category android:name="android.intent.category.LAUNCHER" /> |
| 92 | <category android:name="android.intent.category.APP_MUSIC" /> |
| 93 | <category android:name="android.intent.category.DEFAULT" /> |
| 94 | </intent-filter> |
Alexander Martinz | ebb83f6 | 2019-01-31 18:48:29 +0100 | [diff] [blame] | 95 | <intent-filter tools:ignore="AppLinkUrlError"> |
Danny Baumann | ceda239 | 2013-04-23 11:33:41 +0200 | [diff] [blame] | 96 | <action android:name="android.intent.action.VIEW" /> |
| 97 | |
| 98 | <category android:name="android.intent.category.DEFAULT" /> |
| 99 | |
| 100 | <data android:mimeType="vnd.android.cursor.dir/playlist" /> |
myfreeweb | 4e5a01c | 2014-03-12 21:10:27 +0400 | [diff] [blame] | 101 | <data android:mimeType="vnd.android.cursor.dir/albums" /> |
| 102 | <data android:mimeType="vnd.android.cursor.dir/artists" /> |
Danny Baumann | ceda239 | 2013-04-23 11:33:41 +0200 | [diff] [blame] | 103 | </intent-filter> |
| 104 | <intent-filter> |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 105 | <action android:name="org.lineageos.eleven.AUDIO_PLAYER" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 106 | |
| 107 | <category android:name="android.intent.category.DEFAULT" /> |
| 108 | </intent-filter> |
| 109 | </activity> |
| 110 | |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 111 | <!-- Used to set options --> |
| 112 | <activity |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 113 | android:name="org.lineageos.eleven.ui.activities.SettingsActivity" |
Alexander Martinz | 56ae82a | 2022-01-11 11:49:13 +0100 | [diff] [blame] | 114 | android:exported="false" |
Alexander Martinz | bb1a94d | 2019-02-27 19:55:07 +0100 | [diff] [blame] | 115 | android:label="@string/menu_settings" |
| 116 | android:theme="@style/Eleven.Theme.ActionBar.Overlay"/> |
Martin Brabham | dc90042 | 2015-05-27 15:52:06 -0700 | [diff] [blame] | 117 | <!-- Audio Preview --> |
| 118 | <activity |
| 119 | android:name=".ui.activities.preview.AudioPreviewActivity" |
Martin Brabham | dc90042 | 2015-05-27 15:52:06 -0700 | [diff] [blame] | 120 | android:excludeFromRecents="true" |
Alexander Martinz | 56ae82a | 2022-01-11 11:49:13 +0100 | [diff] [blame] | 121 | android:exported="true" |
| 122 | android:launchMode="singleTask" |
Danny Baumann | 2ee7c6e | 2016-02-02 16:19:56 +0100 | [diff] [blame] | 123 | android:taskAffinity="" |
Martin Brabham | dc90042 | 2015-05-27 15:52:06 -0700 | [diff] [blame] | 124 | android:theme="@style/Theme.AudioPreview"> |
| 125 | <intent-filter> |
| 126 | <action android:name="android.intent.action.VIEW" /> |
| 127 | |
| 128 | <category android:name="android.intent.category.DEFAULT" /> |
| 129 | |
| 130 | <data android:scheme="content" /> |
| 131 | <data android:mimeType="audio/*" /> |
| 132 | <data android:mimeType="application/ogg" /> |
| 133 | <data android:mimeType="application/x-ogg" /> |
| 134 | <data android:mimeType="application/itunes" /> |
| 135 | </intent-filter> |
| 136 | <intent-filter> |
| 137 | <action android:name="android.intent.action.VIEW" /> |
| 138 | |
| 139 | <category android:name="android.intent.category.DEFAULT" /> |
| 140 | |
| 141 | <data android:scheme="file" /> |
| 142 | <data android:mimeType="audio/*" /> |
| 143 | <data android:mimeType="application/ogg" /> |
| 144 | <data android:mimeType="application/x-ogg" /> |
| 145 | <data android:mimeType="application/itunes" /> |
| 146 | </intent-filter> |
| 147 | <intent-filter> |
| 148 | <action android:name="android.intent.action.VIEW" /> |
| 149 | |
| 150 | <category android:name="android.intent.category.DEFAULT" /> |
| 151 | <category android:name="android.intent.category.BROWSABLE" /> |
| 152 | |
| 153 | <data android:scheme="http" /> |
| 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 | </activity> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 160 | <!-- 4x1 App Widget --> |
| 161 | <receiver |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 162 | android:name="org.lineageos.eleven.appwidgets.AppWidgetSmall" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 163 | android:exported="false" |
| 164 | android:label="@string/app_widget_small" > |
| 165 | <intent-filter> |
| 166 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
| 167 | </intent-filter> |
| 168 | |
| 169 | <meta-data |
| 170 | android:name="android.appwidget.provider" |
| 171 | android:resource="@xml/app_widget_small" /> |
| 172 | </receiver> |
| 173 | <!-- 4x2 App Widget --> |
| 174 | <receiver |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 175 | android:name="org.lineageos.eleven.appwidgets.AppWidgetLarge" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 176 | android:exported="false" |
| 177 | android:label="@string/app_widget_large" > |
| 178 | <intent-filter> |
| 179 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
| 180 | </intent-filter> |
| 181 | |
| 182 | <meta-data |
| 183 | android:name="android.appwidget.provider" |
| 184 | android:resource="@xml/app_widget_large" /> |
| 185 | </receiver> |
| 186 | <!-- 4x2 alternate App Widget --> |
| 187 | <receiver |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 188 | android:name="org.lineageos.eleven.appwidgets.AppWidgetLargeAlternate" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 189 | android:exported="false" |
| 190 | android:label="@string/app_widget_large_alt" > |
| 191 | <intent-filter> |
| 192 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
| 193 | </intent-filter> |
| 194 | |
| 195 | <meta-data |
| 196 | android:name="android.appwidget.provider" |
| 197 | android:resource="@xml/app_widget_large_alternate" /> |
| 198 | </receiver> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 199 | <!-- Media button receiver --> |
Alexander Martinz | 56ae82a | 2022-01-11 11:49:13 +0100 | [diff] [blame] | 200 | <receiver |
| 201 | android:name="org.lineageos.eleven.MediaButtonIntentReceiver" |
| 202 | android:exported="false"> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 203 | <intent-filter> |
| 204 | <action android:name="android.intent.action.MEDIA_BUTTON" /> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 205 | </intent-filter> |
| 206 | </receiver> |
linus_lee | 7124d4f | 2014-12-04 12:30:29 -0800 | [diff] [blame] | 207 | <!-- Used to recalculate sorting of songs based on the user's locale --> |
Alexander Martinz | 56ae82a | 2022-01-11 11:49:13 +0100 | [diff] [blame] | 208 | <receiver |
| 209 | android:name=".locale.LocaleChangeReceiver" |
| 210 | android:exported="false"> |
linus_lee | 7124d4f | 2014-12-04 12:30:29 -0800 | [diff] [blame] | 211 | <intent-filter> |
| 212 | <action android:name="android.intent.action.LOCALE_CHANGED"/> |
| 213 | </intent-filter> |
| 214 | </receiver> |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 215 | <!-- Music service --> |
| 216 | <service |
Michael Bestas | 869ef7e | 2018-01-22 21:06:57 +0200 | [diff] [blame] | 217 | android:name="org.lineageos.eleven.MusicPlaybackService" |
Alexander Martinz | 56ae82a | 2022-01-11 11:49:13 +0100 | [diff] [blame] | 218 | android:exported="false" |
Andrew Neal | ad90d96 | 2012-11-20 18:41:37 -0600 | [diff] [blame] | 219 | android:label="@string/app_name" |
| 220 | android:process=":main" /> |
| 221 | </application> |
Danny Baumann | 6677f51 | 2013-02-23 13:19:00 +0100 | [diff] [blame] | 222 | </manifest> |