[Q][HELP!] Switching between AOSP and Stock Roms - Sony Xperia Z Ultra

Hi,
Im relatively new to the Z Ultra.
I have an unlocked bootloader, rooted phone.
Recently, I went from the stock ROM rooted to Paranoidandroid.
Now I have decided to go back to my stock Firmware. I have a Nandroid backup.
The issue is I am stuck inside a recovery from PA that does not want to restore my stock Sony ROM.
What is the best way for me to go from my AOSP ROM back to my Sony one via a restore in recovery?
Thanks.

ukjm2k said:
Hi,
Im relatively new to the Z Ultra.
I have an unlocked bootloader, rooted phone.
Recently, I went from the stock ROM rooted to Paranoidandroid.
Now I have decided to go back to my stock Firmware. I have a Nandroid backup.
The issue is I am stuck inside a recovery from PA that does not want to restore my stock Sony ROM.
What is the best way for me to go from my AOSP ROM back to my Sony one via a restore in recovery?
Thanks.
Click to expand...
Click to collapse
Is it just not showing the backup or does it give an error when trying to restore?

Well the recovery that comes with PA custom ROM, CWM v6.0.5.0 will not allow me to browse to the TWRP recovery location that was used to backup the Sony stock ROM, so I copied the backup to the CMW folder.
When trying to restore it prompts about missing MD5 sums for all the backup partitions, but when I say proceed anyway it gives an MD5 error.

Actually, here is the full error:
Checking md5....
No MD5 verification performed...
Erasing boot before restore...
Restoring boot image...
Error while flashing boot image...
Before trying the restore this stock ROM, should I be flashing a boot.img for stock ROM?
Where is this?
Thanks.

ukjm2k said:
Well the recovery that comes with PA custom ROM, CWM v6.0.5.0 will not allow me to browse to the TWRP recovery location that was used to backup the Sony stock ROM, so I copied the backup to the CMW folder.
When trying to restore it prompts about missing MD5 sums for all the backup partitions, but when I say proceed anyway it gives an MD5 error.
Click to expand...
Click to collapse
Okay I would make sure you still have a copy in the twrp folder and use FlashTool to flash a boot img. that has twrp recovery. It doesn't need to be compatible with PA as you won't be booting into ROM but booting straight to recovery to restore backup.
---------- Post added at 12:02 PM ---------- Previous post was at 11:59 AM ----------
ukjm2k said:
Actually, here is the full error:
Checking md5....
No MD5 verification performed...
Erasing boot before restore...
Restoring boot image...
Error while flashing boot image...
Before trying the restore this stock ROM, should I be flashing a boot.img for stock ROM?
Where is this?
Thanks.
Click to expand...
Click to collapse
Basically just need boot img. with twrp to restore with, it will be overwritten with whichever one you had when backup was made.

Got you!
Downloaded a kernel that had TWRP recovery, flashed the .img via Fastboot, then booted into TWRP, restored.
Thanks for the help, and sorry about the double post!

ukjm2k said:
Got you!
Downloaded a kernel that had TWRP recovery, flashed the .img via Fastboot, then booted into TWRP, restored.
Thanks for the help, and sorry about the double post!
Click to expand...
Click to collapse
You're welcome. Just glad it was an easy fix!

Yeah, I am too!
I'm new to all this flash.img flashing first, my last phone this wasnt needed.
Thanks again.

ukjm2k said:
Yeah, I am too!
I'm new to all this flash.img flashing first, my last phone this wasnt needed.
Thanks again.
Click to expand...
Click to collapse
It's not normally needed here either, just on odd occasions like this, or when you first need recovery

Related

[Q] Error trying to restore backup Clockwork

Hello there guys.
I've done a full backup with clockwork but if i try to restore it i get a error message about the boot image...i can't restore it. now i was able to restore system..data..and so on via advanced restore...i get no boot animation but the system is up an running. i can't get the wifi to work...what can i do now?
I used a clockwork 4.0.1.4 with root enabled..i flashed it whit Odin.
Thanks guys
forgot to mention I own a Galaxy S 2
Flash a clean stock rom as your backup is corrupt.
jje
Same issue
I took a full backup with CWM (4.0.0.2) to test a Kitchen ROM. After getting it to work I wanted to switch back to my standard ROM (CF-Root KE7), but it failed with the boot image ("error flashing boot image").
If the backup was corrupt I would expect the MD5 to fail, but it didn't. Like the OP I was able to restore all the other items one by one, which now gives me a Frankenstein ROM: KE7 with the Kitchen-selected Kernel (Ninphetamine) and baseband (KH1).
I'll flash a new stock ROM with CF-Root again, but I am doubting CWM now.

I think I softbricked my phone

So here is exactly what I did and I realize the error I made.
I had the Bootstrap CWM installed and I tried to install a non-Boostrap CWM ROM.
I wiped System/Data etc after I made a backup. Is there anyway to flash stock to the phone?
Castik said:
So here is exactly what I did and I realize the error I made.
I had the Bootstrap CWM installed and I tried to install a non-Boostrap CWM ROM.
I wiped System/Data etc after I made a backup. Is there anyway to flash stock to the phone?
Click to expand...
Click to collapse
If you have 2.3.4 you can restore via a RSD flash back to stock
What firmware were you running?
What ROM did you attempt to flash?

[Q] Trying to revert to stock

Hello! I'm new-ish here... As in I just opened an account to post after watching from the sidelines for a few months now.
Anyway,
I'm having problems with my phone. I was running ViperLTE 2.1.1 and recently switched to CyanogenMod. My sdcard wouldn't work correctly, so I tried to go back to stock, and my phone never made it past the "HTC" boot screen. I've tried reflashing and whatnot almost a dozen times, including restoring my nandroid backup, with no luck. Now I can't even access it via adb. What do I do?
Fastboot the stock boot image. The instructions are in the development section. Are you s off?
Sent from my Incredible 4G LTE using Tapatalk 2
MJL99 said:
Fastboot the stock boot image. The instructions are in the development section. Are you s off?
Sent from my Incredible 4G LTE using Tapatalk 2
Click to expand...
Click to collapse
I'm not s-off, and I have tried that multiple times, and at this point I can't get to adb or fastboot. I'm having trouble even accessing the bootloader.
EDIT: I got to the bootloader and adb/fastboot, but still flashing any boot image does nothing to fix the problem, and I'm still stuck at the htc screen.
19wolf said:
I'm not s-off, and I have tried that multiple times, and at this point I can't get to adb or fastboot. I'm having trouble even accessing the bootloader.
EDIT: I got to the bootloader and adb/fastboot, but still flashing any boot image does nothing to fix the problem, and I'm still stuck at the htc screen.
Click to expand...
Click to collapse
You are flashing the stock boot image right? From here for example.
Code:
fastboot flash boot boot.img
Are you installing a stock(-based) ROM or restoring a nandroid?
mdmower said:
You are flashing the stock boot image right? From [[Link removed because of new-user limits]] for example.
Code:
fastboot flash boot boot.img
Are you installing a stock(-based) ROM or restoring a nandroid?
Click to expand...
Click to collapse
Yeah. I'm repeatedly flashing the stock boot image and restarting, to no avail. According to the CyanogenMod forum, I need to install a stock-based ROM and then format my sdcard (to fix my initial problem)... and then restore my nandroid afterwards. At this point, it would be nice to just be able to restore the nandroid and have a phone that makes calls for a day-trip I'm going on tomorrow.
19wolf said:
Yeah. I'm repeatedly flashing the stock boot image and restarting, to no avail. According to the CyanogenMod forum, I need to install a stock-based ROM and then format my sdcard (to fix my initial problem)... and then restore my nandroid afterwards. At this point, it would be nice to just be able to restore the nandroid and have a phone that makes calls for a day-trip I'm going on tomorrow.
Click to expand...
Click to collapse
Just to check, after flashing the stock boot.img, you have installed a stock ROM or restored a stock-based ROM from a nandroid right (i.e. you're sure the backup is not from CyanogenMod)? The boot image alone isn't going to do anything. Also, depending on whether you were running Viper 1.x or 2.x, you need a different boot.img. The boot.img for Viper 1.x can be found here.
If restoring your nandroid backup doesn't work, freshly install Stock (or Viper).
mdmower said:
Just to check, after flashing the stock boot.img, you have installed a stock ROM or restored a stock-based ROM from a nandroid right (i.e. you're sure the backup is not from CyanogenMod)? The boot image alone isn't going to do anything. Also, depending on whether you were running Viper 1.x or 2.x, you need a different boot.img. The boot.img for Viper 1.x can be found here.
If restoring your nandroid backup doesn't work, freshly install Stock (or Viper).
Click to expand...
Click to collapse
I'll try that when I get to the computer, but do I need to use twrp or can I continue to use cwm? Also I can't access the sd card via my computer to put the rom onto it because it doesn't mount when I'm booted into recovery
19wolf said:
I'll try that when I get to the computer, but do I need to use twrp or can I continue to use cwm? Also I can't access the sd card via my computer to put the rom onto it because it doesn't mount when I'm booted into recovery
Click to expand...
Click to collapse
Either TWRP or CWM will work. There is a test version of CWM that enables USB mass storage support... but I haven't yet tested the feature under Windows.
I got it to work, via side-loading the zip and then flashing the boot.img. I don't know why I was having so many problems before... But they're better now. Thanks for your help

[Q] cannot resotre or flash from recovery

Hi,
I am new to this forum. I recently bought an E970, and rooted, unlocked it.
Then I tried to flash new 4.4 rom using recovery after wiping system, cache and data.
Unfortunately I get failed install. I then tried to restore my backup. Even that is failing. Please help.
I can still get into twrp recover 2.5..0.0
I tried: teenybin and LGNPST, still no change.
Any advise is welcome.
Milind Chitale
I think you'll need a more updated recovery to flash 4.4 ROMs. Try the one linked in post 360 of this thread:
http://forum.xda-developers.com/showthread.php?t=2426809
Put it on your external SD, flash it in recovery, then reboot back to recovery. Then try flashing the new ROM.
Sent from my LG Optimus G using Tapatalk
twrp latest -thanks for link
dandrumheller said:
I think you'll need a more updated recovery to flash 4.4 ROMs. Try the one linked in post 360 of this thread:
http://forum.xda-developers.com/showthread.php?t=2426809
Put it on your external SD, flash it in recovery, then reboot back to recovery. Then try flashing the new ROM.
Sent from my LG Optimus G using Tapatalk
Click to expand...
Click to collapse
HI
Thaks for the link to latest TWRP.
I flashed onto the latest TWRP, but still cannot get the recovery to install zip, or to restore my backup. Am trying again, and will let you know of the outcome soon.
Thanks once again.
Milind
thanks it worked, after I made a new back up and tried restoring. I gues the previous twrp backup may have been corrupt or something like that.

Question on Flashing a ROM

Been on the Samsung side of the street for the past four years so if it wasn't named after a accient Viking God then I'm lost However just a couple questions if I may: I am unlocked, rooted, recovery installed, & TA backed up however not real sure how the whole boot image flash works, does this need to be done everytime I go to flash a ROM? Also do I have to reflash recovery everytime I flash a ROM? just remember reading that somewhere, been trying to read all I can
nickfar2000 said:
Been on the Samsung side of the street for the past four years so if it wasn't named after a accient Viking God then I'm lost However just a couple questions if I may: I am unlocked, rooted, recovery installed, & TA backed up however not real sure how the whole boot image flash works, does this need to be done everytime I go to flash a ROM? Also do I have to reflash recovery everytime I flash a ROM? just remember reading that somewhere, been trying to read all I can
Click to expand...
Click to collapse
You only need to flash a boot image once to get the recovery going if you have a locked bootloader then this will have to be done, if it is unlocked as you have said then you do not need to do this again. The recovery should stay how it is. Some kernels that you can flash have twrp and usually cwm included, when you flash it you'll have access to both.
Cool, welcome!
The recovery is included in the kernel (boot.img), so it's automatically updated/flashed every time you install a ROM zip through recovery. The very first time you install a CM/AOSP/etc ROM, you may have to first flash the boot image through fastboot, like you said, to get a recovery compatible with the ROM. I think you only have to do this when going from stock based recovery to AOSP based recovery.
Oops, got beaten.
theinspector said:
You only need to flash a boot image once to get the recovery going if you have a locked bootloader then this will have to be done, if it is unlocked as you have said then you do not need to do this again. The recovery should stay how it is. Some kernels that you can flash have twrp and usually cwm included, when you flash it you'll have access to both.
Click to expand...
Click to collapse
Not quite correct but close
You have installed recovery (dual by [NUT]?). most ROMs are completable with both twrp and cwm. Just flash the zip for the rom (after making a backup. choose the recovery that is in the ROM*). if this fails then you can flash the boot.img from the zip with adb/fastboot (fastboot flash boot <boot_img_name>). most ROMs only contain one recovery
* CM based normally have cwm. Slim, omni, candy all use twrp from memory
Okay thanks guys very much appreciated, so if I'm understanding you correctly then I don't need to flash any "boot images" becuase I am already unlocked and on a non stock recovery(dual recovery by NUT) becuase the "boot image" is just the recovery? So since I already have nuts dual recovery then I should be good to
Enter TWRP
Nandroid, Wipe
Flash CM 11+Gapps
Reboot
???
If not correct please let me know, sorry just trying to make sure I'm understanding this correctly, and if not then my ass needs to go read some more ;+)
nickfar2000 said:
Okay thanks guys very much appreciated, so if I'm understanding you correctly then I don't need to flash any "boot images" becuase I am already unlocked and on a non stock recovery(dual recovery by NUT) becuase the "boot image" is just the recovery? So since I already have nuts dual recovery then I should be good to
Enter TWRP
Nandroid, Wipe
Flash CM 11+Gapps
Reboot
???
If not correct please let me know, sorry just trying to make sure I'm understanding this correctly, and if not then my ass needs to go read some more ;+)
Click to expand...
Click to collapse
boot.img is the kernel (and ramdisk etc) + recovery
If you are going to flash CM the do it from cwm as then the nandroid backup can be flashed from the recovery that cm uses. other than that you are about right (wipe both caches and /data, dont wipe /system. the ROM will take care of this)

Categories

Resources