Android: AdbCommandRejectedException getting properties for device

Problem

From Android Studio, the connection to the device for debugging was not getting established. The ADB logs gave the repeated error,

PropertyFetcher: AdbCommandRejectedException getting properties for device ????????????: insufficient permissions for device

Solution

  1. As described in the documentation, Using Hardware Devices, a file /etc/udev/rules.d/51-android.rules was created.
Read more