yashsingh1/xdaforums huggingface dataset:
[Sony Xperia L] Deleted member 4736004:
Tutorial for quick unlock/relock bootloader

First things first

:-

1. What is bootloader?

> Bootloader is a piece of code that runs before android loads up. Bootloaders usually contain several ways to boot the OS kernel and also contain commands for debugging and/or modifying the kernel environment.

2. Benefits of unlocking bootloader?

> You can flash custom kernels/ROMs.

> You can ALWAYS root your device. (compelling, eh?)

> You can flash alpha builds of newer firmware ( generally newer android version ) which is under testing and not meant for end consumers.

3. Disadvantages of unlocking bootloader? ( Doesn't matter if you have backed up your TA)

> You may void your warranty.

> You may loose some proprietary vendor software such as Bravia Engine, Download Music info etc. due to removal of DRM security keys.

> OTA updater may refuse to update your device and pop up a 'Device's software modified' message.

4. Can i unlock my bootloader?

> Go to dialer

> Type *#*#7378423#*#*

> Service info > Configuration

> Rooting status :

"Bootloader unlock allowed" - You can unlock your bootloader

"Bootloader unlock not allowed" - You cannot unlock your bootloader

5. What is TA?

> Take it simple, restoring the TA img of your device will revert your device to clean state as it was before unlocking bootloader. Thus, all of the aforementioned demerits will start working again.

6. Can I backup my TA?

> Yes, if you haven't unlocked your bootloader.

TA Backup using DevShaft's Tool (needs root access) :

1. Visit the thread and download backup tool from

here

( Read everything carefully )

2. Run the tool with usb debugging on.

3. Your TA will be backed up. You can find zip in backup folder.

4. Unzip it and check for TA img file which should be roughly around 2048 KB.

5. There you have it. :)

Unlocking bootloader :

You can unlock bootloader in two ways:

1.

Official way

(Instructions included)

2.

FlashTool

( Recommended )

1. Generate your unlock key by entering your IMEI. (To check your IMEI - *#06# )

2. After you have the key, use flashtool or cmd prompt to unlock. (easy?)

3. To verify, check rooting status :

"Bootloader unlock done" - Congrats, you've successfully unlocked your bootloader.

Relocking your bootloader :

This is where your backed up TA comes into play :

1, Run the DevShaft tool and choose restore TA.

2. You will need to enter your IMEI.

3. After everything is completed, check again for rooting status.

"Bootloader unlock allowed" - You have relocked your bootloader.

PS: You may run into bootloop or some other problems after unlocking bootloader. Simply flash stock FTF to fix.
[Sony Xperia L] Crytech:
Wow...Xperia L's development is going to be in full force :D...Thanks for the second and more convenient way for unlocking bootloader :)
[Sony Xperia L] Shivam Kuchhal:
Added to my XL development index thread. Good job!!
[Sony Xperia L] officiallyjun:
i just need more time to read and learn about this case :)
[Sony Xperia L] ishanbhatnagr96:
Anyone unlock bootloader yet? :/
[Sony Xperia L] karkand:
Yes, I've unlocked bootloader.
[Sony Xperia L] Navneet Suresh:
Ty

Nice work thank you :good: :highfive:
[Sony Xperia L] karkand:
Please dont quote the OP, just a short of it okay, i scrolling to much cause it.

Sent from my C2105
[Sony Xperia L] Navneet Suresh:
ok

Ok sorry i have shortened it :highfive::p:cowboy:
[Sony Xperia L] sanzNya:
how to unlock with flashtool?? since XL doesnt have button on these body....
[Sony Xperia L] allenwalker1998:
Press volume down and connect to pc for flashmode, volume up for fastboot. Then just follow the instruction.
[Sony Xperia L] sanzNya:
Mmm....

Thanks mate. Btw. Do you used flashtool or with official ways?

best regards.

sanzNya
[Sony Xperia L] karkand:
I use flashtool to unlock, but sometime you must flash stock after unlocking, because it will bootloop after it.
[Sony Xperia L] sanzNya:
Hmmm... no need any ''key'' like official ways right?

Just follow the step on latest flashtool. And re-flashed stock (in case if i got botloop).

#edit. If i want to unlock. So i must press which button? fastboot mode or flashtool mode?

best regards.

sanzNya
[Sony Xperia L] karkand:
Unfortunately, my latest flashtool(0.9.11.0) isn't work with the code generator so I must get key from the official way..

Just press 'BLU' and follow the instructions..
[Sony Xperia L] sanzNya:
So you still need key frm sony to unlock with flashtool??

best regards.

sanzNya
[Sony Xperia L] karkand:
yes, I am, it's very bad that flashtool error when generate the key...

so, are you success to generate with flashtool? give a try, because it will change anything till you not enter key to unlock...
[Sony Xperia L] sanzNya:
Still on vacation now. Im on airport to backhome. Maybe tomorrow morning i'll try. Will give a report asap. Thanks aniway...:)

best regards.

sanzNya
[Sony Xperia L] perfectms:
I used the FlashTool and now my phone does not start, the initial animation is stopped. What can I do?
[Sony Xperia L] sanzNya:
Flash stock firmware..

best regards.

sanzNya
[Sony Xperia L] perfectms:
I will lost root?
[Sony Xperia L] sanzNya:
Yes. You just root again... simple step i think...:)

best regards.

sanzNya
[Sony Xperia L] blindcozy:
I've unlock with official way, but then after i reboot it bootloped. Then I try to flash Stock ROM with flashtool, but it show an error message. Does anyone can help me please...
[Sony Xperia L] varun.chitre15:
You should have unlocked using flashtool. What error message you have btw?
[Sony Xperia L] blindcozy:
ERROR - 31 : A device attached to the system is not functioning.
[Sony Xperia L] Dixiesmu:
I had the same trouble wirth the bootloop and solved it this way. Firstly I used the flasttool to relock the bootloader then removed both the simand sd card and used sony pc companion to reload the firmware. Then i returned to the flashtool and unlocked the bootloader again and this time all was well. I'm not sure if removing the cards actually did anything but it worked for me. Hope this helps
[Sony Xperia L] thedao:
Problems unlocking

When i go into flashmode with my phone flash Tool says that i have to install drivers? I have already installed the drivers but i cant really find the specific driver
[Sony Xperia L] karkand:
If you're using win8, you must boot into advanced startup for driver installation. Because win8 block any not digitally signature. Then install driver from C:/Flashtool/driver/
[Sony Xperia L] thedao:
Thank you

Now i have unlocked bootloader, but my phone bootloops. I know that i have to flash stock firmware but i can turn it of without removing battery, if remove the battery and put its back it just starts again so i cant go into flashmode.

Edit: Where can i find the stockfirmware?
[Sony Xperia L] blindcozy:
Thanks. I've followed your step and now it's solved....
[Sony Xperia L] keenofhiphop:
In devshafts thread he writes that one needs root to backup TA...

So do we have to root or dont we?

Would you add it in instructions if needed?

Greets

Gesendet von meinem Sony Xperia L
[Sony Xperia L] blindshadow:
after succesfully unlocking through sony offcial unlocking bootloader method i am unable to boot my Xperia L C2105 .. after unlocking 2 times on 2 diff occasions my xperia does not boot ..please help ..is there any method if i can root with locked bootloader ?
[Sony Xperia L] keenofhiphop:
thats a usual occurance (←does that word exist?)

flash any stock.ftf ;)

Gesendet von meinem Sony Xperia L
[Sony Xperia L] MajorMonodon:
A piece of clarification since I have this phone since yesterday and have been busy reading these threads and tinkering with my phone, and have also had some doubts about the phrasing of tutorials.

To backup your TA you have to be root.

To root you do not have to be unlocked. You only have to be unlocked when you want to flash images and recoveries or want to have full bootloader access.

So, first things first, you should root, then backup TA, then unlock bootloader if you want, thereby wiping the device and then probably root again.

Rooting without unlocking can be done with the second download in this thread

The Xperia_L_Root.zip should do the trick, it did for me.

Then you can follow whatever guide you want.

A pity that this is not clearly mentioned anywhere, it should at least be noted to avoid confusion.
[Sony Xperia L] keenofhiphop:
Thanks but it comes a bit too late ;)

I am already rooted and unlocked. I think after trying once one should come to the thought that rooting could be a good idea :D

I did it with framaroot but as I heard this does not work anymore with .17

Gesendet von meinem Sony Xperia L
[Sony Xperia L] blindshadow:
buddy as u said u reloaded firmware from pc companion as i know pc companion cannot recognize your phone in flashmode if u have bootloop its only sus recognizing ur phone in flashmode...i am having bootloop after unlocking ...

after unlocking phone first time there is a bootloop and i now remove sd card and sim card ..now phone goes into bootloop now please explain the process how to load firmware using pc companion as flashmode is not recognixed by it ..please help..
[Sony Xperia L] MajorMonodon:
Use flashtool (Not emma, not the sony one, but the good one) en use it to flash stock firmware.

Look for the tft you want around this subforum, the Xperia L tfts are around here.
[Sony Xperia L] blindshadow:
the ftf fare of different regions ... well what if i follow your method and then flash the device using SUS rather than flashtool as i dont have my region ftf .. will the bootloader be unlocked and my device will boot ??
[Sony Xperia L] Ashish Lahare:
Unable to backup TA

Stuck at waiting for device....:(

Sent from my C2104
[Sony Xperia L] karkand:
Have u done root your phones? Because it is needed root access for adb shell.
[Sony Xperia L] Rohit@91:
Stuck in bootloop. What to do?? Am using latest flashtool and rooted with motochopper.
[Sony Xperia L] sandman303:
Same here im getting bootloop.
[Sony Xperia L] Shivam Kuchhal:
Read the OP properly. Rachit has already mentioned that you will need to flash ftf after unlocking bootloader.
[Sony Xperia L] sandman303:
Thanks will flash
[Sony Xperia L] presov:
When I try this, the dialer actually dials out. I have rooted the phone already - would this make a difference ?
[Sony Xperia L] endem:
When i dial this or try to unlock with flashtool i get bootloader unlock not allowed message. can i expect that in some future will be possible to unlock?
[Sony Xperia L] Sparksys:
Nope
[Sony Xperia L] azntitanik:
the flashtool link in the first post is dead
[Sony Xperia L] ferrari35:
http://www.flashtool.net/index.php takes you to flash tool homepage
[Sony Xperia L] signashoes007:
would this procedure also tested on 4.2JB? anyone?? thanks! :highfive:
[Sony Xperia L] Shivam Kuchhal:
Procedure would be always same dude. -_-

Sent from the Batman's Xperia
[Sony Xperia L] aurangzeb:
how to un-root my phone? in stock 4.1.2 just root
[Sony Xperia L] Joel16:
Go to Super SU, go on settings, click on "Full unroot".
[Sony Xperia L] aurangzeb:
how do we know it is already fully un-root? because i can't install OTA updates to the new system of 4.2 and i am suspect about this root maybe??
[Sony Xperia L] Joel16:
Use root checker, it'll tell you if you have root permission or not. And the reason you're not being able to install OTA updates is probably because you've unlocked your bootloader. Have you unlocked it?
[Sony Xperia L] Rohit@91:
Anybody facing bootloop for unlocking the bootloader in stock 4.2.2 ?
[Sony Xperia L] damian01211:
Yes, it's a normal thing, Just flash 4.2.2 FTF.
[Sony Xperia L] Rohit@91:
Don't have the ftf. I can't download the huge file because I've slower net connection. Please anybody upload the ftf in splited .rar format.
[Sony Xperia L] aurangzeb:
i didn't do anything to my boot loader...what i know is i only root my phone using motochopper and the mount fix method only...

so any idea?
[Sony Xperia L] Joel16:
Tbh I haven't used the mount fix so I really don't know, sorry.
[Sony Xperia L] drganbds:
Wat is mount fix?
[Sony Xperia L] Joel16:
I'm not sure ask the guy above me. He says he's used it

Sent from my C2104
[Sony Xperia L] aurangzeb:
remountrebootfix actually...
[Sony Xperia L] Joel16:
Try using root uninstaller, it's an app. You might wanna read up about it first.
[Sony Xperia L] Joel16:
Got bootlooped

Edit: Fixed.
[Sony Xperia L] aurangzeb:
ill try it n repost
[Sony Xperia L] sherry_94:
Do i need to flash .ftf file even with flashtool method ??? The thing is, i don't have ftf file right now and i need to flash custom kernel and i won't be able to download such large files till 10 days or so :(

Edit : Nevermind

Sent from my Xperia L (C2104)
[Sony Xperia L] saket_oo:
can i use fastboot files from here

and use the fastboot commands for flashing and unlocking??????

the download link is in the instructions at step 2 (the highlighted fastbbot files)
[Sony Xperia L] amnher:
Flashing ftf is a must after unlocking, but is there a way to preserve data ? I mean my phone will not get wipe
[Sony Xperia L] Hrustus:
Hi, i have little problem with TA backup.

I have USB debugging enabled, antivirus off, run as admin and backut-ta.bat freezing on "Waiting for usb debugging". I changed usb port milions of time and still no luck. What should i do? I am on W7 x64 HP
[Sony Xperia L] Hnk1:
Wrong section firstly,

Secondly it seems your drivers aren't properly installed in your PC!

Check my guide to install complete drivers in Xperia L general section!

Good luck !
[Sony Xperia L] Hrustus:
About wrong section - my mistake - lot of cards in Chromium ;3

Im checking this out, so thanks for gl ;)

EDIT:

Lol, thanks, i have just wrong adb drivers ;]
[Sony Xperia L] colleseus:
Hi I am not able to install drivers. Please send me a link to install them.
[Sony Xperia L] ArnauGonzalez98:
Try it with another computer Sir! It worked for me!

---------- Post added at 08:51 AM ---------- Previous post was at 08:49 AM ----------

If you have problems with this backup tool try with Helium: App Sync. It will work just follow this link right here: https://play.google.com/store/apps/...rce=google&utm_medium=organic&utm_term=helium

It's a great app, but, obviously, you have to be root!

LUCK!

---------- Post added at 08:53 AM ---------- Previous post was at 08:51 AM ----------

I strongly recommend you to use the Flashtool, its more useful for another things!

Luck!
[Sony Xperia L] saket_oo:
there is a universal driver installer here
[Sony Xperia L] dario88:
i have unlock botloader.... my xperia l does't work...hangs on loading screen... :crying:
[Sony Xperia L] umeshxda:
Just flash FTF ..! :)
[Sony Xperia L] dario88:
Thanks
[Sony Xperia L] Lazynestor:
Safest way to unlock bootloader!?
[Sony Xperia L] david pro:
It's common to get the bootloop after unlocking Bootloader on JB! Just flash FTF using flashtool!:cowboy:
[Sony Xperia L] moiz615:
As a newbie these two lines don't help me at all?

Generate your unlock key by entering your IMEI. (To check your IMEI - *#06# )

2. After you have the key, use flashtool or cmd prompt to unlock. (easy?)

I had to look back at unlocking bootloader method of Xperia U that I used two years back!
[Sony Xperia L] LeopardSurd:
Yesterday, just inserted the IMEI to get the bootloader unlock code but I didn't received any mail from Sony. Tried this 3 times and I'm sure I've did everithing as it should. Where is the problem?
[Sony Xperia L] thedemon786:
got bootloop .... im supposed to flash ftf via fastboot mode or flashmode? :/
[Sony Xperia L] :
You'll likely get a bootloop after unlocking. Flash ftf via flashtool & exclude data&cache so your data doesn't get wiped.

Send from OnePlus One using Tapatalk
[Sony Xperia L] thedemon786:
Hi! Thanks for the reply. I have A.1.17_generic ftf of 700+ mb

Im using flashtool but dont know if i should connect mobile in fastboot mode or flashmode?
[Sony Xperia L] umeshxda:
[MENTION=4741732]thedemon786[/MENTION] connect in flashmode!
[Sony Xperia L] thedemon786:
having new problems. i try to flash the ftf but mobile starts in between and hence bootloop. im tired removing back cover over and over and flashing ftf. flashtool shows mobile in flashmode but it restarts while it prepares to flash. :(

what options do i have? i appreciate all the help. thanks

OMG!!! it just worked somehow!! i got unlocked L xD

now i need to know what's best JB and KK for xperia L and most stable and good performance JB and KK roms :)
[Sony Xperia L] darQ96:
OK, so, I managed to boot after unlocking BL without reflashing stock FTF

the trick was to install cwm recovery for locked BL, so, after BL unlocking, I was also stuck on bootloop, but I was able to enter recovery and "wipe data/factory reset", and my phone booted with factory default settings!

also, before BL unlocking, I made full backup, and, I restored it after doing wipes, so, all my data/stuff/settings/apps is still here after doing BL unlock

hope this helps ;)
[Sony Xperia L] grenademik:
I rooted my xperia(4.2.2) l through motochopper and then i made a TA backup and tried to unlock bootloader by the official process of sony which i ended up having bootloop. Then i flashed the the previous android version 4.1.2 . Now, !)Is it okay to restore the TA backup to relock the bootloader? 2)As my phone's bootloader is unlocked is it still rooted or not? 3) IS it okay to update my phone OTA?

English for my Sorry bad :D
[Sony Xperia L] SelfAwareDroid:
After rooting and unlocking the official method, my "sony xperia c2105" stock on boot, please help.
[Sony Xperia L] SdtBarbarossa:
Flash stockrom ftf will fix it
[Sony Xperia L] Goutham_SRIRAM:
Stuck at bootloop after trying to unlock bootloader

Done some ****ty stuff here when trying to fix this issue and now the bootloop has stopped and stuck at SONY

Can't get into stock recovery! There is no longer led light or boot animation, just stuck at SONY!

How to flash stock ftf, I can now only get into bootloader or fastboot mode or whatever that is with the blue led with vol down button and usb connection...

I need a guide or method to flash stock with fastboot only HELP!

ASAP. Thank you to anyone trying to help.
[Sony Xperia L] SdtBarbarossa:
have you tried to flash TZ4.15 boot.img ?

https://www.androidfilehost.com/?fid=95916177934549189
[Sony Xperia L] Goutham_SRIRAM:
Nope.

I now found a guide for how to install the latest android 4.2.2, hope this is the stock ftf:

http://xperiafirmware.com/8-firmware/36-sony-xperia-l-c2105

I am currently doing the flashing process, I'll let you if something happens

BTW, I use BLU of the flashtool before this.

UPDATE: Completed flashing, successfully returned back to stock ROM
[Sony Xperia L] xleng:
Hi,

I have a question regarding the flashing of the stock ftf after unlocking the bootloader:

I still do not understand why this is needed. Also, can it be the stock ftf that I backup from the device before unlocking, or does it need to be of a partcular version?

Usually my understandimg would be that with the stock ftd I copy the same data to the devixe that is already there, but then why do I need to flash again the stock rom? Is any data altered during unlocking?

When flashing again the stock ftf, do I flash the system partition onky or anything else in addition?

Right now I'm on Sony stock with latest updates (build 15.3.A.1.17), devixe is rooted, bootloader locked. But I would like to unlock and install CM 12.1.

Many thanks in advance!

I'm really amazed by the excellent work that you put in, I hope that eventually someday I could contribute as well.

Cheers,

Henning
[Sony Xperia L] xleng:
Thanks for the hint to the q&a section. Actually I just found the clarification in another thread, clarified by SdtBarbarossa:

---

Did you came from latest official sony rom? This is required for latest modemst and so on

---

To my understanding it should not be needed to flash the stock rom after bootloader unlock in my case, since I already have the latest stock rom installed. Will try...

Thanks!
[Sony Xperia L] SdtBarbarossa:
yes its notneeded in yourcase.... if you have latest modemst then go ahead with recovery and flashing

... IF your wifi/3g does not work on customroms then you didnt had latest one
[Sony Xperia L] xleng:
Hi, many thanks for the quick answer. Actually yesterday evening I tried with to install twrp using the app method, but it seemed to be not installed although the app reported success after flashing. I guess I need to unlock to enable writw access to the FOTAKernel partition?
[Sony Xperia L] SdtBarbarossa:
Nope... FOTAKernel recoverys dont work with the stockrom kernel.... so you need a unlocked BL and a customkernel
[Sony Xperia L] xleng:
You're right. But the custom kernel is installed by CM, right? I mean that I do not need to install Thunderzap or something similar?
[Sony Xperia L] SdtBarbarossa:
yes thats right... then you only need to activate root to make the app working ( developeroptions )
[Sony Xperia L] Androidoo:
how can we get the unlock code from sony dev site, as i went to it and xperia l is not showing, does it means i cannot unlock xperial l or like is there any other way to this other than with the lock code?
[Sony Xperia L] Amirxon:
At forums write that it is necessary to choose any model.They say that received code matches a code previously obtained.
[Sony Xperia L] Androidoo:
Yes but now xperia L is not listed in the drop down menu...:(
[Sony Xperia L] Amirxon:
Choose any other model(such as xperia arc)
[Sony Xperia L] Androidoo:
it will work?:rolleyes:
[Sony Xperia L] Amirxon:
Yes,the guys tested
[Sony Xperia L] erakki:
How to get Unlock key ?? please help me to unlock bootloader of xperia L c1204
[Sony Xperia L] Androidoo:
Yes please help me too for unlock key, i tried for flashtool, but it says, phone cannot be officially unlocked,

when connected in flashmode

:rolleyes:
[Sony Xperia L] TheRadekoslaw:
field inactive in a flashtool, I can not change the number to unlock the bootloader, I wrote at the beginning of the wrong number, and now I can not change now can somehow change the field?
[Sony Xperia L] iSaurabh:
I rooted my Xperia L (C2104) then Unlocked bootloader via Flashtool V0.9.20.0 then it stuck in bootloop. So downloaded Sony Xperia L [India]15.0.A.2.17[Generic] FTF, flashed it . But its still in bootloop mode, tried twice.

Please help! TIA
[Sony Xperia L] n78 shadow:
Are you sure It's a loop cause it well take some to boot so wait for it
[Sony Xperia L] adnaanbheda:
I hadn't root the phone so I unlocked it without backing up the locked bootloader, Now, the device is in bootloop, what should I do :( all my contacts aren't synced with google account ! I need those !
[Sony Xperia L] Anjali Sankar:
Bootloader can't be unlocked!

I get this while using flashtool :-

Processing of loader.sin finished with errors.Your phone bootloader cannot be officially unlocked.

When I checked unlocking status, it says 'Bootloader unlock allowed' So what else could be the problem?

I'm using flashtool 0.9.19.8 version on Windows 7 .I've previously flashed a stock ftf using this version and it worked fine.

Edit: I again ran flashtool and it worked this time. It resulted in a bootloop afterwards and I had to flash stock again,but got the important part right! So no worries. :)
[Sony Xperia L] desmond_1010:
how to flash stock FTF
[Sony Xperia L] sgkul:
Guys my c2104 vent into a bootloader. What do I do?
[Sony Xperia L] DizXDA83:
i've a xperia L that was with unlocked bootloader... i then relock it again on flashtools and now i can't unlock it anymore... is there any way, even if it's unnoficially?? tried fastboot command... no luck...
[Sony Xperia L] prasto11:
unlock bootloader to flash custom rom ?

do I have to unlock bootloader to flash custom rom ?

I have a root and custom recovery, but when I flash rom, phone does not start at all, not even boot logo is displayed :/
[Sony Xperia L] dika46:
HI...

I just unlock bootloader on Xperia L. I choose the official way, but after unlock, I am stuck at loading screen.

anyone have the same experiance as I am? need help, thank you.