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调试即可。

相关推荐
纤瘦的鲸鱼13 小时前
MySQL慢查询
android·adb
Anthony_23113 小时前
MySQL的常用命令
运维·数据库·mysql·adb·docker
fatiaozhang952713 小时前
中国移动云电脑一体机-创维LB2004_瑞芯微RK3566_2G+32G_开启ADB ROOT安卓固件-方法3
android·xml·adb·电脑·电视盒子·刷机固件
独行soc20 小时前
2025年渗透测试面试题总结-60(题目+回答)
java·python·安全·web安全·adb·面试·渗透测试
·云扬·21 小时前
MySQL 日志全解析:Binlog/Redo/Undo 等 5 类关键日志的配置、作用与最佳实践
android·mysql·adb
飞龙AI2 天前
adb devices 显示为空?USB Composite Device 异常问题
adb
TeleostNaCl2 天前
如何安装 Google 通用的驱动以便使用 ADB 和 Fastboot 调试(Bootloader)设备
android·经验分享·adb·android studio·android-studio·android runtime
练小杰3 天前
【Mysql-installer-community-8.0.26.0】Mysql 社区版(8.0.26.0) 在Window 系统的默认安装配置
数据库·sql·mysql·adb·配置文件·mysql安装·关系型数据库
袁美丽..4 天前
Android studio的adb和终端的adb互相抢占端口
android·adb·android studio