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
Scrcpy is available in homebrew
Open a new terminal and run the following which installs a prerequisite for Scrcpy:
brew install android-platform-tools
Run
brew install scrcpy
in terminalRun
scrcpy
to test that it works
Windows
Install scrcpy ZIP archive from this link
Extract the contents of the scrcpy ZIP file to a directory of your choice, for example,
C:\scrcpy
(optional but recommended) Set up scrcpy system-wide: Open a terminal and enter the following command:
setx PATH "%PATH%;C:\scrcpy"
, replacingC:\scrcpy
with the path where you extracted scrcpy.Run
scrcpy
to test that it works
Linux
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
Run the following commands in order in your terminal:
git clone https://github.com/Genymobile/scrcpy
cd scrcpy
./install_release.sh