To fix the adb
permission issue on Arch Linux:
-
Install
lsusb
:sudo pacman -S usbutils -
Find Vendor ID: Connect your Android device and run:
lsusbLook for your device in the output (e.g.,
ID 18d1:4ee7
where18d1
is the Vendor ID). -
Create
udev
Rules:sudo nano /etc/udev/rules.d/51-android.rulesAdd:
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"Replace
18d1
with your Vendor ID. -
Reload Rules:
sudo udevadm control --reload-rules sudo udevadm trigger
-
Add User to
plugdev
: Ifplugdev
doesn’t exist:sudo groupadd plugdevThen add your user:
sudo usermod -aG plugdev $USER -
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