{"id":48565936,"url":"https://github.com/fabiodalez-dev/monochrome-android-apk","last_synced_at":"2026-04-08T13:00:54.016Z","repository":{"id":344796350,"uuid":"1183145697","full_name":"fabiodalez-dev/Monochrome-Android-APK","owner":"fabiodalez-dev","description":"Android APK wrapper for Monochrome music streaming app","archived":false,"fork":false,"pushed_at":"2026-03-16T10:31:10.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-16T23:13:03.131Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabiodalez-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-16T10:14:29.000Z","updated_at":"2026-03-16T10:31:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fabiodalez-dev/Monochrome-Android-APK","commit_stats":null,"previous_names":["fabiodalez-dev/monochrome-android-apk"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fabiodalez-dev/Monochrome-Android-APK","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiodalez-dev%2FMonochrome-Android-APK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiodalez-dev%2FMonochrome-Android-APK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiodalez-dev%2FMonochrome-Android-APK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiodalez-dev%2FMonochrome-Android-APK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiodalez-dev","download_url":"https://codeload.github.com/fabiodalez-dev/Monochrome-Android-APK/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiodalez-dev%2FMonochrome-Android-APK/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31556239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-08T13:00:32.452Z","updated_at":"2026-04-08T13:00:54.009Z","avatar_url":"https://github.com/fabiodalez-dev.png","language":"Java","readme":"# Fabiodalez Music — Android App\n\n[![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge\u0026logo=buy-me-a-coffee\u0026logoColor=black)](https://buymeacoffee.com/fabiodalez)\n\nAndroid wrapper for [Monochrome](https://github.com/monochrome-music/monochrome), a privacy-respecting music streaming application.\n\n## Features\n\n- **Background playback** — Foreground Service keeps audio playing when the screen is off\n- **Media controls** — Play/pause/skip in the notification shade, lock screen, and Bluetooth\n- **Battery optimization bypass** — Requests exclusion from Android's battery killer on first launch\n- **Downloads** — Saves tracks to `Downloads/FabiodalezMusic/` with Android notification\n- **Local files** — Select Music Folder works on Android (native folder picker)\n- **OAuth** — Last.fm/Libre.fm authentication via Chrome Custom Tab\n- **Clipboard** — Copy to clipboard works natively\n- **Bluetooth auto-pause** — Music pauses automatically when Bluetooth disconnects\n- **Full UI** — Navigation bar visible, status bar visible with safe area padding\n- **Back navigation** — Back button in header for album/artist/playlist navigation\n- **Branding** — \"Fabiodalez Music\" name, custom splash screen\n\n## Requirements\n\n- macOS (with Homebrew)\n- JDK 21 (`brew install openjdk@21`)\n- Android command-line tools (`brew install --cask android-commandlinetools`)\n\n## Quick Start\n\n```bash\n# 1. Clone Monochrome\ngit clone https://github.com/monochrome-music/monochrome.git\ncd monochrome\ngit remote rename origin upstream\n\n# 2. Clone this overlay\ncd ..\ngit clone https://github.com/fabiodalez/fabiodalez-music-android.git\n\n# 3. Install overlay into Monochrome\ncd fabiodalez-music-android\nchmod +x install.sh\n./install.sh ../monochrome\n\n# 4. Build APK\ncd ../monochrome\n./build-android.sh\n```\n\nThe APK will be at `Monochrome-debug.apk`.\n\n## Updating\n\nWhen Monochrome releases updates:\n\n```bash\ncd monochrome\n./build-android.sh\n```\n\nThe script automatically pulls the latest from upstream, applies patches, builds, and restores all files. **No manual work needed.**\n\n## How It Works\n\nThe build script temporarily patches these upstream files during build:\n- `index.html` — adds viewport-fit, script tag, brand name\n- `package.json` — adds Capacitor dependencies\n\nAll patches are **reverted after build**. The upstream repo stays clean.\n\nThe Android-specific code lives entirely in:\n- `android/` — Native Java code (foreground service, download bridge, etc.)\n- `android/android-service.js` — JS bridge (media controls, downloads, CSS, back button)\n- `capacitor.config.ts` — Capacitor configuration\n- `build-android.sh` — Build automation\n\n## Architecture\n\n```\nMonochrome (upstream web app)\n    │\n    ├── Capacitor WebView (wraps the web app)\n    │\n    ├── android-service.js (injected at build time)\n    │   ├── Download handler (monkey-patches \u003ca download\u003e)\n    │   ├── Media controls (MutationObserver on document.title)\n    │   ├── CSS injection (safe areas, layout fixes)\n    │   ├── Back button (history.pushState hook)\n    │   ├── Clipboard override (AndroidBridge)\n    │   └── OAuth override (window.open → Chrome Custom Tab)\n    │\n    └── Native Java\n        ├── AudioForegroundService (MediaSession + notification)\n        ├── AudioServicePlugin (Capacitor bridge)\n        ├── DownloadBridge (MediaStore file saving)\n        ├── LocalFilesBridge (Android folder picker)\n        └── AndroidBridge (clipboard, browser)\n```\n\n## License\n\nSame as [Monochrome](https://github.com/monochrome-music/monochrome/blob/main/license).\n","funding_links":["https://buymeacoffee.com/fabiodalez"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiodalez-dev%2Fmonochrome-android-apk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiodalez-dev%2Fmonochrome-android-apk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiodalez-dev%2Fmonochrome-android-apk/lists"}