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)

juiceme 2017-09-21 17:28

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

Originally Posted by nieldk (Post 1534845)
I suggest using flashtool, it will create the file for you.
It may need modifications, but probably the best starting point.

Heh, that error comes from the Flashtool :D

I guess I need to run xperiafrm.exe to get a proper SW package instead of downloading from random sites off da net.
I already tried that with mono but was behind the company firewall and it did not work. Have to try it from home...

jurop88 2017-09-21 17:46

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

Originally Posted by juiceme (Post 1534847)
I guess I need to run xperiafrm.exe to get a proper SW package instead of downloading from random sites off da net.

^ this

worst case I still have the above ITA image to share, do not know if it's legal and how to do it, though

joschobart 2017-09-21 18:11

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 :)

In debian/ubuntu-like distros you install wine with this command:

sudo apt-get install wine

Then run the .exe by typing:

wine XperiFirm.exe

Update: In order to use the tool you need .Net 4.0 installed as well. After installing wine install .Net with the following command:

winetricks dotnet40

nieldk 2017-09-21 18:29

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

Originally Posted by juiceme (Post 1534847)
Heh, that error comes from the Flashtool :D

I guess I need to run xperiafrm.exe to get a proper SW package instead of downloading from random sites off da net.
I already tried that with mono but was behind the company firewall and it did not work. Have to try it from home...

The ftf file that you downloaded have already been processed by flashtool (flashtool generates that file)
You will need to download a firmware with xperifirm, which flashtool will process, creating a directory in flashtool folder with all the files it uses to create the ftf file.
Among them the flash file script.
Also, you should update flashtool (it’s a single jar file that you just replace in flashtool folder).
Short: The script is used to generate the ftf file (from my Xperia team days memory when I cracked the Play boot loader)

Heik 2017-09-21 20:10

Re: How to unlock bootloader - Sony xperia X
 
When I tried to use files that I downloaded using XperiFirm and created the ftf file from the files in downloaded folder (Tools > Bundles > Create) (did not use files cust-reset.ta and fota-reset.ta) I got about the same error as juiceme. Maybe I just made some error in creating the ftf file.

Code:

21/035/2017 21:35:41 - INFO  - No flash script found.
21/035/2017 21:35:41 - INFO  - Flash script is mandatory. Closing session

When I used ftf file that I directly downloaded for example from http://www.gsm-file.com/
(for F5121:
F5121_34.0.A.2.301_R8A_Nordic Generic_1302-3140.ftf

for F5122:
F5122_34.0.A.2.301_R9A_Hong Kong Generic_1302-5683.ftf,
later noticed, that also
F5122_34.0.A.1.277_Central Europe_1302-5672_R3A.ftf
was available)

I managed to flash the phones without any problems, assuming that USERDATA was ticked in wipe option in flashtool Firmware Selector.

I did this all in Windows 10, however, I did not manage to follow Windows instructions to backup DRM partitions, I had to do that in Linux :-)

juiceme 2017-09-22 06:27

Re: How to unlock bootloader - Sony xperia X
 
Well, managed to run XperiFirm.exe by running it in mono.

When I select Xperia X / F5121 it gives a bunch of downloads, but seems there are only latest versions available.
How do I know which android version they are?

I tested by selecting bundled nordic version, and downloaded it; however instead of a single *.ftf file, there are tens of files of type *.sin
Can I perform a flashing with these, or do I need to somehow bundle these to a *ftf first?

lantern 2017-09-22 06:36

Re: How to unlock bootloader - Sony xperia X
 
Throw away XperiFirm.
Flash this fw (F5121/5122 - doesn't matter)
http://www.mediafire.com/file/tmovri..._1302-4771.ftf

nieldk 2017-09-22 07:26

Re: How to unlock bootloader - Sony xperia X
 
1 Attachment(s)
Quote:

Originally Posted by juiceme (Post 1534882)
Well, managed to run XperiFirm.exe by running it in mono.

When I select Xperia X / F5121 it gives a bunch of downloads, but seems there are only latest versions available.
How do I know which android version they are?

I tested by selecting bundled nordic version, and downloaded it; however instead of a single *.ftf file, there are tens of files of type *.sin
Can I perform a flashing with these, or do I need to somehow bundle these to a *ftf first?

flashtool will bundle them to an ftf file when you choose flash.
For Android 6.0.1, you can download 'storefront' version from Xperifirm (version 34.0.A.1.264)

juiceme 2017-09-22 11:05

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

Originally Posted by lantern (Post 1534884)
Throw away XperiFirm.
Flash this fw (F5121/5122 - doesn't matter)
http://www.mediafire.com/file/tmovri..._1302-4771.ftf

Thanks, I'll try that.
(altough I am sceptical, why would one image behave differently than another...)

Oh, downloading time 1h45min...

juiceme 2017-09-22 11:14

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

Originally Posted by nieldk (Post 1534885)
flashtool will bundle them to an ftf file when you choose flash.

Well, this is one of the reasons I hate GUI tools like this.
For a CLI tool one can give exact information how to use, a string of characters to use on a terminal.
For a GUI tool one can only give vague advice on what should be done and clicked...

For example, how to "flashtool will bundle them" for example; when I push the "flash" button and navigate to a directory where I have a *.ftf file, it will open a tree view of the SW and allow me to start flashing.
If I navigate to the directory where I have this bundle of *sin's I got no such thing and the "flash" button stays grayed out.

For the life of me I cannot understand why people would want to create utilities like these when it is bloody obvious a CLI tool would be much easier???


Quote:

Originally Posted by nieldk (Post 1534885)
For Android 6.0.1, you can download 'storefront' version from Xperifirm (version 34.0.A.1.264)

OK, I'll try to download that.


All times are GMT. The time now is 05:58.

vBulletin® Version 3.8.8