Ubuntu 16.04 ADB设备列表为空

时间:2018-06-29 11:13:00

标签: android adb ubuntu-16.04 nokia android-8.0-oreo

在执行adb设备时,我遇到了与that相同的问题(我试图这样做来帮助他,但对我不起作用),适用于诺基亚6.1(在Android 8.1上)是空的,我这样做:

sudo apt install android-tools-adb android-tools-fastboot

adb version ==> Android Debug Bridge version 1.0.32

cd /etc/udev/rules.d/

sudo nano 51-android.rules 

sudo chmod a+r 51-android.rules 

sudo groupadd adbusers

sudo usermod -a -G adbusers $(whoami)

sudo udevadm control --reload-rules

sudo service udev restart

adb kill-server

adb devices

我的51-android.rules:

# These rules refer: https://developer.android.com/studio/run/device.html
# and include many suggestions from Arch Linux, GitHub and other Communities.
# Latest version can be found at: https://github.com/M0Rf30/android-udev-rules

# Skip this section below if this device is not connected by USB
SUBSYSTEM!="usb", GOTO="android_usb_rules_end"

LABEL="android_usb_rules_begin"
# Devices listed here in android_usb_rules_{begin...end} are connected by USB

# Nokia 6
ATTR{idVendor}=="2e04", ENV{adb_user}="yes"

# Symlink shortcuts to reduce code in tests above
ENV{adb_adbfast}=="yes", ENV{adb_adb}="yes", ENV{adb_fast}="yes"
ENV{adb_adb}=="yes", ENV{adb_user}="yes", SYMLINK+="android_adb"
ENV{adb_fast}=="yes", ENV{adb_user}="yes", SYMLINK+="android_fastboot"

Anyone have an idea, what is the problem ? (because I looking for on different forum and I don't know why my list of device is empty)

0 个答案:

没有答案