4 MINDS

4MINDS Gestão de Conhecimento

adb cannot connect to daemon



To fix the adb permission issue on Arch Linux:

  1. Install lsusb:

    sudo pacman -S usbutils
  2. Find Vendor ID: Connect your Android device and run:

    lsusb

    Look for your device in the output (e.g., ID 18d1:4ee7 where 18d1 is the Vendor ID).

  3. Create udev Rules:

    sudo nano /etc/udev/rules.d/51-android.rules

    Add:

    SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"

    Replace 18d1 with your Vendor ID.

  4. Reload Rules:

    sudo udevadm control --reload-rules
    sudo udevadm trigger
    
    
  5. Add User to plugdev: If plugdev doesn’t exist:

    sudo groupadd plugdev

    Then add your user:

    sudo usermod -aG plugdev $USER
  6. Log out/in and Test ADB: Reconnect your device and run:

    adb devices

No more sudo needed!


Fonte https://stackoverflow.com/questions/43131020/adb-cannot-connect-to-daemon-at-tcp5037