blob: 0361f73667515df5a138bcbee7332efbb59ae874 [file] [log] [blame]
Sebastiano Barezzi380db732024-09-14 22:12:58 +02001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 SPDX-FileCopyrightText: 2024 The LineageOS Project
4 SPDX-License-Identifier: Apache-2.0
5-->
6<manifest xmlns:android="http://schemas.android.com/apk/res/android"
7 xmlns:tools="http://schemas.android.com/tools"
8 package="org.lineageos.twelve">
9
Sebastiano Barezzi380db732024-09-14 22:12:58 +020010 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
11 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
12 <uses-permission android:name="android.permission.INTERNET" />
13 <uses-permission
14 android:name="android.permission.MANAGE_MEDIA"
15 tools:ignore="ProtectedPermissions" />
16 <uses-permission
17 android:name="android.permission.READ_EXTERNAL_STORAGE"
18 android:maxSdkVersion="32" />
19 <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
Sebastiano Barezzi7269adb2024-10-11 09:41:21 +020020 <uses-permission android:name="android.permission.RECORD_AUDIO" />
Sebastiano Barezzi380db732024-09-14 22:12:58 +020021
22 <application
23 android:name=".TwelveApplication"
24 android:appCategory="audio"
25 android:enableOnBackInvokedCallback="true"
26 android:icon="@mipmap/ic_launcher"
27 android:label="@string/app_name"
Sebastiano Barezzi54471a02024-10-07 00:51:58 +020028 android:networkSecurityConfig="@xml/network_security_config"
Sebastiano Barezzi380db732024-09-14 22:12:58 +020029 android:supportsRtl="true"
30 android:theme="@style/Theme.Twelve"
31 tools:targetApi="tiramisu">
32
33 <activity
34 android:name=".MainActivity"
35 android:exported="true">
36
37 <intent-filter>
38 <action android:name="android.intent.action.MAIN" />
39
Arianf907b772024-10-16 01:03:57 +020040 <category android:name="android.intent.category.DEFAULT" />
Sebastiano Barezzi380db732024-09-14 22:12:58 +020041 <category android:name="android.intent.category.LAUNCHER" />
42 <category android:name="android.intent.category.APP_MUSIC" />
43 </intent-filter>
44
Sebastiano Barezzi60654ec2024-11-06 19:20:32 +010045 <intent-filter>
46 <action android:name="android.intent.action.VIEW" />
47 <action android:name="android.provider.action.REVIEW" />
48
49 <category android:name="android.intent.category.DEFAULT" />
50 <category android:name="android.intent.category.BROWSABLE" />
51
52 <data android:mimeType="vnd.android.cursor.item/album" />
53 <data android:mimeType="vnd.android.cursor.item/artist" />
54 <!-- Deprecated, we cannot handle those as we use our internal database -->
55 <!--<data android:mimeType="vnd.android.cursor.item/playlist" />-->
56
57 <data android:scheme="content" />
58 </intent-filter>
59
Sebastiano Barezzi380db732024-09-14 22:12:58 +020060 </activity>
61
Sebastiano Barezzi28f67572024-11-06 23:29:26 +010062 <activity
63 android:name=".ViewActivity"
64 android:excludeFromRecents="true"
65 android:exported="true"
66 android:theme="@style/Theme.Twelve.Dialog">
67
68 <intent-filter>
69 <action android:name="android.intent.action.VIEW" />
70 <action android:name="android.provider.action.REVIEW" />
71 <action android:name="android.provider.action.REVIEW_SECURE" />
72
73 <category android:name="android.intent.category.DEFAULT" />
74 <category android:name="android.intent.category.BROWSABLE" />
75
76 <data android:mimeType="application/itunes" />
77 <data android:mimeType="application/ogg" />
78 <data android:mimeType="application/vnd.apple.mpegurl" />
79 <data android:mimeType="application/vnd.ms-sstr+xml" />
80 <data android:mimeType="application/x-mpegurl" />
81 <data android:mimeType="application/x-ogg" />
82 <data android:mimeType="audio/*" />
83 <data android:mimeType="vnd.android.cursor.item/audio" />
84
85 <data android:scheme="content" />
86 <data android:scheme="file" />
87 <data android:scheme="http" />
88 <data android:scheme="https" />
89 <data android:scheme="rtsp" />
90 </intent-filter>
91
92 </activity>
93
Sebastiano Barezzi380db732024-09-14 22:12:58 +020094 <service
95 android:name=".services.PlaybackService"
96 android:exported="true"
97 android:foregroundServiceType="mediaPlayback"
98 android:label="@string/app_name">
99
100 <intent-filter>
101 <action android:name="androidx.media3.session.MediaLibraryService" />
Luca Stefania3a93692024-09-23 23:42:35 +0200102 <action android:name="android.media.browse.MediaBrowserService" />
Sebastiano Barezzi380db732024-09-14 22:12:58 +0200103 </intent-filter>
104
105 </service>
106
Luca Stefania44d9ed2024-09-18 20:54:14 +0200107 <receiver
Sebastiano Barezzi057c2952024-09-30 02:05:57 +0200108 android:name=".services.PlaybackServiceActionsReceiver"
109 android:exported="false" />
110
111 <receiver
Luca Stefania44d9ed2024-09-18 20:54:14 +0200112 android:name="androidx.media3.session.MediaButtonReceiver"
113 android:exported="true">
114 <intent-filter>
115 <action android:name="android.intent.action.MEDIA_BUTTON" />
116 </intent-filter>
117 </receiver>
118
Sebastiano Barezzi057c2952024-09-30 02:05:57 +0200119 <receiver
120 android:name=".ui.widgets.NowPlayingAppWidgetProvider"
121 android:exported="false">
122
123 <intent-filter>
124 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
125 </intent-filter>
126
Sebastiano Barezzi88c7b232024-11-06 19:05:56 +0100127 <meta-data
128 android:name="android.appwidget.provider"
Sebastiano Barezzi057c2952024-09-30 02:05:57 +0200129 android:resource="@xml/app_widget_now_playing" />
130
131 </receiver>
132
Luca Stefania3a93692024-09-23 23:42:35 +0200133 <meta-data
134 android:name="com.google.android.gms.car.application"
135 android:resource="@xml/automotive_app_desc" />
136
Sebastiano Barezzi380db732024-09-14 22:12:58 +0200137 </application>
138
139</manifest>