Reverting to Stock from Custom ROM - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

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.

Related

[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

[Q] General questions before going from stock to custom

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

Reverting back to MiUi

Hello guys,
Today i am going to unlock (Official way) my device and going to try AOSP 5.1.1 V4.
My doubt is
1) If i want to revert back to Miui, If i use fastboot rom and flash full rom, will this make my bootloader locked again.
2) If i flash miui recovery rom using twrp without modified boot.img and i dont want twrp and revert back to default miui recovery how to do so.....
3) If i change to miui recovery after flashing recovery rom with twrp do i again need to flash modified boot.img.
I suggest to make full recovery image of original miui. After clean install with full wipe i had problems with unlocking phone.
asrupesh said:
1) If i want to revert back to Miui, If i use fastboot rom and flash full rom, will this make my bootloader locked again.
2) If i flash miui recovery rom using twrp without modified boot.img and i dont want twrp and revert back to default miui recovery how to do so.....
3) If i change to miui recovery after flashing recovery rom with twrp do i again need to flash modified boot.img.
Click to expand...
Click to collapse
1) Yes
2) You cant, you will need TWRP, modded boot.img & MIUI ROM else it will bootloop
3) Yes

Sony Z2 Help

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!

Help ! simple query regarding flashing stock firmware

I have only ever flashed the following after rooting..
1)twrp
2)super su (later unSU.zip-ed)
3)cm-13.0-20170116-SNAPSHOT-ZNH5YAO3Y9-condor.zip
4)lineage-13.0-20170621-STABLE-condor.zip
5)magisk
so..
do i need to flash stock firmware or stock rom using Retail Dual-SIM (Asia | World) 5.1 ROM (Untouched) (459mb)
if i use stock firmware.. ( referring to guide )
1) as i have never made modifications to radio/modem do i need to "flash modem NON-HLOS.bin"
2)as mentioned here
"WARNING: Flashing a Firmware Image is not a safe way to downgrade. Avoid flashing 'motoboot.img."
do i need to flash motoboot.img
3) i have twrp as recovery i would want it to remain so if possible in stock rom ... do i need to flash "flash recovery recovery.img"
THANKS.. any help is really appreciated.:angel:
shdxda said:
I have only ever flashed the following after rooting..
1)twrp
2)super su (later unSU.zip-ed)
3)cm-13.0-20170116-SNAPSHOT-ZNH5YAO3Y9-condor.zip
4)lineage-13.0-20170621-STABLE-condor.zip
5)magisk
so..
do i need to flash stock firmware or stock rom using Retail Dual-SIM (Asia | World) 5.1 ROM (Untouched) (459mb)
if i use stock firmware.. ( referring to guide )
1) as i have never made modifications to radio/modem do i need to "flash modem NON-HLOS.bin"
2)as mentioned here
"WARNING: Flashing a Firmware Image is not a safe way to downgrade. Avoid flashing 'motoboot.img."
do i need to flash motoboot.img
3) i have twrp as recovery i would want it to remain so if possible in stock rom ... do i need to flash "flash recovery recovery.img"
THANKS.. any help is really appreciated.:angel:
Click to expand...
Click to collapse
1. See you can surely flash stock firmware there is no Risk unless and until you flash 4.4.2 and update it to 4.4.4 if you do it you'll most probably HardBrick your phone so my recommendation is to flash 4.4.4 or 5.1 and never update your phone via updater...
2. And yes you'll have to flash Twrp.img after flashing stock firmware as flashing firmware change your recovery to stock.
3. Yup motoboot.img is needed to flash.
4. Refer to the batch file I've attached.

Categories

Resources