Cannot install custom recovery image - Hero, G2 Touch General

I'm trying to install Amon_Ra's Recovery image via ADB but im getting the following errors:
Code:
C:\Windows\system32>adb push recovery-RA-hero-v1.7.0.1.img /data/local/
cannot stat 'recovery-RA-hero-v1.7.0.1.img': No such file or directory
When I type in "adb devices" it see's the phone
The recovery image is located:
Code:
C:\android-sdk-windows\platform-tools\recovery-RA-hero-v1.7.0.1.img
Any help on this would be great

Mikebyrne000 said:
I'm trying to install Amon_Ra's Recovery image via ADB but im getting the following errors:
Code:
C:\Windows\system32>adb push recovery-RA-hero-v1.7.0.1.img /data/local/
cannot stat 'recovery-RA-hero-v1.7.0.1.img': No such file or directory
When I type in "adb devices" it see's the phone
The recovery image is located:
Code:
C:\android-sdk-windows\platform-tools\recovery-RA-hero-v1.7.0.1.img
Any help on this would be great
Click to expand...
Click to collapse
You have to give the full path to your img file. eg:
adb push C:\android-sdk-windows\platform-tools\recovery-RA-hero-v1.7.0.1.img /data/local/
Or just copy the img file to C:\Windows\system32

Did you had a custom recovery before doing this? If you do, you can boot into recovery, mount your sdcard, put the image file to the root of your sd card and then follow the steps provided to install the image recovery through adb. I had this problem a few days ago but I had installed CWM as recovery and it was easy to flash the other one.

flashrec
download a flashrec aplication then, install and open,
do a Backup Recovery Image,
enter a recovery path , for example: /sdcard/recovery-RA-hero-v1.6.2.img
restart with home + power buttons and de recovery works

Related

Can I push files in recovery mode by adb?

I boot my Magic with recovery mode and link with adb.
and using adb push to push a file into sdcard.
everything is ok. but I can not find this file in sdcard.
I also try adb pull to pull a file from sdcard.
It report an error with "remote object 'xx' does not exist"
What is the problem?
the command is:
adb push c:\******.*** /sdcard
exemple with g:\update.zip :
adb push g:\update.zip /sdcard
usefull when wrong rom flashed and no sdcard reader ^^
The command is ok.
But I can not find the file on sdcard.
Is there anyone reply this question?
do you have mount the sdcard before?
adb shell mount /sdcard
Yes, I do.
I also can list the files on sdcard.
up
up
lancelotchen said:
up
Click to expand...
Click to collapse
Just go into recovery, then connect USB, type this:
adb push <local file> /sdcard
Then wait!
lancelotchen said:
The command is ok.
But I can not find the file on sdcard.
Is there anyone reply this question?
Click to expand...
Click to collapse
This very thing happened to me today. I have CWM 3.0.2.4 flashed to my G2x, I booted into recovery, and I did an "adb push" of a ROM image file to /sdcard.
The command appeared to finish correctly, but the file was not on /sdcard at all. I did an adb shell to look at the /sdcard contents to verify this.
I then did the exact same command again, it finished with the same output message (number of bytes transferred, etc.), and it worked this time (file was there now)!

Flashing A Recovery Rom..

I have searched this forum multiple times and i can not find my answer so i am posting this hoping someone with some patience will help me.. when i followed these steps.. "III: Flashing a Custom Recovery
Flashing a custom recovery will make your life easier when flashing ROMs in the future.
1. Download this file: Recovery.zip
2. Extract file contents to your \tools\ directory of your Android SDK.
3. Open up a command prompt and go to your tools directory, and execute these commands:
•adb shell mount -o rw,remount /dev/block/mtdblock3 /system
•adb push recovery.img /sdcard
•adb push flash_image /system/bin
•adb shell chmod 755 /system/bin/flash_image
•adb shell flash_image recovery /sdcard/recovery.img
4. Success! You now have a recovery partition installed on your phone. You can access it by running "adb shell reboot recovery" or by powering off your phone, holding "Volume Up + Power On"
It says that what i have typed is not an executible file.. someone please help.
are you 100% sure that you extracted the file out of the zip and not just put the zip into the folder?
yea im sure
Are you typing out each command? or are you pasting them into your terminal? Also, what OS are you running ADB from, and have you had success with it before? Or is the eris your first android device
Also, you did the previous steps first correct? IE: you're ROOTED
there is an easier way posted by i think Zinfab it was something like.
su
adb shell
reboot bootloader
at this point make sure it says fastboot USB on the screen
then in the same window fastboot flash recovery recovery.img (make sure your recovery.img is in the same directory as all your SDK tools)
this worked for me when the method u posted didn't work
where do i type this stuff in at.. i have my phone plugged in usb debug checked i installed the usb driver update it and i have the recovery thing extraced in my tools folder now what do i use my computers command prompt or my phones command prompt
ashertheplague said:
where do i type this stuff in at.. i have my phone plugged in usb debug checked i installed the usb driver update it and i have the recovery thing extraced in my tools folder now what do i use my computers command prompt or my phones command prompt
Click to expand...
Click to collapse
did u set the enviromental variable? its not that important I'm just curious.
if not in command prompt first command would be
(directory to tools)\adb shell
"su"
"Reboot bootloader"
then once its in bootloader
(directory to tools)\"fastboot flash recovery (directory to recovery.img)"
now the quoted sections should be typed exactly as is, without the quotes, but you have to know your own directory.
when i type it in on my phone it says adb not found
whats that
ok my phone now is in fastboot usb mode what do i do know
as suggested, did you set the variable? type fastboot devices to see if its even working correctly, to start.
how do i get out of fastboot usb
Type in the command fastboot flash recovery recovery.img
ok now it says waiting for device
You didn't search that well.
http://forum.xda-developers.com/showthread.php?t=647974
well i went to that forum and it was still giving me problems.. but i got help from spence_moore so its all good
ashertheplague said:
well i went to that forum and it was still giving me problems.. but i got help from spence_moore so its all good
Click to expand...
Click to collapse
What step were you having a problem with? If there is something wrong I would like to fix it.

[HOW-TO]Convert Fastboot ROMs to Recovery Backups

Lets say you hate using fastboot, but the ROM you want is only available in a fastboot version. Here is how to convert a group of fastboot images into recovery backups.
First of all, you need a set of fastboot images (System.img and Boot.img)
You'll need either:
Unix (Mac OS X or Linux) with md5sum installed (It is included with Mac and Most Linux distros by default)
ADB (Android Debug Bridge)
Unix Method:
Get your two fastboot image files in a folder. Open a terminal and use the cd command to where your images are. For example, If your two images are in /home/username/images type:
Code:
cd /home/username/images/
Then type:
Code:
md5sum *img >nandroid.md5
It could take a while if your fastboot images are large. Once it is done, copy the system.img, boot.img and nandroid.md5 files to your sdcard/clockworkmod/backups/nameoffolder directory. (Replace nameoffolder with the name of your rom or something, but it must not contain spaces or special characters. A suitable choice would be to replace the space with a dot.)
You should now be able to restore your image from the Backup & Restore menu.
ADB Method (Ideal for Windows users):
The ADB method is similar, but you need to copy your image files to the sdcard first. So copy the system.img and boot.img files to: /sdcard/clockworkmod/backups/nameoffolder
(Replace nameoffolder with the name of your rom or something, but it must not contain spaces or special characters. A suitable choice would be to replace the space with a dot.)
Unmount your SDCard and boot into recovery.
When in recovery, connect the USB cable and ensure device is fully recognised by the computer (run adb devices and the serial number should appear and it should say "recovery" next to it) Next, go to mounts & storage and make sure the SDCard is mounted (If it says "unmount /sdcard" then it is mounted, if it says "mount /sdcard" then select it and it will mount.) then open an adb shell.
Type the following into the shell window:
Code:
cd /sdcard/clockworkmod/backups/nameoffolder
md5sum *img >nandroid.md5
exit
Now go into the Backup and Restore menu and your ROM should install.
Any questions? Ask below.
Hope it helps,
Jack
i found your "how-to" , it just does exactly what i wanted contrary way , i wanna make fastboot image ... how to do it ? thanks
qtwrk said:
i found your "how-to" , it just does exactly what i wanted contrary way , i wanna make fastboot image ... how to do it ? thanks
Click to expand...
Click to collapse
Just unzip it, and look for the boot.img and system.img
I think thats the way, hope it can help you.
Is there any option for Non SD card devices?
I have system, boot img file but Don't have fastboot ROM. It's a watch and i can't find any solution anywhere as it's in 9008 mode. If i can use my img file to flash it in hard brick then i think the watch would have revived. So can i convert my system img file to fastboot ROM?
Rakibboss said:
I have system, boot img file but Don't have fastboot ROM. It's a watch and i can't find any solution anywhere as it's in 9008 mode. If i can use my img file to flash it in hard brick then i think the watch would have revived. So can i convert my system img file to fastboot ROM?
Click to expand...
Click to collapse
The system.img and boot.img it's your fastboot rom, just flash them using fastboot command through fastboot mode.
LeoPosas said:
The system.img and boot.img it's your fastboot rom, just flash them using fastboot command through fastboot mode.
Click to expand...
Click to collapse
It doesn't get it fastboot mode. Basically there is no sign of power. Just shown as a Qualcomm 9008 device
How to convert fast boot rom to recovery rom ive full fast boot rom but i sell my pc recently so what can i do
**** off you ****s
Sent from my SM-A515F using Tapatalk

How to put file on SDCard from Recovery

I need to flash a ROM, but I can't start my phone up to be able to transfer the file over. There used to be a Mount Storage Device option on my old DHD, but I noticed that on the N4, CWM does not have this option (maybe to do with MTP).
How can I copy a file over onto SDCard so I can flash it? I tried:
Code:
adb push file.zip /sdcard/file.zip
When I try and flash it, it says "Can't open /sdcard/file.zip (bad)
Flash TWRP via fastboot and mount the phone via usb the same drag it into the phone.
Alternatively as a last resort, flash back to stock using stock images provided by Google vis fast boot and then drag it onto the sd as well as reinstalling the recovery.
Sent from my Nexus 4 using xda premium
stefandunn said:
I need to flash a ROM, but I can't start my phone up to be able to transfer the file over. There used to be a Mount Storage Device option on my old DHD, but I noticed that on the N4, CWM does not have this option (maybe to do with MTP).
How can I copy a file over onto SDCard so I can flash it? I tried:
Code:
adb push file.zip /sdcard/file.zip
When I try and flash it, it says "Can't open /sdcard/file.zip (bad)
Click to expand...
Click to collapse
Remove the "file.zip" after the sdcard:
Code:
adb push file.zip /sdcard/
Also ensure the real file name doesn't contain spaces.
Edit: the command as you were typing it was telling adb to take the CONTENTS of file.zip and place them in a FOLDER called file.zip. Out of adb's range of abilities
Alternatively, if you're using CWM, you can use the "Install zip from sideload" option. Once you're in, push the file from adb using "adb sideload filename.zip"
The adb command you tried should work fine in recovery. Maybe you weren't in the correct folder where file.zip was located when you executed the adb command?
Also, if you don't have adb set in your PATH, then the adb app will need to be in the same folder as file.zip.
http://forum.xda-developers.com/showthread.php?t=1667929
se1000 said:
Alternatively, if you're using CWM, you can use the "Install zip from sideload" option. Once you're in, push the file from adb using "adb sideload filename.zip"
Click to expand...
Click to collapse
Thank you very much!

help please

i format my Nexus 4 on twrp recovery using advance wipe and i checked all the box there, and when i rebooted its stuck on google logo, what should i do?
Well why would you do that? If you selected everything under advanced in twrp, that means that you have also wiped the system partition so there is no rom to boot into, hence why you are stuck at the google logo. You will need to use adb to copy a rom onto your phone, and then flash it via twrp. Instructions:
1. Setup adb: http://www.redmondpie.com/how-to-set-up-android-adb-and-fastboot-on-windows-tutorial/
2. Install Koush's universal adb driver (google this for the download)
3. Put the phone into twrp
4. Download a rom on your pc and move it to your desktop. Rename it to "rom.zip".
5. Open a command prompt window and run the following commands:
Code:
adb devices
If your phones serial number shows up, continue. If not, reinstall drivers.
Code:
cd Desktop
adb push rom.zip /sdcard/
6. After its finished pushing, go to install within twrp and flash it.
when i typed in cd desktop it says "The system cannot find the path specified". and when i continue to adb push rom.zip /sdcard/ it says "cannot stat rom.zip: no such file or directory"
it worked, thanks for your help.
I hope you realized when you checked all the boxes, you checked to wipe the internal storage which holds all your personal data.
And you checked to wipe /system partition which house the operating system, of course there wouldn't be anything to boot into.
sent from xda premium app

Categories

Resources