Skip to content

Latest commit

 

History

History
64 lines (58 loc) · 2.18 KB

File metadata and controls

64 lines (58 loc) · 2.18 KB

Deploy AppleMusicDecrypt (v3) on Android

This deployment requires that you have a wrapper-lite HTTP instance available (local, or a remote one you trust). Login is done on the wrapper side.

Step 1: Install Termux and Debian

Download and install Termux. Give it storage permissions(termux-setup-storage)

Then execute the following commands to install Debian:

pkg update && pkg install proot-distro
pd i debian

Step 2: Deploy AppleMusicDecrypt

Enter the Debian environment(pd login debian)

apt update && apt install git -y && curl -LsSf https://astral.sh/uv/install.sh | sh && source ~/.bashrc
git clone https://github.com/WorldObservationLog/AppleMusicDecrypt
cd AppleMusicDecrypt
git checkout v3
uv sync
cp config.example.toml config.toml
nano config.toml

If uv sync fails with "built wheel ... is not compatible with the current Python ... on Android aarch64", your uv binary is the Android build and it rejects Linux wheels. Fall back to pip + venv:

apt install python3-venv python3-pip -y
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt

Step3: Edit config

For Android users, some configurations need to be modified.

[instance]
url = "127.0.0.1:12340" # Address of your wrapper-lite instance
secure = false

[download]
parallelNum = 2 # The recommended value is half of maxRunningTasks
maxRunningTasks = 4 # This value depends on the memory size of the device and is not recommended to be higher than 8
dirPathFormat = "/sdcard/Music/{album_artist}/{album}"
playlistDirPathFormat = "/sdcard/Music/playlists/{playlistName}"

Step 4: Run AppleMusicDecrypt

uv install: uv run python main.py

pip fallback install: .venv/bin/python main.py

Inside proot Debian the detected key is linux-arm64; the app auto-resolves it to the bundled linux-aarch64 library (a temari 0.3.0 directory-naming quirk). If startup still fails with no libtemari found, set TEMARI_LIB to the library inside site-packages/temari/lib/linux-aarch64/libtemari.so.

Update AppleMusicDecrypt

pd login debian
cd AppleMusicDecrypt
git checkout -f && git pull
uv sync               # or: .venv/bin/pip install -r requirements.txt