• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Flashrec problem: 'could not run command'

daveybaby

Android Expert
Sep 21, 2009
916
104
UK
I'm trying to update my custom recovery image as the one i have is positively ancient. I'm already rooted and running Froydvillain 1.2.2.

Got the latest version of flashrec and amon-ra, but cannot get flashrec to either backup the existing image or flash the new one.

When trying to backup the existing image i get the following error: 'Backup FAILED: Could not run command.'

If i hit the hidden button to enable flashing without a recovery i get a similar error when trying to flash the new image (with /sdcard/recovery.img as the path).

Wtf?!?!?!? it worked before (admittedly that was quite a while ago). Anyone got an idea what gives?

Oh, FYI the first version of flashrec i tried was the same one i used successfully ages ago (cant remember which version), have also tried the latest version (1.1.3) and no joy. Also followed the advice in this post and tried the oldest version and no joy there either (although that version does require a backup before install, contradicting the info in the post). :thinking: HAYULP!
 
Assuming you have ADB capability, why not do it the old fashioned way?

Copy recovery-RA-hero-v1.7.0.1.img to the root of your sdcard
Boot into your current custom recovery (boot while holding HOME)
Connect your Hero via usb to your PC
adb shell
$su (not required if you have root already)
#mount -a
#flash_image recovery /sdcard/recovery-RA-hero-v1.7.0.1.img

Reboot the device and you're done. :)
 
  • Like
Reactions: daveybaby
Upvote 0
Cheers slug, that did the job (once i remembered where i'd installed the SDK...)

@stoney
: the currently installed recovery was RA-hero-v1.2.3
The one i was trying to install was v1.6.2 (now done using adb)
Dont think the versions had anything to do with it, as the backup command was failing as well as the flash command. Weeeird.
 
Upvote 0
Xyro: post regarding latest version is here.

Note this bit:
Only flash recovery-RA-hero-v1.6.2.img if you have a 32A Sapphire with 6.35.x.x radio and 1.76.x SPL, recovery-RA-hero-v1.7.0.1.img will NOT boot! I'll create a new Sapphire version soon.

I have no idea what a 32A Sapphire hero is, or if i have one, so i stuck with 1.6.2. :D
 
Upvote 0
Assuming you have ADB capability, why not do it the old fashioned way?

Copy recovery-RA-hero-v1.7.0.1.img to the root of your sdcard
Boot into your current custom recovery (boot while holding HOME)
Connect your Hero via usb to your PC
adb shell
$su (not required if you have root already)
#mount -a
#flash_image recovery /sdcard/recovery-RA-hero-v1.7.0.1.img

Reboot the device and you're done. :)

Sorry for hijacking the thread, but may I just ask, how do I access the adb?
From what I can tell, is it some sort of command window such as the ones in Windows?
I have rooted my phone and is currently running VillainRom 12.0 (2.1).
Thanks in advance.
 
Upvote 0
Thank you for the prompt response.
It's unfortunate that I am unable to use the SDK as I'm running Windows 7.
It seems that it's not supported.

Is there any other methods that I may use in order to fix this recovery image issue?
I have one flashed currently, however it's a really old version.
Probably the first recovery image I used to flash MoDaCo last year.

Is it possible or recommend to just perform a nandroidbackup and wipe all data, and just flash the new Villain 2.2 ROM onto my phone?

Cheers.
 
Upvote 0
It's unfortunate that I am unable to use the SDK as I'm running Windows 7. It seems that it's not supported.

Yes it is, I use it myself with Win7 x64. I don't think the System Requirements have ever been updated, and the SDK predates Windows 7.

Your existing recovery should let you do it, but it's always advisable to use the most recent version if possible as it will have bug fixes, updated scripts etc incorporated, as well as added features. The latest Amon_RA recovery, for example, now allows backup/restore of proprietary Google data.

Is it possible or recommend to just perform a nandroidbackup and wipe all data, and just flash the new Villain 2.2 ROM onto my phone?

It's strongly recommended that you wipe everything (/data+cache, /dalvik-cache and /ext (if you use Apps2SD) so yes, make a nandroid backup beforehand.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones