How to root with UBL - Xperia Z2 Q&A, Help & Troubleshooting

I have my Z2 with Stock ROM and UBL, I want a custom Recovery to flash Cyanogenmod or any custom ROM, how I can get it? Can I flash the TWRP FOTA image by fastboot ? (I tried do it but on CWM only says "waiting for device" what I'm missing?) Please help. TIA

Duilio Patiño said:
I have my Z2 with Stock ROM and UBL, I want a custom Recovery to flash Cyanogenmod or any custom ROM, how I can get it? Can I flash the TWRP FOTA image by fastboot ? (I tried do it but on CWM only says "waiting for device" what I'm missing?) Please help. TIA
Click to expand...
Click to collapse
Have you searched? These seem like fairly basic questions. Possibly questions that may have been answered in a kernel thread, recovery thread and a cm12 thread.

Search before post dude !
Use fastboot in flashtool, how ?
Use search button
Sent From Somewhere On Earth With My Z2 ^^

Ok I finally flashed the recovery TWRP but cannot join to recovery I press the vol+ when phone is booting but it simply bott normally

You need a custom kernel, try flashing Advanced Stock Kernel by AndroPlus
Pressing Power key during boot will tell the kernel to load fotakernel(recovery)

This one? http://forum.xda-developers.com/showthread.php?t=3005894 that Kernel includes a Recovery? I only want flash a custom ROM (no stock) and forget Stock

Duilio Patiño said:
This one? http://forum.xda-developers.com/showthread.php?t=3005894 that Kernel includes a Recovery? I only want flash a custom ROM (no stock) and forget Stock
Click to expand...
Click to collapse
Well flash this so you can use fotakernel so you can use fotakernel to flash a custom rom

Thanks, I'll flash the Advanced Stock Kernel and later I'll try to install Cyanogenmod or Resurrection Remix, hope it works.

Related

[Q] Flashing latest TWRP - Help needed!

Hi,
Currently I have NUT's dual recovery installed. Trying to install the latest TWRP 2.8 following TWRP's website, fails everytime. I know the Xperia recoveries are different from other devices.
I have a locked device. Is there a way to get the new recovery onto my Z2? Even from flashing from the current recovery maybe?
Regards,
B
No, custom kernel/recovery requires unlocked bootloader, you'll have to unlock or wait for nut to update dual recovery
Sent from my Xperia Z2 using Tapatalk
But after flashing monxDified I had 2.8. When I wanted to use eXistenz, I went back to stock and flashed Dual recovery again
Flashing TWRP
Sorry to hijack the thread but I have a related question.
I'm running Doomlords CWM recovery and .402, unlocked and rooted. I'd like to update to TWRP. All of the guides I've found on flashing TWRP assume you don't already have a custom recovery. Do you suppose I could just install TWRP through TWRP Manager over the existing CWM? Would I need to flash a new kernel patched version of the stock ROM that supports TWRP?
Thanks in advance.
No issues so far running the teamwin recovery on LB.
Puffin617 said:
But after flashing monxDified I had 2.8. When I wanted to use eXistenz, I went back to stock and flashed Dual recovery again
Click to expand...
Click to collapse
MonxDified includes 2.8 with his rom if you must run 2.8 now find a rom with it included otherwise wait for Dual recovery to be updated.
ghostofcain said:
MonxDified includes 2.8 with his rom if you must run 2.8 now find a rom with it included otherwise wait for Dual recovery to be updated.
Click to expand...
Click to collapse
If TWRP can be flashed from Recovery with a ROM, surely it must be able to flash TWRP on its own???
Puffin617 said:
If TWRP can be flashed from Recovery with a ROM, surely it must be able to flash TWRP on its own???
Click to expand...
Click to collapse
NO, Z2 doesn't have a separate recovery partition therefore, as I understand it, recovery needs to be flashed as part of the kernel.
ghostofcain said:
NO, Z2 doesn't have a separate recovery partition therefore, as I understand it, recovery needs to be flashed as part of the kernel.
Click to expand...
Click to collapse
But the kernel does not get flashed on a locked bootloader as far as I know???
Puffin617 said:
But the kernel does not get flashed on a locked bootloader as far as I know???
Click to expand...
Click to collapse
Yes you are correct, looking into it further, with locked bootloader the recovery is actually located in /system/bin therefore some magic involved in booting recovery, but my point stands in that the recovery has to be modified from standard to be bootable from its non standard locale.

[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

About recovery mode

Does a ROOTED Z2 has already a STOCK RECOVERY?(sorry for noob and if it does can I use the STOCK RECOVERY in flashing a COSTUM ROM like MOONWALKER or EXISTENZ roms? and if not, how about flashing a DUAL RECOVERY using the STOCK RECOVERY is it possible?!
because I have a problem with my USB OTG it is not working...can't be detected by PC..
mcjez15 said:
Does a ROOTED Z2 has already a STOCK RECOVERY?(sorry for noob and if it does can I use the STOCK RECOVERY in flashing a COSTUM ROM like MOONWALKER or EXISTENZ roms? and if not, how about flashing a DUAL RECOVERY using the STOCK RECOVERY is it possible?!
because I have a problem with my USB OTG it is not working...can't be detected by PC..
Click to expand...
Click to collapse
If you want to flash a custom Rom you need a custom recovery like CWM or TWRP.
Like NUTs Dual Recovery: http://forum.xda-developers.com/showthread.php?t=2261606
If you have an unlocked Bootloader you can flash any boot.img which includes a custom recovery.
Mikey94 said:
If you want to flash a custom Rom you need a custom recovery like CWM or TWRP.
Like NUTs Dual Recovery: http://forum.xda-developers.com/showthread.php?t=2261606
If you have an unlocked Bootloader you can flash any boot.img which includes a custom recovery.
Click to expand...
Click to collapse
Sir how do i know if i have a locked or unlocked bootloader?

Change of custom kernel and installation of new recovery

Hi xda!
I have a Z5C and i was tired of sonys laggy version of Android so I decided to install zombie kernel with twrp as backup.
The kernel works brilliant but I can only boot to recovery with help from fastboot. I would like to be able to boot to recovery directly from my phone without the use of fastboot/PC..
I also have a z4 tablet with Androplus kernel with twrp recovery.. And I am able to boot directly from the tablet to recovery.
So I decided to install Androplus and twrp for my z5c. I tried to install twrp through twrp and it looked like it was installed... However still not able to boot to recovery without fastboot. Then I tried to install with fastboot and I got an error - picture attached.
When I look under "about phone" the phone tells me that I'm still using the old zombiekernel??
How do I get Androplus kernel and working twrp installed on my z5c?
Thanks in advance
asl0501 said:
Hi xda!
I have a Z5C and i was tired of sonys laggy version of Android so I decided to install zombie kernel with twrp as backup.
The kernel works brilliant but I can only boot to recovery with help from fastboot. I would like to be able to boot to recovery directly from my phone without the use of fastboot/PC..
I also have a z4 tablet with Androplus kernel with twrp recovery.. And I am able to boot directly from the tablet to recovery.
So I decided to install Androplus and twrp for my z5c. I tried to install twrp through twrp and it looked like it was installed... However still not able to boot to recovery without fastboot. Then I tried to install with fastboot and I got an error - picture attached.
When I look under "about phone" the phone tells me that I'm still using the old zombiekernel??
How do I get Androplus kernel and working twrp installed on my z5c?
Thanks in advance
Click to expand...
Click to collapse
To boot to recovery in the z5c you gotta pudg the volume up while booting over and over until you see the notification LED go red-yellow-orange
Once you're in recovery you could restore your old kernal if you made s bsckup
I know... But that is not working. The only way i can get it to boot is with fastboot. What to do?
asl0501 said:
I know... But that is not working. The only way i can get it to boot is with fastboot. What to do?
Click to expand...
Click to collapse
Try flash tool to push anew kernel maybe.I've never done it but from what j have read, download your firmware from xperia firmware and use flash tool to only flash kernel.
You need to use fastboot to flash the boot.img to the phone and then do the same for recovery.img. It will then work with androplus kernel and twrp.
Thats my setup currently.
spikeyhair said:
You need to use fastboot to flash the boot.img to the phone and then do the same for recovery.img. It will then work with androplus kernel and twrp.
Thats my setup currently.
Click to expand...
Click to collapse
Sorry to resurect this old thread. Can you or anyone provide a boot.img or how to go about creating one? I am in same situation (stuck at boot screen) and only have access to fastboot. Thanks.
For which version of rom? I can give you 32.0.A.200 boot.img and twrp recovery.
Are you sure you're clicking volume up when booting? It doesn't work when you hold the volume up button down.
If y'all go to the twrp thread there is a modified boot.IMG that allows booting to recovery now.

How to flash paranoid rom 6.0.2

Hello guys
I was on stock android and stock recovery oos 3.1.3. I tried to change recovery using fastboot so i tried so many recovries, but unable to flash anyone then i found twrp recovery by teamspark so i flashed it and successfully done, but problem with it is, i am not able toh flash paranoid rom and stock rom using this recovery and even the stock recovery is also not flashable now, just stuck on logo whenever i flash stock recovery. So which recovery i can use which can correctly flashable and i can flash paranoid rom by that successfully.
Thanks in advance.
Flash old stock recovery followed by any OOS 2.X.X firmware . Now you can proceed with PA. Note dont use any of the twrp's designed for mm bootloader.
Rajatdembla said:
Hello guys
I was on stock android and stock recovery oos 3.1.3. I tried to change recovery using fastboot so i tried so many recovries, but unable to flash anyone then i found twrp recovery by teamspark so i flashed it and successfully done, but problem with it is, i am not able toh flash paranoid rom and stock rom using this recovery and even the stock recovery is also not flashable now, just stuck on logo whenever i flash stock recovery. So which recovery i can use which can correctly flashable and i can flash paranoid rom by that successfully.
Thanks in advance.
Click to expand...
Click to collapse
First of all, you have to downgrade your bootloader. Then you can flash any recovery for the old bootloader.
Thanks i m done now
Exodusche said:
Flash old stock recovery followed by any OOS 2.X.X firmware . Now you can proceed with PA. Note dont use any of the twrp's designed for mm bootloader.
Click to expand...
Click to collapse
Thank you so much brother now i m able to flash.

Categories

Resources