Apple Music Downloader (ALAC / ATMOS) (Alpine Method)


Note:

  1. Install Alpine Term (available on GitHub) and Termux (available on GitHub or F-Droid).
  2. When opening Alpine Term and Termux, ensure you acquire a wakelock by swiping down on the app notification.
  3. You’ll need an account with an active subscription for this tool.
  4. This method is very slow when compared using computer instead (the speed depending your phone strong or not)

Alpine Term (1st step!)

  1. Open Alpine Term and grant storage access.
  2. Wait for Alpine Term to finish setting up.
  3. Press Enter to log in; type alpine for both the username and password.
  4. Run passwd to set a new password.
  5. Run sudo -i
  6. Run:
    echo -e "nameserver 8.8.8.8\nnameserver 1.1.1.1" >/etc/resolv.conf && wget "https://github.com/itouakirai/wrapper/releases/download/linux/wrapper.linux.x86_64.tar.gz" && mkdir wrapper && tar -xzf wrapper.linux.x86_64.tar.gz -C wrapper && cd wrapper
    
  7. Run ./wrapper -H 0.0.0.0 -D 10020 -M 20020 -L <username>:<password> account credentials
  8. Swipe from the left side of your screen to the right to open the side menu, then select QEMU.
  9. Run:
hostfwd_add tcp::10020-:10020
hostfwd_add tcp::20020-:20020

Termux

  1. Open Termux and run termux-setup-storage to grant storage access.
  2. Run:
    pkg update && pkg upgradable -y && pkg install -y golang gpac ffmpeg git && git clone https://github.com/zhaarey/apple-music-alac-atmos-downloader.git $HOME/amalac && cd amalac && sed -i 's|alac-save-folder: AM-DL downloads|alac-save-folder: /storage/emulated/0/Music/Apple Music/alac|; s|atmos-save-folder: AM-DL-Atmos downloads|atmos-save-folder: /storage/emulated/0/Music/Apple Music/atmos|' "$HOME/amalac/config.yaml"
    

Config Path:
/data/data/com.termux/files/home/amalac/config.yaml

Usage:

While in ~/amalac, run go run main.go <url> for ALAC and go run main_atmos.go <url> for Atmos.

Or build into single binary with go build main.go for both ALAC, Atmos

  1. Example (ALAC):
go run main.go https://music.apple.com/us/album/all-that-really-matters/1633752305

Binary method:

./main https://music.apple.com/us/album/all-that-really-matters/1633752305
  1. Example (Atmos):
    go run main.go --atmos https://music.apple.com/us/album/all-that-really-matters/1633752305
    

Binary method:

./main --atmos https://music.apple.com/us/album/all-that-really-matters/1633752305

2024/09/13 (YYYY/MM/DD) - @OnlyDonuts

Gone but not forget - RIP @onlydonutsapps 😔🤟

Edit Report
Pub: 11 May 2025 11:43 UTC
Edit: 01 Jun 2025 14:37 UTC
Views: 229
Auto Theme: Dark