yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] munjeni:
Thanks! That not going to be true. I have sniff usb packets during pc companion flash, almost all files is flashed except simlock! I realy have no idea what mean that flags from xml file you say but I can say thats not a true. If you not believing me I can give you sniff log and xml file from that fw folder.
[Sony Cross-Device General] munjeni:
G8141_Customized CE1_1308-5321_45.0.A.1.229_R6A

<SYSTEMPARTITIONIMAGE>partition.zip</SYSTEMPARTITIONIMAGE>
<BOOT>boot.zip</BOOT>
<NOERASE>appslog_X-FLASH-ALL-42E5.sin</NOERASE>
<NOERASE>diag_X-FLASH-ALL-42E5.sin</NOERASE>
<NOERASE>ssd_X-FLASH-ALL-42E5.sin</NOERASE>
<NOERASE>Qnovo_X-FLASH-ALL-42E5.sin</NOERASE>
<FACTORY_ONLY>persist_X-FLASH-ALL-5ADA.sin</FACTORY_ONLY>
<NOERASE>userdata_X-FLASH-ALL-42E5.sin</NOERASE>
<SIMLOCK>simlock.ta</SIMLOCK>
<NOERASE>cust-reset.ta</NOERASE>
<NOERASE>master-reset.ta</NOERASE>
<RESETNONSECUREADB>reset-non-secure-adb.ta</RESETNONSECUREADB>
<NOERASE>reset-wipe-reason.ta</NOERASE>

NOERASE userdata? Not a true definitelly, I'm look right now into pc companion usb sniff log and userdata is definitelly erased + flashed, these xml file have no sense.

To prove you, see sniff log from the same fw:

000531: Bulk or Interrupt Transfer (DOWN), 2017-06-07 18:22:46.1671204 +0.0000879 (1. Device: Playback)
Pipe Handle: 0x2d18bad0 (Endpoint Address: 0x1)
Send 0x9 bytes to the device
65 72 61 73 65 3A 73 73 64 erase:ssd

000534: Bulk or Interrupt Transfer (UP), 2017-06-07 18:22:46.1933954 +0.0260106. (1. Device: Playback) Status: 0x00000000
Pipe Handle: 0x2d3f0d20 (Endpoint Address: 0x81)
Get 0x4 bytes from the device
4F 4B 41 59 OKAY

000535: Bulk or Interrupt Transfer (DOWN), 2017-06-07 18:22:46.1935281 +0.0001327 (1. Device: Playback)
Pipe Handle: 0x2d18bad0 (Endpoint Address: 0x1)
Send 0x11 bytes to the device
64 6F 77 6E 6C 6F 61 64 3A 30 30 30 30 30 30 30 download:0000000
31 1

000538: Bulk or Interrupt Transfer (UP), 2017-06-07 18:22:46.1940682 +0.0001339. (1. Device: Playback) Status: 0x00000000
Pipe Handle: 0x2d3f0d20 (Endpoint Address: 0x81)
Get 0xc bytes from the device
44 41 54 41 30 30 30 30 30 30 30 31 DATA00000001

000539: Bulk or Interrupt Transfer (DOWN), 2017-06-07 18:22:46.1941834 +0.0001152 (1. Device: Playback)
Pipe Handle: 0x2d18bad0 (Endpoint Address: 0x1)
Send 0x1 bytes to the device
00 .

000542: Bulk or Interrupt Transfer (UP), 2017-06-07 18:22:46.1947917 +0.0002647. (1. Device: Playback) Status: 0x00000000
Pipe Handle: 0x2d3f0d20 (Endpoint Address: 0x81)
Get 0x4 bytes from the device
4F 4B 41 59 OKAY

000543: Bulk or Interrupt Transfer (DOWN), 2017-06-07 18:22:46.1949040 +0.0001123 (1. Device: Playback)
Pipe Handle: 0x2d18bad0 (Endpoint Address: 0x1)
Send 0x9 bytes to the device
66 6C 61 73 68 3A 73 73 64 flash:ssd

000546: Bulk or Interrupt Transfer (UP), 2017-06-07 18:22:46.1954751 +0.0002764. (1. Device: Playback) Status: 0x00000000
Pipe Handle: 0x2d3f0d20 (Endpoint Address: 0x81)
Get 0x4 bytes from the device
4F 4B 41 59 OKAY

So that <NOERASE>ssd_X-FLASH-ALL-42E5.sin</NOERASE> and the rest of the NOERASE is nonsense definitely!
[Sony Cross-Device General] lintern:
I'm getting confused with updating, I have updated to Oreo on the XZ Premium with no problems whatsoever but when I flashed the update I deleted the partition.zip file without extracting anything and it flashed the update fine. Is this the way it's meant to be done as all other posts I've read say you have to extract the partition.zip into a partition folder alongside the other files and then flash?
[Sony Cross-Device General] shoey63:
Extracting partition zip is strongly recommended, especially if changing Android versions. Sony may have added or changed some partitions needed for the new firmware to function properly.
[Sony Cross-Device General] lintern:
So how was I able to go from Nougat to Oreo on my XZ Premium without using the partion.zip? I deleted that file and I flashed the update fine.
[Sony Cross-Device General] ishemes:
Perhaps the partition structure of the phone wasn't changed between Nougat and Oreo.
[Sony Cross-Device General] hndr_haryanto:
About Xperia XZ1

Sorry for the newbie question. How if I wana be rebrand my Xperia XZ1? Tutorial is same? Thanks
[Sony Cross-Device General] hndr_haryanto:
No one can help me? I Follow instruction on this thread, flashing is done, but when I turn on my Xperia XZ1 , there is still stuck on Sony start screen. ;(
[Sony Cross-Device General] dokujaryu:
Can the top level post be updated with the following information:

* How to install GordonGate after 7z is created

* Why trim dump is useful

* If this process will destroy your DRM keys

I'm assuming this won't destroy DRM keys since it didn't unlock the phone to flash.
[Sony Cross-Device General] ch3mn3y:
[MENTION=5703038]dokujaryu[/MENTION]

* Why? It's not thread about Windows to teach how to install drivers.

* Don;t think that it has any use in this state.

* No. You are not unlocking Your bootloader and there is no other way to "destroy" DRM keys.
[Sony Cross-Device General] arjun.arora:
Hi, I need some help buddy. My XZP dual is on Oreo firmware, VoLTE is active (Customized India firmware), the thing is I want to revert back to nougat .137 but I don't have the ftf file, it's not even available on Xperifirm. The one that is available on Xpericheck is corrupted.

I want to know what files from the HK .137 firmware to flash so as to retain VoLTE and still downgrade to nougat.

Please help.

Thanks.

Never mind buddy. Tried some combinations it's working now.
[Sony Cross-Device General] maksim_kw:
Mister, mister! Super! Super! Thank you! Perfect!:good::good::good:
[Sony Cross-Device General] billbond4:
Is it possible to do a flash to a different region and keep existing data?
[Sony Cross-Device General] Bartekreaper:
ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:
Niepoprawna funkcja.

- Error write! Need nBytes: 0x18 but done: 0x0
nBytes[0x0]:

- Error writing command getvar:max-download-size!

End. You can disconnect your device when you close newflasher.exe
Press any key to continue . . .

Anyone know what this mean? I tried to flash newest CE1 and have drivers :( Xperia XZ1 Compact
[Sony Cross-Device General] SXUsr:
Check task manager and close PC Companion if it's running, I've just had this same issue but have now flashed my XZ1C successfully with the .51 update.
[Sony Cross-Device General] moro30:
can i install on Gentoo linux system? i have Xperia XZ Premium and i need to debrand it
[Sony Cross-Device General] ch3mn3y:
[MENTION=1179469]moro30[/MENTION]

Yes You can! As long as it supports commands used to start the script (and I does), You are fine.
[Sony Cross-Device General] ItsHumf:
I second this. Even if you've quit the application made sure to kill the task via the task manager as it's still doing things behind the scenes. and stopping Newflasher from proceeding.

-XZ1c
[Sony Cross-Device General] modpunk:
Hello [MENTION=4120742]munjeni[/MENTION]

thanks for the tool. I have a Sony device for the first time and I'm pretty new to Sony device development.

Could you explain a few things for me?

What is the trimarea exactly? I thought it is the complete layout of the device. The logfile looks like this:

FAILUnable to read TA unit 2, error=-22
FAILUnable to read TA unit 3, error=-22
FAILUnable to read TA unit 5, error=-22
FAILUnable to read TA unit 11, error=-22
...

However I have a 01.ta and 02.ta and it looks like it is some kind of a hexdump.

Could you also explain the flashing process. If I understand it correctly if you just call newflasher it will flash everything and I get a "factory reset". If I have e.g. LineageOS with data on it and just want to update it I will remove the system, kernel, oem and userdata sin files and call newflasher?
[Sony Cross-Device General] munjeni:
Trim area is per device unique container, it holds everything device specific and unique like drm keys, videvine keys, imei, network configuration, sim lock, certs...etc. Its like heart. If you brick trim area your devuce is dead forever. If you brick it your device can't be unbricked. Only way for unbricking is trought e.g. easy jtag with direct emmc connection to emmc ic. So in short forget trim area and never touch it. About newflasher, yes! Newflasher is designed to flash everything from the same dir with newflasher.
[Sony Cross-Device General] MrMPod:
use google translator and here you are http://4pda.ru/forum/index.php?showtopic=847241&view=findpost&p=65779232
[Sony Cross-Device General] karrouma:
[MENTION=4120742]munjeni[/MENTION]

No usb device with vid:0x0fce pid:0xb00b !

can,t update my xz premium
[Sony Cross-Device General] patrol-cz:
Hi!

I'm planning to rebrand my G8142. The goal is to enable V*LTE and VoWiFi.

My colleague downloaded me a directory by XperiFirm (I don't have windows)

and now I'm looking onto update.xml.

I'm planning to remove simlock.ta as recommended.

What I'm thinking about, is persist_X-FLASH-ALL-42E5.sin. Shall I flash it ? It's

embedded with a different tags than most of the other files:

<FACTORY_ONLY>persist_X-FLASH-ALL-42E5.sin</FACTORY_ONLY>

Is it possible that it's intended to be used only for flashing in the factory ?

Even the name "persist" makes intuitions that it should be persistent during

all the device life... I tried to guess its contents - it cannot be loopmounted as

a regular filesystem and there is just a few strings inside - lost+found (which

looks like a typical rescue directory name in *IX filesystems), sensors and

sensors_settings. Maybe it's a a specific fs storing settings for sensors like

battery health or similar ? Who knows... But I think I'll NOT flash it. Do you

(especially [MENTION=4120742]munjeni[/MENTION]) think it's safe ? I plan to flash all the other parts including

partitions and all TAs except the simlock.ta mentioned above.

With regards,

Pavel
[Sony Cross-Device General] munjeni:
Hi, read this first https://xdaforums.com/showpost.php?p=74479668&postcount=652 . Don't look into that nonsense xml file, I am checked and comfirmed that that xml file is nonsense by looking into usb sniff log and that xml file! You can skip what you want but I always recommend flashing all. Simlock units is skipped by default with newflasher sp you no need to remove.
[Sony Cross-Device General] munjeni:
Check driver status on your PC device mannager and install driver in case driver missing (yellow triangle warning icon). Check if something allready using device usb port e.g. pc companion software ...etc.
[Sony Cross-Device General] patrol-cz:
OK, thanks for your reply. So I did as you wrote. Flashing process was straightforward and easy. The only small misunderstanding appeared in the beginning, where I used the command "newflasher.x64 | tee flash.log" - to keep the messages in the log file but see them on the console as well. A standard thing on *IX. And nothing happened, not a letter of output for a long time. I started to be a bit nervous but because the newflasher process slept all the time and it didn't open any of the files yet, I Ctrl-C'd it and tried again without the pipe to tee. And I found that it's asking me a question and waiting for my answer. I read it in the program description but then I forgot it. And because stdout was not interactive due to the pipe, output was buffered and it didn't appear neither in the file nor on the console yet. Maybe fflusn(stdout) after writing the question would be suitable to fix this tiny problem :).

So, many thanks for creating this easy but powerful tool for flashing this new Xperia family phones!

With regards,

Pavel
[Sony Cross-Device General] MrMPod:
use google translator and here you are http://4pda.ru/forum/index.php?showt...ost&p=65779232
[Sony Cross-Device General] artpra:
[MENTION=4120742]munjeni[/MENTION]

Thank you for this amazing tool.

Used it for my XZPremium, which had nougat carrier branded rom and got oreo ce1 one. Unbranding treatment went perfect : flashed EVERYTHING, all files in all folders, even all *.ta - minus simlock.ta just in case. Absolutely no problems to report. Amazing work, thanks again.

Ps: during the process, I opted for TA backup. It taken a very long time, I was afraid to close newsflasher or to unplug the phone so I waited 20 or 25 minutes but it finally succeeded and started the actual flashing process. So all good but maybe put some notification on screen that TA backup is in progress instead of just dots filling console very slowly?

If you want my backup and log to investigate let me know.

Is there any hope to backup DRM keys or you accepted it as a not possible?
[Sony Cross-Device General] mirhl:
Yes, everything is possible.

But you'll have to wait for some root exploit in that case.
[Sony Cross-Device General] munjeni:
Probably yes but also probably no, why I say that? Seems unlock unit (I didn't found that unit in unlocked device trim area dump) is deleted on boot. Probably the same thing happening with drm unit too! [MENTION=3665957]the_laser[/MENTION] told about that month-two ago, and I believing that. So if that is true than definitelly no way dumping drm keys from android side since these units is deleted (or hiden) when android boots.
[Sony Cross-Device General] munjeni:
Hi, thanks! You can give an pull reguest to my git if you know how that can be fixed, sourc ecode is on my git
[Sony Cross-Device General] mirhl:
Mhh.. Pretty interesting.

But how's the DRM status passed over (and retained) to the system then?
[Sony Cross-Device General] zippy01:
To my knowledge the drm info is retained in a protected part of the TA.

On unlocking the bootloader this secured part is wiped
[Sony Cross-Device General] munjeni:
See https://xdaforums.com/showpost.php?p=74256830&postcount=45 , just guesing, key is read on init for decripting credentials database and unit removed on init. Strange thing is how that is removed but not permanently removed - mean it must be somewhere stored after deletion for next use, is not that strange? There is many more questions which I not understand :) Thats question for sToRm, he made drm fix for xzp and he know how it working
[Sony Cross-Device General] feizhel_vandrago:
if i want to downgrade my firmware, which file i must flash with newflasher? i've tried to flash only modem.sin and system.sin for xz premium, but i got stuck on bootloop sony logo.
[Sony Cross-Device General] munjeni:
Start reading from this page https://xdaforums.com/crossdevice-dev/sony/progress-newflasher-xperia-command-line-t3619426/page61

Happy New Year to All!!
[Sony Cross-Device General] feizhel_vandrago:
thanks for your help :)
[Sony Cross-Device General] RyTekk:
I see no partition.zip when downloading XZ firmware by Xperifirm, there's just partition.sin, do I need to put it in partition folder or left it in the same folder with newflasher.exe?
[Sony Cross-Device General] munjeni:
Seems Sony changed something. Can you post that partition.sin file?
[Sony Cross-Device General] RyTekk:
Here you are, it seems that forum doesn't allow to upload sin file so I added it to archive.
[Sony Cross-Device General] ch3mn3y:
Not sure what's the problem. I downloaded 3 .12.34 firmwares for XZ Premium and all of them (as well as ones for XZ1 and Compact) have partition.zip file.

I know that Flashtool is unpacking .zip files when unpacking firmwares. But in the end it's unpacked to partition folder, so it should be OK for Newflasher.
[Sony Cross-Device General] munjeni:
Ar you sure you have downloaded firmware compatible with your phone? All newer devices have partition zip and use sin version 4, but your partition.sin is sin version 3 which make me think that your firmware is not for your phone model. I think its not safe to flash that file right now! Double check what you have downloaded, and I can recommend you to redownload firmware!
[Sony Cross-Device General] RyTekk:
It seems that's my fault, my device is XZ, a 2016 device, it should not be discussed in a thread for 2017 devices, right? Btw, is it still safe if I use your tool to flash my XZ?
[Sony Cross-Device General] munjeni:
You can't use newflasher since it will not flash anything, instead search for my another tool caled xflasher
[Sony Cross-Device General] :
Hi, [MENTION=4120742]munjeni[/MENTION]

I came across this article while surfing around: http://www.xperiablog.net/2018/01/2...-firmware-for-xperia-xz-premium-xz1-and-more/

I don't understand why the .ta files are deleted and why there is a "partition" folder created. Any idea?

Thanks!
[Sony Cross-Device General] ch3mn3y:
[MENTION=5746995]doriandiaconu[/MENTION]

This tool and one from the srticle on XperiaBlog are 2 different tools. Flashtool creates firmware it's way and this tool uses "official" firmware format. That's why here You have to create partition folder and there Flashtool creates not only folder, but partition_bundle.xml as well.
[Sony Cross-Device General] :
From my understanding, in the article they use Newflasher and not Flashtool.

Is the Xperifirm from Flashtool different than the standalone one?
[Sony Cross-Device General] ch3mn3y:
Sorry. My mistake. They had article about Flashtool few days ago and I somehow as it.

Partition folder is created coz Newflasher needs it. That's Im sure as mujenji told me himself that when I wasn't sure what is wrong when I was flashing friends XZ Premium without unpacking it.

It's easy to say why: Newflasher doesn't include 7zip and nor everybody use it, so there could be problem with unpacking partition.zip file while flashing.

As for ta files, before Xflasher, when there was just Flashtool, they were (at least that's how I was taught here on XDA) deleted coz (if I rembember it right) they were creating problems with older Flashtool version and older devices. They are useless, so maybe author was removing it before and still does? As it's his/her article than he/she created guide using his/her experience.

As for XperiFIrm than it's the same one as standalone.
[Sony Cross-Device General] :
The thing is that I flashed some firmware on my XZ1 Compact without creating the partition folder or deleting the .ta files and everything works fine so far. So that's why I wanted to know if I messed up anything.

Thanks!
[Sony Cross-Device General] S1gma:
[MENTION=4120742]munjeni[/MENTION] wrote some time ago he checked this using usb sniffer during Xperia Companion Flash. If I remember correctly, result was that .ta files are flashed by Xperia Companion.
[Sony Cross-Device General] Ningyou Higeki:
What should I do if I don't want to wipe my data when flashing? And I heard someone said I have to flash all the files (and lose all my data at the same time) to get OTA. Is this true?
[Sony Cross-Device General] munjeni:
duplicate
[Sony Cross-Device General] munjeni:
[MENTION=5746995]doriandiaconu[/MENTION] peoples simple want to keep userdata by deleting some of the ta files, userdata image and etc, but I always recommend flashing all files including partition image. Keep in mind what can happen if sony decide to change partition layout and partition sizes and you skip some important files like partition image, configuration from .ta ...etc, e.g. you flash bootloader which is modified to match new partition layout e.g. you flash new bootloader on old partition layout, not a good. So your choice is what you want to flash. I think better idea is always keeping userdata trought recovery backup and restore, but always doing full flash without skipping anything, thats how I flash my phone everytime, and I always recommend that. Partition folder is need because I didn't integrated unzip inside flash tool so you need to unzip partition.zip into folder caled partition.
[Sony Cross-Device General] munjeni:
There was some posts where peoples sucesfully flashed firmware by keeping userdata, just search for them. If I remember corectly some .ta files + userdata.sin need to be deleted + realy don't know which another one need to be deleted, search! Again I recommend flash all by losing userdata. If you want to keep your userdata make recovery backup and after you flash your faworite firmware just simple restore backup.
[Sony Cross-Device General] munjeni:
Never saw this. :) I'm always prefering full wipe and later use PalyStore for installing my faw apps :)
[Sony Cross-Device General] ehsas1:
hi

I have 5 questions:

questions1:

I downloaded the xz1 firmware with xprifirm and want to convert it to ftf.

When I click create, the following message is given.

Yes or No? which one? What is this file?

questions2:

Where to make sure that the ftf file is made correctly and without difficulty and ready to flashing?

questions3:

What are these options in the latest Flashtools release? Which one do I check?

questions4:

I clicked on the Simulity Option and the message below. What is this and what should I do?

questions5:

Do you think flashing with flashtools is easier or newflasher?

Answer me separately.tnx :fingers-crossed::cool::o
[Sony Cross-Device General] ch3mn3y:
A1. Yes.

A2. You can simulate it.

A3. Select everything below Wipe and nothing below Exclude.

A4. Select Yes, but if You add .fsc than there will be only PERSIST.

A5. Yes, coz it has GUI.
[Sony Cross-Device General] sToRm//:
[MENTION=299810]ehsh[/MENTION]s1

Dude... This thread is about Newflasher, not Flashtool. It's like asking about Microsoft Word in a Open Office thread. Haha...
[Sony Cross-Device General] ehsas1:
Answer 1: What is this file?

I did not understand answers 4 and 5. Are you explaining the exact?

The next question: The downloaded file with xprifirm is the following folder without tampering. Just copy the newflasher and flash it?

Need to delete .ta files? Because they are listed on the link below, they should be deleted. What has been said for .ta to be deleted? Can I also remove it?

http://www.xperiablog.net/2018/01/2...-firmware-for-xperia-xz-premium-xz1-and-more/

I put a separate post but nobody answered me.Sorry

If you know something, tell me.tnx:o

http://www.xperiablog.net/2018/01/2...-firmware-for-xperia-xz-premium-xz1-and-more/

The above link says that .ta files will be deleted. What is the reason for this? Is it necessary or not? Do not break the phone !!?

Complete the explanation of this section. Everyone says something. I've been wondering. Someone says they should be deleted. One says, do not delete. What should I do?

I want to completely flash
[Sony Cross-Device General] ch3mn3y:
.fsc script tells Flashtool which, when and where each image should be flashed.

As for 4 I meant that on the irght side of Flashtool You have 4 sections - Wipe Sin, Wipe Misc TA, Exclude Sin and Exclude Misc TA. Misc TA are unimportant, but sins are - they are part of firmware. If You flash it with out checking anything it will be like update - system, kernel, etc. will be flashed, but without wiping userdata. And that's why You should check everything below Wipe Sin - so not only the firmware will be updates, but all Your apps and their data will be removed, so there won't be any problems with older data nd newer system.

As for 5 I just seen that there are missing files in .fsc. However now I can say that I was mistaken and it looks OK. It says that there are files (unimportant), which are in firmware, but not in .fsc, so Flashtool asks You if You want to flash firmware without flashing them. There is no need to flash them and no way to flash firmware with them using Flashtool, so You can only answer Yes :)
[Sony Cross-Device General] shoey63:
I won't comment on the flashtool questions, as they are not relevant to this thread, but newflasher is waaay easier.

Simply follow the instructions in the OP and double click newflasher.exe. No FSC scripts, no wondering what boxes to tick, AND no need to delete TA files (despite what you may read elsewhere)
[Sony Cross-Device General] ehsas1:
I have not worked with newflasher so far. So I'm afraid.

Tell me plainly:

The image below is my downloaded file with xprifirm.

Copy the contents of the boot folder to the same folder. So I will copy the contents of the newflasher into this folder and flashing it?

Do not touch the partition folder?

Tell me if you make a mistake
[Sony Cross-Device General] Farsiris:
Here's the Detailed Guide !

http://www.xperiablog.net/2018/01/2...-firmware-for-xperia-xz-premium-xz1-and-more/