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.
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.
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
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
Im new into rooting so i succesfully unlocked my bootloader and installed the twrp recovery via flash now i have the problem that my phone always boots into the recovery mode no matter what, i have a sonyz2 D6503 andriod 6.0.1 i follow a tutorial on youtube . now i have read a few threads that it is wrong to install twrp with fastboot flash boot C/:whaterver.img i should have done it with fastboot flash recovery C/:whatever.img . Im kinda stuck now and i have no idea what to do moreover im kinda scared to do something, because it can cause more damage that i already have.
im kinda sorry for my horrible english i hope you can understanf this trouble
If you want to proceed back to stock ROM, flash stock FTF using flashtool (download link and instructions can be found inside my signature), with KERNEL and SYSTEM checked, other leave other options intact.
If you want to flash another non-stock ROM, flash an advanced kernel via fastboot toolbox inside the flashtool I mentioned above, then you can flash the ROM using the TWRP inscribed with the advanced kernel.
If you want to proceed to stock ROM but rooted and with other MODs installed, there are two ways to do so:
Easier method:
Flash an advanced kernel then use the pre-installed TWRP to flash the SuperSU.zip or whatever MOD zips.
Complex method:
Restore stock kernel using flashtool mentioned above, then flash the TWRP (recovery) image (you can get one HERE) using a cmd on PC or Laptop with ADB and flastboot drivers installed, typein:
Code:
fastboot flash recovery <recovery>.IMG
then you can boot into the TWRP to flash whatever MODs you want.
--------------------
As always, do more research before entering into tweaking things, noobness can be fatal!
I dont want MIUI and useless extra app so i have to install custom rom.
First step is unlock bootlader with mi unlock app okay. But my question is how can i install custom rom ?
TWRP or Clockwork Mod ???
Using TWRP i have to install it first after that i have to install recovery.img and lazyflasher unless my phone gonna brick and its too complicated.
What about Clockwork Mod ?? is it different method ?
I guess i found my path.
1)Installing ROM MANAGER from Play Store of course with rooted device.
2)Install inside of app Clockwork Mod
3)Select custom rom from SD Card and select Gapps,backup,wipe data...
and device gonna reboot do everything automatic is that true and simple ?
My question is using rom manager and install custom rom like that or i have to something extra.
Sorry about my english...
I don't have the phone yet, but i had redmi note 3 before and installing twrp was simply putting it in fastboot mode and using adb command "Flash recovery xxxxx.img" and you are set, considering you have an unlocked bootloader that is. then you follow the installing instructions given by the developer, usually (flash rom.zip followed by gapps.zip). But ofcourse i don't have the phone so take what i said as a refernce only and wait for someone else' reply. as of clockwork recovery, i think twrp is easier to use but there is generally no major diffrence.
Forgot Clockworkmod even existed. Have been using TWRP for ages.
cwm has reached end of support.
https://forum.xda-developers.com/showthread.php?t=2201860
use twrp
CWM is dead, twrp is one and only option otherwise there is also Red wolf recovery available.
Steps to install a custom Rom.
Unlock bootloader
Flash TWRP
Flash lazyflasher.zip, reboot
Now DL any Rom.zip and desired Gapps package
Boot into TWRP again
Backup (just incase)
wipe > advanced wipe > wipe everything except internal / SD card
Flash firmware.zip, if you're coming from marshmallow based Miui
Flash Rom.zip followed by Gapps
?? ¿
Profit