简体   繁体   English

在Ubuntu OS上未检测到Android Asus Zenfone 5

[英]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 : 我已经做的是:

  1. enabled usb debugging but still not detected in my computer 启用了USB调试,但在我的计算机中仍未检测到
  2. when i type lsusb on terminal the phone detected as Bus 002 Device 006: ID 18d1:d002 Google Inc. 当我在终端上键入lsusb时,电话被检测为Bus 002 Device 006:ID 18d1:d002 Google Inc.

these are my detail information about the system that i used, in case someone ask 这些是我使用的系统的详细信息,以防有人问

  1. OS : ubuntu 12.04 /elementary luna 64 bit 操作系统:Ubuntu 12.04 / elementary luna 64 bit
  2. Android Device : zenfone 5 with android version 4.4.2 Android设备:带有Android版本4.4.2的zenfone 5

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.

相关问题 计算机未检测到华硕Zenfone 5 - Asus Zenfone 5 not detected by computer AlarmManager 不适用于搭载 Android 的 Asus ZenFone 2 设备 - AlarmManager not working on Asus ZenFone 2 devices with Android 是什么原因导致Android设备华硕Zenfone 2警报管理器无法正常工作? - What causing Android Device Asus Zenfone 2 alarm manager not working? 华硕Zenfone(Android)TextView \\ TextWatcher键盘输入错误 - Asus Zenfone (Android) TextView\TextWatcher keyboard input bug 应用关闭时,Android 5 Asus ZenFone 2会阻止推送通知 - Android 5 Asus ZenFone 2 blocking push notifications when app close 无法在设备上部署(Android MarshMallow Asus Zenfone 3) - Can't deploy on device (Android MarshMallow Asus Zenfone 3) Fastboot在ubuntu14.04上无法识别我的华硕zenfone2 - Fastboot doesn't recognize my Asus zenfone2 on my ubuntu14.04 如何创建像iPhone X这样的Android模拟器(华硕zenfone 5,新星3e) - How to Create Android Emulator like iPhone X (asus zenfone 5 , nova 3e) OnTouchEvent检测单击不适用于我的华硕Zenfone - OnTouchEvent detect click not working on my Asus Zenfone 如何在ASUS zenfone2和其他ASUS型号中为我的应用程序启用自动启动选项 - How to enable autostart option for my app in ASUS zenfone2 and other ASUS models
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM