Doubts for Moving to AOSP/CM - Xperia Z2 Q&A, Help & Troubleshooting

Hello All
i recently rooted my Z2 by downgrade method, thinking about moving to CM12 or PA as soon a stable build is released but have some doubts in that area.
1- if i make a nadroid backup through the dual recovery i have now and later after unlocking the bootloader and flashing a differnet recovery and ROM if i restore the old backup will my bootloader be locked automatically?
2- can i use my dual recovery to install a CM ROM( after a clean wipe of current system of course)?
3- i have read about people having problems after installing recovery after flashing a CM ROM, and i havnt really found a coherent answer for that in all the forums that i follow. can anyone give a proper method of how to flash a recovery after the ROM so that i can restore my backup just in case?
4- if my nandroid backup does not relock my bootloader than does restoring my TA backup relocks it?
5- if after flashing a CM or AOSP Rom i try flashing a stock based ROM like existenz or MoonWalker can i restore my TA Backup on dat? will that in anyway affect the root capability of my device? will this relock the bootloader?
Sorry for a list of questions. have only worked with locked bootloader till now and not really handy with sony devices. have only been few months since i got it.

Anybody?

kunaltyagii said:
Anybody?
Click to expand...
Click to collapse
Your questions are vague and can really depend on what rom you flash and what you do . General answers are below:
1 - No.
2- Yes.
3- commands are
fastboot flash recovery recovery.img
Or
fastboot flash boot boot.img
Really depends on what recovery and if it's included in the boot.img.
4- Yes
5- yes. You can relock an any stock based ROM.
It shouldn't. Bootloader and root aren't related at all.
Yes

Related

[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

DRM mysteries

HI guys,
After being a sammy boy for years, Sony's android development is still a deep forest for me with all its bootloaders and secret keys.
I've got a rooted 5.0.2 with twrp recovery and just read somewhere, that this is enough to flash a pre-rooted 5.1. Is this true? No unlocking of the BL nor putting the DRM keys at risk?
Have a nice day!
If the "pre-rooted" 5.1 zip is all stock and has stock kernel, then you're good to go. Custom kernel and custom ROM requires unlocking the bootloader.
All you have to do is, go on TWRP recovery, wipe everything and flash that "pre-rooted" STOCK zip WITHOUT exiting TWRP after the wipe.
@Koostis
V4LKyR said:
If the "pre-rooted" 5.1 zip is all stock and has stock kernel, then you're good to go. Custom kernel and custom ROM requires unlocking the bootloader.
All you have to do is, go on TWRP recovery, wipe everything and flash that "pre-rooted" STOCK zip WITHOUT exiting TWRP after the wipe.
@Koostis
Click to expand...
Click to collapse
So as long as the bootloader stays locked, my DRM keys are safe? And flashing a rom through recovery will not unlock a bootloader in any way?
Koostis said:
So as long as the bootloader stays locked, my DRM keys are safe? And flashing a rom through recovery will not unlock a bootloader in any way?
Click to expand...
Click to collapse
Nay.

KII-Lxx Models

Hi i have a GR5 KII-L33 model (single sim), can i use any rom for kiw-l21, l22, etc. (CM13 and others)?
do i need to do extra steps? i dont want to brick my phone :silly:
Hey
make sure that you take full stock backup before flashing the ROM
use fastboot boot twrp.img to run twrp without replacing stock recovery then backup everything
after that you can flash twrp with normal command then flash cm
after flashing the ROM, you need to follow these steps here, to get your single sim working
I answered you in cm thread and here to talk more [emoji14]
And yes you can use any CM/AOSP Roms, don't mess around with stock roms
Sent from my KIW-L21 using Tapatalk
AL_IRAQI said:
Hey
use fastboot boot twrp.img to run twrp without replacing stock recovery then backup everything
after that you can flash twrp with normal command then flash cm
Click to expand...
Click to collapse
hi, just curious about the backup everything.
does TWRP backup our stock recovery partition? because you said that we have to boot twrp then backup everything. i wonder if we restore using twrp, will our old/original recovery return? i know that we can use update.app to restore stock recovery and rom.
i am new to this huawei device since i've been using htc one x and did flash custom rom also twrp. but my device is KII-L22 and keen to flash crpalmer's CM.
thanks.

Note 3 [SD] came with unlocked Bootloader

Hey all!
I just got my Note 3 (Snapdragon/Kenzo) from DX and it came with global US rom. I checked and its bootloader is already unlocked. I want to update to Miui 8 global dev but I'm worried with this unlock, is there a way to know if it was officialy or unnoficialy unlocked? I want to flash the oficial recovery rom but heard that it can brick the phone if it was unnoficialy unlocked.
link: http://www.dx.com/p/432294
It came with Miui 7.3 Stable (7.3.2.0.0 LHOCNDD)
Please, help. =)
Hazihell said:
It came with Miui 7.3 Stable (7.3.2.0.0 LHOCNDD)
Click to expand...
Click to collapse
That is a vendor rom.
More than likely it is unofficially unlocked, because your only allow to unlock 1 device per month for each account.
Since your bootloader is unlocked, flash an official rom (which might lock the bootloader again).
Don't flash the latest 6.0.1 rom yet as you might not be able unlock with that.
Then unlock officially.
Check the reddit xiaomi wiki for guides.
Got it! Thanks, for your answer. I realy dont mind unlocking, I just want a miui 8 dev(it has a built in root, right?). I just was afraid of what method of flashing I should use with this unnoficialy unlocked bootloader. I'm going to search this wiki for it.
And better do a Alka TWRP backup now, before anything! Then, if you get your bootloader locked, you can always restore the backup to your current status - ROM and unlocked bootloader. I have two Kenzos in the same situation, and that's the way I do it.
Nice! Will do. Can't I just use that recovery to install an updated rom? There is an annoying bug on this version, I can't open my contact or dialer app, they close befero they appear on screen, tried erasing data but no help.
Boot from TWRP without installing it, make the backup (all partitions), then make sure you get the backup on your PC. After that you can install TWRP and make whatever you wish.
And don't forget, if you need to restore, do it without restoring the firmware partition, or else you'll get an error.
Thansk! But I think I will stick with the global dev. Can I flash it via Fastboot (MiFlash)? This unnoficial unlock wont cause any trouble, right ?
This is not an unofficial unlock. Is isn't either official
My phones came with some vendor MIUI's - 7.4.9.0(LHOCNDD), respectively 7.4.18.0(LHOMIDD), but I never flashed another MIUI, just custom ROMs. For what I know, if you flash via fastboot it will wipe the entire partition structure, including boot and recovery, and the bootloader will get locked. In that case you can not restore the backup you make now. You'll have to apply for official unlocking, or go unofficial.
Hazihell said:
Hey all!
I just got my Note 3 (Snapdragon/Kenzo) from DX and it came with global US rom. I checked and its bootloader is already unlocked. I want to update to Miui 8 global dev but I'm worried with this unlock, is there a way to know if it was officialy or unnoficialy unlocked? I want to flash the oficial recovery rom but heard that it can brick the phone if it was unnoficialy unlocked.
link: http://www.dx.com/p/432294
It came with Miui 7.3 Stable (7.3.2.0.0 LHOCNDD)
Please, help. =)
Click to expand...
Click to collapse
that means.. you recieved an unboxed device, may be refurbished, repacked and resealed and sold $25 costlier than the original. :silly:
Not necessarily. I have two, buyed from a local big online store, both came with unlocked bootloader. Both boxes were sealed, with no sign of foreign hands
I have 7.3.2.0.0 LHOCNDD rom and unlocked bootloader. Can I just type on fastboot:
fastboot flash recovery recoveryAlkaUpdate.img
to get twrp(alka)?
Thats work!
paul_damian said:
This is not an unofficial unlock. Is isn't either official
My phones came with some vendor MIUI's - 7.4.9.0(LHOCNDD), respectively 7.4.18.0(LHOMIDD), but I never flashed another MIUI, just custom ROMs. For what I know, if you flash via fastboot it will wipe the entire partition structure, including boot and recovery, and the bootloader will get locked. In that case you can not restore the backup you make now. You'll have to apply for official unlocking, or go unofficial.
Click to expand...
Click to collapse
I have the same MIUI vendor as you, 7.4.9.0(LHOCNDD), what method did you use to install TWRP? I only want to install AOSP/CM based ROM on this device. I want to flash it ASAP cause this MIUI ROM have a Trojan downloader, which luckily can be disabled.
I used Cofface on first phone, Alka on the second. Before flashing, first boot from TWRP image, make backup of all partitions to the SD card, copy the backup on computer, and only after that flash the TWRP image. After that... flash ROMs
paul_damian said:
I used Cofface on first phone, Alka on the second. Before flashing, first boot from TWRP image, make backup of all partitions to the SD card, copy the backup on computer, and only after that flash the TWRP image. After that... flash ROMs
Click to expand...
Click to collapse
I followed a tutorial that uses ZXC TWRP while on MIUI. Then I flashed ALKA, I'm on Nexus Experience now.

Plszz help need to solve my confusionss.

My little beast is just 20 days old i was sony user back then.. in sony there when i want to root i use kingroot and its do my work without bootloops and anything like that... And when i want to unlock bootloader it just i want to backup my drm keys and restore then and relock bootloader when i want to my warranty..
Now i have redmi
I'm soo confused
What i need
1. I need root to delete blots that i don't use...
2.i want to try custom roms
3.i don't want to void my warranty.
4.i want to update to marshmallow miui how i can do
I hope your guys will help me
Grajatyadav said:
My little beast is just 20 days old i was sony user back then.. in sony there when i want to root i use kingroot and its do my work without bootloops and anything like that... And when i want to unlock bootloader it just i want to backup my drm keys and restore then and relock bootloader when i want to my warranty..
Now i have redmi
I'm soo confused
What i need
1. I need root to delete blots that i don't use...
2.i want to try custom roms
3.i don't want to void my warranty.
4.i want to update to marshmallow miui how i can do
I hope your guys will help me
Click to expand...
Click to collapse
In Xiaomi you there isn't any TA partition so you don't have to worry about DRM keys. You can simply unlock bootloader and fastboot flash TWRP recovery and SuperSU binary via recovery to get root access.
I recommend you to unlock bootloader and flash zcx recovery and create a full nandroid backup before mounting system partition. This way you have a complete backup of the current state and you can return to it at any time.
You can install any custom ROM via recovery.
Unlocking bootloader won't void the warranty.
If you want to use marshmallow you can either flash beta MIUI ROM with/without unlocking bootloader or unlock the bootloader and flash a MM based ROM via recovery.
You can return to factory state at any time by either flashing MIUI fastboot ROM via EDL mode on locked/unlocked bootloader or by flashing fastboot ROM via fastboot mode on unlocked bootloader.
BlueJeans said:
In Xiaomi you there isn't any TA partition so you don't have to worry about DRM keys. You can simply unlock bootloader and fastboot flash TWRP recovery and SuperSU binary via recovery to get root access.
I recommend you to unlock bootloader and flash zcx recovery and create a full nandroid backup before mounting system partition. This way you have a complete backup of the current state and you can return to it at any time.
You can install any custom ROM via recovery.
Unlocking bootloader won't void the warranty.
If you want to use marshmallow you can either flash beta MIUI ROM with/without unlocking bootloader or unlock the bootloader and flash a MM based ROM via recovery.
You can return to factory state at any time by either flashing MIUI fastboot ROM via EDL mode on locked/unlocked bootloader or by flashing fastboot ROM via fastboot mode on unlocked bootloader.
Click to expand...
Click to collapse
Thanks.. for replying.. now some confusion are sortedout...
One thing more.. i juts want to delete some bloatware can i just root my phone with kingroot and delete them from system and enjoy miui stble latest version as I'm new i want to use miui more and Don't need recovery and all as of now. I hope help..
I just need to root for blot remove and usibg greenyfy and some more apps and i just need do simple step
Grajatyadav said:
Thanks.. for replying.. now some confusion are sortedout...
One thing more.. i juts want to delete some bloatware can i just root my phone with kingroot and delete them from system and enjoy miui stble latest version as I'm new i want to use miui more and Don't need recovery and all as of now. I hope help..
I just need to root for blot remove and usibg greenyfy and some more apps and i just need do simple step
Click to expand...
Click to collapse
I won't recommend you to use kingroot to root the device due to following reasons:
1) I don't trust these shady chinese closed source apps that relies on software vulnerability.
2) If you've rooted by any method without unlocking bootloader you won't be able to flash "incremental" OTA updates as it verifies system partition before flashing. However, you should be able to flash MIUI full recovery ROM that'll overwrite the whole image without verifying for the changes. Unlike OTA it's usually about 1.2GB in size. There's another method to flash OTA without system image verification which involves removal of a few lines from updater-script but I haven't tested it yet on stock recovery.
BlueJeans said:
I won't recommend you to use kingroot to root the device due to following reasons:
1) I don't trust these shady chinese closed source apps that relies on software vulnerability.
2) If you've rooted by any method without unlocking bootloader you won't be able to flash "incremental" OTA updates as it verifies system partition before flashing. However, you should be able to flash MIUI full recovery ROM that'll overwrite the whole image without verifying for the changes. Unlike OTA it's usually about 1.2GB in size. There's another method to flash OTA without system image verification which involves removal of a few lines from updater-script but I haven't tested it yet on stock recovery.
Click to expand...
Click to collapse
So now i will first officialy unlock bootloader then twrp and super su then i will make a full backup now more questions
If i flash CyanogenMod and in case i want to back to miui then how i will do that and also how i can install miui marshmallow beta and will you suggest me???
Thank you soo much budy u are helping me soo much
Grajatyadav said:
So now i will first officialy unlock bootloader then twrp and super su then i will make a full backup now more questions
If i flash CyanogenMod and in case i want to back to miui then how i will do that and also how i can install miui marshmallow beta and will you suggest me???
Thank you soo much budy u are helping me soo much
Click to expand...
Click to collapse
1) If you want to revert back to MIUI from CyanogenMod, restore nandroid backup. But make sure to backup every partition in TWRP recovery first before any modification. And don't allow system modification on the first boot to recovery. Firstly, create a full backup and then you can flash whatever ROM you like. In case you want to switch back, restore the full backup except "firmware" partition. I suggest you to use zcx recovery. You can find more about it in the xda thread.
2) If you don't have a TWRP backup, you can revert to stock ROM by flashing MIUI fastboot ROM via pc in fastboot mode. You can do the same in EDL mode but it'll wipe everything including internal storage.
3) If you want to install MIUI beta ROM based on MM, you can do that both on a locked and unlocked bootloader. Go to en.miui.com and download the latest beta ROM, put it on your internal storage and use the updater app to install it.
4) If you do the step (3) and want to revert back to MIUI stable based on LP, then you'll face sim detection issue which can be fixed by flashing modem (NON-HLOS.bin) of the same stable ROM via fastboot on unlocked bootloader. This is a bug from Xiaomi side.
5) You can use MIUI beta ROM, actually it's more stable than MIUI stable ROM and most people prefer it over stable.
Hope that helps
BlueJeans said:
1) If you want to revert back to MIUI from CyanogenMod, restore nandroid backup. But make sure to backup every partition in TWRP recovery first before any modification. And don't allow system modification on the first boot to recovery. Firstly, create a full backup and then you can flash whatever ROM you like. In case you want to switch back, restore the full backup except "firmware" partition. I suggest you to use zcx recovery. You can find more about it in the xda thread.
2) If you don't have a TWRP backup, you can revert to stock ROM by flashing MIUI fastboot ROM via pc in fastboot mode. You can do the same in EDL mode but it'll wipe everything including internal storage.
3) If you want to install MIUI beta ROM based on MM, you can do that both on a locked and unlocked bootloader. Go to en.miui.com and download the latest beta ROM, put it on your internal storage and use the updater app to install it.
4) If you do the step (3) and want to revert back to MIUI stable based on LP, then you'll face sim detection issue which can be fixed by flashing modem (NON-HLOS.bin) of the same stable ROM via fastboot on unlocked bootloader. This is a bug from Xiaomi side.
5) You can use MIUI beta ROM, actually it's more stable than MIUI stable ROM and most people prefer it over stable.
Hope that helps
Click to expand...
Click to collapse
Thnk you soo much bro

Categories

Resources