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.

nieldk 2017-09-22 11:25

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

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




OK, I'll try to download that.

hehe yeah, Iam CLI guy also

pacman 2017-09-22 12:31

Re: How to unlock bootloader - Sony xperia X
 
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)

Yes, or this detailed German guide suggests the "Internal – Commerial and Journalists" version. Probably doesn't make much difference either way.

If you ever think that you might want to go back to stock Android, make a note of the current customisation in the phone's service menu.

juiceme 2017-09-25 09:20

Re: How to unlock bootloader - Sony xperia X
 
Up to now none of the things suggested here have worked for me :eek:

So as I said earlier...
Quote:

Originally Posted by juiceme (Post 1534803)
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:

As I think most probably am not going to need any of this DRM BS in any case... I was kind of thinking maybe it could be useful in SFOS at some later time too but if so, then I'll just have to learn to live without it.

In any case I was not doing this to be able to restore the "full original stock android" to the device anyway, am not interested about that and I am not afraid of (a-)voiding any warranty issues anyway...

epninety 2017-09-25 09:41

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

Originally Posted by juiceme (Post 1535084)
Up to now none of the things suggested here have worked for me :eek:

So as I said earlier...

As I think most probably am not going to need any of this DRM BS in any case... I was kind of thinking maybe it could be useful in SFOS at some later time too but if so, then I'll just have to learn to live without it.

I had a couple of sessions of trying to make this (DRM backup) happen. All the documentation seemed to be poor, and full of links to even worse documentation. I was frustrated looking at programs whose purpose wasn't clearly stated, and instructions which say 'do xyz' but don't state what the purpose is, or what the expected result is.

Frustrating - I gave up and just unlocked without backing up DRM.

That said, even Sony seem to have it cockeyed - the instructions for how to use the unlock code were only visible before I got the code, I had to go back and request the code again to find the instructions. :confused:

pexi 2017-09-25 10:10

Re: How to unlock bootloader - Sony xperia X
 
I downloaded the MM image from xperia forum, opened it with flashtool and that's it. No need to make it more complicated.

pexi 2017-09-25 10:13

Re: How to unlock bootloader - Sony xperia X
 
Get it from here: http://www.xperiablog.net/forum/reso...s/xperia-x.99/

After that set usb debugging and accept software from usb in Android settings. Then check from your PC that "adb devices" works and execute DRM backup to save your keys.

juiceme 2017-09-25 13:23

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

Originally Posted by pexi (Post 1535097)
I downloaded the MM image from xperia forum, opened it with flashtool and that's it. No need to make it more complicated.

None of the images I have downloaded and tried work for me, flashing always fails with missing flashscript.

mousse04 2017-09-25 13:28

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

Originally Posted by juiceme (Post 1535114)
None of the images I have downloaded and tried work for me, flashing always fails with missing flashscript.

I'm uploading an image I've used for my X. Finally working.
Make sure to have fastboot recognized.

I will post the link once it is done 16mns roughly

juiceme 2017-09-25 13:45

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

Originally Posted by mousse04 (Post 1535118)
I'm uploading an image I've used for my X. Finally working.
Make sure to have fastboot recognized.

I will post the link once it is done 16mns roughly

Thanks!
However I'm a bit doubtful about the fastboot bit, doesn't that require the device to be unlocked?
I have used "Flash Mode" previously as instructed, holding <vol-> down while plugging in USB...

mousse04 2017-09-25 13:47

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

Originally Posted by juiceme (Post 1535119)
Thanks!
However I'm a bit doubtful about the fastboot bit, doesn't that require the device to be unlocked?
I have used "Flash Mode" previously as instructed, holding <vol-> down while plugging in USB...

In this case, it is fine.

Here it is :

https://drive.google.com/open?id=0B6...HE1Y0VkY0JEVlE


Let me know how it will work.

ajalkane 2017-09-25 18:58

Re: How to unlock bootloader - Sony xperia X
 
At least for me that image did not work under Linux. Always stucking on either reading device infromation, or that the flashscript was not found.

What horror. I think I will not have the stomach to try under Windows and experience it's little quirks just to get DRM keys backed up.

pexi 2017-09-25 19:00

Re: How to unlock bootloader - Sony xperia X
 
I used Linux and I held volume down + plugged usb. flashed in flashmode.

pexi 2017-09-25 19:05

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

Originally Posted by juiceme (Post 1535114)
None of the images I have downloaded and tried work for me, flashing always fails with missing flashscript.

The one I referred to worked. I used Linux version of the flash tool.

ajalkane 2017-09-25 19:18

Re: How to unlock bootloader - Sony xperia X
 
Christ almighty, I managed to flash it using flashtool after installing the patch x10flasher.jar from here:

http://www.flashtool.net/downloads_linux.php

Unfortunately the result is garbage. The phone first booted and complained that some media service has stopped. And after that it boots into distorted image and reboots all over again.

Flasher showed these warnings:

apps_log is excluded from bundle
diag is excluded from bundle
ssd is excluded from bundle
Qnovo is excluded from bundle
persist is excluded from bundle
userdata is excluded from bundle
Unit 2212 not found in bundle
Unit 2550 not found in bundle
Unit 2553 not found in bundle

I'll try again to flash but this seems painful :D

lantern 2017-09-25 21:38

Re: How to unlock bootloader - Sony xperia X
 
afair you have to wipe userdata

ajalkane 2017-09-26 05:21

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

Originally Posted by lantern (Post 1535151)
afair you have to wipe userdata

I tried with Wipe on all options, to no avail.

I flashed 7.1.1 again on it. At least the device now boots, but it's giving me "com.android.phone has stopped" error all the time. Oh well, waiting for Sailfish.

juiceme 2017-09-26 07:10

Re: How to unlock bootloader - Sony xperia X
 
OK, now it is decided, I'll pass the hopeless DRM backup thing, request device unlock keys from Sony and I hope the SFOS image is available for purchase tomorrow. :)

What I absolutely don't understand is why the XDA forum guys who undeniably must be android hackers of some reputation put up using windoze for development environment... and the tools they create are this kind of java-crap!

What a world...

mousse04 2017-09-26 07:29

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

Originally Posted by juiceme (Post 1535176)
OK, now it is decided, I'll pass the hopeless DRM backup thing, request device unlock keys from Sony and I hope the SFOS image is available for purchase tomorrow. :)

What I absolutely don't understand is why the XDA forum guys who undeniably must be android hackers of some reputation put up using windoze for development environment... and the tools they create are this kind of java-crap!

What a world...

So, meaning my image doesn't work :( ?

juiceme 2017-09-26 07:59

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

Originally Posted by mousse04 (Post 1535177)
So, meaning my image doesn't work :( ?

I dare not try it as it bricked @ajalkane's phone!

mousse04 2017-09-26 09:04

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

Originally Posted by ajalkane (Post 1535137)
At least for me that image did not work under Linux. Always stucking on either reading device infromation, or that the flashscript was not found.

What horror. I think I will not have the stomach to try under Windows and experience it's little quirks just to get DRM keys backed up.

Were you using the image I posted ?

mousse04 2017-09-26 09:05

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

Originally Posted by juiceme (Post 1535183)
I dare not try it as it bricked @ajalkane's phone!

Strange, this is the one I used

ajalkane 2017-09-26 09:22

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

Originally Posted by mousse04 (Post 1535189)
Were you using the image I posted ?

Yes. Or actually I've tried so many different links that I'm not sure anymore. I'll try one final time just to make sure.

mousse04 2017-09-26 09:31

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

Originally Posted by ajalkane (Post 1535192)
Yes. Or actually I've tried so many different links that I'm not sure anymore. I'll try one final time just to make sure.

What you can try to is :

Create a folder : .flashTool/mydevices/F51XX/

in the tar file I uploaded, there is a fsc file. Extract it
and copy it here:


.flashTool/mydevices/F51XX/
.flashTool/devices/F51XX/

Then, close flashtool and launch it again and try flashing again

Good luck

ajalkane 2017-09-26 09:55

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

Originally Posted by mousse04 (Post 1535193)
What you can try to is :

Create a folder : .flashTool/mydevices/F51XX/

Unfortunately even this didn't work. Same boot loop as a result.

mousse04 2017-09-26 10:14

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

Originally Posted by ajalkane (Post 1535198)
Unfortunately even this didn't work. Same boot loop as a result.

hum .. very strange

richie 2017-09-26 11:26

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

Originally Posted by epninety (Post 1535085)
I had a couple of sessions of trying to make this (DRM backup) happen. All the documentation seemed to be poor, and full of links to even worse documentation. I was frustrated looking at programs whose purpose wasn't clearly stated, and instructions which say 'do xyz' but don't state what the purpose is, or what the expected result is.

I've yet to do this myself, but trying to make sense of docs. It would be good if someone could do a video of some of the steps to downgrade using official Sony image to help understand instructions.

Rich

nieldk 2017-09-26 11:39

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

Originally Posted by ajalkane (Post 1535198)
Unfortunately even this didn't work. Same boot loop as a result.

Happened to me once with one SE device. Used Xperia Companion from Sony to fix it.

juiceme 2017-09-26 12:28

Re: How to unlock bootloader - Sony xperia X
 
I wonder if whether it works correctly, fails alltogether to flash or goes to brickloop depends also on the variant existing on the device?

Using the "Xperia Companion" is a no-no since it is a windoze tool.

---------- edit ----------

I kind of thought the whole point of flashing a device that has a locked bootloader is to do it so that only official Sony-signed images can be flashed... so either it flashes or not but is impossible to brick...??

pexi 2017-09-26 12:40

Re: How to unlock bootloader - Sony xperia X
 
Hard to believe that I was just lucky so here is the process that I did with my Xperia and Opensuse PC. Hope I remember it all.

- enabled usb debugging and allowed application install from usb in Xperia original android 7
- downloaded flashtool for linux and applied the update available on the flashtool page
- downloaded Xperia scandinavia image version 6.something from the link I gave earlier
- downloaded madcows DRM backup script
- started root shell with "su - root"
- installed adb with "zypper install android-tools"
- plugged in Xperia
- tested that "adb devices" works
- unplugged Xperia
- shut off Xperia
- held volume down button and plugged in Xperia
- launched Flashtool as root
- browsed and opened the Android 6.x what I just downloaded
- used flash mode
- selected all wipes
- watched it update
- rebooted Xperia, set the new user mandatory settings
- enabled usb debugging and install apps from usb
- executed madcows DRM backup script

Never had a glitch. Did I forget something?

ajalkane 2017-09-26 13:29

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

Originally Posted by juiceme (Post 1535206)
I wonder if whether it works correctly, fails alltogether to flash or goes to brickloop depends also on the variant existing on the device?

I've also wondered whether there are multiple versions of Xperia X with subtle differences that could explain failure. My box says revision 4, which suggests there is other revisions.


All times are GMT. The time now is 06:08.

vBulletin® Version 3.8.8