asd Android SDK Downloader — offline-friendly SDK component installer

Bypassing sudo

By default asd writes the CSV registry to /opt, and setup installs the binary to /usr/local/bin — both of which typically require root. Neither is required: point everything at directories your user already owns.

Install asd itself without sudo

./setup ~/.local/bin ~/.local/share/asd

setup checks whether each target directory is writable before calling sudo, so pointing it at your home directory skips privilege escalation for the binary and the (optional) bundled CSV entirely.

Avoid sudo on registry updates

asd --update writes to $ASD_CSV, which defaults to /opt/myket.csv. Set it to a user-owned path instead:

export ASD_CSV=~/.local/share/asd/myket.csv
mkdir -p ~/.local/share/asd
asd --update

With ASD_CSV pointed at a writable location, asd --update (and the automatic registry fetch that happens the first time you run asd install) never calls sudo.

Make it permanent

cat >> ~/.bashrc <<'EOF'
export PATH="$HOME/.local/bin:$PATH"
export ASD_CSV="$HOME/.local/share/asd/myket.csv"
EOF

Full no-root setup, start to finish

git clone https://github.com/psdkjoon/asd.git
cd asd
./setup ~/.local/bin ~/.local/share/asd

export PATH="$HOME/.local/bin:$PATH"
export ASD_CSV="$HOME/.local/share/asd/myket.csv"

asd --update
asd platform-tools

No step here touches a directory outside your home, so no password prompt appears at any point.