how do I relock bootloader? - Sony Xperia M2

I got an update on my Xperia M2(d2305) to 4.4.4. I rooted my phone when it was 4.4.2. When I try to update it, it shows an error where it says (Sony update engine failure error 2003). I unroot my phones using the factory data reset but still with the same error. When I checked the bootloader it still say YES. .how do i lock back?

About your Problem
XlseS said:
I got an update on my Xperia M2(d2305) to 4.4.4. I rooted my phone when it was 4.4.2. When I try to update it, it shows an error where it says (Sony update engine failure error 2003). I unroot my phones using the factory data reset but still with the same error. When I checked the bootloader it still say YES. .how do i lock back?
Click to expand...
Click to collapse
You got an update on your Xperia M2(d2305) to 4.4.4.So you didnt unlock the bootloader. Right?
First when you root your phone that makes a file name su in your system.Factory data doesnt change system folders.So you have still root access.
All you need to do is;
-install supersu
-Get into setings
-Click unroot botton That remove your root access.
i am not sure but if you instaled xposed you may need to remove it.You can find it in firmware options.
(Just in case: to relock the bootloader Connect your phone (into flash mode) to Flashtool and click the "BLU" button )
Good Luck

@XlseS
Did you try to relock it with Flashtool? There was option for that i did it on my Tipo.
Sent from Xperia M2 D2303

Dzepar said:
@XlseS
Did you try to relock it with Flashtool? There was option for that i did it on my Tipo.
Sent from Xperia M2 D2303
Click to expand...
Click to collapse
How? sorry, I'm a bit noob

XlseS said:
How? sorry, I'm a bit noob
Click to expand...
Click to collapse
Press BLU icon, connect your phone in Flash mode, press Relock.
Good Luck.
Sent from Xperia M2 D2303

Device does not boot after I did that.

Are you on stock rom?
Sent from Xperia M2 D2303

JUST DOWNLOAD FLASHTOOL AND YOU'RE DONE!: HERE
1 boot into fastboot
2 head over ur computa and click relock, easy enough ? :silly:

I had an update to 4.4.2 via PC Companion, so files are all there.
If I reflash my phone, will the TA partition get reflashed too? In other words, will it get back my DRM keys?
There is method with TA script to backup and restore TA, but if I have backup of original ROM that came with my phone, so I'm asking will it do the job, because I have TA.img without md5sum.
Another reason is this one: http://www.xda-developers.com/restore-lost-functionality-on-your-unlocked-xperia-device-part-two/
Camera seems to get loss of functionality with removal of DRM keys.
EDIT: The answer is: nope. TA partition must be restored first.

Related

[Question] Unlock bootloader risks

Hi all!
I have my Xperia M2 with the latest firmware: 18.6.A.0.182.
I want to root it, and install a custom recovery, and i know how to do all of this through this forum. But I need to unloock my bootloader.
What's the problem?
If you go here: (i can not post links, the developer sony / unlockbootloader) and warns you:
Important note! In order to unlock your Xperia™ M2 you need to be on software version 18.3.C.0.37. Also beware that booting this device the first time after unlocking the boot loader may take a long time.
Click to expand...
Click to collapse
I don't know why this...
Searching in google, the people recomends to use flashtool to unlock the bootloader.
What will happen if i intend to unlock it and something goes wrong? I don't know how to solve a soft-brick withouth an unlocked bootloader.
Thanks for your help.
Hey, first do it the official sony way flashtools doesn't work for many including me when i unlocked my bootloader. http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
Second if anything goes wrong, just reflash your firmware (jellybean, kitkat, lollipop whatever) through flashtools and it will be back to stock.
Unlocking your bootloader there is not much which can go wrong.
Btw, you will lose your DRM keys. 2 of them i think for buying stuff through ps store.
Also if you run into problems post here we'll help.
Now I have root with KingRoot. If I make a backup of TA partition i can restore DRM keys when I like it, no?
And the magic question for me is: How I flash original firmwares if the bootloader is locked? I only need locate the right FTF and with flashtool is enought?
Thank you!
makitos666 said:
Now I have root with KingRoot. If I make a backup of TA partition i can restore DRM keys when I like it, no?
And the magic question for me is: How I flash original firmwares if the bootloader is locked? I only need locate the right FTF and with flashtool is enought?
Thank you!
Click to expand...
Click to collapse
Yes you can restore your DRM keys backup if you want in the future.
And if you want to flash a FTF on locked bootloader you can use Flashtool by Androxyde or Xperia Companion.
Ok, thank you all, I'll try to backup DRM keys and unlook the bootloader and I'll post the results!

How to flash .zip file in xperia xa?

Hello,
How to flash .zip file in xperia xa? I try to root with flash tool and fail every way I do.
MDJunior said:
Hello,
How to flash .zip file in xperia xa? I try to root with flash tool and fail every way I do.
Click to expand...
Click to collapse
Flashtool wont root it will it, you need to unlock the bootloader first to root the xa(there's also no way to back up the ta keys on the x range) , then pick your kernel+recovery for your model xa's firmware there's everything you need to root in the xa forum already.
Sent from my Xperia XA using XDA Labs
aidy.lucas said:
Flashtool wont root it will it, you need to unlock the bootloader first to root the xa(there's also no way to back up the ta keys on the x range) , then pick your kernel+recovery for your model xa's firmware there's everything you need to root in the xa forum already.
Sent from my Xperia XA using XDA Labs
Click to expand...
Click to collapse
I have already unlocked bootloader. Did I have to root? I just want to install Magisk from this link http://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
I got new update from pc companion. 81 I try to update it I.error was showing (phone info error)
divakarhero said:
I got new update from pc companion. 81 I try to update it I.error was showing (phone info error)
Click to expand...
Click to collapse
Install custom recovery and use it to flash or install Flashify and flash

Can't flash 7.0

I got a unlocked bootloader XZ dual 8332, download tft from Xperiafirm, and at the end of flash session i got a erro :
Code:
[COLOR="Red"]01/025/2016 17:25:54 - ERROR - Have read only 524256 byte(s) instead of 780004 byte(s)
01/025/2016 17:25:54 - ERROR - Error flashing. Aborted[/COLOR]
What does it's meanning ? My phone got a "update failed" when turn on now.
Do we need check some "check box" or anything before flash a tft file ?
And is anyway to relock bootloader if we want repair by Xperia Companion or update through OTA ?
Thanks.
AFAIK flashtool is not compatible with 7.0 yet and there is no way to relock your bootloader yet.
gregbradley said:
AFAIK flashtool is not compatible with 7.0 yet and there is no way to relock your bootloader yet.
Click to expand...
Click to collapse
Wipe qnovo and try in flashtool
gregbradley said:
AFAIK flashtool is not compatible with 7.0 yet and there is no way to relock your bootloader yet.
Click to expand...
Click to collapse
I relocked by flashtool (same as unlock) and repairing by Companion now.
Btw thank you .
let's wait for new kernel to get back DRM-fix xD
Sorry to be a bother.
Same thing happened to me, how do i relock the bootloader?
Lavievn said:
I relocked by flashtool (same as unlock) and repairing by Companion now.
Btw thank you .
let's wait for new kernel to get back DRM-fix xD
Click to expand...
Click to collapse
Is the camera working for you after relock?
chawlasrijan said:
Is the camera working for you after relock?
Click to expand...
Click to collapse
No, we cant use stock camera app and got very bad and small sound volume.
Cavaleur7 said:
Sorry to be a bother.
Same thing happened to me, how do i relock the bootloader?
Click to expand...
Click to collapse
same as unlock, but now you get a "relock button", click it and everything fine but your DRM-key is gone
Lavievn said:
No, we cant use stock camera app and got very bad and small sound volume.
Click to expand...
Click to collapse
That's just sad No point to relock the bootloader then.
Need do that for update, or wait till new kernel for 7.0 with drm-fix release
chawlasrijan said:
That's just sad No point to relock the bootloader then.
Click to expand...
Click to collapse
When you flash a modified kernel with drm fix your drm is working. When you relock your bootloader your phone got factory reset itself and drm still in your phone.
Try to update via ota
After that because you are unlocked try to flash flashfire and install supersu to be rooted and searsh to drm fix file and flash it manually from any root file manager.
Another step
Uodate your unlocked phone ota update
Restart you phone
It should be working now with no drm fix
Poweroff your phone
Enter falshmode (power button + volum up) you see a purpul led
Enter adb and flash supersu sr5
It should work after flash drm manually
Try and reply please
karrouma said:
When you flash a modified kernel with drm fix your drm is working. When you relock your bootloader your phone got factory reset itself and drm still in your phone.
Try to update via ota
After that because you are unlocked try to flash flashfire and install supersu to be rooted and searsh to drm fix file and flash it manually from any root file manager.
Another step
Uodate your unlocked phone ota update
Restart you phone
It should be working now with no drm fix
Poweroff your phone
Enter falshmode (power button + volum up) you see a purpul led
Enter adb and flash supersu sr5
It should work after flash drm manually
Try and reply please
Click to expand...
Click to collapse
So much wrong info here.
Firstly, once you unlock the bootloader the TA partition where the DRM keys are stored is formatted. They are gone forever. Relocking the bootloader does not bring them back. The DRM fix replicates (Not 100% fixes) the missing functions and this fix only works on rooted phones, which you cannot have with a locked bootloader.
Secondly, do not try and update OTA with an unlocked bootloader. It could brick your device.
Are there any known issues when unlocking the boot loader?
A: Yes. When you select a device, any known issues for that device will be displayed. In addition, the following generic issues have been reported:
•Some users have experienced problems when they are accepting over the air upgrades. Therefore we do not recommend users to accept over the air upgrades, after having unlocked the boot loader. For additional information, check out the XDA Forums for hints and tips from the community.
Click to expand...
Click to collapse
Source Sony unlock bootloader FAQ
gregbradley said:
So much wrong info here.
Firstly, once you unlock the bootloader the TA partition where the DRM keys are stored is formatted. They are gone forever. Relocking the bootloader does not bring them back. The DRM fix replicates (Not 100% fixes) the missing functions and this fix only works on rooted phones, which you cannot have with a locked bootloader.
Secondly, do not try and update OTA with an unlocked bootloader. It could brick your device.
Source Sony unlock bootloader FAQ
Click to expand...
Click to collapse
I am on unlocked bootloader
I will do a backup now and will try to update OTA or via xperia companion
Turning phone off and enter flashboot to inject supersu sr5 for android 7 and then restart
I will try
If not booting ,bye bye my xz
If can't be back to android 6 , bye bye my xz
Wait my reply, it depend to the speed of my connection
karrouma said:
I am on unlocked bootloader
I will do a backup now and will try to update OTA or via xperia companion
Turning phone off and enter flashboot to inject supersu sr5 for android 7 and then restart
I will try
If not booting ,bye bye my xz
If can't be back to android 6 , bye bye my xz
Wait my reply, it depend to the speed of my connection
Click to expand...
Click to collapse
Xperia companion will fail. It will detect unlocked bootloader and not work.
OTA 'may' work, but as I said and quoted it 'may' also brick your device. Do it at your own risk.
gregbradley said:
Xperia companion will fail. It will detect unlocked bootloader and not work.
OTA 'may' work, but as I said and quoted it 'may' also brick your device. Do it at your own risk.
Click to expand...
Click to collapse
Everything you wrote is absolutely correct.
PC companion detects that the device is unlocked & OTA's automatically fails to install.
So apparently, relocking & updating is possible but relocking means you can no longer use the stock camera anymore.
chawlasrijan said:
Everything you wrote is absolutely correct.
PC companion detects that the device is unlocked & OTA's automatically fails to install.
So apparently, relocking & updating is possible but relocking means you can no longer use the stock camera anymore.
Click to expand...
Click to collapse
You should be able to then unlock again and just needo to wait for a modified kernel with drm fix for android 7
Sent from my iPad
gregbradley said:
You should be able to then unlock again and just needo to wait for a modified kernel with drm fix for android 7
Sent from my iPad
Click to expand...
Click to collapse
Unlocking your bootloader again on Nougat using official Sony guide fixed the issue for me.
Make sure you don't use Flashtool to unlock your bootloader on Nougat.
Thank you for the support
chawlasrijan said:
Unlocking your bootloader again on Nougat using official Sony guide fixed the issue for me.
Make sure you don't use Flashtool to unlock your bootloader on Nougat.
Thank you for the support
Click to expand...
Click to collapse
How to unlock
Via adb???
Steps used please
If you have the ftf can you modify your kernel now??
karrouma said:
How to unlock
Via adb???
Steps used please
If you have the ftf can you modify your kernel now??
Click to expand...
Click to collapse
Google "unlock bootloader Sony"
Click the sony developer link & follow the guide.

Bootloop and TWRP Probs

Hello,
actually i have big problems with my Xperia XZ.
I want to root it. There for i make the following steps:
1. Unlook Bootloader
2. Install TWRP by fastboot (here is my first problem --> no write permission on /system)
3. Install SuperSu by Chainfire --> flashable
--> Result Bootloop.
So i install Emma (flashtool by Sony) and want to go back to stock. But Emma brings "Unkown Model Picker" and did
not idendifite the phone.
Actually i don´t can start the recovery mode (twrp) --> Don´t know why.
Please help !!!
Buddy_Erz said:
Hello,
actually i have big problems with my Xperia XZ.
I want to root it. There for i make the following steps:
1. Unlook Bootloader
2. Install TWRP by fastboot (here is my first problem --> no write permission on /system)
3. Install SuperSu by Chainfire --> flashable
--> Result Bootloop.
So i install Emma (flashtool by Sony) and want to go back to stock. But Emma brings "Unkown Model Picker" and did
not idendifite the phone.
Actually i don´t can start the recovery mode (twrp) --> Don´t know why.
Please help !!!
Click to expand...
Click to collapse
hello,
if you are in android 7 root is not working
for xz you have to
unlockbootloader
install modified kernel and twrp at the same time
start you phone and restart enter twrp and install su
it works on android 6-0-1 not 7
can you help me how to got emma working with you
i tried to got emma working but all time got error
I´m on Android 6.0.1.
How can i flash the kernel?
I can start twrp. But cannot backup because no write permission to /system.
When comes your problem with emma. on installation?
Buddy_Erz said:
I´m on Android 6.0.1.
How can i flash the kernel?
I can start twrp. But cannot backup because no write permission to /system.
When comes your problem with emma. on installation?
Click to expand...
Click to collapse
Androplus v5
Kernel and twrp
You need to install kernel before twrp
Enter androplus section and see imstructions
For emma
I got error login
Application can't open
I install custumisation and app not workimg it not open
Inturnet off anyivirus nothing open
Had i to compile the kernel or anything else? or is there anything complete to download and flash? It confuse me
actually i download the ftf for stock rom and hope to flash it by flashtool. Actually i only want an functional device.
On emma i didn´t login. I copy the customization.ini to the emma folder.
Furthermore it seems emma is an java application and you need an java runtime.
Buddy_Erz said:
Had i to compile the kernel or anything else? or is there anything complete to download and flash? It confuse me
actually i download the ftf for stock rom and hope to flash it by flashtool. Actually i only want an functional device.
On emma i didn´t login. I copy the customization.ini to the emma folder.
Furthermore it seems emma is an java application and you need an java runtime.
Click to expand...
Click to collapse
If you have ub, open flashtool and flash nougat ftf excluding system.
Relock the bootloader.
Once its done, open sony app and repair the device.
Unlock the bl to get back the camera.
auras76 said:
If you have ub, open flashtool and flash nougat ftf excluding system.
Relock the bootloader.
Once its done, open sony app and repair the device.
Unlock the bl to get back the camera.
Click to expand...
Click to collapse
Ok. Thx.
First what means ub?
I downloaded the latets version find on xperifirm 39.0.A.3.30 (is this nougat?)
What Happend when i Flash all with this ftf?incl System.
Is there a fastboot command to relock bootloader?
What Sony app? Companion or emma?
Thanks.
Buddy_Erz said:
Ok. Thx.
First what means ub?
I downloaded the latets version find on xperifirm 39.0.A.3.30 (is this nougat?)
What Happend when i Flash all with this ftf?incl System.
Is there a fastboot command to relock bootloader?
What Sony app? Companion or emma?
Thanks.
Click to expand...
Click to collapse
Ub-unlocked bootloader.
You need. 327 fw.
Ok. I have ub.
You mean:
Android Nougat arrives on the Xperia XZ (39.2.A.0.327)
Can i Flash the 30 ftf (Download an xperifirm) to Go back to stock?
What Sony App?
Please can You give me more details.
Thx.
Buddy_Erz said:
Ok. I have ub.
You mean:
Android Nougat arrives on the Xperia XZ (39.2.A.0.327)
Can i Flash the 30 ftf (Download an xperifirm) to Go back to stock?
What Sony App?
Please can You give me more details.
Thx.
Click to expand...
Click to collapse
Yes, you can flash. 30 fw.
Sony app-pc companion.
auras76 said:
Yes, you can flash. 30 fw.
Sony app-pc companion.
Click to expand...
Click to collapse
Thanks gor You help.
All in all :
I Flash either fw 30 completly and have Stock 6.0.1
Or i Flash fw 327 without System and Repair with Sony
Companion.
In Both Cases i have to unlock bootloader After flashing
for Camera Function.
Why and when it is required to lock bootloader and
How Can i lock this. ?
Thanks
Buddy_Erz said:
Thanks gor You help.
All in all :
I Flash either fw 30 completly and have Stock 6.0.1
Or i Flash fw 327 without System and Repair with Sony
Companion.
In Both Cases i have to unlock bootloader After flashing
for Camera Function.
Why and when it is required to lock bootloader and
How Can i lock this. ?
Thanks
Click to expand...
Click to collapse
If you want nougat, first flash. 327 fw witch flashtool without system, relock the bootloader, repair witch companion, reboot and when its done the setup, unlock the bootloader.
auras76 said:
If you want nougat, first flash. 327 fw witch flashtool without system, relock the bootloader, repair witch companion, reboot and when its done the setup, unlock the bootloader.
Click to expand...
Click to collapse
Ok. Thanks for all your help.
One last question:
Fastboot command for relock the bootloader?
Buddy_Erz said:
Ok. Thanks for all your help.
One last question:
Fastboot command for relock the bootloader?
Click to expand...
Click to collapse
Just press the blu button in flashtool to relock the bootloader
gregbradley said:
Just press the blu button in flashtool to relock the bootloader
Click to expand...
Click to collapse
Danke
Thanks
it works. Thanks at aall.
I´m on Android 6.0.1. and have ub.
Does OTA working?
Buddy_Erz said:
it works. Thanks at aall.
I´m on Android 6.0.1. and have ub.
Does OTA working?
Click to expand...
Click to collapse
Not with an unlocked bootloader. You need to relock it and be on a firmware from a region that has the OTA released.
gregbradley said:
Not with an unlocked bootloader. You need to relock it and be on a firmware from a region that has the OTA released.
Click to expand...
Click to collapse
Ok. Thanks for answer. Are there any disadvantages
When i Relock BL?
I thought so, because i read something in earlier post
With Camera Not working with relock BL
Buddy_Erz said:
Ok. Thanks for answer. Are there any disadvantages
When i Relock BL?
I thought so, because i read something in earlier post
With Camera Not working with relock BL
Click to expand...
Click to collapse
Yes, but once you have updated via OTA then just unlock it again.
anyone can try if z5 ftf can boot on xz.
i don't have cannection to try.
flash a stock z5 ftf into xz
use ivory root for drm and ta partion
locke the phone
then flash android 6 for xz
then update ota
it should work

How Can I Return to Stock?

Hello. I have a sony xperia z3 with unlocked bootloader and cm 12.1. I want to install latest stock firmware and lock my bootloader. I want to restore my DRM keys too. I will sell this phone and i have worries about privacy. How can i permanent delete my ALL data? Can anyone help me (step by step) Thank u!
LeonidasTurk said:
Hello. I have a sony xperia z3 with unlocked bootloader and cm 12.1. I want to install latest stock firmware and lock my bootloader. I want to restore my DRM keys too. I will sell this phone and i have worries about privacy. How can i permanent delete my ALL data? Can anyone help me (step by step) Thank u!
Click to expand...
Click to collapse
Flash FTF via flashtools and wipe everything it's pretty straightfoward, you can get it here. Download, open xperifirm, flash.
To restore drmkeys you need to have a backup before you unlocked your bootloader otherwise your DRM keys are lost forever and you will have to flash either a kernel or
drm fix.

Categories

Resources