Your music is infinite with Stash. Connect your service & experience the joy of music. Free and open source forever.
Stash grabs your Spotify and YouTube Music playlists and mirrors them on your Android phone. Download them, stream them. Hi-res when it exists.
No Stash account, no analytics, your logins stay encrypted on your phone. Free and open source, forever.
Your library, one place
|
Download or stream
|
Sound
|
Lyrics
|
Finding new stuff
|
Social
|
Dark, light and pure black themes. Everything optional is off until you turn it on.
![]() | ![]() | ![]() | ![]() |
![]() | ![]() | ![]() | ![]() |
![]() | ![]() | ![]() | ![]() |
![]() | ![]() | ![]() | ![]() |
Easiest: grab Stash.apk from the latest release, open it, tap Install. If Android grumbles about unknown sources, allow it for your browser and try again.
Want auto-updates? Use Obtainium and add https://github.com/rawnaldclark/Stash. It'll ping you when there's a new version.
You need Android 8.0 or newer, and a Spotify and/or YouTube Music account.
git clone https://github.com/rawnaldclark/Stash.git
cd Stash
./gradlew assembleDebug
# APK lands in app/build/outputs/apk/debug/
You'll need Android Studio Hedgehog (2023.1.1) or later, JDK 17, and Android SDK 35. A build from a plain checkout skips the project's lossless relay and Last.fm proxy. CONTRIBUTING.md has the rest.
Feature: Quality and Queue
https://github.com/rawnaldclark/Stash/issues/1008
Labels: enhancement
[Bug]: Untranslated French UI strings and Weblate sync mismatch in v0.9.126
https://github.com/rawnaldclark/Stash/issues/1003
Labels: bug
Feature: reproducción automática
https://github.com/rawnaldclark/Stash/issues/1002
Labels: enhancement
[Bug]: Quality And Queue
https://github.com/rawnaldclark/Stash/issues/977
Labels: bug
Feature: Add DLNA Support
https://github.com/rawnaldclark/Stash/issues/975
Labels: enhancement
Feature: AI-generated music filter
https://github.com/rawnaldclark/Stash/issues/974
Labels: enhancement
[Bug]: Stash seems to be connected to my Spotify, but it isn't syncing any playlists or songs from my Spotify. Also the download seems to be stuck.
https://github.com/rawnaldclark/Stash/issues/972
Labels: bug
[Bug]: Multiple Issues: Incorrect Track Matching, YouTube Music Integration, FLAC Playback and Artwork
https://github.com/rawnaldclark/Stash/issues/971
Labels: bug
[Bug]: Artist page and radio mixes releases from separate artists
https://github.com/rawnaldclark/Stash/issues/969
Labels: bug
https://github.com/rawnaldclark/Stash/issues/967
Labels: enhancement
Thanks for your interest in improving Stash. This guide covers how to build the app, how the codebase is laid out, and how to get a change merged.
Stash is GPL-3.0. By contributing, you agree that your contributions are licensed under the same terms.
For anything substantial, open an issue (or ask on Discord) first. A quick conversation about the approach saves everyone time — it's no fun to sink a weekend into a PR only to find the change doesn't fit the direction of the project. Small, obvious fixes (typos, crashes with a clear cause, a one-line bug) can go straight to a PR.
Good first contributions:
You'll need:
git clone https://github.com/rawnaldclark/Stash.git
cd Stash
./gradlew assembleDebug
# APK lands in app/build/outputs/apk/debug/
To install straight to a connected device:
./gradlew installDebug
Run the unit tests:
./gradlew test
Note: Stash talks to third-party music services using your own login cookies (see the README for how that works). You don't need any of that configured to build the app or work on most of the codebase — only to exercise the sync/streaming paths end to end on a device.
Debug builds are signed with a keystore committed to the repo
(debug.keystore, repo root) so every contributor and CI produce
identically-signed debug APKs — this avoids INSTALL_FAILED_UPDATE_INCOMPATIBLE
when installing across machines or user profiles (e.g. Samsung Secure Folder).
This is a standard debug key with the well-known AOSP password (android) —
committing it is normal practice, not a credential leak. It only affects
local/debug installs; release signing is unaffected and uses separate,
non-committed credentials.
One-time migration: if you have a debug build installed from before this change, you'll need to uninstall it once before installing a build signed with the new key. Uninstalling wipes app data, so do this first:
Release builds are shrunk by R8: it removes the code and resources nothing uses and optimizes the rest, but
renames nothing. Its rules live in app/proguard-rules.pro, plus a module's own consumer-rules.pro for that
module's lookups by name.
Try a rule change on a phone: ./gradlew :app:assembleDebug -Pstash.minifyDebug=true builds the everyday
debug app shrunk with the release rules (same app id, key and data). It is not debuggable, so adb shell run-as
doesn't work while it is installed.
Read a release crash trace: most methods in a release build carry no line table, so frames print as
instruction offsets, and inlined code is listed under the method it was folded into. Each GitHub release has that
build's mapping-<tag>.txt.gz; pick the tag from the crash file's App version line. With the Android SDK
Command-line Tools installed (SDK Manager › SDK Tools), unzip it and run:
gh release download v0.9.125 -p 'mapping-*.txt.gz' && gunzip mapping-v0.9.125.txt.gz
retrace mapping-v0.9.125.txt crash.txt
retrace is in <sdk>/cmdline-tools/latest/bin/. It prints the trace with source lines and the inlined frames
restored. Without the Command-line Tools, the same retrace ships inside the Android Gradle plugin jar a build has
already downloaded (use the agp version from gradle/libs.versions.toml):
java -cp ~/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder/8.9.1/*/builder-8.9.1.jar \
com.android.tools.r8.retrace.Retrace mapping-v0.9.125.txt crash.txt
Stash is a multi-module Gradle project. Modules keep responsibilities isolated so a change in one place doesn't ripple everywhere. From the top:
:appThe application shell — dependency-injection wiring (Hilt), top-level navigation, and the Application class. Thin by design; the real work lives in the modules below.
:core:* — shared foundations| Module | Responsibility |
|---|---|
:core:ui | Design system: Compose components, theme, shared UI building blocks |
:core:model | Plain domain models shared across the app |
:core:common | Cross-cutting utilities and helpers |
:core:data | Persistence (database, preferences) and repository plumbing |
:core:media | Playback — Media3/ExoPlayer, the player service, audio processing |
:core:auth | Encrypted on-device credential storage (Tink, AES-256-GCM) |
:core:network | HTTP clients and networking primitives |
:data:* — external integrations| Module | Responsibility |
|---|---|
:data:spotify | Spotify library sync and resolution |
:data:ytmusic | YouTube Music library sync and resolution |
:data:download | The download pipeline (including yt-dlp) |
:data:lyrics | Lyrics fetching and parsing (LRCLIB) |