![]() |
How to unlock bootloader - Sony xperia X
https://developer.sonymobile.com/unlockbootloader/
I'm sure as we approach Jolla releasing the firmware we're all waiting for we'll need this link. For my own curiosity, there's no need for me to use this until I get an OS image, is there? |
Re: How to unlock bootloader - Sony xperia X
This link can be useful as well.
https://forum.xda-developers.com/cro...ackup-t3514236 The TA partition is where the DRM key is stored. When the bootloader is unlocked, the DRM keys are being wiped and therefore are lost forever. With the procedure mentioned above we can safely have a backup of the DRM keys, therefore being able to restore the Xperia to its 'like new' conditions in case of warranty repairs. It is therefore important to backup the TA partition and DRM keys BEFORE unlocking bootloader first time. The above procedure is based on an exploit present on Android < 7.0, corrected with the Nougat version. Therefore, if your device is shipped with Nougat pre-installed it takes a bit more time since you need to downgrade the phone first to a previous Android version. I already did it with mine and I can confirm the procedure works. |
Re: How to unlock bootloader - Sony xperia X
What about this one: https://www.reddit.com/r/SonyXperia/..._on_stock_rom/
Is it possible to have DRM with multirom? |
Re: How to unlock bootloader - Sony xperia X
MultiROM would probably not support SailfishOS on Xperia.
DRM (TA-Backup) can be restored back with XperiaFlashtool. don't know if it will be needed after Sailfish is installed |
Re: How to unlock bootloader - Sony xperia X
I can't get this working. Of course I'm not experienced with stuff like this. The phone came with Android 7.0.
In Windows I installed the Flash Tool (Emma), which did not connect automatically. On the Sony pages I found the X was not mentioned with a key to connect to Emma!? (https://developer.sonymobile.com/ope...ported_phones/) (Edit: After connecting holding the volume up key some extra drivers were installed. Then Emma did connect when plugging the USB in while holding the volume down key. Need to unlock first.) Then I found that the bootloader needs to be unlocked first. (OK, why not, never mind backing up the TA partition an DRM keys now.) I decided to get my unlock key anyway. The description says to install the Android SDK, but only the command tools at the bottom. Fine, but this is only a zip file. The Extras folder where I should update a driver is not there, it's probably necessary to install the entire SDK... I rest my case for now, I'll just wait for a more convenient tool from SailfishOS... |
Re: How to unlock bootloader - Sony xperia X
Quote:
Enviado desde mi F5121 mediante Tapatalk |
Re: How to unlock bootloader - Sony xperia X
I recommend you to download flashtool from www.flashtool.net, that's has a more friendly UI and is good for start
Enviado desde mi F5121 mediante Tapatalk |
Re: How to unlock bootloader - Sony xperia X
Also this link will help you a lot https://forum.xda-developers.com/sho....php?t=3590476
Enviado desde mi F5121 mediante Tapatalk |
Re: How to unlock bootloader - Sony xperia X
|
Re: How to unlock bootloader - Sony xperia X
Quote:
My curent noob question is now that i have my DRM img successfully backed up, i'm not sure from those threads how to actually restore it back to stock if i wanted to (i have only unlocked, not rooted). Do you just copy the TA/DRM backup img file to phone and use twrp to flash it, or are you supposed to connect the phone to computer and boot into fastboot mode where you run adb commands from the pc? Have been searching but not found any explicit examples, just mentions of 'flash with the drm img back to stock'. |
Re: How to unlock bootloader - Sony xperia X
Quote:
Enviado desde mi F5121 mediante Tapatalk |
Re: How to unlock bootloader - Sony xperia X
After restore DRM keys, you have to flash stock rom to boot
Enviado desde mi F5121 mediante Tapatalk |
Re: How to unlock bootloader - Sony xperia X
Quote:
|
Re: How to unlock bootloader - Sony xperia X
I tried to flash it with the Androxyde Flasher you suggested. It took me a while to get the right driver, indeed. The Device Manager is happy in Windows 10, no unknown devices any more.
But it won't flash yet. Code:
16/023/2017 00:23:33 - INFO - Device connected in flash mode |
Re: How to unlock bootloader - Sony xperia X
Quote:
Enviado desde mi F5121 mediante Tapatalk |
Re: How to unlock bootloader - Sony xperia X
Quote:
Enviado desde mi F5121 mediante Tapatalk |
Re: How to unlock bootloader - Sony xperia X
Quote:
I flashed mine with XPeriaFlashTool under Linux |
Re: How to unlock bootloader - Sony xperia X
I found this question on GitHub: https://github.com/Androxyde/devices/issues/53 in which someone asks why he cannot flash the F5121 with Androxyde. He states he did manage with an earlier version: "I only flash successfully with an older version F5121_34.0.A.2.301 using 34.0.fsc script."
So it seems I had the wrong ftf to flash with. I will have another go with this version: https://easy-firmware.com/index.php?...egory&id=18692, at the bottom. |
Re: How to unlock bootloader - Sony xperia X
Quote:
Enviado desde mi F5121 mediante Tapatalk |
Re: How to unlock bootloader - Sony xperia X
OK, I will. Did you use a flash script? Androxyde Flashtool keeps saying:
No flash script found. Flash script is mandatory. Closing session (Which is weird as in ...\.flashtool\devices\F51XX there are 3 .fsc files) |
Re: How to unlock bootloader - Sony xperia X
Quote:
Enviado desde mi F5121 mediante Tapatalk |
Re: How to unlock bootloader - Sony xperia X
In the meantime I found this explanation of the setup on Windows 10, with temporary disabling of Driver Signature Enforcement, allowing you to install the right drivers.
http://www.droidviews.com/setup-andr...vices-windows/ He also gives a step-by-step guide for XperiFirm and FlashTool. http://www.droidviews.com/install-st...and-flashtool/ Edit: I finally flashed the phone. Thanks guys! The trick for me was the installation of the drivers. Everything seemed to be OK, but apparently wasn't. The part of disabling of Driver Signature Enforcement before starting Flashtool-drivers.exe was crucial. I only installed the upper two drivers. All the others are meant for specific models, and the X is not among them. Further newbie tips: on the phone, Settings, About phone, click "Build number" until you are a Developer. With Developer Options allow "USB Debugging". I disabled "Verify apps over USB", not sure whether needed. For later use, enable "OEM unlocking" here too. Before flashing: hold key Volume Down when plugging in the USB cable. For backupTA connect normally with MTP. |
Re: How to unlock bootloader - Sony xperia X
Guys! Make it better with Xperia Flashtool. Its much easier
|
Re: How to unlock bootloader - Sony xperia X
Quote:
|
Re: How to unlock bootloader - Sony xperia X
I could not wait a week but powered on my shiny new F5121 for the first time now :p
(OK I did manage to hold and wait more than a week before doing so!) But now I have few questions;
|
Re: How to unlock bootloader - Sony xperia X
Quote:
1) You can download Android 6 using Xperifirm, the answer is here: https://talk.maemo.org/showpost.php?...&postcount=785, and you can download Xperifirm from XDA Forum: https://forum.xda-developers.com/cro...oader-t2834142 2) You don't need unlock the bootloader to flash the downgrade image 3) Yes, you can only flash sony image without bootloader unlocking |
Re: How to unlock bootloader - Sony xperia X
Quote:
This is good to know, especially 3.) since it means I cannot accidentally flash a buggy/compromised package :D Can one do this from Linux, as I have no access to windows machines and frankly would not want to install a VM just for this purpose? |
Re: How to unlock bootloader - Sony xperia X
Quote:
I am sure that you have already found ExplIT's resource:http://sailfishmods.de/2017/07/howto...ys-bootloader/ |
Re: How to unlock bootloader - Sony xperia X
Quote:
I actually already found https://github.com/Androxyde/Flashtool when I started looking with correct keywords :D |
Re: How to unlock bootloader - Sony xperia X
Back to orange triangle (brings back memories) and this device will Boot in 5secs.:D
|
Re: How to unlock bootloader - Sony xperia X
You can actually just download the images from Sony itself using the Flashtool..... Even all the countries and carrier options are available.
|
Re: How to unlock bootloader - Sony xperia X
Quote:
It seems that downloading the image is not possible from inside the Flashtool in the linux version, it requires an external windows binary "XperiFirm.exe"... I tried flashing using the image found in @ExplIT's link (which seems to be "F5121_34.0.A.2.292_Customized DE" but either the image is noncomplete or there is something dizzy about my environment/setup, as Flasher fails for "no loader" and "no flash script" ... Code:
root@tither:~/.flashTool# cat flashtool_2017-09-19_05-49-28.log |
Re: How to unlock bootloader - Sony xperia X
In my flashing process (in Windows) I had to select USERDATA option under Wipe in Flashtool Firmware Selector.
Not sure if I got similar results as juiceme, when it was not selected. Anyway, flashing failed. May be totally different problem, though. |
Re: How to unlock bootloader - Sony xperia X
Quote:
6ea96ed801e6a8d3164f5280c84b17f4) worked for my unit from the recent Verkkokauppa.com sale, had to however allow debug, unknown sources and disable verification of stuff installed through USB ("Tarkista USBN:n kautta asennetut"), I think. I think I downloaded the image from https://easy-firmware.com/home/brows...-info/id/58108 (maybe a legit image? or full of malware? doesn't matter, got the TA partition with it and will overwrite with SFOS) |
Re: How to unlock bootloader - Sony xperia X
Quote:
|
Re: How to unlock bootloader - Sony xperia X
Quote:
|
Re: How to unlock bootloader - Sony xperia X
Quote:
Why does it say "No flash script found. / Flash script is mandatory. Closing session" ? What's this flash script anyway, is it part of the SW package or is it something I am missing in the Flasher? I am beginnig to think downgrading is impossible for me... probably I am going to just unlock the bootloader and care f**ck about the TA backup thingy :mad: |
Re: How to unlock bootloader - Sony xperia X
What a 'flash script (.fsc)' is:
http://www.flashtool.net/fsccreate.php Building one is 'close to impossible' for non-skilled person (I dug a bit about it with the USB logger with no success - I am not a skilled one :)) The downloaded image shall therefore have this .fsc file included. With XperiFirm I found a version with MM for my phone that included the flash script and flashed with no hassle back to Android 6.01 using that one (F5121_34.0.A.2.292_R4A_Customized IT) |
Re: How to unlock bootloader - Sony xperia X
Quote:
(I assume these are device type specific, and not SW release specific, right?) Any pointers where to get it? |
Re: How to unlock bootloader - Sony xperia X
Quote:
It may need modifications, but probably the best starting point. |
All times are GMT. The time now is 15:56. |
vBulletin® Version 3.8.8