Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adb returns "device not found" in recovery mode

I try to access an android device (Samsung Galaxy Y) through usb using adb. When the phone is running as usual, with USB debugging activated, adb works just fine and I see the device with a call to "adb devices". However I need adb access in the recovery mode (I want to execute fsck on /data and thus need to unmount it first). I reboot the phone in recovery mode and run CWM (ClockworkMod ROM Manager) but then the phone does not show up with "adb devices".

I looked this up and it appears that on windows systems the solution is to change the drivers. However I am on Ubuntu 14.04 LTS and I am stuck with my problem. I tried several suggestions of udev rules in /etc/udev/rules.d but none worked for me.

How can I solve this issue ?

like image 585
user5393841 Avatar asked Sep 30 '15 15:09

user5393841


People also ask

How do I fix my ADB device not found?

1) Select your SDK manager from the Start menu > Run as administrator. 2) When the SDK manager launches, navigate and expand the Extras folder > select Google USB Driver> click Install 1 package. 3) After installing the driver, connect your Android smartphone. 4) Hit the Windows logo + R keys.

Does ADB work in recovery mode?

ADB commands when phone is in recovery mode (e.g. adb devices gives a blank result). However, I can sideload a ROM (clean install) via ADB when the phone is in recovery mode. This is probably the only adb command that works in recovery.


1 Answers

In the past, I've found that running adb kill-server, followed by su -c adb {command} works pretty well in these situations. It's a tiny bit ugly, but some devices refuse to recognize adb unless it's started by root.

Note that you probably can't use sudo adb {command} unless your root user has the android tools on its path.

like image 97
Matthew Williamson Avatar answered Oct 02 '22 05:10

Matthew Williamson