Albums, playlists and Liked tracks get a download button beside the heart, and every track's menu offers Download or Remove download. Files are fetched one at a time at the streaming quality, stored decrypted with their covers, and play from the device even online. A downloaded album, playlist or Liked tracks follows later changes to it. What's wanted is saved before it's fetched, so a download cut short resumes when the connection returns or the app next starts; a foreground service with a progress notification keeps it going with the screen off. Collection links to a Downloads page listing what's on the device, with progress, failures and a retry. When Yandex can't be reached at launch and something is downloaded, the app opens on that page with the player instead of the "can't reach" screen, and reconnects by itself when the network returns. Offline, menus and Now Playing hide what needs a connection, and lyrics say they can't load instead of waiting forever. Settings shows the space downloads take and can remove them all. Another account signing in clears the previous one's downloads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
72 lines
3.3 KiB
XML
72 lines
3.3 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" />
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
|
<!-- To carry on downloading, or reconnect from offline, when a connection comes back. -->
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
|
|
<application
|
|
android:name=".Musyx"
|
|
android:allowBackup="false"
|
|
android:dataExtractionRules="@xml/data_extraction_rules"
|
|
android:fullBackupContent="@xml/backup_rules"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:supportsRtl="true"
|
|
android:theme="@style/Theme.Musyx">
|
|
|
|
<!-- Android Auto: this app is a media source it can browse. -->
|
|
<meta-data
|
|
android:name="com.google.android.gms.car.application"
|
|
android:resource="@xml/automotive_app_desc" />
|
|
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:configChanges="keyboard|keyboardHidden|navigation|screenSize|smallestScreenSize|screenLayout|orientation|uiMode"
|
|
android:launchMode="singleTask"
|
|
android:windowSoftInputMode="adjustResize"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
<!-- "Play … on Musyx" from the Assistant. -->
|
|
<intent-filter>
|
|
<action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<service
|
|
android:name=".PlaybackService"
|
|
android:exported="true"
|
|
android:foregroundServiceType="mediaPlayback"
|
|
tools:ignore="ExportedService">
|
|
<!-- Exported so the system, Bluetooth controls and Android Auto reach the media library. -->
|
|
<intent-filter>
|
|
<action android:name="androidx.media3.session.MediaLibraryService" />
|
|
<action android:name="android.media.browse.MediaBrowserService" />
|
|
</intent-filter>
|
|
</service>
|
|
|
|
<!-- Holds the app up while tracks download for offline listening. -->
|
|
<service
|
|
android:name=".DownloadService"
|
|
android:exported="false"
|
|
android:foregroundServiceType="dataSync" />
|
|
|
|
<!-- Covers for Android Auto, which can't load https itself. Read-only, Yandex hosts only. -->
|
|
<provider
|
|
android:name=".ArtworkProvider"
|
|
android:authorities="${applicationId}.artwork"
|
|
android:exported="true"
|
|
tools:ignore="ExportedContentProvider" />
|
|
</application>
|
|
</manifest>
|