Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to flash ClockworkMod with Heimdall on my Galaxy Mini by doing the following:

  • I go into download mode
  • Plug in my phone
  • Go into the recovery image folder
  • Run heimdall flash --kernel zImage

I get this error and my phone stays in download mode:

Initialising connection...
Detecting device...
Claiming interface...
Attempt failed. Detaching driver...
Claiming interface again...
Setting up interface...
ERROR: Setting up interface failed!
Re-attaching kernel driver...

USB debugging mode is enabled of course and I'm on Ubuntu. How can I successfully flash ClockworkMod?

share|improve this question
Try connecting your phone to the PC via USB after starting the Heimdal tool. – Chahk Mar 20 '12 at 12:33
i tried it but it fails detecting the device btw is heimdall compatible with galaxy mini right ?? – kosaidpo Mar 20 '12 at 13:32
Sometimes this is a permissions issue. If the command works with sudo in front of it but not with your user account, you don't have the proper permissions to the device. I'm not sure Heimdall uses ADB permissions - the Heimdall webpage should have more details. – Broam Mar 20 '12 at 13:33
i have run it again with sudo but i get the same error as before – kosaidpo Mar 20 '12 at 13:50
Does the computer recognize the phone at all? What does adb devices terminal command return? (you may need to install Android SDK if you haven't already) – Chahk Mar 20 '12 at 19:42
up vote 6 down vote accepted

I just a got an email from the Heimdall dev, he said it's not compatible with the Galaxy Mini. Thanks guys for your replies.

share|improve this answer
Too bad, thanks for letting us know the answer though. – Matthew Read Mar 21 '12 at 2:28
And may be also accept the answer? – roxan Mar 21 '12 at 4:22
@roxan i can't now tomorow ill :D – kosaidpo Mar 21 '12 at 12:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.