Android设备未与ADB一起显示 [英] Android device not shown with adb
问题描述
我已经搜索了很长时间,我尝试了所有可以找到的技巧...
I have searched for a long time for this, I have tried all the tricks I could find...
我已经在同一台设备上调试了几个月,将应用程序完美地部署在其他完全相同的设备上.但是自上周以来,我无法再连接到它.通过USB连接设备,我可以听到计算机发出有关已连接设备的声音警告,并且在Chrome中可以看到它已被识别
I have been debugging on the same device for a few months, deploying the app on other exact same devices flawlessly. But since last week, I can no longer connect to it. Connecting the device via USB, I can hear the computer's sound warn about the connected device, and I can see in Chrome that it is recognized
但是,adb不会检测到它.
However, adb won't detect it.
不幸的是,我无法访问设备上的root用户,因此我不确定如何通过TCP/IP进行连接.
Unfortunately, I have not access to root on the devices, so I'm not sure how to connect via TCP/IP.
可能是什么问题?
注意::我正在使用Ubuntu.
Note: I am working with Ubuntu.
注意2:,尽管各种供应商的说明都不同,但该设备仍运行Android 4.4.2(据该设备报告).
Note 2: The devices run Android 4.4.2, as reported by the device, despite specs from various vendors say otherwise.
我已经验证了我的UDEV规则,所以
I have verified my UDEV rules, so
$ lsusb
...
Bus 003 Device 123: ID 1f3a:1002 Onda (unverified)
...
当我通过USB连接平板电脑时,
是添加的唯一设备.在我的/etc/udev/rules.d/99-android.rules
文件(我已经设置一年多了)中,我有正确的行
is the only device added when I connect the tablet via USB. And in my /etc/udev/rules.d/99-android.rules
file (which I have already set over a year ago), I have the correct line
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", MODE="0666"
开发者选项是
- 获取错误报告
- 桌面备份密码
- 保持清醒
- HDCP检查
- 过程统计
- USB调试(= ON)
- 电源菜单错误报告
- 允许模拟位置(= ON)
- 选择调试应用
- (已禁用)等待调试器
- 通过USB验证应用
- 无线显示认证
- USB debugging (= ON)
- Power menu bug reports
- Allow mock locations (= ON)
- Select debug app
- (disabled) Wait for debugger
- Verify apps over USB
- Wireless display certification
- 显示触摸
- 指针位置
- 显示表面更新
- 显示布局范围
- 强制执行RTL布局方向
- 窗口动画比例
- 过渡动画比例
- 动画制作人的疲劳度量表
- 模拟辅助显示
- 强制GPU渲染
- 显示GPU新更新
- 显示硬件层更新
- 调试GPU透支
- 调试非矩形剪辑操作
- 强制使用4倍MSAA
- 禁用硬件覆盖
- 启用严格模式
- 显示CPU使用情况
- 配置文件GPU渲染
- 启用GPU跟踪
- 不要保持活动状态(= ON)
- 背景流程限制(=标准)
- 显示所有ANR
- Don't keep activites (= ON)
- Background process limit (= standard)
- Show all ANRs
(上面列出了所有带有值或设置的选项.如果未提及,则未设置任何值.)
(All options with values or set are indicated in the above list. If nothing is mentioned, then no value is set.)
推荐答案
既然您可以使用Chrome远程调试功能,那么只需确保在命令行上使用adb进行操作时,Chrome调试功能就不会运行.
Since you've got Chrome Remote debugging working, just make sure that Chrome debugging isn't running when doing things with adb on the command line.
我认为Chrome具有自己的adb服务器版本,因此会与Android Studio使用的版本冲突.
I believe that Chrome has its own version of adb-server so that would conflict with the one used by Android Studio.
这篇关于Android设备未与ADB一起显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!