Original script by Sorrow. Modified by me to include some fixes and improvements.
- Install a WSA with Magisk build : https://github.com/MustardChef/WSABuilds
- Install this version of Apple Music: https://www.apkmirror.com/apk/apple/apple-music/apple-music-3-6-0-beta-release/apple-music-3-6-0-beta-4-android-apk-download/. You will also need SAI to install it: https://f-droid.org/pt_BR/packages/com.aefyr.sai.fdroid/.
- Launch Apple Music and sign in to your account. Subscription required.
- Port forward 10020 TCP:
adb forward tcp:10020 tcp:10020
. - Install and start frida server : https://frida.re/docs/android/
- Start the frida agent:
frida -U -l agent.js -f com.apple.android.music
. - Start downloading some albums:
go run main.go https://music.apple.com/us/album/whenever-you-need-somebody-2022-remaster/1624945511
. - Start downloading singles:
go run main_select.go https://music.apple.com/us/album/whenever-you-need-somebody-2022-remaster/1624945511
input numbers separated by spaces. - Start downloading some playlists:
go run main.go https://music.apple.com/us/playlist/taylor-swift-essentials/pl.3950454ced8c45a3b0cc693c2a7db97b
orgo run main.go https://music.apple.com/us/playlist/hi-res-lossless-24-bit-192khz/pl.u-MDAWvpjt38370N
. - For dolby atmos:
go run main_atmos.go https://music.apple.com/us/album/1989-taylors-version-deluxe/1713845538
.
- 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