Installation

_$: apt install adb

Get vendor ID

Plug your smartphone to your computer.

_$: sudo lsusb -v
...
Bus 001 Device 007: ID 2a47:7f10
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x2a47                     <=== Vendor ID
  idProduct          0x7f10
  bcdDevice            3.10
  iManufacturer           1 bq
  iProduct                2 Aquaris X5 Plus
  iSerial                 3 XM001985            <=== Serial
  bNumConfigurations      1
...

So the vendor ID is 2a47.

Firewall rules

/etc/udev/rules.d/51-android.rules:
-----------------------------------
SUBSYSTEM=="usb", ATTR{idVendor}=="2a47", MODE="0666", GROUP="plugdev"
_$: chmod a+r /etc/udev/rules.d/51-android.rules

Check

_$: adb devices
List of devices attached
XM001985	device