Android Platform Tools Linux [best] -
fastboot devices # list fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot unlock # OEM unlock must be allowed fastboot reboot fastboot often requires udev rules for non-root access. 5. Linux-Specific Setup udev rules for device access (no sudo) Create /etc/udev/rules.d/51-android.rules :
sudo pacman -S android-tools | Task | Command | |------|---------| | List connected devices | adb devices | | Install APK | adb install app.apk | | Copy file to device | adb push local_file /sdcard/ | | Copy from device | adb pull /sdcard/file . | | Open shell | adb shell | | Logcat (logs) | adb logcat | | Screenshot | adb exec-out screencap -p > screenshot.png | | Reboot device | adb reboot | android platform tools linux
sudo apt install adb fastboot
sudo dnf install android-tools