[英]android asus zenfone 5 not detected on ubuntu os
I have an asus zenfone 5, i want to develop android application on it and i am currently use ubuntu as my only OS, 我有一个华硕zenfone 5,我想在上面开发android应用,而我目前使用ubuntu作为我唯一的操作系统,
what im already did was : 我已经做的是:
these are my detail information about the system that i used, in case someone ask 这些是我使用的系统的详细信息,以防有人问
thanks^^ 谢谢^^
Many times, on Ubuntu, "it just works" -- you plug in the device, you accept the "yes, I want to allow debugging from this PC" dialog on the device, and you are set. 在Ubuntu上,很多时候,“它都可以正常工作”-插入设备,接受设备上的“是的,我想允许从此PC进行调试”对话框,然后就可以设置好了。
Sometimes, though, you need to customize your udev
rules. 不过,有时您需要自定义udev
规则。 Instructions for this can be found in the documentation . 有关说明,请参见文档 。 Search engines can usually turn up the rules you need, if your device is reasonably popular. 如果您的设备相当受欢迎,搜索引擎通常可以提出您所需的规则。
So, for example, here are some lines from the 51-android.rules
set of udev
rules on my development machine: 因此,例如,这是我的开发机器上的udev
规则的51-android.rules
组中的一些行:
# Acer A700
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"
# LG
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
# HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"
# SONY
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"
# ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"
# Rikomagic
SUBSYSTEM=="usb", ATTR{idVendor}=="2207", MODE="0666"
# Kindle Fire HDX
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", MODE="0666"
# Qualcomm MDP 800
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"
# Nokia X
SUBSYSTEM=="usb", ATTR{idVendor}=="0421", MODE="0666"
# hudl 2
SUBSYSTEM=="usb", ATTR{idVendor}=="1d4d", ATTR{idProduct}=="504b", MODE="0666"
I usually then restart udev
via service udev restart
, before plugging the device in again. 通常,我通常先通过service udev restart
重新启动udev
,然后再重新插入设备。 Then, if the device has debugging enabled, you should get the confirmation dialog on the device, and if you accept that dialog, you will be able to use development tools to work with that device (set breakpoints, inspect LogCat, etc.). 然后,如果设备启用了调试,则应在设备上显示确认对话框,如果接受该对话框,则可以使用开发工具对该设备进行操作(设置断点,检查LogCat等)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.