[Q] Bootloader unlock required for TWRP flash? - Android Q&A, Help & Troubleshooting

Hi guys,
So I have an Xperia Z2 running the rooted stock 4.4.4 firmware. I just did a Nandroid backup and am feeling adventurous. My bootloader is locked, as it's possible to root the Z2 without unlocking it. I found out about the CM12 nightly 5.0 ROM and was wondering, if I flash that through TWRP (which I currently have installed), do I have to unlock my bootloader? Or do I not since I'm already this far in without unlocking it? And I'm correct to assume if I restore my Nandroid backup that restores my old ROM right?

Related

[Q] Any working recovery for locked/rooted 4.2 SGP312 atm ?

Hi, just received a 4.1 SGP312 today, rooted with DooMLoRD_Easy-Rooting-Toolkit then updated too 4.2 via OTA after moving supersu to /system --> root is still there.
Now i would like to install a custom recovery and after reading all the treads concerning recovery i'm lost : is there any recovery woking atm for a 4.2 rom on locked bootloader for a SGP312 ?
ibis69 said:
Hi, just received a 4.1 SGP312 today, rooted with DooMLoRD_Easy-Rooting-Toolkit then updated too 4.2 via OTA after moving supersu to /system --> root is still there.
Now i would like to install a custom recovery and after reading all the treads concerning recovery i'm lost : is there any recovery woking atm for a 4.2 rom on locked bootloader for a SGP312 ?
Click to expand...
Click to collapse
Maybe someone will correct me on this, but I thought recovery required a non-stock kernel, and insralling a non-stock kernel requires the boot loader to be unlocked. So, you can't have recovery on a locked bootloader with stock ROM.
ibis69 said:
Hi, just received a 4.1 SGP312 today, rooted with DooMLoRD_Easy-Rooting-Toolkit then updated too 4.2 via OTA after moving supersu to /system --> root is still there.
Now i would like to install a custom recovery and after reading all the treads concerning recovery i'm lost : is there any recovery woking atm for a 4.2 rom on locked bootloader for a SGP312 ?
Click to expand...
Click to collapse
Nope, if you want a custom recovery you'll need to unlock your bootloader. In case you wan't to keep your DRM keys nad relock bootloader afterwards, backup you TA partition, unlock your boot loader, flash 4.2.2 kernel with custom recovery ('https://mega.co.nz/#!vV8QHKaI!Zpxtii1zictYur7sVOVRVVk0lR8tdIDOSmaDQkL8QDk'), flash root from recovery and finally reflash your TA partition which also relocks your bootloader.

Doubts for Moving to AOSP/CM

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

Firmware =/= Rom?

Hi guys,
a workmate has a htc one m8 and i flashed his device, but i had to read a lot of sh*t to understand how htc Roms for example work.
You need to flash the correct firmware to the ROM. (When you want a LP Rom, you need a LP Firmware from HTC).
Why is this not needed on sony devices? Is the firmware inside the ROM? I can freely flash from 4.4.2 to 5.0.1 to 5.1 and back to 4.4.4 without any problems.
Also we don't have any "radio roms" or "modems" i think?
How is this working at sony devices? Thanks for your answeres
1. xperias have something called drm keys which have some xperia functions work and also state your warrenty, unlocking your bootloader will wipe your drm keys (which are in your TA partition) and this will void your warrenty
2. xperias are quite easy
-unlock bootloader
-flash recovery
-flash kernel (thats supports fota (= recovery)
use that to flash any rom you want
or if you want to keep drm keys and all, downgrade, root, backup TA and upgrade and rooting just before
or if you want to keep it stock then downgrade, root and recovery then upgrade and flash root before upgrating recovery

Questions regarding bootloader relock

So, I had my bootloader unlocked back when I was in kitkat (unsure whether I had version 4.4.2 or 4.4.4), but I had backed up my ta partition in case I wanted to relock the bootloader.
Fast forward to today, I am on lollipop (version 5.1.1) and I want to relock my bootloader. Note that I am on stock kernel.
Obviously enough, I have to restore my ta backup.
But I have some questions.
1)Do I have to downgrade to the android version the phone had when I took the ta backup, or I can simply flash the ta backup on my current android version?
2)During this procedure, does anything (such as data) get wiped?
3) Will I lose recovery during this procedure?
Mokiwipeout said:
So, I had my bootloader unlocked back when I was in kitkat (unsure whether I had version 4.4.2 or 4.4.4), but I had backed up my ta partition in case I wanted to relock the bootloader.
Fast forward to today, I am on lollipop (version 5.1.1) and I want to relock my bootloader. Note that I am on stock kernel.
Obviously enough, I have to restore my ta backup.
But I have some questions.
1)Do I have to downgrade to the android version the phone had when I took the ta backup, or I can simply flash the ta backup on my current android version?
2)During this procedure, does anything (such as data) get wiped?
3) Will I lose recovery during this procedure?
Click to expand...
Click to collapse
1. no
2. shouldent be
3. if you are using recovery for locked bootloader then no

Restore Stock with Twrp - mate 10

Hello,
I've unlocked and installed twrp. for now, i want to sell the phone, can i restore stock with lock and boot-loader with Twrp?
otherwise, any easy way?
Thanks.

Categories

Resources