- To download AAC files, I recommend using WorldObservationLog's AppleMusicDecrypt.
alac (audio-alac-stereo)
ec3 (audio-atmos / audio-ec3)
ac3 (audio-ac3)
aac (audio-stereo)
aac-binaural (audio-stereo-binaural)
aac-downmix (audio-stereo-downmix)
Original script by Sorrow. Modified by me to include some fixes and improvements.
-
Create a virtual device on Android Studio with an image that doesn't have Google APIs.
-
Install this version of Apple Music. You will also need SAI to install it.
-
Launch Apple Music and sign in to your account (subscription required).
-
Port forward 10020 TCP:
adb forward tcp:10020 tcp:10020
. -
Start the frida agent:
frida -U -l agent.js -f com.apple.android.music
. -
Build the project:
go build -o appleDL .
.
- Start downloading some albums / playlists:
./appleDL URL
. - Start downloading singles:
./appleDL --select URL
(input numbers separated by spaces). - For dolby atmos:
./appleDL --atmos URL
.
- Open Apple Music and log in.
- Open the Developer tools, Click
Application -> Storage -> Cookies -> https://music.apple.com
. - Find the cookie named
media-user-token
and copy its value. - Paste the cookie value obtained in step 3 into the
config.yaml
and save it. - Start the script as usual.