You are not logged in.

#1 2018-06-21 12:00:57

supremecoconut
Member
Registered: 2018-05-06
Posts: 11

Android fastboot not working

I have a dual boot setup with Windows. The problem is that fastboot is not working on Arch Linux.
I'm using the same cable to test it. I'm sure the phone is in fastboot mode. I'm using the android-tools package. I don't think it matters, but I have a Xiaomi Mi6 with MIUI 10 Global, with unlocked bootloader.

fastboot devices

This command initially returned:

no permissions; see [http://developer.android.com/tools/device.html]	fastboot

It worked with root permission, but I later found a better solution that involved a udev rule (lsusb gave some useful information) that could have helped to make it work entirely.

Bus 001 Device 011: ID 18d1:d00d Google Inc.
/etc/udev/rules.d/51-android.rules
------------------------------------------------------
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
sudo udevadm control --reload-rules && udevadm trigger

Anyway, when I try to do ANY other operation the problem persists: it gets stuck, with no response. Examples:

fastboot reboot
fastboot flash recovery /media/hdd/twrp-3.2.1-1-sagit.img

The same commands, with the same exact files (shared volume), are working on Windows.
What the hell is going on? I'm posting here because the same problem, posted by another user, didn't get much attention on xda, and after all, it's a linux problem.

Thanks in advance

EDIT: Grammar

Last edited by supremecoconut (2018-06-21 12:10:34)

Offline

#2 2018-06-21 16:08:29

Markus00000
Member
Registered: 2011-03-27
Posts: 318

Re: Android fastboot not working

I have added my user to the 'adbusers' group and these rules in /etc/udev/rules.d/51-android.rules:

# Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="adbusers"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
# Nexus 9
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee0", SYMLINK+="android_adb"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee0", SYMLINK+="android_fastboot"

Offline

#3 2018-06-21 16:09:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,665

Re: Android fastboot not working

Is there any information printed in dmesg that might point towards a reason, after attempting to execute a command?

Offline

#4 2019-06-27 18:26:48

eimis
Member
Registered: 2014-11-24
Posts: 5
Website

Re: Android fastboot not working

I have the same issue.
`fastboot devices` lists the xiaomi mi 8 lite, but no actual commands work. dmesg says nothing at all. not even `fastboot get all` works. just gets stuck forever. this happens on 2 arch machines. one is up to date, another is 2 weeks old. my sony z5c fastboot works just fine

interestingly, fastboot works fine with the xiaomi on windows.

Last edited by eimis (2019-06-27 18:39:13)

Offline

#5 2021-08-20 16:50:33

Rubo
Member
Registered: 2021-08-20
Posts: 1

Re: Android fastboot not working

Have you tried installing android-udev as specified in the note at Android#Fastboot?

Offline

#6 2021-08-20 21:39:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,665

Re: Android fastboot not working

Please note that you are digging out a three year old thread.

https://wiki.archlinux.org/title/Genera … bumping%22

Closing.

Offline

Board footer

Powered by FluxBB