Installation
🐍 Requirements
Before installing android-device-manager, ensure you have:
- Python 3.10 or higher
- Android SDK installed and configured
Android SDK Setup
Option 1: Android Studio
- Download and install Android Studio
- Open Android Studio and follow the setup wizard
- Install additional SDK packages through SDK Manager
Option 2: Command Line Tools
Installing Command Line Tools
# Download command line tools
# August 2025 version - check for the latest version at:
# https://developer.android.com/studio#command-line-tools-only
wget https://dl.google.com/android/repository/commandlinetools-linux-13114758_latest.zip
# Extract and organize files
unzip commandlinetools-linux-13114758_latest.zip
mkdir -p ~/Android/Sdk/cmdline-tools/latest
mv cmdline-tools/* ~/Android/Sdk/cmdline-tools/latest/
# Cleanup
rm -rf cmdline-tools commandlinetools-linux-13114758_latest.zip
Setting Up Environment Variables
# Add these lines to your ~/.bashrc or ~/.zshrc
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/emulator
# Reload your configuration
source ~/.bashrc # or source ~/.zshrc
Installing Essential Components
# Accept licenses
yes | sdkmanager --licenses
# Install basic tools
sdkmanager "platform-tools"
sdkmanager "emulator"
Verifying Installation
To verify everything works correctly:
# Check that tools are accessible
adb version
emulator -version
# List installed packages
sdkmanager --list_installed