Files
Playtube-Android/app/src/main/AndroidManifest.xml
T
FojadrachiandClaude Opus 5.5 3b3b746329 feat: Playtube Jam – gemeinsam hoeren, synchron auf dem eigenen Handy (1.4.0)
Jam starten (laufender Song wird der erste) oder per Code/Link beitreten, Jam-Ansicht
im Stil von "PC steuern": Teilnehmer, Warteschlange, Einladen per Teilen/Kopieren,
Host-Rechte. Die YouTube-Music-WebView gleicht sich mit dem Jam ab; Benachrichtigung
und Kopfhoerertasten steuern im Jam den Jam. App-Links jam.fojadrachi.de,
playtube://jam/<CODE> und "Teilen" von YouTube-Links. OkHttp fuer den WebSocket.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 01:36:55 +01:00

105 lines
5.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<!-- Musik laeuft im Hintergrund weiter: Vordergrunddienst mit Medien-Benachrichtigung. -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- "PC steuern" bleibt im Hintergrund verbunden (PcRemoteService). -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<!-- Das Discord-SDK bringt Sprach-Berechtigungen und eine Login-Activity mit; Playtube nutzt
nur die Rich Presence und braucht davon nichts. -->
<uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" tools:node="remove" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" tools:node="remove" />
<uses-permission android:name="android.permission.BLUETOOTH" tools:node="remove" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" tools:node="remove" />
<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:theme="@style/Theme.Playtube"
android:usesCleartextTraffic="false">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTask"
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboardHidden|keyboard|uiMode"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Langes Druecken aufs App-Icon: "PC steuern". -->
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
<!-- Geteilte/angetippte YouTube-Music-Links oeffnen sich in Playtube. -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="music.youtube.com" />
</intent-filter>
</activity>
<!-- Playtube auf dem PC im selben WLAN steuern (PcRemote.kt). -->
<activity
android:name=".PcRemoteActivity"
android:exported="false"
android:label="@string/pc_title"
android:launchMode="singleTop"
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboardHidden|keyboard|uiMode"
android:windowSoftInputMode="adjustResize" />
<!-- Playtube Jam: Einladungslinks (App-Link jam.fojadrachi.de, playtube://jam/<CODE>) und
"Teilen" von YouTube-Links aus anderen Apps (fuegt sie zum laufenden Jam hinzu). -->
<activity
android:name=".JamActivity"
android:exported="true"
android:label="@string/jam_title"
android:launchMode="singleTop"
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboardHidden|keyboard|uiMode"
android:windowSoftInputMode="adjustResize">
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="jam.fojadrachi.de" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="playtube" android:host="jam" />
</intent-filter>
<intent-filter android:label="@string/jam_title">
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
<service
android:name=".PcRemoteService"
android:exported="false"
android:foregroundServiceType="connectedDevice" />
<service
android:name=".PlaybackService"
android:exported="false"
android:foregroundServiceType="mediaPlayback" />
<activity android:name="com.discord.socialsdk.AuthenticationActivity" tools:node="remove" />
<service android:name="com.discord.socialsdk.ForegroundService" tools:node="remove" />
</application>
</manifest>