blob: fa869d8c4af8ede264c248e37f31564d09793907 [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
Albert Tangbd5330f2023-08-09 19:26:00 -05004 Copyright (C) 2019-2023 The LineageOS Project
Marco Brohet8bd94702013-03-17 09:53:44 +01005
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 Nealad90d962012-11-20 18:41:37 -060018<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Alexander Martinzebb83f62019-01-31 18:48:29 +010019 xmlns:tools="http://schemas.android.com/tools"
Michael Bestas869ef7e2018-01-22 21:06:57 +020020 package="org.lineageos.eleven"
Albert Tang19a28a92023-08-24 16:08:39 -050021 android:versionCode="420"
22 android:versionName="4.2.0"
Alexander Martinzebb83f62019-01-31 18:48:29 +010023 tools:ignore="GradleOverrides">
Andrew Nealad90d962012-11-20 18:41:37 -060024
Andrew Nealad90d962012-11-20 18:41:37 -060025 <uses-sdk
Alexander Martinz5aa000f2021-05-05 18:57:38 +020026 android:minSdkVersion="28"
Alexander Martinz56ae82a2022-01-11 11:49:13 +010027 android:targetSdkVersion="31" />
Andrew Nealad90d962012-11-20 18:41:37 -060028
Joey00a6e302021-06-01 21:24:10 +020029 <!-- 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 Bestas869ef7e2018-01-22 21:06:57 +020034 <original-package android:name="com.cyanogenmod.eleven" />
35
Andrew Nealad90d962012-11-20 18:41:37 -060036 <!-- Used for caching and creating new playlists -->
37 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
DarkJoker36024ecd252023-04-12 17:42:51 +020038 <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
Andrew Nealad90d962012-11-20 18:41:37 -060039 <!-- Used to check for a network connection -->
40 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Andrew Nealad90d962012-11-20 18:41:37 -060041 <!-- 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 W005c2bd2021-12-19 23:59:06 +010048 <uses-permission android:name="android.permission.WRITE_SETTINGS"
49 tools:ignore="ProtectedPermissions" />
Andrew Nealad90d962012-11-20 18:41:37 -060050 <!-- Used to create launcher shortcuts -->
51 <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
linuxx81e13fb2014-12-10 18:25:02 +010052 <!-- Allows Eleven to read from External Storage -->
Shareef Ali715bd792014-06-13 22:38:16 -040053 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
Arne Coucheron1cc8b9e2017-07-31 00:17:51 +020054 <!-- Allows Eleven to modify media files on external storage -->
Michael W005c2bd2021-12-19 23:59:06 +010055 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE"
56 tools:ignore="ProtectedPermissions" />
Andrew Nealad90d962012-11-20 18:41:37 -060057
linus_lee82749812014-11-19 17:52:53 -080058 <!-- Audio Visualizer Permissions -->
59 <uses-permission android:name="android.permission.RECORD_AUDIO" />
60 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
61
Alexander Martinz5b70dfc2019-02-26 20:54:02 +010062 <!-- Allows Eleven to start services in foreground -->
63 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
64
Mikalacki Sava758ec432015-01-13 17:37:46 +010065 <!-- Accelerometer feature for shake to play -->
66 <uses-feature android:name="android.hardware.sensor.accelerometer" />
67
Andrew Nealad90d962012-11-20 18:41:37 -060068 <application
Michael Bestas869ef7e2018-01-22 21:06:57 +020069 android:name="org.lineageos.eleven.ElevenApplication"
Andrew Nealad90d962012-11-20 18:41:37 -060070 android:allowTaskReparenting="true"
Georg Veichtlbauer1ad5ff72023-09-06 17:23:32 +020071 android:enableOnBackInvokedCallback="true"
LuK1337e972ce82020-09-10 20:46:24 +020072 android:requestLegacyExternalStorage="true"
Andrew Nealad90d962012-11-20 18:41:37 -060073 android:hardwareAccelerated="@bool/config_hardwareAccelerated"
Joey44927572018-01-25 12:16:58 +010074 android:appCategory="audio"
Asher Simonds7915e652018-02-12 10:30:08 +010075 android:icon="@mipmap/ic_launcher"
Andrew Nealad90d962012-11-20 18:41:37 -060076 android:label="@string/app_name"
77 android:largeHeap="@bool/config_largeHeap"
Michael Bestas869ef7e2018-01-22 21:06:57 +020078 android:taskAffinity="org.lineageos.eleven.task"
linus_leeec7eb2e2014-08-29 19:44:58 -070079 android:theme="@style/Eleven.Theme">
Andrew Nealad90d962012-11-20 18:41:37 -060080
Albert Tangbd5330f2023-08-09 19:26:00 -050081 <meta-data android:name="com.google.android.gms.car.application"
82 android:resource="@xml/automotive_app_desc"/>
83
Andrew Nealad90d962012-11-20 18:41:37 -060084 <!-- Main activity -->
85 <activity
Michael Bestas869ef7e2018-01-22 21:06:57 +020086 android:name="org.lineageos.eleven.ui.activities.HomeActivity"
linus_lee5d1b1792014-08-21 18:52:12 -070087 android:windowSoftInputMode="adjustPan"
linus_lee93e7c9f2014-09-30 16:51:08 -070088 android:launchMode="singleTop"
linus_lee5d1b1792014-08-21 18:52:12 -070089 android:exported="true"
90 android:theme="@style/Eleven.Theme.ActionBar.Overlay">
Andrew Nealad90d962012-11-20 18:41:37 -060091 <intent-filter>
92 <action android:name="android.intent.action.MAIN" />
93 <action android:name="android.intent.action.MUSIC_PLAYER" />
94
95 <category android:name="android.intent.category.LAUNCHER" />
96 <category android:name="android.intent.category.APP_MUSIC" />
97 <category android:name="android.intent.category.DEFAULT" />
98 </intent-filter>
Alexander Martinzebb83f62019-01-31 18:48:29 +010099 <intent-filter tools:ignore="AppLinkUrlError">
Danny Baumannceda2392013-04-23 11:33:41 +0200100 <action android:name="android.intent.action.VIEW" />
101
102 <category android:name="android.intent.category.DEFAULT" />
103
104 <data android:mimeType="vnd.android.cursor.dir/playlist" />
myfreeweb4e5a01c2014-03-12 21:10:27 +0400105 <data android:mimeType="vnd.android.cursor.dir/albums" />
106 <data android:mimeType="vnd.android.cursor.dir/artists" />
Danny Baumannceda2392013-04-23 11:33:41 +0200107 </intent-filter>
108 <intent-filter>
Michael Bestas869ef7e2018-01-22 21:06:57 +0200109 <action android:name="org.lineageos.eleven.AUDIO_PLAYER" />
Andrew Nealad90d962012-11-20 18:41:37 -0600110
111 <category android:name="android.intent.category.DEFAULT" />
112 </intent-filter>
113 </activity>
114
Andrew Nealad90d962012-11-20 18:41:37 -0600115 <!-- Used to set options -->
116 <activity
Michael Bestas869ef7e2018-01-22 21:06:57 +0200117 android:name="org.lineageos.eleven.ui.activities.SettingsActivity"
Alexander Martinz56ae82a2022-01-11 11:49:13 +0100118 android:exported="false"
Alexander Martinzbb1a94d2019-02-27 19:55:07 +0100119 android:label="@string/menu_settings"
120 android:theme="@style/Eleven.Theme.ActionBar.Overlay"/>
Martin Brabhamdc900422015-05-27 15:52:06 -0700121 <!-- Audio Preview -->
122 <activity
123 android:name=".ui.activities.preview.AudioPreviewActivity"
Martin Brabhamdc900422015-05-27 15:52:06 -0700124 android:excludeFromRecents="true"
Alexander Martinz56ae82a2022-01-11 11:49:13 +0100125 android:exported="true"
126 android:launchMode="singleTask"
Danny Baumann2ee7c6e2016-02-02 16:19:56 +0100127 android:taskAffinity=""
Martin Brabhamdc900422015-05-27 15:52:06 -0700128 android:theme="@style/Theme.AudioPreview">
129 <intent-filter>
130 <action android:name="android.intent.action.VIEW" />
131
132 <category android:name="android.intent.category.DEFAULT" />
133
134 <data android:scheme="content" />
135 <data android:mimeType="audio/*" />
136 <data android:mimeType="application/ogg" />
137 <data android:mimeType="application/x-ogg" />
138 <data android:mimeType="application/itunes" />
139 </intent-filter>
140 <intent-filter>
141 <action android:name="android.intent.action.VIEW" />
142
143 <category android:name="android.intent.category.DEFAULT" />
144
145 <data android:scheme="file" />
146 <data android:mimeType="audio/*" />
147 <data android:mimeType="application/ogg" />
148 <data android:mimeType="application/x-ogg" />
149 <data android:mimeType="application/itunes" />
150 </intent-filter>
151 <intent-filter>
152 <action android:name="android.intent.action.VIEW" />
153
154 <category android:name="android.intent.category.DEFAULT" />
155 <category android:name="android.intent.category.BROWSABLE" />
156
157 <data android:scheme="http" />
158 <data android:mimeType="audio/*" />
159 <data android:mimeType="application/ogg" />
160 <data android:mimeType="application/x-ogg" />
161 <data android:mimeType="application/itunes" />
162 </intent-filter>
163 </activity>
Tim Schumacherb6dbaa22022-10-27 23:13:32 +0200164 <!-- Square App Widget -->
Andrew Nealad90d962012-11-20 18:41:37 -0600165 <receiver
Michael Bestas869ef7e2018-01-22 21:06:57 +0200166 android:name="org.lineageos.eleven.appwidgets.AppWidgetSmall"
Andrew Nealad90d962012-11-20 18:41:37 -0600167 android:exported="false"
168 android:label="@string/app_widget_small" >
169 <intent-filter>
170 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
171 </intent-filter>
172
173 <meta-data
174 android:name="android.appwidget.provider"
175 android:resource="@xml/app_widget_small" />
176 </receiver>
177 <!-- 4x2 App Widget -->
178 <receiver
Michael Bestas869ef7e2018-01-22 21:06:57 +0200179 android:name="org.lineageos.eleven.appwidgets.AppWidgetLarge"
Andrew Nealad90d962012-11-20 18:41:37 -0600180 android:exported="false"
181 android:label="@string/app_widget_large" >
182 <intent-filter>
183 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
184 </intent-filter>
185
186 <meta-data
187 android:name="android.appwidget.provider"
188 android:resource="@xml/app_widget_large" />
189 </receiver>
190 <!-- 4x2 alternate App Widget -->
191 <receiver
Michael Bestas869ef7e2018-01-22 21:06:57 +0200192 android:name="org.lineageos.eleven.appwidgets.AppWidgetLargeAlternate"
Andrew Nealad90d962012-11-20 18:41:37 -0600193 android:exported="false"
194 android:label="@string/app_widget_large_alt" >
195 <intent-filter>
196 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
197 </intent-filter>
198
199 <meta-data
200 android:name="android.appwidget.provider"
201 android:resource="@xml/app_widget_large_alternate" />
202 </receiver>
Andrew Nealad90d962012-11-20 18:41:37 -0600203 <!-- Media button receiver -->
Alexander Martinz56ae82a2022-01-11 11:49:13 +0100204 <receiver
205 android:name="org.lineageos.eleven.MediaButtonIntentReceiver"
206 android:exported="false">
Andrew Nealad90d962012-11-20 18:41:37 -0600207 <intent-filter>
208 <action android:name="android.intent.action.MEDIA_BUTTON" />
Andrew Nealad90d962012-11-20 18:41:37 -0600209 </intent-filter>
210 </receiver>
linus_lee7124d4f2014-12-04 12:30:29 -0800211 <!-- Used to recalculate sorting of songs based on the user's locale -->
Alexander Martinz56ae82a2022-01-11 11:49:13 +0100212 <receiver
213 android:name=".locale.LocaleChangeReceiver"
214 android:exported="false">
linus_lee7124d4f2014-12-04 12:30:29 -0800215 <intent-filter>
216 <action android:name="android.intent.action.LOCALE_CHANGED"/>
217 </intent-filter>
218 </receiver>
Andrew Nealad90d962012-11-20 18:41:37 -0600219 <!-- Music service -->
220 <service
Michael Bestas869ef7e2018-01-22 21:06:57 +0200221 android:name="org.lineageos.eleven.MusicPlaybackService"
Albert Tangbd5330f2023-08-09 19:26:00 -0500222 android:exported="true"
Andrew Nealad90d962012-11-20 18:41:37 -0600223 android:label="@string/app_name"
Albert Tangbd5330f2023-08-09 19:26:00 -0500224 android:process=":main">
225 <intent-filter>
226 <action android:name="android.media.browse.MediaBrowserService"/>
227 </intent-filter>
228 </service>
Andrew Nealad90d962012-11-20 18:41:37 -0600229 </application>
Danny Baumann6677f512013-02-23 13:19:00 +0100230</manifest>