用 adb devices 连接安卓手机
开启 USB 调试后一条命令确认连接,终端直接安装 APK,无需应用商店。
打开手机 USB 调试并连接电脑,在手机上点允许授权,然后运行 adb devices 确认识别,再 adb install app.apk 安装应用。
01命令
命令
$ adb devices && adb install ~/Downloads/app.apk02作用说明
adb(Android Debug Bridge,大多数发行版打包为 android-tools)是 Linux 与安卓设备之间的桥梁。adb devices 是最基础的检查:手机信任这台电脑后会显示序列号和 device 状态——第一次连接手机上会弹授权对话框。adb install 推送并安装 APK,adb uninstall 卸载应用,adb shell 可以直接进入手机的命令行。
03风险
!注意: 如果显示 unauthorized 或 offline,回手机屏幕看有没有 RSA 授权弹窗;侧载 APK 只用你信任的来源。
04撤销
撤销
$ adb uninstall com.example.package05来源
- adb(1) — Android Debug Bridge依据: Man page documents the 'devices' command ('list connected devices') and 'install' command with the APK file argument; confirms 'adb', 'devices' and 'install' appear in the text.
- adb(1) — Ubuntu man page (android-tools)依据: Man page text includes 'adb devices [-l|-H|-P...]' (list devices in USB mode) and 'adb install [-lrtsdg] <file.apk>', confirming both subcommands.
最后验证: 2026-09-19 · 分类: 系统与设置