blob: e00670fc826ff187b762899a919507f9ce7911da [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
LuK1337677fdea2024-11-12 20:09:16 +010063 android:name=".SettingsActivity"
64 android:configChanges="orientation|screenLayout|screenSize|smallestScreenSize|keyboardHidden"
65 android:exported="false"
66 android:label="@string/title_activity_settings"
67 android:theme="@style/Theme.SettingsLib" />
68
69 <activity
Sebastiano Barezzi28f67572024-11-06 23:29:26 +010070 android:name=".ViewActivity"
71 android:excludeFromRecents="true"
72 android:exported="true"
73 android:theme="@style/Theme.Twelve.Dialog">
74
75 <intent-filter>
76 <action android:name="android.intent.action.VIEW" />
77 <action android:name="android.provider.action.REVIEW" />
78 <action android:name="android.provider.action.REVIEW_SECURE" />
79
80 <category android:name="android.intent.category.DEFAULT" />
81 <category android:name="android.intent.category.BROWSABLE" />
82
83 <data android:mimeType="application/itunes" />
84 <data android:mimeType="application/ogg" />
85 <data android:mimeType="application/vnd.apple.mpegurl" />
86 <data android:mimeType="application/vnd.ms-sstr+xml" />
87 <data android:mimeType="application/x-mpegurl" />
88 <data android:mimeType="application/x-ogg" />
89 <data android:mimeType="audio/*" />
90 <data android:mimeType="vnd.android.cursor.item/audio" />
91
92 <data android:scheme="content" />
93 <data android:scheme="file" />
94 <data android:scheme="http" />
95 <data android:scheme="https" />
96 <data android:scheme="rtsp" />
97 </intent-filter>
98
99 </activity>
100
Sebastiano Barezzi380db732024-09-14 22:12:58 +0200101 <service
102 android:name=".services.PlaybackService"
103 android:exported="true"
104 android:foregroundServiceType="mediaPlayback"
105 android:label="@string/app_name">
106
107 <intent-filter>
108 <action android:name="androidx.media3.session.MediaLibraryService" />
Luca Stefania3a93692024-09-23 23:42:35 +0200109 <action android:name="android.media.browse.MediaBrowserService" />
Sebastiano Barezzi380db732024-09-14 22:12:58 +0200110 </intent-filter>
111
112 </service>
113
Luca Stefania44d9ed2024-09-18 20:54:14 +0200114 <receiver
Sebastiano Barezzi057c2952024-09-30 02:05:57 +0200115 android:name=".services.PlaybackServiceActionsReceiver"
116 android:exported="false" />
117
118 <receiver
Luca Stefania44d9ed2024-09-18 20:54:14 +0200119 android:name="androidx.media3.session.MediaButtonReceiver"
120 android:exported="true">
121 <intent-filter>
122 <action android:name="android.intent.action.MEDIA_BUTTON" />
123 </intent-filter>
124 </receiver>
125
Sebastiano Barezzi057c2952024-09-30 02:05:57 +0200126 <receiver
127 android:name=".ui.widgets.NowPlayingAppWidgetProvider"
128 android:exported="false">
129
130 <intent-filter>
131 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
132 </intent-filter>
133
Sebastiano Barezzi88c7b232024-11-06 19:05:56 +0100134 <meta-data
135 android:name="android.appwidget.provider"
Sebastiano Barezzi057c2952024-09-30 02:05:57 +0200136 android:resource="@xml/app_widget_now_playing" />
137
138 </receiver>
139
Luca Stefania3a93692024-09-23 23:42:35 +0200140 <meta-data
141 android:name="com.google.android.gms.car.application"
142 android:resource="@xml/automotive_app_desc" />
143
Sebastiano Barezzi380db732024-09-14 22:12:58 +0200144 </application>
145
146</manifest>