[TUT]How to flash a rom when your device boots in recovery or hboot. - HTC Wildfire S

You just want to flash a new rom... you did all the wipes and then you realize that you don't have any rom or nandroid backup on your sd card. ***! Don't worry bro. This is what you can do:
1. Search for a wonderful rom in the Android development section.
2. Download it and paste the rom.zip in the same folder where adb and fastboot are.
3. Go to Clockworkmod Recovery.
4. Go to mounts and storage.
5. You must see "unmount /sdcard/" and "unmount /system/".
6. open up command prompt and cd to your adb folder.
7. In adb, type: adb push romname.zip /sdcard/ where romname.zip is the name of the zip (you must have enough space left on your sd card).
8. Flash the rom and enjoy!
When you don't have Clockworkmod installed, do this:
1. Download the Clockworkmod recovery img.
2. Put it in your adb folder.
3. Open up command prompt.
4. Boot your device in hboot and connect it with the usb cable.
5. Cd to your adb folder.
6. In command prompt, type: fastboot flash recovery name.img where name.img is the exact name of the clockworkmod recovery img.
7. You just installed Clockworkmod recovery!
If this is too hard for you, flash an RUU.
Some tips:
1. Sometimes type: adb devices or fastboot devices.
2. Be sure you don't have a faulty usb cable.
3. For the lazy people, when you download a rom or recovery, name it to rom.zip or recovery.img
Hope this helped.

I will try this tonight. Any suggestions on ROM's for the MetroPCS CDMA Version? I'm on Android 2.3.4
ClockWorkMod Recovery 5.0.2.8

Related

[Q]

Hi i just download the renovate_final2 zip file. And im not really sure how to install it to my phone. Can anyone correct me if im wrong?
1. copy the boot.img from the zip file to the fastboot folder
2. on my phone, go to fastboot usb (connect to comp)
3. on my computer, open cmd.
-type cd.. (enter) cd.. (enter) cd \fastboot (enter) fastboot flash boot boot.img (enter)
4. on my phone, go to recovery and wipe factory and cache. afterwards install the rom.
Are the steps correct?
Don't make 2 threads in 5 minutes or so. Stay in the other thread......

[TUT][HOW TO] Flash Recovey without use bootloader

Hi guyz! With this small guide I hope i'll explain to you how to flash a recovery without bootloader. C'mon!
1) Download the recovery
2) Extract the recovery image in the zip (normally the folder is named "pg76img.zip" and the recovery "recovery.img")
4) Download terminal emulator
5) Open Terminal Emulator
6) Write su and accept superuser request
7) write flash_image recovery /sdcard/recovery.img
8) if you'd like to try if recovery work write reboot recovery
9) enjoy!
-EDIT-
This script doesn't work with stock rom (sense roms)
Sent from my Wildfire S using xda app-developers app
This method won't work on Sense ROMs unless you install the flash_image script (Else you'll get not found or something similar).
Assuming you've already downloaded and installed Android SDK and that stuff, we can start:
1. Extract the script. Let's say you extracted it to your Desktop.
2. Connect your WFS with android debugging on.
3. Type the following:
Code:
adb root (enter)
adb remount (enter)
adb push Desktop\flash_image /system/bin (enter)
adb shell chmod 0755 /system/bin/flash_image (enter)
4. Flash your recovery. (In this case, your recovery.img is on /sdcard/)
Code:
adb shell flash_image recovery /sdcard/recovery.img
That's all. And there's no need to do this on CM-based ROMs as they already have this command script.
ScardracS said:
Hi guyz! With this small guide I hope i'll explain to you how to flash a recovery without bootloader. C'mon!
1) Download the recovery
2) Extract the recovery image in the zip (normally the folder is named "pg76img.zip" and the recovery "recovery.img")
4) Download terminal emulator
5) Open Terminal Emulator
6) Write su and accept superuser request
7) write flash_image recovery /sdcard/recovery.img
8) if you'd like to try if recovery work write reboot recovery
9) enjoy!
Sent from my Wildfire S using xda app-developers app
Click to expand...
Click to collapse
this won't work on stock roms....as stock doesn't have flash_image script....so mention in OP only for cm based roms....& ofcourse for stock based roms djoliver has already posted a tut

Need a little help flashing radio.img

Ok it's hopefully just something I'm overlooking but haven't gotten it to work so far. I have ADB and Fastboot set up on computer and the phone is T-Mob m8, unlocked, rooted, TWRP, Custom ROM, S-Off, Super CID. I have downloaded the radio zip, extracted the radio.img and put it in the adb folder in my c drive. Now I followed a couple of steps posted:
Fiash via adb:
1. Download the radio.img above
2. Put the radio.img file into your ADB folder
3. Open up command prompt and copy and paste the EXACT lines
4. adb push radio.img /storage/sdcard0/radio.img
5. adb shell
5. su
6. dd if=/storage/sdcard0/radio.img of=/dev/block/mmcblk0p20
7. adb reboot
I get cannot stat "radio.img" no such file or directory any suggestions? thanks
but each time i get a file not found so what is
http://www.androidfilehost.com/?w=f...ce08cd20294c7e0997d32ce5203bee4a606a03d8be1b9
i used this to fix my radio problems. flashable in twrp
Okay, make sure the radio.img is in the folder you have adb and fastboot setup, then do the following once your phone is connected to your computer:
Open command and type the following:
Code:
adb reboot bootloader
fastboot flash radio NAME_OF_FILE_.img
Then reboot your phone afterwards.
Da Kine said:
Okay, make sure the radio.img is in the folder you have adb and fastboot setup, then do the following once your phone is connected to your computer:
Open command and type the following:
Code:
adb reboot bootloader
fastboot flash radio NAME_OF_FILE_.img
Then reboot your phone afterwards.
Click to expand...
Click to collapse
Thanks! got it working, I knew I was having a vegetable moment, I was putting the radio.img in the actual adb folder. Once I removed it from there and put it in the c: drive folder it worked like a charm :good:

Need a little help flashing radio.img

Ok it's hopefully just something I'm overlooking but haven't gotten it to work so far. I have ADB and Fastboot set up on computer and the phone is T-Mob m8, unlocked, rooted, TWRP, Custom ROM, S-Off, Super CID. I have downloaded the radio zip, extracted the radio.img and put it in the adb folder in my c drive. Now I followed a couple of steps posted:
Fiash via adb:
1. Download the radio.img above
2. Put the radio.img file into your ADB folder
3. Open up command prompt and copy and paste the EXACT lines
4. adb push radio.img /storage/sdcard0/radio.img
5. adb shell
5. su
6. dd if=/storage/sdcard0/radio.img of=/dev/block/mmcblk0p20
7. adb reboot
I get cannot stat "radio.img" no such file or directory any suggestions? thanks

[Guide] How to get partition table out of any phone using command prompt in windows

Here i can guide you to get the partition table details out of your phone.
Follow my steps seriously (don't ever miss or mess with any step. Just follow blindly. As I've faced same issue.
First of all take a Nandroid backup of your phone for safety.
Before going through any of these steps you need to install latest mi PC suite and MiFlash on your windows PC. As i am a mi [redmi 1s] phone user,i use pc suite and flash tool to install adb and fastboot drivers.
(If you are any other phone user, then you can get your phone compatible adb and fastboot drivers from google or you can use the universal fastboot and adb drivers).
here is the link to get universal adb and fastboot drivers for windows: http://forum.xda-developers.com/showthread.php?t=2588979
1) Connect your phone to your pc by using a compatible USB cable.
2) Now install Minimal adb and fastboot from here: (note the installation directory here)
http://forum.xda-developers.com/showthread.php?t=2317790
3) Next navigate to inside of installation directory (minimal adb and fastboot folder in my computer).
4) if you see adb and fastboot applications inside the folder then you are in the right directory.
Now by press and holding shift button make a right click inside the folder. Here you see open command window here, click on it. Or you can navigate to this folder through command prompt.
5) Now reboot your phone into fastboot by pressing volume button (in general down) and power button. if that doesn't work try by googling it.
6) Now in command prompt enter command
Code:
fastboot devices
.
If you see any device serial number <space> fastboot. if not wait a minute or two. for ex:
abbf287 fastboot
then your device is successfully connected in fastboot mode.
7) Now download the twrp recovery image file from twrp website. and select your device from devices and download the file by clicking the link with Recommended.
link: https://twrp.me/
8) And copy this file into the same folder as your adb and fastboot binaries (minimal adb and fastboot folder). Rename the image to twrp.img and type:
Code:
fastboot flash recovery twrp.img
press enter
Code:
fastboot reboot
press enter
9) Now to boot into your latest (twrp) recovery by pressing volume button (in general up) and power button.
10) Now in the same command prompt enter command
Code:
adb devices
.
If you see any device serial number <space> recovery. if not wait a minute or two. for ex:
abbf287 recovery
Then your device is successfullu connected in adb (recovery mode).
11) Now download the parted file from the link below and copy the file to the same directory where twrp.zip was copied.
link: https://drive.google.com/file/d/0B_IeQxB3hZfgbU93NzVOcWd6TjA/view?usp=sharing
12) Now in command prompt enter command:
Code:
adb shell mount -o remount,rw /system
13) Then enter next command
Code:
adb push parted /system/bin/parted
14) You should see some kind of push successful message. Then enter command:
Code:
adb shell
.
15) You should see a new command line host-name with a “#” sign next to it which indicates you’re connected as root user.
16)Now Enter the following command one after the other followed by enter.
Code:
chmod 0755 /system/bin/parted
Code:
parted /dev/block/mmcblk0
Code:
print
17) Now you have got a table. Which is the current partition table on your phone. Take screenshot of this details in maximized mode for future requirements.
Happy coding. And don't forget take Nandroid backup before messing anything.

Categories

Resources