Preface

Installation

1

Step 1

Download and install the following two APKs: the first one is used as the decryption client, and the second one is used as the download client.

2

Step 2

After installing the first application, open it and log in to your Apple Music account(Subscription required). We will proceed to configure the second application.

Open the second application, ZeroTermux, and grant the required permissions as prompted. Next, enter the following commands to configure the environment and pull the download repository (press Enter to accept the default for any Y/N prompts that appear during the process).

pkg update && pkg upgrade && pkg install git golang gpac ffmpeg && git clone https://github.com/zhaarey/apple-music-alac-atmos-downloader.git
3

Step 3

In the ZeroTermux application, swipe left from the right edge of the screen to open the file manager. Navigate to home, apple-music-alac-atmos-downloader, config.yaml. Choose the first option to edit the file.

On Android, it is recommended to modify two values to change the storage location; otherwise, the files will be saved in the Termux application directory.

alac-save-folder: /storage/emulated/0/Music/AM/AM-DL downloads
atmos-save-folder: /storage/emulated/0/Music/AM/AM-DL-Atmos downloads

Usage

1

Step 1

Launch the Apple Music application and ensure it can run continuously in the background (e.g., disable battery optimization, grant background running permissions, etc.).For Android 14 and 15, you also need to enable Stop Restricting Child Processes in Developer Settings

2

Step 2

Start ZeroTermux and enter the following command to access the download project’s commands.

cd apple-music-alac-atmos-downloader
3

Step 3

You can then use the download commands to start downloading.

go run main.go url