[TOOL] XperiFirm ~ Xperia Firmware Downloader [v5.4.0]

caqo71

Senior Member
Apr 11, 2011
1,405
419
113
49
Santiago
Apparently Sony PC Companion uses direct streaming for their newer releases. I'll see if I can do something about it.
May be it's beacuse Companion works from installed roms (updating), and Xperifirm reads the roms that are complete standalone from sony servers. So, when the new (updating) roms will be released as Standalone ROM'S, they will be available on the same source that Xperifirm reads. To soon to complaint.
 

Rootk1t

Senior Member
Jun 2, 2013
1,415
630
113
May be it's beacuse Companion works from installed roms (updating), and Xperifirm reads the roms that are complete standalone from sony servers. So, when the new (updating) roms will be released as Standalone ROM'S, they will be available on the same source that Xperifirm reads. To soon to complaint.
The best way is to sniff the URL where pc-companion gets latest firmwares which are not seen in XperiFirm.
 

IgorEisberg

Senior Member
Jul 6, 2009
1,728
3,750
113
www.audiobudget.com
The best way is to sniff the URL where pc-companion gets latest firmwares which are not seen in XperiFirm.
Nothing to sniff. It gets the new data from the same server Emma gets them, only using PC Companion's account. It uses POST requests and the dialog between the client and the server is done with Java objects. XperiFirm already implements Java object deserializer, but now I need to write a Java object serializer (to send requests).
 
  • Like
Reactions: Dzepar

Rootk1t

Senior Member
Jun 2, 2013
1,415
630
113
Unfortunately I don't think I'll be able to fix the problem without actually having a device that uses the new protocol to constantly test on, I still have my Xperia Z1, and unless it starts to use the new protocol in the future I won't be able to do anything 'till then.
what devices are using new protocol: Z3 & Z2 series?
 

IgorEisberg

Senior Member
Jul 6, 2009
1,728
3,750
113
www.audiobudget.com
what devices are using new protocol: Z3 & Z2 series?
Yes as far as I know. Also might be Z3 Tablet.
Possibly also C5 (which isn't on the old servers) and possibly M5, not sure.
Just in the last few days 5.1.1 arrived for Z1 for Brazil (C6943) in the old way, so that method is still being used. Still not sure how the new way works because I need an actual device. Simple packet sniffing didn't give anything useful.
Also a new firmware was released today for M4 Aqua, also available on XperiFirm.
 
Last edited:

ibis69

Senior Member
Mar 1, 2010
145
94
0
LYON
Yes as far as I know. Also might be Z3 Tablet.
Possibly also C5 (which isn't on the old servers) and possibly M5, not sure.
Just in the last few days 5.1.1 arrived for Z1 for Brazil (C6943) in the old way, so that method is still being used. Still not sure how the new way works because I need an actual device. Simple packet sniffing didn't give anything useful.
Also a new firmware was released today for M4 Aqua, also available on XperiFirm.
hi, i got a tablet z4 with a pending update seen in pc companion but not in xperifirm so if i can help you for doing tests, pm me.
 
Last edited:
  • Like
Reactions: jeebspawnshop

IgorEisberg

Senior Member
Jul 6, 2009
1,728
3,750
113
www.audiobudget.com
hi, i got a tablet z4 with a pending update seen in pc companion but not in xperifirm so if i can help you for doing tests, pm me.

PS : json files uploaded
I've seen these JSON files but still can't find their origin. What I do know is that they are not downloaded, they are generated by the Update Engine after retrieving them as Java objects. Still it required research I cannot perform remotely.
 

IgorEisberg

Senior Member
Jul 6, 2009
1,728
3,750
113
www.audiobudget.com
Good news :good:
We are looking forward to fixed version :)
"Fix" is actually the wrong word. The right one is "update". That's because XperiFirm is not broken, it's just not updated for API 2 for specific devices.
The devices that are using API 2 are (including Chinese variants, but NOT Japanese variants):
Code:
Xperia Z5 Compact
Xperia Z5
Xperia Z3+
Xperia Z3 Compact
Xperia Z3v
Xperia Z3
Xperia Z2a
Xperia Z2
Xperia C5 Ultra
Xperia C4
Xperia M5
Xperia E1
Xperia C
Xperia Z4 Tablet
Xperia Z3 Tablet Compact
Xperia Z2 Tablet
 
Last edited:
  • Like
Reactions: Dzepar and amey2606

OtaruM

Senior Member
Sep 28, 2011
74
37
0
chillin in Moravia
A user named @OtaruM sent me a Fiddler report file made with his SGP511. This report has EVERYTHING I need to update XperiFirm to Sony's API v2.
It has nothing to do with direct file streaming after all, and it will not take too long to fix XperiFirm.
Please send huge gratitude to this guy.
Glad to hear that was helpful. Hoping to see updated Xperifirm soon :)
 

OtaruM

Senior Member
Sep 28, 2011
74
37
0
chillin in Moravia
What OS were you using with Fiddler ? .NET2 or .NET4 release ?

I tried to use fiddler and PCC was stuck at the preparation stage. Without fiddler running, preparation stage longs few minutes only

What options did you use in Fiddler ?
I've experience the same issue. PCC is downloading bunch of product icons from HTTPS and it takes quite a long time, this is around last quarter of Preparation status.
I'm using WinXP with Fiddler2 to trace. HTTPS decryption enabled. For this to work you need to import Fiddlers cert into keystore and feed this keystore to Update Engine java machine.

Here's the excerpt I've added to Sony Mobile Update Engine.ini
Code:
-DproxySet=true
-DproxyHost=127.0.0.1
-DproxyPort=8888
-Djavax.net.ssl.trustStore=C:\FiddlerKeyStore
-Djavax.net.ssl.trustStorePassword=******
 

IgorEisberg

Senior Member
Jul 6, 2009
1,728
3,750
113
www.audiobudget.com
Everything goes well so far. I know how to initialize a download and how to extract the downloaded files, so it shouldn't take more than a few days.

By the way, when porting some stuff from the leaked Z5 Compact firmware, I stumbled upon a check for a package that doesn't exist yet.
The package is "com.sonymobile.fontselector". I think Sony wants to surprise us with a Font Changer in future updates.