树莓派上安装adb和fastboot

更新软件源列表

sudo apt-get update

如需更换源请查看树莓派更换更新源

安装adb

sudo apt-get install adb

执行以下命令有返回信息代表安装成功

pi@raspberrypi:~ $ adb --version
Android Debug Bridge version 1.0.41
Version 28.0.2-debian
Installed as /usr/lib/android-sdk/platform-tools/adb

安装成功,执行adb devices查看连接的设备

pi@raspberrypi:~ $ adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached

安装fastboot

sudo apt-get install fastboot

执行fastboot --version查看是否安装成功

pi@raspberrypi:~ $ fastboot --version
fastboot version 28.0.2-debian
Installed as /usr/lib/android-sdk/platform-tools/fastboot
posted @ 2022-06-29 11:25  蓝莓薄荷  阅读(1565)  评论(0编辑  收藏  举报