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
Related
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.
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.
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.
So, never had a Sony-Device, the guides and instructions here are a bit unclear to me.
As far as i understood before going custom:
Downgrade to .532 with flashtool -> run BackupTA -> upgrade to latest again (rly neccessary?) -> then unlock Bootloader
Pretty straight forward up until here.
From there on i can use [NUTS]s XZDualRecovery if i want to stay on stock-kernel and flash custom roms frem there without any problem as far as i understood.
Is this correct?
But what if i want to use a custom kernel at some point?
DooMKernel for example is flahsed via Fastboot, but only compatible with Stock-Sony-Roms
PimpedKernel for example on the other hand is CM-based only and only uses a recovery flashable zip
I'm a little bit confused because of that.
Is a Kernel and / or recovery included in every ROM? (Edit: Yep Kernel is..)
Can i just use [NUTS] recovery and then flash any ROM / Kernel trough it? And afterwards a custom Kernel if the one included in ROM (if any?) lacks any features i want?
competent devs who maintain roms for this phone would include a recovery in their package
slimrom does this and i don't have to worry about losing trwp recovery
alia5 said:
So, never had a Sony-Device, the guides and instructions here are a bit unclear to me.
As far as i understood before going custom:
Downgrade to .532 with flashtool -> run BackupTA -> upgrade to latest again (rly neccessary?) -> then unlock Bootloader
Pretty straight forward up until here.
From there on i can use [NUTS]s XZDualRecovery if i want to stay on stock-kernel and flash custom roms frem there without any problem as far as i understood.
Is this correct?
But what if i want to use a custom kernel at some point?
DooMKernel for example is flahsed via Fastboot, but only compatible with Stock-Sony-Roms
PimpedKernel for example on the other hand is CM-based only and only uses a recovery flashable zip
I'm a little bit confused because of that.
Is a Kernel and / or recovery included in every ROM? (Edit: Yep Kernel is..)
Can i just use [NUTS] recovery and then flash any ROM / Kernel trough it? And afterwards a custom Kernel if the one included in ROM (if any?) lacks any features i want?
Click to expand...
Click to collapse
The downgrading is no longer necessary, use the easyroot tool. Or use the dualrecovery installer for locked bootloaders then flash superuser zip from recovery. Once you have it rooted then back up TA and unlock bootloader. You should be able to flash boot.img from flashtool, if you wanted to download a rom and pull it from zip. I mention that because most roms only have one recovery, so if you flash the img from the rom you want to install first with flashtool you could make a backup that could be restored with new recovery. One other thing that I learned the hard way is a backup made before unlocking bootloader will relock it if restored.
No downgrading, just root and back up TA, great
So i need to flash boot.img from the ROM every time i want to install a new ROM? Or just the first time going from stock to custom? Or just if i have twrp n current rom and the rom i wanna flash is only compatible with CWM?
alia5 said:
No downgrading, just root and back up TA, great
So i need to flash boot.img from the ROM every time i want to install a new ROM? Or just the first time going from stock to custom? Or just if i have twrp n current rom and the rom i wanna flash is only compatible with CWM?
Click to expand...
Click to collapse
Here is a brand spanking new guide to check out that is up to date.
http://forum.xda-developers.com/xperia-z-ultra/general/guide-everything-root-4-4-4-t2938098
I will try to put forth an example to try and demonstrate what I trying to convey in regards to flashing boot.img.
Example.... You are on a rom that contains CWM and you are going to flash a rom that contains TWRP and you wish to have a backup of first rom that could be restored you would flash the img. with TWRP then make backup. Another option would be to just go ahead and use CWM to make backup but you would need to flash that img. in order to be able to restore. I think most roms can be flashed from either recovery at the moment, the concern is your backup being compatible with whichever one is in your current rom.
So, in the boot.img is Kernel+Recovery, alright, and i only need to worry about flashing boot.img für backup reasons.
Pretty much answers what i was wondering, thanks guys
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.