help flashing a recovery img using terminal - Android Software/Hacking General [Developers Only]

I have tried to flash using terminal.
su
flash_image recovery /sdcard/recovery.img
but i just get a message saying no permitions
Ive copied the Flash_image file into system/bin
any ideas im trying to flash a recovery so i can flash 2.3.3 without fast boot or a pc
Im on the LG GT540 using the Baltic 2.1 rom but no fastboot
Sent from my GT540 using Tapatalk

Related

How to flash system.img using recovery mode

How do I flash system.img using modded recovery mode. I have a recovery mode that has backup/ restore option and can also flash zip files.
Do you use a custom recovery like "Clockworkmod Recovery"?
And what is the system.img for?
Because most roms come in a .zip package which are much easier to install via the clockworkmod recovery interface.
Jasperovic said:
Do you use a custom recovery like "Clockworkmod Recovery"?
And what is the system.img for?
Because most roms come in a .zip package which are much easier to install via the clockworkmod recovery interface.
Click to expand...
Click to collapse
Yes, i have a custom recovery like clockworkmod. I have extracted system.img using nandroid backup.
Sent from my GT-I5801 using xda app-developers app
use this command on terminal in aroma fm
dd if=/your_path/system.img of=/[email protected]
wait until response it will take 4-5 mins
then exit & reboot

Odin

can i flash custom roms to my nexus I9023 using odin?
if i lost the recovery what should i do?
please help.
You can't use Odin with a Nexus S. Reflash your recovery using fastboot.
nexussgeek said:
can i flash custom roms to my nexus I9023 using odin?
if i lost the recovery what should i do?
please help.
Click to expand...
Click to collapse
Fastboot is much better then ODIN - If you loose access to recovery, you'd still be able to access fastboot/adb and then you can easily flash custom recovery using adb.If you have lost recovery then install pdanet on your computer.(It will also install Nexus S USB Drivers) then put your phone into fastboot mode by holding down both Volume Up and Power buttons together. When you are in fastboot mode connect your phone to your PC using USB cable.Download ADB and recovery you want to flash put it in your C:/recovery (Put adb and recovery image in this folder)
Then open cmd and type
1)CD C:/recovery
2)fastboot flash recovery recoveryname.img (replace recoveryname with actual file name of the recovery image).
2nd command will flash recovery to your phone and then you'd be able to access recovery.
Wow, you learn something every day. Never heard of anyone doing that before.
Thanks
Android-Junky said:
Fastboot is much better then ODIN - If you loose access to recovery, you'd still be able to access fastboot/adb and then you can easily flash custom recovery using adb.If you have lost recovery then install pdanet on your computer.(It will also install Nexus S USB Drivers) then put your phone into fastboot mode by holding down both Volume Up and Power buttons together. When you are in fastboot mode connect your phone to your PC using USB cable.Download ADB and recovery you want to flash put it in your C:/recovery (Put adb and recovery image in this folder)
Then open cmd and type
1)CD C:/recovery
2)fastboot flash recovery recoveryname.img (replace recoveryname with actual file name of the recovery image).
2nd command will flash recovery to your phone and then you'd be able to access recovery.
Click to expand...
Click to collapse
thanks

Help CMW won't boot to recovery

[SOLVED] (not sure how to tag as solved in the title, if mods can do that please or tell me how)
Flashed Clockwork Mod Recovery following these instuctions
droidviews.com/2013/install-clockworkmod-recovery-on-motorola-droid-razr-hd-xt925gsm/
Installed Rom manager.
Booting into recovery results in robot on his back with the triangle and exclamation point animation and stays there unless I
force reboot by holding the power button. Phone boots to stock rom or fastboot just fine.
Tried reflashing CWM just in case.
I am rooted via motochopper
Unlocked bootloader via motopocalyspe.
I factory reset my phone prior to all this so there are only a few apps installed, also SuperSU installed.
Rogers version XT925
Anyone else have this issue or know how to fix it?
Are you using the cmd 'fastboot flash recovery recovery.img'
?
Sent from my Desire HD
ykdr-scott said:
Are you using the cmd 'fastboot flash recovery recovery.img'
?
Sent from my Desire HD
Click to expand...
Click to collapse
Thanks for the quick reply; yes that is the command I used to flash the recovery image to my phone.
check see if your recovery image is in the same directory as your fastboot eg Cmd > cd C:/fastboot flash recovery recovery.Img
I always paste my files directly into cd C:/ .
If you have them in a folder in c it would be ' cd C:/folder name here fastboot flash recovery recovery.img
Sent from my Desire HD
ykdr-scott said:
check see if your recovery image is in the same directory as your fastboot eg Cmd > cd C:/fastboot flash recovery recovery.Img
I always paste my files directly into cd C:/ .
If you have them in a folder in c it would be ' cd C:/folder name here fastboot flash recovery recovery.img
Sent from my Desire HD
Click to expand...
Click to collapse
They are in the same folder, in the mean time I actually found another thread with the same problem. I guess I didn't search hard enough the first time before posting. I found a 1 click installer for CWM/TWRP that fixed my issue. I'm guessing I may have just had a bad recovery img or something.
http://forum.xda-developers.com/showthread.php?p=42255792#post42255792
links to the thread with the 1 click installer.

how to flash stock recovery

hi there. I want to know how to flash stock recovery. im on xt1032, stock ROM 4.4.2 unrooted (I flashed the backup I made before I rooted).I want to go to 4.4.3. now I want to know how to flash stock recovery. through moto tool ? or through adb (please post on what command I should do to flash recovery and where should I open the cmd and where to put file if u say adb) [emoji4]
Sent from my XT1032 using Tapatalk
bublz654 said:
hi there. I want to know how to flash stock recovery. im on xt1032, stock ROM 4.4.2 unrooted (I flashed the backup I made before I rooted).I want to go to 4.4.3. now I want to know how to flash stock recovery. through moto tool ? or through adb (please post on what command I should do to flash recovery and where should I open the cmd and where to put file if u say adb) [emoji4]
Sent from my XT1032 using Tapatalk
Click to expand...
Click to collapse
Okay first of all download your firmware from sbf motorola and extract the zip file to the same location as your adb/fastboot folder. In the folder where your recovery.img and your fastboot is "Hold Shift and Right Click and choose open command window here" Make sure you got USB Debugging on and type in the following command adb reboot bootloader when it reboots into bootloader then you will type fastboot flash recovery recovery.img
serophia said:
Okay first of all download your firmware from sbf motorola and extract the zip file to the same location as your adb/fastboot folder. In the folder where your recovery.img and your fastboot is "Hold Shift and Right Click and choose open command window here" Make sure you got USB Debugging on and type in the following command adb reboot bootloader when it reboots into bootloader then you will type fastboot flash recovery recovery.img
Click to expand...
Click to collapse
yeah I have my official firmware downloaded n extracted. is the place where adb/fastboot folder in sdk --> platform tools?
Sent from my XT1032 using Tapatalk
anyway. I'm on 4.4.3 now. in rooted as well. thank you very much
Sent from my XT1032 using Tapatalk

Factory Reset mtk device without any recovery system

so i have a mtk device in which i mistakenly flashed a wrong custom recovery using mobile uncle tools. now i have no working recovery in this device & device wont even factory reset as it tries to reboot into recovery mode then fails to boot into corrupted recovery & again reboots into operating system without doing any reset.
so im here to know if there is any way to recover my built-in recovery system or atleast factory reset my device without using any recovery. i have tried using adb but faced the following error:
PS C:\adb> adb devices
List of devices attached
0123456789ABCDEF device
PS C:\adb> adb root
adbd cannot run as root in production builds
PS C:\adb> adb shell
[email protected]:/ $ wipe data
Wiping /data
Error opendir'ing /data 'Permission denied'
Done wiping /data
[email protected]:/ $
Khaled786 said:
so i have a mtk device in which i mistakenly flashed a wrong custom recovery using mobile uncle tools. now i have no working recovery in this device & device wont even factory reset as it tries to reboot into recovery mode then fails to boot into corrupted recovery & again reboots into operating system without doing any reset.
so im here to know if there is any way to recover my built-in recovery system or atleast factory reset my device without using any recovery. i have tried using adb but faced the following error:
PS C:\adb> adb devices
List of devices attached
0123456789ABCDEF device
PS C:\adb> adb root
adbd cannot run as root in production builds
PS C:\adb> adb shell
[email protected]:/ $ wipe data
Wiping /data
Error opendir'ing /data 'Permission denied'
Done wiping /data
[email protected]:/ $
Click to expand...
Click to collapse
You need to obtain a copy of your stock recovery and then flash that copy of stock recovery onto your device. If you can find a copy of your stock firmware, you can try extracting a copy of stock recovery from the firmware and use that copy to flash the device.
Sent from my SM-S767VL using Tapatalk
I have searched a lot and found one copy of my stock firmware (still not 100% sure about the rom) and it contained recovery.bin file (but I need recovery.img) image file to flash with mobile uncle or flashify.
So I used SP flashtool to flash only the recovery file into my device. But it showed some error (PMT has changed of this rom) and failed the flash. After searching for solution, people were telling me to erase my full device including boot & bios with SP flash tool then flash the new copy of my downloaded stock firmware. But I can't take the risk of erasing my device and bricking it (as I already told I have doubts about the downloaded rom)
Droidriven said:
You need to obtain a copy of your stock recovery and then flash that copy of stock recovery onto your device. If you can find a copy of your stock firmware, you can try extracting a copy of stock recovery from the firmware and use that copy to flash the device.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
what if the downloaded rom is also corrupted like the custom recovery i tried to flash........ im trying to avoid this kind of risky steps. i have heard mobile uncle tools flashes custom recovery temporarily & the stock recovery is still there somewhere which can be found using root explorer. so i was asking is there any way i can extract that stock recovery from system files and use it OR just any other way to factory reset my device using adb/fastboot
Khaled786 said:
what if the downloaded rom is also corrupted like the custom recovery i tried to flash........ im trying to avoid this kind of risky steps. i have heard mobile uncle tools flashes custom recovery temporarily & the stock recovery is still there somewhere which can be found using root explorer. so i was asking is there any way i can extract that stock recovery from system files and use it OR just any other way to factory reset my device using adb/fastboot
Click to expand...
Click to collapse
I told you what you needed to do, now, you just need to accept it and do it.
Sent from my SM-S767VL using Tapatalk

Categories

Resources