adb devices报错 ADB server didn‘t ACK

ubuntu下连接手机首次使用adb devices 报错ADB server didn't ACK

shelll 复制代码
adb devices
* daemon not running; starting now at tcp:5037
ADB server didn't ACK
Full server startup log: /tmp/adb.1000.log
Server had pid: 52986
--- adb starting (pid 52986) ---
04-03 17:23:23.977 52986 52986 I adb     : main.cpp:63 Android Debug Bridge version 1.0.41
04-03 17:23:23.977 52986 52986 I adb     : main.cpp:63 Version 35.0.2-12147458
04-03 17:23:23.977 52986 52986 I adb     : main.cpp:63 Installed as /home/xxxx/xunyan_ubuntu/data1_u/software/platform-tools/adb
04-03 17:23:23.977 52986 52986 I adb     : main.cpp:63 Running on Linux 6.8.0-57-generic (x86_64)
04-03 17:23:23.977 52986 52986 I adb     : main.cpp:63 
04-03 17:23:23.978 52986 52986 I adb     : auth.cpp:416 adb_auth_init...
04-03 17:23:23.978 52986 52986 I adb     : auth.cpp:152 loaded new key from '/home/xxxx/.android/adbkey' with fingerprint xxxxxxxxxxxxxxxxxxxxxxxxxxxx
04-03 17:23:23.978 52986 52986 I adb     : auth.cpp:391 adb_auth_inotify_init...
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=13
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=17
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=2
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=2
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:558 bind endpoint=[0000:0000:0000:0000:0000:0000:0000:0000]:5353 scope_id=0
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=18
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:170 AdbUdpSocket fd=19
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=4
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:533 bind endpoint=0.0.0.0:5353
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:274 SetMulticastOutboundInterface for index=4
04-03 17:23:23.978 52986 52986 I adb     : udp_socket.cpp:558 bind endpoint=[0000:0000:0000:0000:0000:0000:0000:0000]:5353 scope_id=0
04-03 17:23:24.978 52986 52986 E adb     : usb_libusb.cpp:598 failed to open device: Access denied (insufficient permissions)
04-03 17:23:24.979 52986 52986 I adb     : transport.cpp:1153 xxxxxxxxx: connection terminated: failed to open device: Access denied (insufficient permissions)

* failed to start daemon
adb: failed to check server version: cannot connect to daemon

这个错误表明 ADB 无法启动守护进程(adb daemon),主要原因是 USB 设备访问权限不足(Access denied (insufficient permissions))。

  1. 检查 USB 设备是否被识别
    lsusb

    Bus 001 Device 009: ID 2a45:0c01 Meizu Corp. MEIZU 18s Pro # 重点是 2a45:0c01

  2. 创建 udev 规则(永久解决权限问题)

    18是自定义名字,只要和rules.d文件夹下的rules不同明即可
    sudo gedit /etc/udev/rules.d/18-android.rules

    xxx-android.rules的内容如下,将上面得到的 2a45:0c01 放到下面的ATTR中
    SUBSYSTEM=="usb", ATTR{idVendor}=="2a45", ATTR{0c01}=="0c01", MODE="0666", GROUP="plugdev"

    保存后运行
    sudo chmod a+r /etc/udev/rules.d/18-android.rules # 确保规则可读
    sudo udevadm control --reload-rules # 重新加载规则
    sudo udevadm trigger # 立即生效

  3. 将当前用户加入 plugdev 组
    sudo usermod -aG plugdev $USER

  4. 拔掉数据线重新插上,然后手机上弹窗允许USB调试即可。

相关推荐
ai_coder_ai8 小时前
如何使用adb实现自动化脚本?
运维·adb·自动化
pigs20188 小时前
mysql8.0 access denied for user root localhost account is locked
数据库·adb
-SOLO-8 小时前
使用adb 提取apk
adb
啊森要自信1 天前
【GUI自动化测试】控件、鼠标键盘操作与多场景自动化
c语言·开发语言·python·adb·ipython
Arvin.Angela1 天前
MySQL安装及运行环境配置
数据库·mysql·adb
她叫我大水龙2 天前
ADB 入门指南:安装与常用命令速查手册
adb
wb043072012 天前
仓库搬家不停业——从阿明的“在线换仓库“,看数据库迁移与 Schema 演进的实战方法论
数据库·adb·架构
Mr -老鬼2 天前
EasyClick 入门指南:Shell 命令与 ADB 完全指南
android·adb·自动化·shell·easyclick·易点云测
feifeigo1232 天前
C# ADB 安卓设备数据传输工具
android·adb·c#
2301_773643622 天前
mysql5.7稳定版使用
adb