[Q] Rom Question - Android Q&A, Help & Troubleshooting

I have a Telstra branded HTC Desire C that was running 4.0.3 (2.00.841.2), after I rooted and unlocked the bootloader, I installed CWM Recovery and did a nandroid backup.
Now I want to return the phone to stock with the same firmware. So I have the backup, and this link to the htc website http://dl4.htc.com/RomCode/Source_and_Binaries/golfu-ics-crc-3.0.16-932fab4.zip but not sure what it is, I am assuming it is source code?. There isn't any boot.img or recovery.img so I can't flash it, it comes in a zip, but when I tried to flash it with recovery it didn't work.
So what I am asking can I use the source code files and extract the boot.img or recovery.img from the backup, modify it by adding the files from the source code to unroot it and recombine to the original boot and recovery images?. Is that possible?
Then flash the phone back to stock.

Related

Reverting to Stock from Custom ROM

Guys , some people are reporting that they are unable to revert to stock rom after flashing custom rom.
If you want to save your phone , then i highly recommend you to make a complete backup before flshing stock rom
go to cwm recovery and select backup/restore then backup (it will make your stock rom backup)
whenever you want to revert , go again to clockworkmod recovery and select restore under, backup/restore option
now last and most important thing to run stock rom ---> flash stock kernel using fastboot method
first grab stock kernel to do that , download your phones stock firmware from here = http://forum.xda-developers.com/showthread.php?p=10885406#post10885406
using 7zip extract kernel.sin file from .ftf firmware file
connect your phone in fastboot mode and run this command
fastboot flash boot kernel.sin
I'm doing it again and again without any problem.. just be sure to flash stock kernel before flashing stock rom.
thanks, i will try this method too
first flash stock kernel , then using flashtool flash firmware , am i right ?
Stock kernel (kernel.sin) is included in the package (of official stock firmware). So everytime you flash an official stock firmware, kernel.sin is also flashed. No need to flash kernel.sin before flashing stock firmware. Correct me if im wrong.
I also think same , i tried that method by noooooob and it worked too
hello, can someone give me a link to a tutorial on how to install CWM Recovery on our x-ray? do i have to unlock bootloader first before installing CWM? thanks
lets try the Cynaogen
kizsleg said:
hello, can someone give me a link to a tutorial on how to install CWM Recovery on our x-ray? do i have to unlock bootloader first before installing CWM? thanks
Click to expand...
Click to collapse
yes you have to unlock boot-loaders first
i recommend to unlock by this method = http://androidflip.com/unlock-xperia-phones-bootloader-without-losing-drm-data-track-id-working/
if you want to install clockwork mod recovery then follow this = http://forum.xda-developers.com/showthread.php?t=1384200
Install CWM without unlocking bootloader
You don't need to unlock the boot loader to install CWM.
Follow instructions here to root First
http://forum.xda-developers.com/showthread.php?t=1320350
Install CWM using this tool
http://forum.xda-developers.com/showthread.php?t=1346190
This is how I did it on my Ray
I always considered flashing with Wotanserver to be the best way to go back to stock. It basically takes care of everything. Sure, you'll have to root again afterwards, but that's not exactly very hard.
wotan server is also a good choice
How can i revert back to stock rom from custom rom if i havent made any backups of stock rom??
elf.rb said:
How can i revert back to stock rom from custom rom if i havent made any backups of stock rom??
Click to expand...
Click to collapse
download firmware which you have before installing custom rom, then flash it using flashtool.

Theoretically flash kernels with CWM

1.- I noticed that CWM backups generate some files corresponding to each partition.
The important one in this thread is "boot.img" (kernel).
2.- Custom roms ZIP files also have a "boot.img", which is the kernel that is going to be flashed for that rom to work correctly.
3.- I can't unlock my bootloader.
Said that, this is what I thought: Make a CWM backup, replace backup's boot.img with custom rom's boot.img and then make an advanced restore to 'flash' the custom kernel. Finally flash the custom rom normally.
Question: Do I have any risk of hard brick by trying this?
Yes, don't do it.

[Q/Help] Need stock Boot.img with ClockworkMod for LWW

I did a nandroid backup but didn't there it will be in yaff2 format and with no boot.img.
I installed CM so flashed CM's Boot.img which has CWM in it.
So want I want is a Stock Boot.img with or without CWM or a way to extract boot.img from the backup
CWM for our devices doesn't do a backup of the boot.img. If you want the stock kernel (of the stock rom) flash the kernel.sin (either find it somewhere or use the one in a firmware.ftf) using flashtool and root the phone. If you want you can install cwm using the xparts app from playstore. These are many steps, but the easiest way would be to flash a prerooted kernel for the stock rom
Sent from my Nexus 4 running Android 4.4

I am a beginner and I need help.

My HTC one m8 has root access. I was using twrp recovery and stock rom. I wanted to flash a custom rom (tried cyanogen and pan) but twrp never helped me in finding my zip file. Then I tried swapping my recovery from twrp to cwm but that never happened and it got stuck in bootloader mode and then I did factory reset :/. And now everytime I try going into recovery it takes me to the bootloader mode. now I am trying flashing a custom recovery but first turning s_off and I tried firewater but it doesn't work.
What should I do?
It still has root access but s_on and don't know about bootloader on/off and no recovery.
Sent from my HTC one m8 using XDA Free mobile app
Fahad khan lodhi said:
My HTC one m8 has root access. I was using twrp recovery and stock rom. I wanted to flash a custom rom (tried cyanogen and pan) but twrp never helped me in finding my zip file. Then I tried swapping my recovery from twrp to cwm but that never happened and it got stuck in bootloader mode and then I did factory reset :/. And now everytime I try going into recovery it takes me to the bootloader mode. now I am trying flashing a custom recovery but first turning s_off and I tried firewater but it doesn't work.
What should I do?
It still has root access but s_on and don't know about bootloader on/off and no recovery.
Sent from my HTC one m8 using XDA Free mobile app
Click to expand...
Click to collapse
and does your device say unlocked at the top of your bootloader? if not follow this guild http://forum.xda-developers.com/showthread.php?t=2799796 , but use the twrp for you device carrier only
if you did it via recovery you should still be ok
go to your bootloader download this twrp img here http://techerrata.com/file/twrp2/m8/openrecovery-twrp-2.7.1.0-m8.img on your computer (for gsm) int. att (i'm guessing this is the device carrier you have)
ensure you have fastboot tools(adb tools installed)
put the .img in your folder that contains fastboot
open a cmd in that folder on your computer and make sure you put your phone in fastboot mode via your bootloader.
then type on your computer in cmd fastboot flash recovery (name of twrp you downloaded).img
then type fastboot erase cache
you now have twrp installed to get to it now select recovery from bootloader on your phone.
when installing custom roms in twrp you need to go to advanced wipe(select data,cache,delvik cache, and system then swipe the arrow bar beneath)
then press home and press install the go to the location on the sdcard where you put the rom.zip of the custom rom and select it. instalation will begin after completion reboot(done)
It says unlocked at the top but S On.
Shouldn't I turn s off before flashing recovery?
Sent from my unknown using XDA Free mobile app
@Fahad khan lodhi
it won't matter either way.
but just so you know what s-off is
s-off turns security mode off so you can swap out boot splashes and such, if you s-off and super cid you can flash any carrier's firmware,
also allows you to flash a kernel in recovery on older devices(m8 doesn't need s-off to flash kernel)
Can't S-Off unless you can boot. Firewater only works if you can get into the OS and then only for some devices. You should reinstall TWRP and see if you can boot to it then put a rom on an external SD card or use adb to push a rom zip to the internal if you don't have an SD card. Make sure that you fastboot flash the boot.img of whatever rom you are trying due to being S-On. If all that fails, then you will need to find the same or newer RUU from HTC for your carrier to restore the phone to stock and start over.
es0tericcha0s said:
Can't S-Off unless you can boot. Firewater only works if you can get into the OS and then only for some devices. You should reinstall TWRP and see if you can boot to it then put a rom on an external SD card or use adb to push a rom zip to the internal if you don't have an SD card. Make sure that you fastboot flash the boot.img of whatever rom you are trying due to being S-On. If all that fails, then you will need to find the same or newer RUU from HTC for your carrier to restore the phone to stock and start over.
Click to expand...
Click to collapse
Hey thank you very much.
It helped and i flashed latest twrp recovery and then flashed viper one m8 1.8.0 rom but the latest version is 2.4.0 and it says to have that your firmware should be 4.4.3 and i have 4.4.2.
Question is can i flash paranoid android coz that gives me 4.4.4 firmware and then flash latest viper one m8 version or i have to go to stock rom and update it and then flash latest version of viper?
Reply please.
Sent from my HTC One_M8 using XDA Free mobile app
Fahad khan lodhi said:
Hey thank you very much.
It helped and i flashed latest twrp recovery and then flashed viper one m8 1.8.0 rom but the latest version is 2.4.0 and it says to have that your firmware should be 4.4.3 and i have 4.4.2.
Question is can i flash paranoid android coz that gives me 4.4.4 firmware and then flash latest viper one m8 version or i have to go to stock rom and update it and then flash latest version of viper?
Reply please.
Sent from my HTC One_M8 using XDA Free mobile app
Click to expand...
Click to collapse
It should still work with the firmware you have. It's recommended but not necessary. And flashing PA would certainly not update your firmware. Firmware in this instance is mostly focused on the radio/baseband version and the touch drivers. These are not included in any kind of custom rom for your phone (nor 99% of android custom roms for anything). Much more important if you were originally on 4.2.2 or 4.3 and trying to run the new Viper. The only way to update firmware while S-On is via RUU or OTA. If you were S-Off then you could flash just the firmware package that has the hboot and stock recovery files removed.

Return to Stock Kernel 32.2.A.0.305 - 6.0.1

Hi, I am new and I have rooted my z5C of version 32.2.A.0.305 - 6.0.1 and customized kernel (https://forum.xda-developers.com/z5...omized-stock-kernel-32-2-0-305-6-0-1-t3477464) and TWRP. I feel some battery drain issues and would like to flash back the stock kernel to see can it be solved.
1. Is it just flash back the stock boot.img by adb is fine?
2. I changed some systems files, e.g. fonts and host files etc. I have removed other apps need root, can the changed system files - fonts and host files keep using without problems after I flashed the stock boot.img?
3. Will the TWRP removed after I flash back the stock boot.img by adb
Thanks
If you unroot, flashing back to the stock boot.img should be fine. All configurations that you have set before should remain the same unless they require root, in which they won't work at all. Also, reverting back to stock boot.img would remove DRM features and TWRP unless you get a custom built boot.img.
dlee390 said:
If you unroot, flashing back to the stock boot.img should be fine. All configurations that you have set before should remain the same unless they require root, in which they won't work at all. Also, reverting back to stock boot.img would remove DRM features and TWRP unless you get a custom built boot.img.
Click to expand...
Click to collapse
thanks! So, after I flashed the stock boot.img, I will lose TWRP.
1. would the recovery return to stock or I will have no recovery?
2. If I re-root again in future I just flash the rooted kernel boot.img by adb is fine?
au.terrykp said:
thanks! So, after I flashed the stock boot.img, I will lose TWRP.
1. would the recovery return to stock or I will have no recovery?
2. If I re-root again in future I just flash the rooted kernel boot.img by adb is fine?
Click to expand...
Click to collapse
If you return to stock, you would get the stock recovery and if you want to re-root you would have flash through adb.

Categories

Resources