nmeum / android-tools

Unoffical CMake-based build system for android command line utilities
Apache License 2.0
176 stars 51 forks source link

Not working in fastboot mode, get stuck waiting for device #104

Closed romulasry closed 5 months ago

romulasry commented 1 year ago

adb reboot-bootloader fastboot oem get_unlock_data < waiting for any device >

and it stays here and doesn't work

romulasry commented 1 year ago

I tried unplugging and plugging in the cable, same issue.

anatol commented 1 year ago

Do you have up-to-date android udev files?

romulasry commented 1 year ago

https://src.fedoraproject.org/rpms/android-tools/blob/rawhide/f/51-android.rules

Is this up to date?

romulasry commented 1 year ago

lsusb Bus 008 Device 062: ID 22b8:2e80 Motorola PCS Fastboot sofiap S

dmesg | tail -n 20 [ 9376.381097] usb 8-2: New USB device found, idVendor=22b8, idProduct=2e80, bcdDevice= 1.00 [ 9376.381111] usb 8-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 9376.381117] usb 8-2: Product: Fastboot sofiap S [ 9376.381122] usb 8-2: Manufacturer: Motorola Mobility LLC. [ 9376.381125] usb 8-2: SerialNumber: ZY22CDWFBS

romulasry commented 1 year ago

It seems to be in the package here: https://src.fedoraproject.org/rpms/android-tools/blob/rawhide/f/51-android.rules



#Motorola PCS
--
  | SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", TAG+="systemd", ENV{SYSTEMD_WANTS}="adb.service"

vanaf commented 1 year ago

It seems to be in the package here: https://src.fedoraproject.org/rpms/android-tools/blob/rawhide/f/51-android.rules


#Motorola PCS
--
  | SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", TAG+="systemd", ENV{SYSTEMD_WANTS}="adb.service"

This is only for adb. If possible you can use sudo for fastboot operations I believe

romulasry commented 1 year ago

sudo fastboot works, still a bug though.

Biswa96 commented 5 months ago

Has this issue been fixed with newer 34.0.5 release?

romulasry commented 5 months ago

Has this issue been fixed with newer 34.0.5 release?

I don't know if I can test it I just got a new phone.

Biswa96 commented 5 months ago

OK. Please feel free to reopen the issue when you see same issue.