XperiFirm 4.8.0 - Unpacking Xperia D6503_23.4.A.1.200_R4C fails - General Questions and Answers

As new member I was adviced to post my question in this forum.
After downloading new firmware with XperiFirm 4.8.0 and activated option to unpack downloaded software automatically I get an error message that there is included a file with a filename longer than 260 characters, which would not be supported by the "CLR". I am trying this on a Windows 10 Notebook, so I am not sure if this error message refers to an issue with the Windows OS or if it refers to the target OS Android. Are there any suggestions what to try next or do I have to wait until a really issue with provided release will be fixed by elsewhere?
BR, Johann

jschadler said:
As new member I was adviced to post my question in this forum.
After downloading new firmware with XperiFirm 4.8.0 and activated option to unpack downloaded software automatically I get an error message that there is included a file with a filename longer than 260 characters, which would not be supported by the "CLR". I am trying this on a Windows 10 Notebook, so I am not sure if this error message refers to an issue with the Windows OS or if it refers to the target OS Android. Are there any suggestions what to try next or do I have to wait until a really issue with provided release will be fixed by elsewhere?
BR, Johann
Click to expand...
Click to collapse
When you select the folder to download to, choose the root of your drive (ie. C:\ or D:\)
Windows doesn't treat paths longer than 260 characters well. You'll get the same error when you try to extract an archive with WinRAR in a very nested folder with a long path.

Issue fixed by provided advice
IaguCool said:
When you select the folder to download to, choose the root of your drive (ie. C:\ or D:\)
Windows doesn't treat paths longer than 260 characters well. You'll get the same error when you try to extract an archive with WinRAR in a very nested folder with a long path.
Click to expand...
Click to collapse
Thank you, by following this advice I was able to unpack downloaded firmware successfully. (And to flash my phone at last, too.)
BR, Johann

Related

How do I sign a .DLL file???

Ok , I am trying to resign my phcanBmp.dll file to have my own images. I have used ResHack in order to change the file and make a new one but I know you need to sign the file in order for it to work...
So I have downloaded the latest BuildOS+Package 4.2b3 and it has a signapp.exe.... Problem is I cant find any information on how to use it??? I have searched google and located a sign and timestamp dll files but I am not sure if this will work with mobile applications.
Please help
ryncppr said:
Ok , I am trying to resign my phcanBmp.dll file to have my own images. I have used ResHack in order to change the file and make a new one but I know you need to sign the file in order for it to work...
So I have downloaded the latest BuildOS+Package 4.2b3 and it has a signapp.exe.... Problem is I cant find any information on how to use it??? I have searched google and located a sign and timestamp dll files but I am not sure if this will work with mobile applications.
Please help
Click to expand...
Click to collapse
ResHack will cause a dll or exe locked to sign if u edit it heavily.
Use Heaventools Resource Editor or PE Explorer instead
I bought Resource Editor and there is no way to sign the file....It shows when I edit only 6 bitmap files it says the file is no longer signed or trusted...is there a way around this
NEVER MIND GOOGLE IS MY FRIEND
ryncppr said:
I bought Resource Editor and there is no way to sign the file....It shows when I edit only 6 bitmap files it says the file is no longer signed or trusted...is there a way around this
Click to expand...
Click to collapse
i attached the program i used to sign the htchome.dll file I patched. Do the following:
1) Put the file in the same folder as the program.
2) Go into command prompt and navigate to the folder which contains the the file (in my case C:\Documents and Settings\ScottE\Desktop\Programs\ATT Tilt\Programs\SignCode\SignCode)
3) Type "sign filename" which in my case was: sign htchome.dll
Then it should give you a message that the file was signed.
I just added a screenshot
you can also use sign tool from Microsoft SDK 2008
i tought he cannot sign the file after edit it. silly me there is also multisign tool floating in this forum based on SDK but with easy GUI.
skatdawg said:
i attached the program i used to sign the htchome.dll file I patched. Do the following:
1) Put the file in the same folder as the program.
2) Go into command prompt and navigate to the folder which contains the the file (in my case C:\Documents and Settings\ScottE\Desktop\Programs\ATT Tilt\Programs\SignCode\SignCode)
3) Type "sign filename" which in my case was: sign htchome.dll
Then it should give you a message that the file was signed.
I just added a screenshot
Click to expand...
Click to collapse
Thats what I used..!!!! Thank you so much for the response...The 2008 SDK signs files but not really, you actually have to buy digital signatures...this way its free and works....
Just copied my phncanbmp test file to my phone and it works like a charm!!
ryncppr said:
Thats what I used..!!!! Thank you so much for the response...The 2008 SDK signs files but not really, you actually have to buy digital signatures...this way its free and works....
Just copied my phncanbmp test file to my phone and it works like a charm!!
Click to expand...
Click to collapse
Glad to help you man
a lot of thanks dear scotchua very useful

[TOOL] Something to make BlobTools Easier to use

This tool is an interactive console application. It makes it easier to use blob tools. All you have to do is run it, choose to unpack or repack. If you choose repack it will ask you to enter the name for each of the required files. After that it will due the rest.
Notice: You either have to enter the full, have the blob file in the same directory/folder or have change changed directories to the location of the blob. For example: cd /path/to/blob's Dir/
Update: I have fixed the case sensitivity issue.
Note: The attachments below will always be the latest.
ostar2 said:
I created an application to make BlobTools easier to use. It is an interactive console application. I made this because I wanted to be of some help to the community. Well anyways, here it is...
Click to expand...
Click to collapse
Files are corrupt. Try again please.
Regards,
Brad
bradslinux said:
Files are corrupt. Try again please.
Regards,
Brad
Click to expand...
Click to collapse
Those were compressed with the LZMA algorithm. Here try these ones there compressed with the normal zip compression for windows.
Edit: To prevent confusion I have removed these attachments please download from The Original Post. Thanks.
ostar2 said:
Those were compressed with the LZMA algorithm. Here try these ones there compressed with the normal zip compression for windows.
Click to expand...
Click to collapse
That did it, thanks.
Nice work.
Regards,
Brad
welcome..
Excellent! Thank you - these will aid me greatly!
I like to be of help to the community so I am happy that this helps others.
Sourcecode and Update
As I am unable to compile for Linux or mac at the moment here is the sourcecode for this tool.
This uses a Code::Blocks IDE for its project/workspace. It can be compiled with just a c++ compiler. The icon is only available on windows as I do not know to implement it on macosx and Linux does not support icons in executables. also, I have updated this application as well the updated binarie zip files and source zip are attached. Enjoy!
Edit: To prevent confusion I have removed these attachments please download from The Original Post. Thanks.
ostar2 said:
As I am unable to compile for Linux or mac at the moment here is the sourcecode for this tool.
This uses a Code::Blocks IDE for its project/workspace. It can be compiled with just a c++ compiler. The icon is only available on windows as I do not know to implement it on macosx and Linux does not support icons in executables. also, I have updated this application as well the updated binarie zip files and source zip are attached. Enjoy!
Click to expand...
Click to collapse
I tried to unpack a blob and it kept failing with an Invalid Option! error. I hit u then typed blob which was in the same directory. I then manually dragged the blob onto the blobunpack.exe and it unpacked it fine.
Any ideas why?
sbdags said:
I tried to unpack a blob and it kept failing with an Invalid Option! error. I hit u then typed blob which was in the same directory. I then manually dragged the blob onto the blobunpack.exe and it unpacked it fine.
Any ideas why?
Click to expand...
Click to collapse
I was unsure of what extenstion the blob file had when I created this. What extenstion do they have? is it .blob? If so I think i can fix it.
Update: Fixed Not unpacking
Hello again I fixed the tool it should work fine now.
Edit: To prevent confusion I have removed these attachments please download from The Original Post. Thanks.
ostar2 said:
I was unsure of what extenstion the blob file had when I created this. What extenstion do they have? is it .blob? If so I think i can fix it.
Click to expand...
Click to collapse
The blobs usually have no extension at all, and the extracted parts have a dot and the partition name as their last part, but I would not call these "extensions" (even if Windows disagrees with me).
_that said:
The blobs usually have no extension at all, and the extracted parts have a dot and the partition name as their last part, but I would not call these "extensions" (even if Windows disagrees with me).
Click to expand...
Click to collapse
Thanks, that makes more sense. Also, I am thinking about having BlobTools print the command usage in more detail or at least a "--help" command displaying detailed usage of BlobTools. Like, how to unpack and repack.
[WIP] New tool
I am going to make gui version of this using wxwidgets and also maby consolidate the two tools into one and then combine it with GUI. That would make it much better.
still getting the "invalid option" message :/
arminneman said:
still getting the "invalid option" message :/
Click to expand...
Click to collapse
Please re-download from the original post. It should work fine. If not let me know.
Ok, its updated let me know if any problems occur.
ostar2 said:
Ok, its updated let me know if any problems occur.
Click to expand...
Click to collapse
I try it on win 7 64bit, run as administrator BlobToolUI select u and blob the name of file and give this error:
Unable to open "b"
Can You help me?
Thanks
Riccardo.
cipolippo said:
I try it on win 7 64bit, run as administrator BlobToolUI select u and blob the name of file and give this error:
Unable to open "b"
Can You help me?
Thanks
Riccardo.
Click to expand...
Click to collapse
Is the blob you want to unpack in the same directory? If that does not work try adding a "." the end of the file name.
ostar2 said:
Is the blob you want to unpack in the same directory? If that does not work try adding a "." the end of the file name.
Click to expand...
Click to collapse
Yes is in the same directory, adding a "." the end of the file does not work..
work if I rename file "blob" in also "b" ?
Thanks.

[Q] Debrand Dead End: Nokia Product Support Tool V5

I've downloaded an unbranded stock UK ROM (i think) for a Nokia 1020 64Gb to replace the O2 rubbish.
It is file
RM875_3051.40000.1345.1003_RETAIL_eu_euro1_212_03_336753_prd_signed.ffu
It was automatically downloaded to C:\ProgramData\Nokia\Packages\Products\rm-875
I try to 'make' Product Support Tools for Store 5.0 find the download. It will not.
Regardless of which folder I place the download in (and alter the supposed location path) all the Recovery Tool sees is the software
already installed on the Nokia 1020 - filename. It defaults to this file.
RM875_059T1Z9_3051.40000.1345.1003_062.vpl
This is the nasty O2 branded crap already on the Nokia 1020 and all it wants to find.
Have I just downloaded another O2 branded rom ?
Dead end and out of ideas.
All answers on a postcard please to Muppet The Wonder Dog.
Do I have to remove something that makes it default to the installed
version of software ?
Thanks in anticipation.
To delete.
anaheiim said:
Use 059T1V6 RM-875 VAR EURO GB CV BLACK and http://forum.xda-developers.com/showthread.php?t=2515453
Click to expand...
Click to collapse
Thank you. Will Do.
Jailbreaking iPhones was never this challenging.
anaheiim said:
Use 059T1V6 RM-875 VAR EURO GB CV BLACK and http://forum.xda-developers.com/showthread.php?t=2515453
Click to expand...
Click to collapse
The download was successful. The 059T1V6 files are downloaded to C:\ProgramData\Nokia\Packages\Products\rm-875. I used NaviFirm+ to download.
Alas, Product Support Tool for Store 5.0 does not want to locate the files. Why ? I have moved the files (and changed the path) to different locations in an attempt to persuade the software to locate the 059T1V6 files. But NO ...it will not.
Every time I try to change the address path to where I've moved the files is adds "\Products" to the path address. Not helpful.
When I create the path it thinks it wants .C:\ProgramData\Nokia\Packages\Products\rm-875\Products...and place the files in this folder..it still refuses to locate the files.
Going round in ever decreasing circles.
Thanks in advance Anaheim.
To delete.
anaheiim said:
No, use Data Package Manager for DL your FW
Here http://forum.xda-developers.com/showthread.php?t=2515453
Click to expand...
Click to collapse
The reason I paid & used NaviFirm+ to DL the FW is the DL worked.
I am unable to get Nokia Data Manager to accept any text entry in any of its fields to start a DL.
I am unable to get Nokia Product Support Tool V5 to see/locate the (apparently) identical FW downloaded via NaviFirm+ to start the 'Recovery' process.
I'm on fully patched W7 (x64)
It's a mystery.
To delete.
Here are the dropbox links screenshots of
https://www.dropbox.com/s/h1f1emb2jyuvexl/Screenshot 2014-06-04 12.24.10.png
and to Nokia Care Suite
https://www.dropbox.com/s/1pz22k5a2kvox9d/Screenshot 2014-06-04 12.27.26.png
Thanks
To delete.
anaheiim said:
If you are in offline mode in the Data Package Manager (and according to the screenshot, you are) you can not DL the ROM.
Similarly for Product Support Tool, why did you connect directly your Lumia?
Follow the tutorial that I provided and you will get there.If you are unable to properly follow the steps (in most it's extremely detailed and with the screenshots), sorry but I can not help you.
Click to expand...
Click to collapse
As I said the problem is not in the downloading of the ROM.
It was very easy in NaviFirm+. I recommend the software for its simplicity and ease of use.
I have identical ROMs downloaded via Nokia Data Package & NaviFirm+.
The problem appears that the data path in Product Support Tool for Store V5.0 appends as a suffix '\Products' to the data download path. This is not the default path given from the Data Package Manager. The path is not user editable. If I create the additional folder and move the files to the folder it says it is looking for.... the Nokia package still fails to locate the FW it is trying to Recover. There are no screenshots to illustrate any error message. There is no error message.
I appreciate that it is very difficult to convey the exact steps in unambiguous English. I have been very fortunate in both multiple JailBreaks and the application of Cyanogen Mod to a collection of Samsungs..
To delete.
all paths added have the sub-folder ' \Products
' appended to the text string. I am unable to edit the path name. Just add another.
See
https://www.dropbox.com/s/vyuowb43rafn80a/Screenshot 2014-06-09 11.21.53.png
When I go to try and set the path via Data Package Manger it does not see them;which ever folder they are placed in.
https://www.dropbox.com/s/mxhjlegdqviqqis/Screenshot 2014-06-09 11.25.31.png
Sorry for the thread necro. I have an O2 1020 64GB as well and want to rebrand it, but for love nor money I can't find from where to download the firmware, all sources are down. Any input is appreciated!
triturbo said:
Sorry for the thread necro. I have an O2 1020 64GB as well and want to rebrand it, but for love nor money I can't find from where to download the firmware, all sources are down. Any input is appreciated!
Click to expand...
Click to collapse
One possibility would be to use thor2 to change the product code on the device, then let the WDRT do its job.

[REQUEST] OTA .182 update Zip

Hi!
I'd like to know where the OTAs are stored in our M2. Anyone that hasn't done yet the update download, and that has Root permissions, can use this app to find where they're stored, and if possible, upload it and post a link to it.
Thank you!
Do you still needed the file, sir ?
FunSucker said:
Do you still needed the file, sir ?
Click to expand...
Click to collapse
Yep. It's for some research
I think, the app didn't work sir. After I wait 30 minutes, none of the files were copied to my storage. Then I try searching using manual method, I found one file, the file size is as large as my OTA update. The nama file is "update-package".
The file extension is not ".zip", in the folder recovery (internal storage). My estimate, the file extension .LZMA or .tar.LZMA or .zipx.
I've tried to extract and decompress in the PC (windows os) using some programs, but failed.
If you still need the file, I'll upload it now .
FunSucker said:
I think, the app didn't work sir. After I wait 30 minutes, none of the files were copied to my storage. Then I try searching using manual method, I found one file, the file size is as large as my OTA update. The nama file is "update-package".
The file extension is not ".zip", in the folder recovery (internal storage). My estimate, the file extension .LZMA or .tar.LZMA or .zipx.
I've tried to extract and decompress in the PC (windows os) using some programs, but failed.
If you still need the file, I'll upload it now .
Click to expand...
Click to collapse
Yes please! Thanks
oke, sir. when finished i will share the link.
Oke sir, check this out --> Google Drive
FunSucker said:
Oke sir, check this out --> Google Drive
Click to expand...
Click to collapse
Great, thank you very much!
Okay, so this is what I got:
The update zip refuses to be flashed in UBL devices. FOTAkernel system is broken after you open the bootloader, which leads us with an unused partition (but that's other thing). The recovery logs just say: WARN: Status Rooted, ERR: Bootloader is unlocked.
I've tried to force it using AOSP Recovery commands
Code:
echo 'boot-recovery' > /cache/recovery/command
echo '--update_package=/sdcard/update.zip' >> /cache/recovery/command
reboot recovery
But just got a big nope.
So, now time to have a look at it. I tried to unpack it several times but no luck. The reason seems to be, very probably, because this is a LZMA compressed file (as 7-Zip reported) but with 2 additions at the end (which corrupts the entire read of it): An unencrypted/uncompressed XML which points out which is the software available right now in the phone (<source>), and which is the version that is going to be installed (<target>), plus, some a weird <generation> section. This is the XML
Code:
<?xml version='1.0' encoding='ISO-8859-1'?>
<metadata version="3.3">
<product>
<manufacturer>Sony</manufacturer>
<model>D2302</model>
<hwplatform>msm8226</hwplatform>
</product>
<update>
<generation>
<version>1.1.2</version>
<date>2015-12-28T12:10:19Z</date>
<rb_version>7.0.15.117</rb_version>
<rb_ua_version>7.0.15.117</rb_ua_version>
</generation>
<source>
<software>
<revision>18.6.A.0.175</revision>
</software>
<customization>
<variant>1281-0464</variant>
<revision>R2C</revision>
</customization>
</source>
<target>
<software>
<revision>18.6.A.0.182</revision>
</software>
<customization>
<variant>1281-0464</variant>
<revision>R2C</revision>
</customization>
</target>
</update>
</metadata>
And, right after that, I can perfectly see a SIN header, so I isolated it and, looks quite similar to the FOTAkernel.sin included in FTFs (330613072905Z010U S1_FOTA0 ‚"0), I personally guess it's a very, very small ELF binary, by the size of it.
So, the problem now comes to isolate the 3 parts, the LZMA file, the XML and the SIN, separetly. After that, I think we can probably have a look insde them.
How about linux os? Can we unpack or decompress that file on linux os, sir? Do you have tried?
FunSucker said:
How about linux os? Can we unpack or decompress that file on linux os, sir? Do you have tried?
Click to expand...
Click to collapse
I've tried many tools and combinations (ext4, .img, etc) and none of them worked... I'll think more about it.

[TOOL][WIN] ROM Explorer - Browse Android ROM Files

ROM Explorer
From time to time I need to extract some files from various Android ROMs. So far I downloaded the ROM file and then started to search for further tools to extract files from the downloaded ROM. If all went well I ended up with an image I could open with ext4_unpacker to finally extract the files I needed. This whole procedure took a lot of time, involved tools from unknown sources and often simply didn't work. So I decided to create my own tool.
ROM Explorer can directly open the following files:
zip archives with img or new.dat entries
Samsung md5 archives
Sony ftf archives
Huawei update.app archives
img/ext4 image files
lz4 image files (used by Samsung)
sin fies (used by Sony)
In case you have a file which is not supported let me know. Maybe I find the time to add support. Or simply add it yourself - ROM Explorer is Open Source.
Usage
Download the installer and run it or build your own version with Visual Studio 2017.
Start the executable. You will see a window similar to ext4_unpacker. In the first line you select a file, in the second line you can choose an archive entry if the file is an archive file.
Loading a file or archive entry can take a significant amount of time and disk storage. ROM Explorer may need to create temporary files with several gigabytes. A fast flash disk helps a lot!
You can extract files or folders by dragging and dropping them to Windows Explorer.
Downloads
ROM Explorer 0.9
ROM Explorer 0.9.1
Thanks To
ROM Explorer would not exist without the distributed knowledge of this forum. Especially I want to thank worstenbrood, Androxyde, IgorEisberg for their work.
So I'm waiting for your comments - but be patient it may take some time for me to react
Reserved for whatever purpose...
Wew
Let me try and report you back
Thank you I will try this out. Thanks too for making it open source
Not Running on Windows 7 x64
samidos said:
Not Running on Windows 7 x64
Click to expand...
Click to collapse
0.9.1 should fix this. Be sure to first uninstall before installing 0.9.1.
After hours of google search and downloading countless apps that dont work I found this. This app is legit and works on windows 10 64bit. Thank you for your work.
Your app is GREAT! Thanks for sharing it.
Edit: Answered my own question. Windows 10 tip "Run As Administrator" and dont drag files "to the desktop" but instead to an Explorer window.
Can this program find the differences between compiled ROMs?
I ask this question because Xiaomi on the Mi 9 released an initial kernel with sourcecode that was changed over time without updating the GitHub https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/cepheus-p-oss and because of this change, the ROMs have something different between how they connect to the cameras. The old ROM versions (4/1/2019 and before) connect fine to the cameras, but post that date, a custom kernel built from the GitHub source will fail to connect to the cameras. Since the change has not been made open source on GitHub, there has to be another way to find and patch new kernel builds in order for them to work. Would your software be able to extract these changes? If not, do you have any other ideas which may? Much appreciated.

Categories

Resources