Updating only bootloader - Xperia Z2 Q&A, Help & Troubleshooting

Hello,
I have installed the 6.0.1 beta but did not first flash a rom with a recent bootloader, hence I can't flash a recovery.
Is there any way to only install the latest bootloader, without first wiping my phone?
Thanks!

No !
Theoretically it should work, but It would be much more work than backing up and reflashing.
Of cause you can extract the bootloader and flash it, but this will not work!
You need to repartition your device to get the new bootloader to work. So you need to delete everything.
You can do it like this : http://forum.xda-developers.com/xperia-z2/help/tutorial-recovery-unlocked-bootloader-t3343416

Related

[Q] about losing root

Hey everyone, I've been using my hox+ rooted for some time now, never flashed a ROM and was wondering if I update to the new att software will I lose root?
Yes. Just make sure you have a custom recovery and flash the root installer zip. Or if you have TWRP, after a the flash, it will ask to install root.
Hey thanks for the response, I'm running twrp 2.4 the thing is I don't know whether to to let the phone update through its regular way of updating or do I flash this http://forum.xda-developers.com/showthread.php?t=2235248, the problem with flashing this is I don't
Know how to flash boot IMG. Sorry I'm a noob any help would be greatly appreciated.
Use this command in fastboot.
fastboot flash boot /location/of/boot.img
If your bootloader is unlock and your phone has a custom Recovery, the official AT&T update won't install on your phone. If you want the update, or you wait for a custom ROM with the update to be available, or you relock bootloader, and flash the latest RUU to recover the original state of your phone. Then you can still unlock with the same token and install a custom recovery to root your device.
Thanks much fellas, you've been a great help!

[Q] OTA Updates on rooted, unlocked, TWRP Phone?

Hi All
I have a nexus 9 with an unlocked bootloader, root (from CF auto-root), and TWRP installed, currently on 5.0.1 LRX22C. I have read this means that I will not be able to complete an OTA due to lack of stock recovery and changes within the system files that the OTA will check.
So my question is how much of stock do I have to return to be able to do the OTA to 5.0.2 and 5.1 later today. I am hoping that I won't have to do a factory reset and wipe all the files and apps, but if so nevermind.
Do I have to relock the bootloader?
Do I have to flash back to stock completely or can I just flash a stock recovery?
If I wait will a flashable zip be created by someone, that would allow me to keep unlocked and rooted?
If this has been asked before, I am sorry, I have searched but couldn't find any clear answers that were related to lollypop.
I am used to samsung phones and the nexus ADB sideloading ect. is taking me a while to get used to, so any link to a guide would be very appreciated.
Thanks for any help,
OTA appears to checksum the entire partitions, so even remount RW could have an effect (with no intentional accesses, depending how the filesystem works). However, this doesn't make a lot of sense since any update is going to struggle to replicate the same raw filesystem data reliable - maybe this is why we are seeing 5.0.2 OTAs fail on 'stock' devices.
fallen2004 said:
Hi All
I have a nexus 9 with an unlocked bootloader, root (from CF auto-root), and TWRP installed, currently on 5.0.1 LRX22C. I have read this means that I will not be able to complete an OTA due to lack of stock recovery and changes within the system files that the OTA will check.
So my question is how much of stock do I have to return to be able to do the OTA to 5.0.2 and 5.1 later today. I am hoping that I won't have to do a factory reset and wipe all the files and apps, but if so nevermind.
Do I have to relock the bootloader?
Do I have to flash back to stock completely or can I just flash a stock recovery?
If I wait will a flashable zip be created by someone, that would allow me to keep unlocked and rooted?
If this has been asked before, I am sorry, I have searched but couldn't find any clear answers that were related to lollypop.
I am used to samsung phones and the nexus ADB sideloading ect. is taking me a while to get used to, so any link to a guide would be very appreciated.
Thanks for any help,
Click to expand...
Click to collapse
Do not relock your bootloader. It is not necessary.
Since you are rooted with a custom recovery, if you want to take the OTA, you will have to fastboot flash the stock 5.0.1 system.img, recovery.img, boot.img, and vendor.img.
IMHO, it's just as easy to fastboot flash the 5.0.2 factory images and forget about the OTA.
cam30era said:
Do not relock your bootloader. It is not necessary.
Since you are rooted with a custom recovery, if you want to take the OTA, you will have to fastboot flash the stock 5.0.1 system.img, recovery.img, boot.img, and vendor.img.
IMHO, it's just as easy to fastboot flash the 5.0.2 factory images and forget about the OTA.
Click to expand...
Click to collapse
Okay well I think I will wait until the 5.1 factory image is released, backup my phone, then fastboot flash it.
I guess I will then have to reroot and add TWRP again?
fallen2004 said:
Okay well I think I will wait until the 5.1 factory image is released, backup my phone, then fastboot flash it.
I guess I will then have to reroot and add TWRP again?
Click to expand...
Click to collapse
Do it in the other order. Fastboot flash TWRP, then flash SuperSU from inside TWRP. Very easy.

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

Relocking bootloader

I unlocked bootloader in official method. I flashed twrp and magisk. but after the latest Global beta, I've somehow lost both TWRP and magisk. that said, my phone is no longer rooted and the stock recovery is back. now i want to relock my bootloader. I never installed any custom rom. My question is, how to relock bootloader, and, if i do relock will all my data get wiped? like system reset or something? if so, is there any way to avoid that while relocking?
flash an official miui fastboot rom using mi flashtool and choose the option to clean and lock.
as far as I remember there is an option to keep data but you can backup everything to your PC before flashing

Categories

Resources