Sebastiano Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 1 | <?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 Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 10 | <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 Barezzi | 7269adb | 2024-10-11 09:41:21 +0200 | [diff] [blame] | 20 | <uses-permission android:name="android.permission.RECORD_AUDIO" /> |
Sebastiano Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 21 | |
| 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 Barezzi | 54471a0 | 2024-10-07 00:51:58 +0200 | [diff] [blame] | 28 | android:networkSecurityConfig="@xml/network_security_config" |
Sebastiano Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 29 | 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 | |
Arian | f907b77 | 2024-10-16 01:03:57 +0200 | [diff] [blame] | 40 | <category android:name="android.intent.category.DEFAULT" /> |
Sebastiano Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 41 | <category android:name="android.intent.category.LAUNCHER" /> |
| 42 | <category android:name="android.intent.category.APP_MUSIC" /> |
| 43 | </intent-filter> |
| 44 | |
Sebastiano Barezzi | 60654ec | 2024-11-06 19:20:32 +0100 | [diff] [blame] | 45 | <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 Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 60 | </activity> |
| 61 | |
Sebastiano Barezzi | 28f6757 | 2024-11-06 23:29:26 +0100 | [diff] [blame] | 62 | <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 Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 94 | <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 Stefani | a3a9369 | 2024-09-23 23:42:35 +0200 | [diff] [blame] | 102 | <action android:name="android.media.browse.MediaBrowserService" /> |
Sebastiano Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 103 | </intent-filter> |
| 104 | |
| 105 | </service> |
| 106 | |
Luca Stefani | a44d9ed | 2024-09-18 20:54:14 +0200 | [diff] [blame] | 107 | <receiver |
Sebastiano Barezzi | 057c295 | 2024-09-30 02:05:57 +0200 | [diff] [blame] | 108 | android:name=".services.PlaybackServiceActionsReceiver" |
| 109 | android:exported="false" /> |
| 110 | |
| 111 | <receiver |
Luca Stefani | a44d9ed | 2024-09-18 20:54:14 +0200 | [diff] [blame] | 112 | 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 Barezzi | 057c295 | 2024-09-30 02:05:57 +0200 | [diff] [blame] | 119 | <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 Barezzi | 88c7b23 | 2024-11-06 19:05:56 +0100 | [diff] [blame] | 127 | <meta-data |
| 128 | android:name="android.appwidget.provider" |
Sebastiano Barezzi | 057c295 | 2024-09-30 02:05:57 +0200 | [diff] [blame] | 129 | android:resource="@xml/app_widget_now_playing" /> |
| 130 | |
| 131 | </receiver> |
| 132 | |
Luca Stefani | a3a9369 | 2024-09-23 23:42:35 +0200 | [diff] [blame] | 133 | <meta-data |
| 134 | android:name="com.google.android.gms.car.application" |
| 135 | android:resource="@xml/automotive_app_desc" /> |
| 136 | |
Sebastiano Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 137 | </application> |
| 138 | |
| 139 | </manifest> |