packages/os/android/installer/docs/adb-setup.md
The installer uses Android platform tools only:
adb for booted Android discovery and post-flash validation.fastboot for bootloader-side preflight and flashing.The scripts are conservative, but platform tools still talk to real devices. Run dry-run plans before adding any execution flags.
brew install android-platform-tools
adb version
fastboot --version
Install the distribution package or Google's platform-tools zip. Package names vary by distribution:
sudo apt-get install android-tools-adb android-tools-fastboot
adb version
fastboot --version
Linux hosts may also need udev rules so non-root users can access USB devices. After adding rules, reload udev and reconnect the device:
sudo udevadm control --reload-rules
sudo udevadm trigger
adb kill-server
adb start-server
adb devices -l
Install Google's Android SDK Platform-Tools zip or Android Studio. Add the
platform-tools directory to PATH, then verify from PowerShell:
adb version
fastboot --version
adb devices -l
The PowerShell wrapper in this folder calls the Bash installer through a local Bash runtime. Git for Windows and WSL both provide practical options.
adb devices -l
Expected state:
SERIAL device usb:... product:... model:... device:...
States that block flashing:
unauthorized: accept the USB debugging prompt, then reconnect.offline: reconnect USB, restart ADB, or change cables/ports.device rows: pass --device SERIAL.The installer never unlocks a bootloader. Unlocking is device-specific, usually wipes user data, and can affect warranty or enterprise enrollment.
Before flashing, confirm:
adb reboot bootloader
fastboot devices
fastboot getvar unlocked
fastboot getvar unlocked must report yes or true before this installer
will execute flashing commands.
adb kill-server
adb start-server
adb devices -l is empty.adb works only with sudo.