I recently purchased an Android phone (my first). This is probably not relevant to the question, but it is a Micromax Canvas Hue AQ5000, running Android 4.4.2.
I want to access the phone from my computer, currently running Debian wheezy. ADB was recommended to me. I installed android-tools-adb
, and after enabling Developer Options and USB Debugging, I was able to access the phone via adb shell
, for example.
However, ADB does not work as user. Here is the corresponding udev file, /lib/udev/rules.d/70-android-tools-adb.rules
.
# Set ACLs for console users on adb USB devices
# d001 recovery
# d002 system
ACTION=="add|change", SUBSYSTEM=="usb", \
ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="d001|d002", \
TAG+="uaccess"
How should I modify this file in order to give user access? The natural way seems to be to give access to a group. Along those lines, here is one suggestion,namely an answer to "Android Debug Bridge (adb) device - no permissions" which suggests
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
So, should I add GROUP="plugdev"
to that file above, or is there a better way? Also what does the ATTRS{idVendor}=="18d1"
part mean, and would that work for any device? Also, what does ATTRS{idProduct}=="d001|d002"
mean?
I'll consider forwarding good suggestions to the Debian Bug Tracker.