Hey Lemmy!
This is a solution for fastboot not listing an Android device.
While my phone was in fastboot mode, I couldn’t connect to it using the Linux fastboot
command.
fastboot devices
showed nothing:
me@computer:~$ fastboot devices
me@computer:~$
lsusb
listed my phone if it was in normal system mode. If I was in fastboot, lsusb
does not list my phone.
adb
worked fine—but only if I ran it as root. If I started it as a normal user, it showed this error:
me@computer:~$ adb devices
List of devices attached
n22i3nf0 no permissions (user in plugdev group; are your udev rules wrong?);
see [http://developer.android.com/tools/device.html]
me@computer:~$
I had to do these steps to make adb devices
list it properly:
me@computer:~$ adb kill-server
me@computer:~$ sudo adb start-server
other phones were working fine with both adb and fastboot.
I had to add my phone’s device and vendor ID to /etc/udev/rules.d/51-android.rules
. My other phones were added already, that’s why fastboot worked with them, but this phone wasn’t added, so it did not work. This solution is also the standard solve for the “no permissions (user in plugdev group)” error, so if the below guide doesn’t work, try someone else’s guide.
The below text is from this gist, with some edits.
lsusb
doesn’t show the device.)lsusb
in the terminal. You should get an output similar to this:Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 033: ID 0cf3:3004 Atheros Communications, Inc. AR3012 Bluetooth 4.0
Bus 003 Device 047: ID 045e:07fd Microsoft Corp. Nano Transceiver 1.1
Bus 003 Device 002: ID 174f:148d Syntek
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 033: ID 0cf3:3004 Atheros Communications, Inc. AR3012 Bluetooth 4.0
Bus 003 Device 047: ID 045e:07fd Microsoft Corp. Nano Transceiver 1.1
Bus 003 Device 002: ID 174f:148d Syntek
Bus 003 Device 060: ID 05c6:6765 Qualcomm, Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Take a note of the new output ID. For me it’s Bus 003 Device 060: ID 05c6:6765 Qualcomm, Inc.
record the characters after ID
(in this case, it’s 05c6:6765
). The four characters before the colon are the vendor ID and the four characters after are the device ID.
edit the file /etc/udev/rules.d/51-android.rules
and add this:
SUBSYSTEM=="usb", ATTR{idVendor}=="vendor_id", ATTR{idProduct}=="device_id", MODE="0666", GROUP="plugdev"
make sure to replace vendor_id
with your vendor ID and device_id
with your device ID.
Save and close the file.
Now in the terminal, run this, which makes the file readable by all users. I don’t know why this is necessary.
sudo chmod a+r /etc/udev/rules.d/51-android.rules
restart your computer. This is what I did to make it work, but if you don’t want to, other methods I’ve seen are:
sudo systemctl restart udev
sudo udevadm control --reload-rules
sudo udevadm trigger
Now you can try the command fastboot devices
and it should successfully list your device as one of the entries.
Other solutions which I have seen:
Good luck!
Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
1. All posts must be relevant to Android devices/operating system.
2. Posts cannot be illegal or NSFW material.
3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.
4. Non-whitelisted bots will be banned.
5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.
6. Memes are not allowed to be posts, but are allowed in the comments.
7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.
8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.
Community Resources:
We are Android girls*,
In our Lemmy.world.
The back is plastic,
It’s fantastic.
*Well, not just girls: people of all gender identities are welcomed here.
Our Partner Communities:
Turn off fastboot.