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

相关推荐
。puppy2 天前
MySQL 远程登录实验:通过 IP 地址跨机器连接实战指南
android·adb
q***44812 天前
mysql配置环境变量——(‘mysql‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件解决办法)
数据库·mysql·adb
q***3752 天前
MySQL输入密码后闪退?
数据库·mysql·adb
杨DaB2 天前
【MySQL】03 数据库的CRUD
数据库·mysql·adb
Lxinccode2 天前
python(62) : 环境变量管理
android·python·adb·环境变量·变量管理
m0_731048202 天前
adb 命令的介绍与使用
adb
q***64972 天前
mysql的主从配置
android·mysql·adb
q***49862 天前
MySQL root用户密码忘记怎么办(Reset root account password)
数据库·mysql·adb
m0_731048202 天前
MuMu模拟器,配置ADB端口
adb
2501_941225683 天前
C++高性能数据库访问与连接池实战分享:大规模数据处理与优化策略经验
adb