Skip to main content

Command Tools

1. Adb

"Android Debug Bridge" is a command-line tool that lets you communicate with an Android device

Mac

Install adb on your Mac via homebrew: brew install --cask android-platform-tools

Windows

Follow these steps

Linux

To install the adb package, run the appropriate command for your Linux distributions, as follows:

  • sudo apt install adb [On Debian, Ubuntu and Mint]
  • sudo yum install adb [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
  • sudo emerge -a dev-util/android-tools [On Gentoo Linux]
  • sudo apk add adb [On Alpine Linux]
  • sudo pacman -S android-tools [On Arch Linux]
  • sudo zypper install adb [On OpenSUSE]

2. Scrcpy

Mirrors Android devices (video and audio) connected via USB or over TCP/IP, and allows to control the device with the keyboard and the mouse of the computer.

Mac

  1. Scrcpy is available in homebrew

  2. Open a new terminal and run the following which installs a prerequisite for Scrcpy: brew install android-platform-tools

  3. Run brew install scrcpy in terminal

  4. Run scrcpy to test that it works

Windows

  1. Install scrcpy ZIP archive from this link

  2. Extract the contents of the scrcpy ZIP file to a directory of your choice, for example, C:\scrcpy

  3. (optional but recommended) Set up scrcpy system-wide: Open a terminal and enter the following command: setx PATH "%PATH%;C:\scrcpy", replacing C:\scrcpy with the path where you extracted scrcpy.

  4. Run scrcpy to test that it works

Linux

  1. Install the required packages by running the following command in a terminal: sudo apt install ffmpeg libsdl2-2.0-0 adb wget \ gcc git pkg-config meson ninja-build libsdl2-dev \ libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \ libswresample-dev libusb-1.0-0 libusb-1.0-0-dev

  2. Run the following commands in order in your terminal:

  • git clone https://github.com/Genymobile/scrcpy

  • cd scrcpy

  • ./install_release.sh