maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   How to unlock bootloader - Sony xperia X (https://talk.maemo.org/showthread.php?t=99703)

rfa 2017-08-14 08:54

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?

jurop88 2017-08-14 09:25

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.

pexi 2017-08-14 12:25

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?

explit 2017-08-15 11:20

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

rob_kouw 2017-08-15 15:28

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...

meloferz 2017-08-15 15:37

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by rob_kouw (Post 1532660)
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/)

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...

Don't unlock your bootloader before you make the DRM key backup! That's why you have to downgrade and execute the script to backup it, before you unlock... Because if you unlock your bootloader, you will lose your DRM key

Enviado desde mi F5121 mediante Tapatalk

meloferz 2017-08-15 15:39

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

meloferz 2017-08-15 15:40

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

explit 2017-08-15 19:13

Re: How to unlock bootloader - Sony xperia X
 
https://talk.maemo.org/showpost.php?...&postcount=785

Drekkie 2017-08-15 20:47

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by meloferz (Post 1532663)
Also this link will help you a lot https://forum.xda-developers.com/sho....php?t=3590476

Enviado desde mi F5121 mediante Tapatalk

Just wanted to reiterate if you are wanting to backup DRM partition and unlock the xperia x, the post above (and the dirty cow post it links to) are pretty good, and worked for someone like me who is still novice in these areas. The DRM image was successfully created.

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'.

meloferz 2017-08-15 21:06

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by Drekkie (Post 1532689)
Just wanted to reiterate if you are wanting to backup DRM partition and unlock the xperia x, the post above (and the dirty cow post it links to) are pretty good, and worked for someone like me who is still novice in these areas. The DRM image was successfully created.

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'.

In the thread of the backup tool, there is a command that you can use to restore DRM keys, some people do with TWRP in the terminal, or connected to the pc with adb

Enviado desde mi F5121 mediante Tapatalk

meloferz 2017-08-15 21:07

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

explit 2017-08-15 21:55

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by meloferz (Post 1532691)
After restore DRM keys, you have to flash stock rom to boot

Enviado desde mi F5121 mediante Tapatalk

Thats good to know. So as long as bootloader is unlocked and we use unsigned ROM (AOSP, SailfishOS etc.) we don't need (and don't can) restore the DRM-Keys ?

rob_kouw 2017-08-15 22:35

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
16/024/2017 00:24:12 - INFO  - Selected Bundle for Sony Xperia X(F5121). FW release : 34.0.A.2.301_R8A. Customization : Nordic Generic_1302-3140
16/024/2017 00:24:12 - INFO  - Preparing files for flashing
16/025/2017 00:25:12 - INFO  - Please connect your device into flashmode.
16/025/2017 00:25:13 - INFO  - Opening device for R/W
16/025/2017 00:25:13 - INFO  - Start Flashing
16/025/2017 00:25:13 - INFO  - No loader in the bundle. Searching for one
16/025/2017 00:25:26 - INFO  - No matching loader found
16/025/2017 00:25:26 - WARN  - No loader found or set manually. Skipping loader
16/025/2017 00:25:27 - INFO  - Ending flash session
16/025/2017 00:25:27 - ERROR - null
16/025/2017 00:25:27 - ERROR - Error flashing. Aborted
16/025/2017 00:25:27 - INFO  - Device connected in flash mode
16/025/2017 00:25:35 - INFO  - List of connected devices (Device Id) :
16/025/2017 00:25:35 - INFO  -      - USB\VID_0FCE&PID_ADDE\5&365BD757&0&1        Driver installed : true
16/025/2017 00:25:35 - INFO  - List of ADB devices :
16/025/2017 00:25:35 - INFO  -      - none
16/025/2017 00:25:35 - INFO  - List of fastboot devices :
16/025/2017 00:25:36 - INFO  -      - none


meloferz 2017-08-16 01:04

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by explit (Post 1532693)
Thats good to know. So as long as bootloader is unlocked and we use unsigned ROM (AOSP, SailfishOS etc.) we don't need (and don't can) restore the DRM-Keys ?

That's right, or custom roms based on stock, so... You will restore DRM keys and flash stock rom just to let your phone as it was never unlocked

Enviado desde mi F5121 mediante Tapatalk

meloferz 2017-08-16 01:06

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by rob_kouw (Post 1532695)
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
16/024/2017 00:24:12 - INFO  - Selected Bundle for Sony Xperia X(F5121). FW release : 34.0.A.2.301_R8A. Customization : Nordic Generic_1302-3140
16/024/2017 00:24:12 - INFO  - Preparing files for flashing
16/025/2017 00:25:12 - INFO  - Please connect your device into flashmode.
16/025/2017 00:25:13 - INFO  - Opening device for R/W
16/025/2017 00:25:13 - INFO  - Start Flashing
16/025/2017 00:25:13 - INFO  - No loader in the bundle. Searching for one
16/025/2017 00:25:26 - INFO  - No matching loader found
16/025/2017 00:25:26 - WARN  - No loader found or set manually. Skipping loader
16/025/2017 00:25:27 - INFO  - Ending flash session
16/025/2017 00:25:27 - ERROR - null
16/025/2017 00:25:27 - ERROR - Error flashing. Aborted
16/025/2017 00:25:27 - INFO  - Device connected in flash mode
16/025/2017 00:25:35 - INFO  - List of connected devices (Device Id) :
16/025/2017 00:25:35 - INFO  -      - USB\VID_0FCE&PID_ADDE\5&365BD757&0&1Driver installed : true
16/025/2017 00:25:35 - INFO  - List of ADB devices :
16/025/2017 00:25:35 - INFO  -      - none
16/025/2017 00:25:35 - INFO  - List of fastboot devices :
16/025/2017 00:25:36 - INFO  -      - none


Did pop up a message that told you to use a fsc script? If so... Click yes and try to flash again

Enviado desde mi F5121 mediante Tapatalk

explit 2017-08-16 19:22

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by meloferz (Post 1532700)
Did pop up a message that told you to use a fsc script? If so... Click yes and try to flash again

Enviado desde mi F5121 mediante Tapatalk

Yes thats normal. It tells you this message every time you load a new Firmware for flashing.

I flashed mine with XPeriaFlashTool under Linux

rob_kouw 2017-08-17 07:44

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.

meloferz 2017-08-17 11:18

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by rob_kouw (Post 1532746)
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.

I suggest you to use Xperifirm from Flashtool, there it create the ftf after download is completed, that's how I flashed my Xperia X

Enviado desde mi F5121 mediante Tapatalk

rob_kouw 2017-08-17 18:45

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)

meloferz 2017-08-17 19:06

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by rob_kouw (Post 1532782)
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)

It have to be included in the ftf I think, don't remember well because when I downloaded from Xperifirm, flashtool asked me to include in the ftf file, and choose yes, and flashed using fsc script when flashtool asked me

Enviado desde mi F5121 mediante Tapatalk

rob_kouw 2017-08-17 19:08

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.

explit 2017-08-18 06:21

Re: How to unlock bootloader - Sony xperia X
 
Guys! Make it better with Xperia Flashtool. Its much easier

rob_kouw 2017-08-19 14:51

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by explit (Post 1532815)
Guys! Make it better with Xperia Flashtool. Its much easier

Sorry, I have no Linux pc available for that. :eek:

juiceme 2017-09-13 10:36

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;
  • 1.) my device seems to come with Nougat 7.1.1 preinstalled.
    Now, to save the TA partition it is apparent that I need to downgrade this to 6.x in order to be able to use the tad-daemon workaround.
    The question is; where to get a known-good Marshmallow image for my device? When I search the net I find numerous sites that allow download but how to know which are genuine?
  • 2.) I am unsure how the downgrade is supposed to help; I understand that unlocking the bootloader destroys the DRM keys but how can I flash the downgrade image without unlocking the bootloader?
    Or is there something special about "sony-signed" images that allow them to be flashed without bootloader unlocking?
  • 3.) If the above is true, does the flashing process guarantee that I can only flash a real-sony-signed-image with locked bootloader?
    If that is true, then I don't need to worry about where I download the image, right?

carmenluci 2017-09-13 11:24

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by juiceme (Post 1534317)
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;
  • 1.) my device seems to come with Nougat 7.1.1 preinstalled.
    Now, to save the TA partition it is apparent that I need to downgrade this to 6.x in order to be able to use the tad-daemon workaround.
    The question is; where to get a known-good Marshmallow image for my device? When I search the net I find numerous sites that allow download but how to know which are genuine?
  • 2.) I am unsure how the downgrade is supposed to help; I understand that unlocking the bootloader destroys the DRM keys but how can I flash the downgrade image without unlocking the bootloader?
    Or is there something special about "sony-signed" images that allow them to be flashed without bootloader unlocking?
  • 3.) If the above is true, does the flashing process guarantee that I can only flash a real-sony-signed-image with locked bootloader?
    If that is true, then I don't need to worry about where I download the image, right?


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

juiceme 2017-09-13 11:39

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by carmenluci (Post 1534319)
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

Thanks!

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?

aspergerguy 2017-09-13 12:27

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by juiceme (Post 1534320)
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?

You should get Linux version from here:https://www.installandroidrom.co.uk/...asher-for.html

I am sure that you have already found ExplIT's resource:http://sailfishmods.de/2017/07/howto...ys-bootloader/

juiceme 2017-09-13 12:40

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by aspergerguy (Post 1534323)
You should get Linux version from here:https://www.installandroidrom.co.uk/...asher-for.html

Lovely!
I actually already found https://github.com/Androxyde/Flashtool when I started looking with correct keywords :D

aspergerguy 2017-09-13 14:29

Re: How to unlock bootloader - Sony xperia X
 
Back to orange triangle (brings back memories) and this device will Boot in 5secs.:D

HtheB 2017-09-13 15:19

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.

juiceme 2017-09-19 11:53

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by HtheB (Post 1534332)
You can actually just download the images from Sony itself using the Flashtool..... Even all the countries and carrier options are available.

bummer, not so easy :(

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
19/031/2017 17:31:23 - INFO  - <- This level is successfully initialized
19/031/2017 17:31:28 - INFO  - Flashtool Version 0.9.23.1 built on 11-01-2017 15:12:00
19/031/2017 17:31:28 - INFO  - libusb version 1.0.20
19/031/2017 17:31:28 - INFO  - Executing search strategies to find proxy selector
19/031/2017 17:31:28 - INFO  - No proxy found for gnome. Trying next one
19/031/2017 17:31:28 - INFO  - No proxy found for kde. Trying next one
19/031/2017 17:31:28 - INFO  - Proxy found for firefox
19/031/2017 17:31:29 - INFO  - Syncing devices from github
19/031/2017 17:31:29 - INFO  - Opening devices repository.
19/031/2017 17:31:30 - INFO  - Scanning devices folder for changes.
19/031/2017 17:31:41 - INFO  - Pulling changes from github.
19/031/2017 17:31:42 - INFO  - Quietly closing devices repository.
19/031/2017 17:31:42 - INFO  - Devices sync finished.
19/031/2017 17:31:42 - INFO  - Loading devices database
19/031/2017 17:31:42 - INFO  - Loaded 98 devices
19/031/2017 17:31:42 - INFO  - Starting phone detection
19/031/2017 17:31:45 - INFO  - Device disconnected
19/032/2017 17:32:07 - INFO  - Device connected in flash mode
19/032/2017 17:32:43 - INFO  - Selected Bundle for Sony Xperia X(F5121). FW release : 34.0.A.2.292. Customization : Customized DE
19/032/2017 17:32:43 - INFO  - Preparing files for flashing
19/035/2017 17:35:10 - INFO  - Please connect your device into flashmode.
19/035/2017 17:35:12 - INFO  - Opening device for R/W
19/035/2017 17:35:12 - INFO  - Device ready for R/W.
19/035/2017 17:35:12 - INFO  - Reading device information
19/035/2017 17:35:12 - INFO  - Phone ready for flashmode operations.
19/035/2017 17:35:12 - INFO  - Opening TA partition 2
19/035/2017 17:35:12 - INFO  - Current device : F5121 - CB512EV81U - 1302-4766_R2D - 1300-4911_34.3.A.0.194 - GENERIC_34.3.A.0.194
19/035/2017 17:35:12 - INFO  - Closing TA partition
19/035/2017 17:35:12 - INFO  - Start Flashing
19/035/2017 17:35:12 - INFO  - No loader in the bundle. Searching for one
19/035/2017 17:35:12 - INFO  - No matching loader found
19/035/2017 17:35:12 - WARN  - No loader found or set manually. Skipping loader
19/035/2017 17:35:12 - INFO  - Loader : S1_Root_d553 - Version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_N_160 / Boot version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_N_160 / Bootloader status : ROOTABLE
19/035/2017 17:35:12 - INFO  - Max packet size set to 4M
19/035/2017 17:35:12 - INFO  - USB buffer size set to 512K
19/035/2017 17:35:15 - INFO  - Parsing boot delivery
19/035/2017 17:35:15 - INFO  - No flash script found.
19/035/2017 17:35:15 - INFO  - Flash script is mandatory. Closing session
19/035/2017 17:35:15 - INFO  - Ending flash session
19/035/2017 17:35:15 - INFO  - Flashing finished.
19/035/2017 17:35:15 - INFO  - Please unplug and start your phone
19/035/2017 17:35:15 - INFO  - For flashtool, Unknown Sources and Debugging must be checked in phone settings
19/035/2017 17:35:16 - INFO  - Device connected in flash mode
19/036/2017 17:36:35 - INFO  - Device disconnected
root@tither:~/.flashTool#


Heik 2017-09-19 11:59

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.

Mazoon 2017-09-19 12:36

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by juiceme (Post 1534653)
bummer, not so easy :(

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
19/031/2017 17:31:23 - INFO  - <- This level is successfully initialized
19/031/2017 17:31:28 - INFO  - Flashtool Version 0.9.23.1 built on 11-01-2017 15:12:00
19/031/2017 17:31:28 - INFO  - libusb version 1.0.20
19/031/2017 17:31:28 - INFO  - Executing search strategies to find proxy selector
19/031/2017 17:31:28 - INFO  - No proxy found for gnome. Trying next one
19/031/2017 17:31:28 - INFO  - No proxy found for kde. Trying next one
19/031/2017 17:31:28 - INFO  - Proxy found for firefox
19/031/2017 17:31:29 - INFO  - Syncing devices from github
19/031/2017 17:31:29 - INFO  - Opening devices repository.
19/031/2017 17:31:30 - INFO  - Scanning devices folder for changes.
19/031/2017 17:31:41 - INFO  - Pulling changes from github.
19/031/2017 17:31:42 - INFO  - Quietly closing devices repository.
19/031/2017 17:31:42 - INFO  - Devices sync finished.
19/031/2017 17:31:42 - INFO  - Loading devices database
19/031/2017 17:31:42 - INFO  - Loaded 98 devices
19/031/2017 17:31:42 - INFO  - Starting phone detection
19/031/2017 17:31:45 - INFO  - Device disconnected
19/032/2017 17:32:07 - INFO  - Device connected in flash mode
19/032/2017 17:32:43 - INFO  - Selected Bundle for Sony Xperia X(F5121). FW release : 34.0.A.2.292. Customization : Customized DE
19/032/2017 17:32:43 - INFO  - Preparing files for flashing
19/035/2017 17:35:10 - INFO  - Please connect your device into flashmode.
19/035/2017 17:35:12 - INFO  - Opening device for R/W
19/035/2017 17:35:12 - INFO  - Device ready for R/W.
19/035/2017 17:35:12 - INFO  - Reading device information
19/035/2017 17:35:12 - INFO  - Phone ready for flashmode operations.
19/035/2017 17:35:12 - INFO  - Opening TA partition 2
19/035/2017 17:35:12 - INFO  - Current device : F5121 - CB512EV81U - 1302-4766_R2D - 1300-4911_34.3.A.0.194 - GENERIC_34.3.A.0.194
19/035/2017 17:35:12 - INFO  - Closing TA partition
19/035/2017 17:35:12 - INFO  - Start Flashing
19/035/2017 17:35:12 - INFO  - No loader in the bundle. Searching for one
19/035/2017 17:35:12 - INFO  - No matching loader found
19/035/2017 17:35:12 - WARN  - No loader found or set manually. Skipping loader
19/035/2017 17:35:12 - INFO  - Loader : S1_Root_d553 - Version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_N_160 / Boot version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_N_160 / Bootloader status : ROOTABLE
19/035/2017 17:35:12 - INFO  - Max packet size set to 4M
19/035/2017 17:35:12 - INFO  - USB buffer size set to 512K
19/035/2017 17:35:15 - INFO  - Parsing boot delivery
19/035/2017 17:35:15 - INFO  - No flash script found.
19/035/2017 17:35:15 - INFO  - Flash script is mandatory. Closing session
19/035/2017 17:35:15 - INFO  - Ending flash session
19/035/2017 17:35:15 - INFO  - Flashing finished.
19/035/2017 17:35:15 - INFO  - Please unplug and start your phone
19/035/2017 17:35:15 - INFO  - For flashtool, Unknown Sources and Debugging must be checked in phone settings
19/035/2017 17:35:16 - INFO  - Device connected in flash mode
19/036/2017 17:36:35 - INFO  - Device disconnected
root@tither:~/.flashTool#


F5121_34.0.A.2.301_R8A_Nordic Generic_1302-3140.ftf (edit: md5sum
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)

jayki 2017-09-19 14:04

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by juiceme (Post 1534653)
bummer, not so easy :(

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"...

For me it works with installed "mono" Package, which can run the .exe. Don't know how to install Mono on other Distributions but in Archlinux it was just installing the mono package :)

mrsellout 2017-09-19 15:20

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by jayki (Post 1534666)
For me it works with installed "mono" Package, which can run the .exe. Don't know how to install Mono on other Distributions but in Archlinux it was just installing the mono package :)

You could also use the docker version ( https://hub.docker.com/_/mono/ ) if you don't want to keep mono on your system afterwards.

juiceme 2017-09-21 07:57

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by Mazoon (Post 1534656)
F5121_34.0.A.2.301_R8A_Nordic Generic_1302-3140.ftf (edit: md5sum
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)

Thanks, downloaded that file but the same thing still haunts me.
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:

jurop88 2017-09-21 09:35

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)

juiceme 2017-09-21 12:27

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by jurop88 (Post 1534810)
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)

Thanks, so I'd need to pull a flashscript for my device from a git repo somewhere?
(I assume these are device type specific, and not SW release specific, right?)

Any pointers where to get it?

nieldk 2017-09-21 17:20

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by juiceme (Post 1534816)
Thanks, so I'd need to pull a flashscript for my device from a git repo somewhere?
(I assume these are device type specific, and not SW release specific, right?)

Any pointers where to get it?

I suggest using flashtool, it will create the file for you.
It may need modifications, but probably the best starting point.


All times are GMT. The time now is 04:43.

vBulletin® Version 3.8.8