Ubuntu: ADB only recognizes device if OWNER is provided

十年热恋 提交于 2019-12-11 18:26:26

问题


The system is Ubuntu 12.04LTS

I have rules defined in /etc/dev/rules.d/51-android.rules similar to this:

SUBSYSTEM=="usb", ATTR{idVendor}=="1bbb", ATTR{idProduct}=="0167", MODE="0666", GROUP="plugdev", OWNER="port443"

This all works well and ADB can see device; but, obviously, only for me. I wanted this global rule to be applicable globally on machine for all users (or for users in "plugdev" group).

In my case if I omit OWNER, device becomes invisible to ADB. I saw samples even omitting group (mode=0666 should make it globally available anyway, right?), but neither work in my case.

Is there anything I'm missing?

Thanks.

来源:https://stackoverflow.com/questions/31977034/ubuntu-adb-only-recognizes-device-if-owner-is-provided

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!