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 |
LuK1337 | 677fdea | 2024-11-12 20:09:16 +0100 | [diff] [blame^] | 63 | 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 Barezzi | 28f6757 | 2024-11-06 23:29:26 +0100 | [diff] [blame] | 70 | 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 Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 101 | <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 Stefani | a3a9369 | 2024-09-23 23:42:35 +0200 | [diff] [blame] | 109 | <action android:name="android.media.browse.MediaBrowserService" /> |
Sebastiano Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 110 | </intent-filter> |
| 111 | |
| 112 | </service> |
| 113 | |
Luca Stefani | a44d9ed | 2024-09-18 20:54:14 +0200 | [diff] [blame] | 114 | <receiver |
Sebastiano Barezzi | 057c295 | 2024-09-30 02:05:57 +0200 | [diff] [blame] | 115 | android:name=".services.PlaybackServiceActionsReceiver" |
| 116 | android:exported="false" /> |
| 117 | |
| 118 | <receiver |
Luca Stefani | a44d9ed | 2024-09-18 20:54:14 +0200 | [diff] [blame] | 119 | 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 Barezzi | 057c295 | 2024-09-30 02:05:57 +0200 | [diff] [blame] | 126 | <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 Barezzi | 88c7b23 | 2024-11-06 19:05:56 +0100 | [diff] [blame] | 134 | <meta-data |
| 135 | android:name="android.appwidget.provider" |
Sebastiano Barezzi | 057c295 | 2024-09-30 02:05:57 +0200 | [diff] [blame] | 136 | android:resource="@xml/app_widget_now_playing" /> |
| 137 | |
| 138 | </receiver> |
| 139 | |
Luca Stefani | a3a9369 | 2024-09-23 23:42:35 +0200 | [diff] [blame] | 140 | <meta-data |
| 141 | android:name="com.google.android.gms.car.application" |
| 142 | android:resource="@xml/automotive_app_desc" /> |
| 143 | |
Sebastiano Barezzi | 380db73 | 2024-09-14 22:12:58 +0200 | [diff] [blame] | 144 | </application> |
| 145 | |
| 146 | </manifest> |