Original script by Sorrow. Modified by me to include some fixes and improvements.
- Create a virtual device on Android Studio with a image that doesn't have Google APIs.
- 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
. - Start frida server.
- 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
. - For dolby atmos:
go run main_atmos.go "https://music.apple.com/hk/album/%E5%91%A8%E6%9D%B0%E5%80%AB%E5%9C%B0%E8%A1%A8%E6%9C%80%E5%BC%B7%E4%B8%96%E7%95%8C%E5%B7%A1%E8%BF%B4%E6%BC%94%E5%94%B1%E6%9C%83/1721464851"
.