[TOOL] Newflasher (xperia command line flasher)

Search This thread

KnockOut^9

Member
Sep 10, 2017
44
2
View attachment 5516153
these are the only files inside the zip newflasher_v52 i downloaded, should i continue with flashing or not?
an instructions i saw here:



shows more files. I downloaded the v52 from here:


Thank you , if anyone could help, thank you very much.
i'm not an expert but i can tell you my experience: i've flashed 3 times. Just copy newflasher.exe inside firmware folder and then follow the guide in the first post.

If you have other doubts, just read this thread, there are many information about... everything this procedure can occour
 

munjeni

Senior Member
Jun 2, 2011
9,511
22,152
Hi,
I tried to flash my Xperia 1 III with the TW_61.0.A.23.20, but it always stops at a certain point as the following code shows:

- Extracting sparse chunk super.004
- Uploading sparse chunk C:\Users\Desktop\XQ-BC72_Customized TW_61.0.A.23.20\flash_session\super.004
download:04b2ecd5
OKAY.
flash:super
Error, didn't got flash OKAY reply! Got reply: FAILFAILCheck payload hash

=========== FIRMWARES HISTORY LOG =============
NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA1.0_R_25, cdf_version:Unknown: Jun 11 2021/04:24:12, fs_version:Unknown: Jun 11 2021/04:24:12, sw_version:61.0.A.5.106
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA1.0_R_27, cdf_version:Unknown: Jul 8 2021/03:49:52, fs_version:Unknown: Jul 8 2021/03:49:52, sw_version:61.0.A.11.23

=================================================

Set slot 'a' active.

Device is put now out of flash mode.
Sent command: Sync
Sent command: reboot-bootloader.

And now my screen says the phone is corrupted and cannot boot anymore.
I wonder if someone can help me with it, thanks in advance!
Indication about that rom is not compatible with your device model, that mean wrong device model firmware used for wrong device model
 

Navara32

New member
Jan 16, 2020
4
0
G'day,

I have just been trying to attempt to fix my XZ premium that is stuck in a boot loop.
I am trying to flash a new firmware but i get the error below.

I was originally using a usb3 port, tried a usb 2 port but nothing changed.
I have also tried a different usb cable. No change.
I have also tried using both options "a" and "p", for the second last command in newflasher, asking what to do when flashing is complete.

My Steps:
- Downloaded the firmware
- Removed 5 files from firmware to keep it from deleting user data, not sure if this step is actually necessary?
ssd_X-FLASH-ALL-42E5
userdata_X-FLASH-CUST-42E5
diag_X-FLASH-ALL-42E5
appslog_X-FLASH-ALL-42E5
persist_X-FLASH-ALL-42E5
-Copy just the newflasher.exe file to the firmware directory. Are the other extracted files needed?
-Run newflasher



Would appreciate any help. Thanks.


Jim.
 

Attachments

  • Log.txt
    33.7 KB · Views: 35

Jane11

Member
Jul 5, 2013
36
2
Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
What exactly TRIM areas does that optional step saves?
 

Jane11

Member
Jul 5, 2013
36
2
Can this Newflasher be used for Sony Xperia G3121 ?
I am getting No usb device with vid:0x0fce pid:0xb00b
error.
The phone is definitelly in flashmode - green light is on Also driver should be OK installed - device manager reports properly installed driver.

Thank you for help
 

munjeni

Senior Member
Jun 2, 2011
9,511
22,152
Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
What exactly TRIM areas does that optional step saves?
There is a lot of posts related to xperia trim area feature, one which you need to remember is - never touch trim area, otherwise your device might get hard brick without a way for repair. What mean trim area dump - thats a dump in case you hard brick your phone so tehnicians can do hardware repair. In case you get hard brick and you do not have trim area backup, 99% that you will need to buy new mainboard. Also do in mind an external hardware tool is need for hard brick case e.g. to make direct pin to pin connect to internal storage in order to restore trim area dump. Apsolutly no way to repair phone with any software. Hope this help.
 

munjeni

Senior Member
Jun 2, 2011
9,511
22,152
Can this Newflasher be used for Sony Xperia G3121 ?
I am getting No usb device with vid:0x0fce pid:0xb00b
error.
The phone is definitelly in flashmode - green light is on Also driver should be OK installed - device manager reports properly installed driver.

Thank you for help
Its old model xperia so newflasher is not compatible with your device model, search for xflasher !
 
  • Like
Reactions: sieghartRM

inuue

New member
Dec 30, 2015
1
0
why

ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:
Funci¾n incorrecta.

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


- Error writing command getvar:max-download-size!
ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:
Funci¾n incorrecta.

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


- Error writing command powerdown!
Closing device.
 

JD_9

Member
Feb 20, 2019
8
0
Disclaimer:

newflasher tool was made for testing and educational purposes, ME is not responsible for what you do on/with your device using newflasher, you must agree that you using newflasher on your own risk, I am not responsible if you brick your device or anything else!


How to use:

OPTIONAL STEP 1:
- if you have missing flash driver just double click exe and confirm driver extraction, an exe will become available, run it and install driver.

OPTIONAL STEP 2:
- this step is optional, this step dump trim area, you can do this and keep those file somewhere on your pc in case you hard brick your device so give it to servicians to repair your phone.

STEP 1:
- Download right firmware for your device using XperiFirm tool, put newflasher.exe into firmware dir created by XperiFirm tool. Before you double click newflasher.exe do in mind something, newflasher tool is programed to flash everything found in the same dir!!! So tool flash all .ta files, all .sin files, boot delivery (whole boot folder), partition.zip, in short all files found in dir! If you no want to flash something just move file which you no want to flash OUT OF FOLDER! Partition.zip .sin files can be flashed only if you extract partition.zip into newly created folder called partition!

STEP 2:
- To start flashing phone put your phone into flash mode, double click newflasher.exe and wait wait wait until your device gets flashed, thats it. Look into log to see if something goes wrong! If all right you are done. If not post your log so I can look!

SOME MORE THINGS:
"You do not need to unlock bootloader or to root the phone if you want to flash a stock firmware from XperiFirm.
There are no files in the stock firmware that need to be deleted. Prompts will ask you to skip some files.
Feel free to press N to every prompt since:
- TA dumping it's not related with DRM keys.
- Flash persist_* files only if you know what you are doing, since you will lose your attest keys. Backup persist partition.
If you need the firmware on both A and B slot use fastboot commands to choose the inactive partion and re-flash."

Happy flashing!


Supported platforms:

- Newflasher is working on Windows, Linux, Android and Darwin, just chose right newflasher binary. With Android version you can flash phone by using another phone!


Changelog:

- version 1: Sorry a lot of work is done in pre pre alpha version and I can't count every changes, just folow development process about version 1, a lot of work is done before it started working. One esential change was done to tool improvement and it is described in one of the my posts related to moving function "erase:" to the section before function "flash:", it is realy improvement and more safer than in time when it was at the start of flashing routine.

- version v2 (15.Aug.2017)
Implemented free disk space safety check, it was missing and danger in case flashing process gets interupted because of the lack of the free disk space needed for sin extractions and temporary files. I have also include GordonGate flash driver prompt so in case somebody have missing flash drivers, simple need to double click exe and folow drivers archive extraction procedure, later need to install these drivers trought Windos device mannager. Also I have implemented an realy pre pre alpha version of the maybe non working trim (why maybe? Because I don't own xzp so can't test) area dump routine, in case it is working we can dump some esentials trim area units from device (probably not a full dump as like it was on every oldest xperia models - no permissions for dumping drm key unit)

- version v3 (23.09.2017)
Some more security checks, it's now a bit safer than v2

- version v4 (21.10.2017)
Updated trim area dumper, now it stores log to the trimarea.log but dump is now in .ta format and writen to the 01.ta and 02.ta

- version v5 (22.10.2017)
Updated trim area dumper, add progress meter, fix y-n prompt (thanks @pbarrette)

- version v6 (22.10.2017)
Updated trim area dumper

- version v7 (23.10.2017)
Updated trim area dumper, newflasher redesigned a bit, fix new partitioning for Oreo

- version v8 (24.10.2017)
Fix trim area dumper

- version v9 & v10 (25.10.2017)
Workaorunds on trim area dumper

- version v11 (07.04.2018)
Support for 2018 devices

- version v12 (29.04.2018)
Try fix doublefree bug/crash (most noticed on Linux 64 bit binary)

- version v13 (01.05.2018)
Fix doublefree bug/crash by removing dynamic allocation from function get_reply

- version v14 & v15 (12.06.2019)
Sony XPeria 1 support added.

- version v16 (16.06.2019)
LUN0 detection optimized.

- version v17 (24.06.2019)
LUN0 detection bug fixed.

- version v18 (10.08.2019)
Untested fix for https://forum.xda-developers.com/cr...wflasher-xperia-command-line-t3619426/page105
Using builtin mkdir instead of calling it trought system call

- version v19 (08.10.2019)
Implemented prompt for flashing persist partition; print skipped .sin files

- version v20 (13.12.2019)
implemented prompt for flashing bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots

- version v21 (29.06.2020)
implemented battery level status check before flashing, flashing bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots is mandatory now and is flashed by default right now, more info, try fix previously reported isue on sync and powerdown command reported 2-3 years ago so I have disabled it and now enabled for test, implemented Macos support (curently need to be tested! If you have plan to test please flash only cache.sin DO NOT flash the rest because of safety for your device!)

- version v22 (30.06.2020)
trying to fix battery capacity retrieval

- version v23 (04.07.2020)
removed battery capacity retrieval (not going to work that way), fix trim area dump file name, new gordongate drivers

- version v24 (04.07.2020)
new feature - now you can run newflasher from script or console with your own command, e.g. newflasher getvar:Emmc-info , I didn't tested all the list of commands, if you do it share them with us!

- version v25 (09.07.2020)
New trim area dump tool, with this change trim area dump is created in 3 secconds. Do in mind this not dump protected units like drm key...etc! Some changes in scripting feature from v24

- version v26 (10.07.2020)
Added 4 diferent reboot modes, reboot to android, reboot to fastboot, reboot to bootloader, power off

- version v27 (11.07.2020) (not yet released)
Workaround in mac libusb

- version v28 (12.07.2020)
Workaround to sync response bug; Fully implemented support for Mac. I'm tested myself on mac 10.14 but confirmed working on mac 10.15 too

- version v29 (12.07.2020)
Mac proper libusb deinitialisation

- version v30 (13.07.2020)
Preparation for Debian packaging; I'm noticed that hex modified arm64 fake pie binary is not working so its now compiled with ndk and its true pie binary now

- version v31 (14.07.2020)
Fix cosmetic bug https://forum.xda-developers.com/showpost.php?p=83056693&postcount=1212 which might confuse somebody

- version 32, not yet released

- version 33 (30.07.2020)
Allow bootloader unlocking with newflasher; Try fix sync response bug for win and darwin too

- version 34 (08.08.2020)
Added support for 32bit sized trim area units (as trim area api changed in xperia mark 2 line) (not yet released because of bug)

- version 35 (08.08.2020)
Updated support for 32bit sized trim area units (as trim area api changed in xperia mark 2 line); Move trim area dumps out of root folder so it not get acidentaly flashed, dumps is now inside folder tadump

- version 36 (27.08.2020)
Some improvements and and possible bug fixes

- version 37 (09.12.2020)
Added support for Xperia 5 II with emmc instead of ufs (not working)

- version 38 (10.12.2020)
Fixed impropper implementation from v37

- version 39 (13.12.2020)
Since mark 2 devices protocol is changed a bit and on some devices OKAY reply is not in separated usb poacket, instead it is merged with data packet, added support for it

- version 40 (03.01.2021)
Temporary solution for determining partition 0 sin file caused by two diferent emmc csd info we found recently on mark 2 devices

- version 41 (03.01.2021)
Removed temporary solution from version 41 so right lun0 sin file get flashed and seccond lun0 get skipped or booth skipped if lun0 sin file do not match device storage size

- version 42 (11.03.2021)
Fix bug in flashing booth slots when current slot is A, thanks to @chrisrg for discovering bug!

- version 43 (12.06.2021)
Support for Mark 3 devices

- version 44 (19.06.2021)
Fully Mark III device implementation

- version 45 (20.06.2021)
Implemented battery level check and prompt user to take a risk and continue flashing or stop flasing if battery level is less than 15 percent

- version 46 (08.07.2021)
Fix problem with filenames which contain "_other", it need to be always flashed to the diferent slot

- version 47 (15.07.2021)
Removed prompt for persist.sin flashing, now its by default skip. Implemented bootloader log retrieval at the end of flashing for better understanding when something goes wrong. Implemented firmware log history retrieval for those who want to know history of the flashed firmwares

- version 48 (19.07.2021)
Flash bootloader,bluetooth,dsp,modem,rdimage to booth slots only on a,b devices

- version 49 (31.07.2021)
Support for XQ-BT41

- version 50 (12.08.2021)
Workin progress on asynchronous usb to make it more like synchronous, added progress bar during send-receive usb packets and more logging. Increased usb timeout to 2 minute. Trying fix sync command at the end of flashing as reported here -> https://github.com/munjeni/newflasher/issues/42

- version 51 (12.08.2021)
Fix empry line printed while receiving usb packets, thanks @elukyan

- version 52 (01.10.2021)
Implemented userprompt for keeping userdata, thanks @OhayouBaka for figuring out! Removed bootloader log retrieval

Credits:

- without @tanipat and his pc companion debug logs this tool will never be possible! Thank you a lot for your time providing me logs! (by the influence of others, He was disappointed me with last post, but I still appreciate his help and can't forget it)
- without @thrash001 who helped testing our tool I never be continue building our tool since I don't have device for testing, thanks mate!
- didn't forgot @beenoliu, thanks mate for testing!
- thanks to @porphyry for testing linux version!
- thanks to @Snow_Basinger for providing sniff log from 2018 device and for testing on his 2018 device
- thanks to @frantisheq for testing newflasher on his 2018 device and for notify about doublefree bug
- thanks to @serajr for providing me some logs which helped me to figure out some things related to 2018 devices
- thanks to @noelex for helping in Xperia 1 implementation
- thanks to @Meloferz for testing on his xperia 1 mark II
- thanks to github contributors, testers and reporters: vog, noelex, TheSaltedFish, solarxraft, pbarrette, MartinX3, kholk
- thanks to Chirayu Desai for tracking addition to Debian and thanks to vog for initiating all that
- thanks to @elukyan for testing and providing me usb sniff logs for mark 3 devices imlementation, thank you so much

Common errors and how to solve:
https://forum.xda-developers.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-72610228

Source code:

https://github.com/munjeni/newflasher
Thank you @munjeni for this awesome tool. And most importantly, thank you for making it available on all operating systems. I've successfully flashed SOV39 using a global firmware (Customized IBE). The global firmware successfully flashed to slot A. However, I want to get VoLTE. So, I extracted OEM files from the au SOV39 ROM and it simply doesn't work. Because Newflasher is trying to flash the 2 OEM files to slot B resulting in an error: flash:eek:em_b Error, didn't got flash OKAY reply! Got reply: FAILWrite fail. (I even forced Newflasher to flash to slot A, but it doesn't work). Is there a workaround to flash two OEM files? Your help would be much appreciated. Thank you! In case: Both firmware files have similar build numbers starting with 52.1.
 

munjeni

Senior Member
Jun 2, 2011
9,511
22,152
why

ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:
Funci¾n incorrecta.

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


- Error writing command getvar:max-download-size!
ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:
Funci¾n incorrecta.

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


- Error writing command powerdown!
Closing device.
Please use real OS and try again, also try anoher usb cable, update gordongate driver...etc
 
  • Like
Reactions: sieghartRM

munjeni

Senior Member
Jun 2, 2011
9,511
22,152
Thank you @munjeni for this awesome tool. And most importantly, thank you for making it available on all operating systems. I've successfully flashed SOV39 using a global firmware (Customized IBE). The global firmware successfully flashed to slot A. However, I want to get VoLTE. So, I extracted OEM files from the au SOV39 ROM and it simply doesn't work. Because Newflasher is trying to flash the 2 OEM files to slot B resulting in an error: flash:eek:em_b Error, didn't got flash OKAY reply! Got reply: FAILWrite fail. (I even forced Newflasher to flash to slot A, but it doesn't work). Is there a workaround to flash two OEM files? Your help would be much appreciated. Thank you! In case: Both firmware files have similar build numbers starting with 52.1.
If oem files is designed for _B you can do nothing about that, only maybe you can try rename sin file to something like oem_other_b.sin, all files with _other_ in its filename is always flashed to the diferent slot.
 
  • Like
  • Wow
Reactions: sieghartRM and JD_9

KOPRajs

Senior Member
Dec 7, 2007
66
9
I was able to downgrade my Xperia 5 mark 2 (XQ-AS72 version) from android 11 (58.1.A.5.159) to android 10 (58.0.A.28.51, XQ-AS52 version) using Newflasher only with UNLOCKED bootloader.
Method with unlocking and relocking bootloader described here DOES NOT work :(
I tried three times always resulting in a message that firmware is corrupted and device cannot boot, turning off in 5 seconds bla-bla-bla.
After flashing XQ-AS52_Customized EEA_58.0.A.28.51 I relocked bootloader and everything works perfectly.

Hi,
can you please describe, what exactly means "everything works perfectly"? Do you get working DRM on Android 10 with the re-locked bootloader this way? Any loss in photo quality due to lost device key? Anything else to consider before unlocking the bootloader so I can downgrade to stock XQ-AS52_Customized EEA_58.0.A.28.51? I mean is there any other drawback except the lost warranty?

I have bought Xperia 5 II (XQ-AS52) instead of 5 III partly because I wanted to stay with Android 10, but it came already with Android 11. I tried to downgrade it with the locked bootloader as usual, but I came across the rollback protection. Now I'm considering the above procedure or to stay with the Android 11 and fully locked.

Also since you've already done that, is it worth it? What was your motivation to go back? I simply don't like the new features and design of Android 11 but haven't been using it regularly.

Thank you.

P.S. I'm looking for a XQ-AS52_Customized EEA_58.1.A.5.530 so I can eventually flash it back. The XperiFirm now offers only Android 12 for XQ-AS52_Customized EEA. Anybody can share it please?
 

jemcik

Member
Mar 19, 2014
40
12
38
Kyiv
Hi,
can you please describe, what exactly means "everything works perfectly"? Do you get working DRM on Android 10 with the re-locked bootloader this way? Any loss in photo quality due to lost device key? Anything else to consider before unlocking the bootloader so I can downgrade to stock XQ-AS52_Customized EEA_58.0.A.28.51? I mean is there any other drawback except the lost warranty?

I have bought Xperia 5 II (XQ-AS52) instead of 5 III partly because I wanted to stay with Android 10, but it came already with Android 11. I tried to downgrade it with the locked bootloader as usual, but I came across the rollback protection. Now I'm considering the above procedure or to stay with the Android 11 and fully locked.

Also since you've already done that, is it worth it? What was your motivation to go back? I simply don't like the new features and design of Android 11 but haven't been using it regularly.

Thank you.

P.S. I'm looking for a XQ-AS52_Customized EEA_58.1.A.5.530 so I can eventually flash it back. The XperiFirm now offers only Android 12 for XQ-AS52_Customized EEA. Anybody can share it please?
I did not noticed any issues.
But I sold Xperia 5 II half year ago in favour of Galaxy S21+, so I am out.
 

javiwz

Senior Member
Disclaimer:

newflasher tool was made for testing and educational purposes, ME is not responsible for what you do on/with your device using newflasher, you must agree that you using newflasher on your own risk, I am not responsible if you brick your device or anything else!


How to use:

OPTIONAL STEP 1:
- if you have missing flash driver just double click exe and confirm driver extraction, an exe will become available, run it and install driver.

OPTIONAL STEP 2:
- this step is optional, this step dump trim area, you can do this and keep those file somewhere on your pc in case you hard brick your device so give it to servicians to repair your phone.

STEP 1:
- Download right firmware for your device using XperiFirm tool, put newflasher.exe into firmware dir created by XperiFirm tool. Before you double click newflasher.exe do in mind something, newflasher tool is programed to flash everything found in the same dir!!! So tool flash all .ta files, all .sin files, boot delivery (whole boot folder), partition.zip, in short all files found in dir! If you no want to flash something just move file which you no want to flash OUT OF FOLDER! Partition.zip .sin files can be flashed only if you extract partition.zip into newly created folder called partition!

STEP 2:
- To start flashing phone put your phone into flash mode, double click newflasher.exe and wait wait wait until your device gets flashed, thats it. Look into log to see if something goes wrong! If all right you are done. If not post your log so I can look!

SOME MORE THINGS:
"You do not need to unlock bootloader or to root the phone if you want to flash a stock firmware from XperiFirm.
There are no files in the stock firmware that need to be deleted. Prompts will ask you to skip some files.
Feel free to press N to every prompt since:
- TA dumping it's not related with DRM keys.
- Flash persist_* files only if you know what you are doing, since you will lose your attest keys. Backup persist partition.
If you need the firmware on both A and B slot use fastboot commands to choose the inactive partion and re-flash."

Happy flashing!


Supported platforms:

- Newflasher is working on Windows, Linux, Android and Darwin, just chose right newflasher binary. With Android version you can flash phone by using another phone!


Changelog:

- version 1: Sorry a lot of work is done in pre pre alpha version and I can't count every changes, just folow development process about version 1, a lot of work is done before it started working. One esential change was done to tool improvement and it is described in one of the my posts related to moving function "erase:" to the section before function "flash:", it is realy improvement and more safer than in time when it was at the start of flashing routine.

- version v2 (15.Aug.2017)
Implemented free disk space safety check, it was missing and danger in case flashing process gets interupted because of the lack of the free disk space needed for sin extractions and temporary files. I have also include GordonGate flash driver prompt so in case somebody have missing flash drivers, simple need to double click exe and folow drivers archive extraction procedure, later need to install these drivers trought Windos device mannager. Also I have implemented an realy pre pre alpha version of the maybe non working trim (why maybe? Because I don't own xzp so can't test) area dump routine, in case it is working we can dump some esentials trim area units from device (probably not a full dump as like it was on every oldest xperia models - no permissions for dumping drm key unit)

- version v3 (23.09.2017)
Some more security checks, it's now a bit safer than v2

- version v4 (21.10.2017)
Updated trim area dumper, now it stores log to the trimarea.log but dump is now in .ta format and writen to the 01.ta and 02.ta

- version v5 (22.10.2017)
Updated trim area dumper, add progress meter, fix y-n prompt (thanks @pbarrette)

- version v6 (22.10.2017)
Updated trim area dumper

- version v7 (23.10.2017)
Updated trim area dumper, newflasher redesigned a bit, fix new partitioning for Oreo

- version v8 (24.10.2017)
Fix trim area dumper

- version v9 & v10 (25.10.2017)
Workaorunds on trim area dumper

- version v11 (07.04.2018)
Support for 2018 devices

- version v12 (29.04.2018)
Try fix doublefree bug/crash (most noticed on Linux 64 bit binary)

- version v13 (01.05.2018)
Fix doublefree bug/crash by removing dynamic allocation from function get_reply

- version v14 & v15 (12.06.2019)
Sony XPeria 1 support added.

- version v16 (16.06.2019)
LUN0 detection optimized.

- version v17 (24.06.2019)
LUN0 detection bug fixed.

- version v18 (10.08.2019)
Untested fix for https://forum.xda-developers.com/cr...wflasher-xperia-command-line-t3619426/page105
Using builtin mkdir instead of calling it trought system call

- version v19 (08.10.2019)
Implemented prompt for flashing persist partition; print skipped .sin files

- version v20 (13.12.2019)
implemented prompt for flashing bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots

- version v21 (29.06.2020)
implemented battery level status check before flashing, flashing bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots is mandatory now and is flashed by default right now, more info, try fix previously reported isue on sync and powerdown command reported 2-3 years ago so I have disabled it and now enabled for test, implemented Macos support (curently need to be tested! If you have plan to test please flash only cache.sin DO NOT flash the rest because of safety for your device!)

- version v22 (30.06.2020)
trying to fix battery capacity retrieval

- version v23 (04.07.2020)
removed battery capacity retrieval (not going to work that way), fix trim area dump file name, new gordongate drivers

- version v24 (04.07.2020)
new feature - now you can run newflasher from script or console with your own command, e.g. newflasher getvar:Emmc-info , I didn't tested all the list of commands, if you do it share them with us!

- version v25 (09.07.2020)
New trim area dump tool, with this change trim area dump is created in 3 secconds. Do in mind this not dump protected units like drm key...etc! Some changes in scripting feature from v24

- version v26 (10.07.2020)
Added 4 diferent reboot modes, reboot to android, reboot to fastboot, reboot to bootloader, power off

- version v27 (11.07.2020) (not yet released)
Workaround in mac libusb

- version v28 (12.07.2020)
Workaround to sync response bug; Fully implemented support for Mac. I'm tested myself on mac 10.14 but confirmed working on mac 10.15 too

- version v29 (12.07.2020)
Mac proper libusb deinitialisation

- version v30 (13.07.2020)
Preparation for Debian packaging; I'm noticed that hex modified arm64 fake pie binary is not working so its now compiled with ndk and its true pie binary now

- version v31 (14.07.2020)
Fix cosmetic bug https://forum.xda-developers.com/showpost.php?p=83056693&postcount=1212 which might confuse somebody

- version 32, not yet released

- version 33 (30.07.2020)
Allow bootloader unlocking with newflasher; Try fix sync response bug for win and darwin too

- version 34 (08.08.2020)
Added support for 32bit sized trim area units (as trim area api changed in xperia mark 2 line) (not yet released because of bug)

- version 35 (08.08.2020)
Updated support for 32bit sized trim area units (as trim area api changed in xperia mark 2 line); Move trim area dumps out of root folder so it not get acidentaly flashed, dumps is now inside folder tadump

- version 36 (27.08.2020)
Some improvements and and possible bug fixes

- version 37 (09.12.2020)
Added support for Xperia 5 II with emmc instead of ufs (not working)

- version 38 (10.12.2020)
Fixed impropper implementation from v37

- version 39 (13.12.2020)
Since mark 2 devices protocol is changed a bit and on some devices OKAY reply is not in separated usb poacket, instead it is merged with data packet, added support for it

- version 40 (03.01.2021)
Temporary solution for determining partition 0 sin file caused by two diferent emmc csd info we found recently on mark 2 devices

- version 41 (03.01.2021)
Removed temporary solution from version 41 so right lun0 sin file get flashed and seccond lun0 get skipped or booth skipped if lun0 sin file do not match device storage size

- version 42 (11.03.2021)
Fix bug in flashing booth slots when current slot is A, thanks to @chrisrg for discovering bug!

- version 43 (12.06.2021)
Support for Mark 3 devices

- version 44 (19.06.2021)
Fully Mark III device implementation

- version 45 (20.06.2021)
Implemented battery level check and prompt user to take a risk and continue flashing or stop flasing if battery level is less than 15 percent

- version 46 (08.07.2021)
Fix problem with filenames which contain "_other", it need to be always flashed to the diferent slot

- version 47 (15.07.2021)
Removed prompt for persist.sin flashing, now its by default skip. Implemented bootloader log retrieval at the end of flashing for better understanding when something goes wrong. Implemented firmware log history retrieval for those who want to know history of the flashed firmwares

- version 48 (19.07.2021)
Flash bootloader,bluetooth,dsp,modem,rdimage to booth slots only on a,b devices

- version 49 (31.07.2021)
Support for XQ-BT41

- version 50 (12.08.2021)
Workin progress on asynchronous usb to make it more like synchronous, added progress bar during send-receive usb packets and more logging. Increased usb timeout to 2 minute. Trying fix sync command at the end of flashing as reported here -> https://github.com/munjeni/newflasher/issues/42

- version 51 (12.08.2021)
Fix empry line printed while receiving usb packets, thanks @elukyan

- version 52 (01.10.2021)
Implemented userprompt for keeping userdata, thanks @OhayouBaka for figuring out! Removed bootloader log retrieval

Credits:

- without @tanipat and his pc companion debug logs this tool will never be possible! Thank you a lot for your time providing me logs! (by the influence of others, He was disappointed me with last post, but I still appreciate his help and can't forget it)
- without @thrash001 who helped testing our tool I never be continue building our tool since I don't have device for testing, thanks mate!
- didn't forgot @beenoliu, thanks mate for testing!
- thanks to @porphyry for testing linux version!
- thanks to @Snow_Basinger for providing sniff log from 2018 device and for testing on his 2018 device
- thanks to @frantisheq for testing newflasher on his 2018 device and for notify about doublefree bug
- thanks to @serajr for providing me some logs which helped me to figure out some things related to 2018 devices
- thanks to @noelex for helping in Xperia 1 implementation
- thanks to @Meloferz for testing on his xperia 1 mark II
- thanks to github contributors, testers and reporters: vog, noelex, TheSaltedFish, solarxraft, pbarrette, MartinX3, kholk
- thanks to Chirayu Desai for tracking addition to Debian and thanks to vog for initiating all that
- thanks to @elukyan for testing and providing me usb sniff logs for mark 3 devices imlementation, thank you so much

Common errors and how to solve:
https://forum.xda-developers.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-72610228

Source code:

https://github.com/munjeni/newflasher
I flashed the A12 firmware on my
Disclaimer:

newflasher tool was made for testing and educational purposes, ME is not responsible for what you do on/with your device using newflasher, you must agree that you using newflasher on your own risk, I am not responsible if you brick your device or anything else!


How to use:

OPTIONAL STEP 1:
- if you have missing flash driver just double click exe and confirm driver extraction, an exe will become available, run it and install driver.

OPTIONAL STEP 2:
- this step is optional, this step dump trim area, you can do this and keep those file somewhere on your pc in case you hard brick your device so give it to servicians to repair your phone.

STEP 1:
- Download right firmware for your device using XperiFirm tool, put newflasher.exe into firmware dir created by XperiFirm tool. Before you double click newflasher.exe do in mind something, newflasher tool is programed to flash everything found in the same dir!!! So tool flash all .ta files, all .sin files, boot delivery (whole boot folder), partition.zip, in short all files found in dir! If you no want to flash something just move file which you no want to flash OUT OF FOLDER! Partition.zip .sin files can be flashed only if you extract partition.zip into newly created folder called partition!

STEP 2:
- To start flashing phone put your phone into flash mode, double click newflasher.exe and wait wait wait until your device gets flashed, thats it. Look into log to see if something goes wrong! If all right you are done. If not post your log so I can look!

SOME MORE THINGS:
"You do not need to unlock bootloader or to root the phone if you want to flash a stock firmware from XperiFirm.
There are no files in the stock firmware that need to be deleted. Prompts will ask you to skip some files.
Feel free to press N to every prompt since:
- TA dumping it's not related with DRM keys.
- Flash persist_* files only if you know what you are doing, since you will lose your attest keys. Backup persist partition.
If you need the firmware on both A and B slot use fastboot commands to choose the inactive partion and re-flash."

Happy flashing!


Supported platforms:

- Newflasher is working on Windows, Linux, Android and Darwin, just chose right newflasher binary. With Android version you can flash phone by using another phone!


Changelog:

- version 1: Sorry a lot of work is done in pre pre alpha version and I can't count every changes, just folow development process about version 1, a lot of work is done before it started working. One esential change was done to tool improvement and it is described in one of the my posts related to moving function "erase:" to the section before function "flash:", it is realy improvement and more safer than in time when it was at the start of flashing routine.

- version v2 (15.Aug.2017)
Implemented free disk space safety check, it was missing and danger in case flashing process gets interupted because of the lack of the free disk space needed for sin extractions and temporary files. I have also include GordonGate flash driver prompt so in case somebody have missing flash drivers, simple need to double click exe and folow drivers archive extraction procedure, later need to install these drivers trought Windos device mannager. Also I have implemented an realy pre pre alpha version of the maybe non working trim (why maybe? Because I don't own xzp so can't test) area dump routine, in case it is working we can dump some esentials trim area units from device (probably not a full dump as like it was on every oldest xperia models - no permissions for dumping drm key unit)

- version v3 (23.09.2017)
Some more security checks, it's now a bit safer than v2

- version v4 (21.10.2017)
Updated trim area dumper, now it stores log to the trimarea.log but dump is now in .ta format and writen to the 01.ta and 02.ta

- version v5 (22.10.2017)
Updated trim area dumper, add progress meter, fix y-n prompt (thanks @pbarrette)

- version v6 (22.10.2017)
Updated trim area dumper

- version v7 (23.10.2017)
Updated trim area dumper, newflasher redesigned a bit, fix new partitioning for Oreo

- version v8 (24.10.2017)
Fix trim area dumper

- version v9 & v10 (25.10.2017)
Workaorunds on trim area dumper

- version v11 (07.04.2018)
Support for 2018 devices

- version v12 (29.04.2018)
Try fix doublefree bug/crash (most noticed on Linux 64 bit binary)

- version v13 (01.05.2018)
Fix doublefree bug/crash by removing dynamic allocation from function get_reply

- version v14 & v15 (12.06.2019)
Sony XPeria 1 support added.

- version v16 (16.06.2019)
LUN0 detection optimized.

- version v17 (24.06.2019)
LUN0 detection bug fixed.

- version v18 (10.08.2019)
Untested fix for https://forum.xda-developers.com/cr...wflasher-xperia-command-line-t3619426/page105
Using builtin mkdir instead of calling it trought system call

- version v19 (08.10.2019)
Implemented prompt for flashing persist partition; print skipped .sin files

- version v20 (13.12.2019)
implemented prompt for flashing bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots

- version v21 (29.06.2020)
implemented battery level status check before flashing, flashing bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots is mandatory now and is flashed by default right now, more info, try fix previously reported isue on sync and powerdown command reported 2-3 years ago so I have disabled it and now enabled for test, implemented Macos support (curently need to be tested! If you have plan to test please flash only cache.sin DO NOT flash the rest because of safety for your device!)

- version v22 (30.06.2020)
trying to fix battery capacity retrieval

- version v23 (04.07.2020)
removed battery capacity retrieval (not going to work that way), fix trim area dump file name, new gordongate drivers

- version v24 (04.07.2020)
new feature - now you can run newflasher from script or console with your own command, e.g. newflasher getvar:Emmc-info , I didn't tested all the list of commands, if you do it share them with us!

- version v25 (09.07.2020)
New trim area dump tool, with this change trim area dump is created in 3 secconds. Do in mind this not dump protected units like drm key...etc! Some changes in scripting feature from v24

- version v26 (10.07.2020)
Added 4 diferent reboot modes, reboot to android, reboot to fastboot, reboot to bootloader, power off

- version v27 (11.07.2020) (not yet released)
Workaround in mac libusb

- version v28 (12.07.2020)
Workaround to sync response bug; Fully implemented support for Mac. I'm tested myself on mac 10.14 but confirmed working on mac 10.15 too

- version v29 (12.07.2020)
Mac proper libusb deinitialisation

- version v30 (13.07.2020)
Preparation for Debian packaging; I'm noticed that hex modified arm64 fake pie binary is not working so its now compiled with ndk and its true pie binary now

- version v31 (14.07.2020)
Fix cosmetic bug https://forum.xda-developers.com/showpost.php?p=83056693&postcount=1212 which might confuse somebody

- version 32, not yet released

- version 33 (30.07.2020)
Allow bootloader unlocking with newflasher; Try fix sync response bug for win and darwin too

- version 34 (08.08.2020)
Added support for 32bit sized trim area units (as trim area api changed in xperia mark 2 line) (not yet released because of bug)

- version 35 (08.08.2020)
Updated support for 32bit sized trim area units (as trim area api changed in xperia mark 2 line); Move trim area dumps out of root folder so it not get acidentaly flashed, dumps is now inside folder tadump

- version 36 (27.08.2020)
Some improvements and and possible bug fixes

- version 37 (09.12.2020)
Added support for Xperia 5 II with emmc instead of ufs (not working)

- version 38 (10.12.2020)
Fixed impropper implementation from v37

- version 39 (13.12.2020)
Since mark 2 devices protocol is changed a bit and on some devices OKAY reply is not in separated usb poacket, instead it is merged with data packet, added support for it

- version 40 (03.01.2021)
Temporary solution for determining partition 0 sin file caused by two diferent emmc csd info we found recently on mark 2 devices

- version 41 (03.01.2021)
Removed temporary solution from version 41 so right lun0 sin file get flashed and seccond lun0 get skipped or booth skipped if lun0 sin file do not match device storage size

- version 42 (11.03.2021)
Fix bug in flashing booth slots when current slot is A, thanks to @chrisrg for discovering bug!

- version 43 (12.06.2021)
Support for Mark 3 devices

- version 44 (19.06.2021)
Fully Mark III device implementation

- version 45 (20.06.2021)
Implemented battery level check and prompt user to take a risk and continue flashing or stop flasing if battery level is less than 15 percent

- version 46 (08.07.2021)
Fix problem with filenames which contain "_other", it need to be always flashed to the diferent slot

- version 47 (15.07.2021)
Removed prompt for persist.sin flashing, now its by default skip. Implemented bootloader log retrieval at the end of flashing for better understanding when something goes wrong. Implemented firmware log history retrieval for those who want to know history of the flashed firmwares

- version 48 (19.07.2021)
Flash bootloader,bluetooth,dsp,modem,rdimage to booth slots only on a,b devices

- version 49 (31.07.2021)
Support for XQ-BT41

- version 50 (12.08.2021)
Workin progress on asynchronous usb to make it more like synchronous, added progress bar during send-receive usb packets and more logging. Increased usb timeout to 2 minute. Trying fix sync command at the end of flashing as reported here -> https://github.com/munjeni/newflasher/issues/42

- version 51 (12.08.2021)
Fix empry line printed while receiving usb packets, thanks @elukyan

- version 52 (01.10.2021)
Implemented userprompt for keeping userdata, thanks @OhayouBaka for figuring out! Removed bootloader log retrieval

Credits:

- without @tanipat and his pc companion debug logs this tool will never be possible! Thank you a lot for your time providing me logs! (by the influence of others, He was disappointed me with last post, but I still appreciate his help and can't forget it)
- without @thrash001 who helped testing our tool I never be continue building our tool since I don't have device for testing, thanks mate!
- didn't forgot @beenoliu, thanks mate for testing!
- thanks to @porphyry for testing linux version!
- thanks to @Snow_Basinger for providing sniff log from 2018 device and for testing on his 2018 device
- thanks to @frantisheq for testing newflasher on his 2018 device and for notify about doublefree bug
- thanks to @serajr for providing me some logs which helped me to figure out some things related to 2018 devices
- thanks to @noelex for helping in Xperia 1 implementation
- thanks to @Meloferz for testing on his xperia 1 mark II
- thanks to github contributors, testers and reporters: vog, noelex, TheSaltedFish, solarxraft, pbarrette, MartinX3, kholk
- thanks to Chirayu Desai for tracking addition to Debian and thanks to vog for initiating all that
- thanks to @elukyan for testing and providing me usb sniff logs for mark 3 devices imlementation, thank you so much

Common errors and how to solve:
https://forum.xda-developers.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-72610228

Source code:

https://github.com/munjeni/newflasher
Thanks for the tool, I used it since I got my xzp, it's basically my device savior, I flashed the latest A12 fw on my xperia 5 ii today and it doesn't boot up...
This is the message in the end :
Set slot 'b' active.

Device is put now out of flash mode.
Sent command: Sync
Sent command: reboot.

And I can't change to slot a because: FAILED (remote: Slot Change is not allowed in Lock State).

Xperia Companion is always getting error on the downloading... What should I do?
XQ-AS52

The bootloader is locked


Code:
Repartitioning...
Found partition_delivery.xml in partition folder.
Determining LUN0 size...
UFS raw data[0xA9]:


  00000000  40 00 00 00 00 00 03 04 01 00 01 7F 00 01 04 00  @...............
  00000010  03 00 07 20 00 01 02 03 01 CE 10 10 02 00 00 81  ... ............
  00000020  01 20 00 00 20 00 00 00 00 00 04 00 00 00 00 00  . .. ...........
  00000030  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000040  23 02 00 01 00 00 00 00 00 00 0C 00 00 00 00 01  #...............
  00000050  DC 98 00 00 00 00 01 03 00 00 00 00 01 DC 98 00  ................
  00000060  00 00 00 23 02 01 01 01 01 00 00 03 00 0C 00 00  ...#............
  00000070  00 00 00 00 08 00 00 00 00 01 03 00 00 00 00 00  ................
  00000080  00 08 00 00 00 00 23 02 02 01 02 01 00 00 03 00  ......#.........
  00000090  0C 00 00 00 00 00 00 08 00 00 00 00 01 03 00 00  ................
  000000A0  00 00 00 00 08 00 00 00 00                       .........


LUN0 size = 124936192


Processing partition-image-LUN0_124936192_X-FLASH-ALL-2389.sin
 - Extracting from partition-image-LUN0_124936192_X-FLASH-ALL-2389.sin
 - Extracting signature partitionimage_0.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_0.cms
      signature:0000089c
      OKAY.
 - Extracting sparse chunk partitionimage_0.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_0.000
      download:00006000
      OKAY.
      Repartition:0
      OKAY.
 - End of partition-image-LUN0_124936192_X-FLASH-ALL-2389.sin


Processing partition-image-LUN0_249896960_X-FLASH-ALL-2389.sin
Skipping partition-image-LUN0_249896960_X-FLASH-ALL-2389.sin


Processing partition-image-LUN1_8192_X-FLASH-ALL-2389.sin
 - Extracting from partition-image-LUN1_8192_X-FLASH-ALL-2389.sin
 - Extracting signature partitionimage_1.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_1.cms
      signature:0000089c
      OKAY.
 - Extracting sparse chunk partitionimage_1.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_1.000
      download:00006000
      OKAY.
      Repartition:1
      OKAY.
 - End of partition-image-LUN1_8192_X-FLASH-ALL-2389.sin


Processing partition-image-LUN2_8192_X-FLASH-ALL-2389.sin
 - Extracting from partition-image-LUN2_8192_X-FLASH-ALL-2389.sin
 - Extracting signature partitionimage_2.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_2.cms
      signature:0000089c
      OKAY.
 - Extracting sparse chunk partitionimage_2.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_2.000
      download:00006000
      OKAY.
      Repartition:2
      OKAY.
 - End of partition-image-LUN2_8192_X-FLASH-ALL-2389.sin


Processing .sin files...
Created ouput folder flash_session


Processing appslog_X-FLASH-ALL-2389.sin
<NOERASE>appslog_X-FLASH-ALL-2389.sin</NOERASE>
 - Skipping appslog_X-FLASH-ALL-2389.sin


Processing bluetooth_X-FLASH-ALL-2389.sin
 - Extracting from bluetooth_X-FLASH-ALL-2389.sin
 - Extracting signature bluetooth.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\bluetooth.cms
      signature:00000895
      OKAY.
 - Extracting sparse chunk bluetooth.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\bluetooth.000
      download:000ab000
      OKAY.
      Partition: bluetooth have slot: yes
      erase:bluetooth_a
      OKAY.
      flash:bluetooth_a
      OKAY.
 - End of bluetooth_X-FLASH-ALL-2389.sin
 - Extracting from bluetooth_X-FLASH-ALL-2389.sin
 - Extracting signature bluetooth.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\bluetooth.cms
      signature:00000895
      OKAY.
 - Extracting sparse chunk bluetooth.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\bluetooth.000
      download:000ab000
      OKAY.
      Partition: bluetooth have slot: yes
      erase:bluetooth_b
      OKAY.
      flash:bluetooth_b
      OKAY.
 - End of bluetooth_X-FLASH-ALL-2389.sin


Processing boot_X-FLASH-ALL-2389.sin
 - Extracting from boot_X-FLASH-ALL-2389.sin
 - Extracting signature boot.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\boot.cms
      signature:00000890
      OKAY.
 - Extracting sparse chunk boot.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\boot.000
      download:06000000
      OKAY.
      Partition: boot have slot: yes
      erase:boot_b
      OKAY.
      flash:boot_b
      OKAY.
 - End of boot_X-FLASH-ALL-2389.sin


Processing diag_X-FLASH-ALL-2389.sin
<NOERASE>diag_X-FLASH-ALL-2389.sin</NOERASE>
 - Skipping diag_X-FLASH-ALL-2389.sin


Processing dsp_X-FLASH-ALL-2389.sin
 - Extracting from dsp_X-FLASH-ALL-2389.sin
 - Extracting signature dsp.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\dsp.cms
      signature:0000088f
      OKAY.
 - Extracting sparse chunk dsp.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\dsp.000
      download:04000000
      OKAY.
      Partition: dsp have slot: yes
      erase:dsp_a
      OKAY.
      flash:dsp_a
      OKAY.
 - End of dsp_X-FLASH-ALL-2389.sin
 - Extracting from dsp_X-FLASH-ALL-2389.sin
 - Extracting signature dsp.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\dsp.cms
      signature:0000088f
      OKAY.
 - Extracting sparse chunk dsp.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\dsp.000
      download:04000000
      OKAY.
      Partition: dsp have slot: yes
      erase:dsp_b
      OKAY.
      flash:dsp_b
      OKAY.
 - End of dsp_X-FLASH-ALL-2389.sin


Processing dtbo_X-FLASH-ALL-2389.sin
 - Extracting from dtbo_X-FLASH-ALL-2389.sin
 - Extracting signature dtbo.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\dtbo.cms
      signature:00000890
      OKAY.
 - Extracting sparse chunk dtbo.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\dtbo.000
      download:01800000
      OKAY.
      Partition: dtbo have slot: yes
      erase:dtbo_b
      OKAY.
      flash:dtbo_b
      OKAY.
 - End of dtbo_X-FLASH-ALL-2389.sin


Processing elabel-XQ-AS52-rw-ru_20200911065419_private_X-FLASH-LTALABEL-2389.sin
 - Extracting from elabel-XQ-AS52-rw-ru_20200911065419_private_X-FLASH-LTALABEL-2389.sin
 - Extracting signature LTALabel.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\LTALabel.cms
      signature:000008b9
      OKAY.
 - Extracting sparse chunk LTALabel.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\LTALabel.000
      download:01000000
      OKAY.
      erase:LTALabel
      OKAY.
      flash:LTALabel
      OKAY.
 - End of elabel-XQ-AS52-rw-ru_20200911065419_private_X-FLASH-LTALABEL-2389.sin


Processing mdm1m9kefs1_X-FLASH-ALL-2389.sin
 - Extracting from mdm1m9kefs1_X-FLASH-ALL-2389.sin
 - Extracting signature mdm1m9kefs1.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs1.cms
      signature:00000897
      OKAY.
 - Extracting sparse chunk mdm1m9kefs1.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs1.000
      download:00000400
      OKAY.
      erase:mdm1m9kefs1
      OKAY.
      flash:mdm1m9kefs1
      OKAY.
 - End of mdm1m9kefs1_X-FLASH-ALL-2389.sin


Processing mdm1m9kefs2_X-FLASH-ALL-2389.sin
 - Extracting from mdm1m9kefs2_X-FLASH-ALL-2389.sin
 - Extracting signature mdm1m9kefs2.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs2.cms
      signature:00000897
      OKAY.
 - Extracting sparse chunk mdm1m9kefs2.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs2.000
      download:00000400
      OKAY.
      erase:mdm1m9kefs2
      OKAY.
      flash:mdm1m9kefs2
      OKAY.
 - End of mdm1m9kefs2_X-FLASH-ALL-2389.sin


Processing mdm1m9kefs3_X-FLASH-ALL-2389.sin
 - Extracting from mdm1m9kefs3_X-FLASH-ALL-2389.sin
 - Extracting signature mdm1m9kefs3.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs3.cms
      signature:00000897
      OKAY.
 - Extracting sparse chunk mdm1m9kefs3.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs3.000
      download:000020a8
      OKAY.
      erase:mdm1m9kefs3
      OKAY.
      flash:mdm1m9kefs3
      OKAY.
 - End of mdm1m9kefs3_X-FLASH-ALL-2389.sin


Processing metadata_X-FLASH-ALL-2389.sin
<NOERASE>metadata_X-FLASH-ALL-2389.sin</NOERASE>
 - Skipping metadata_X-FLASH-ALL-2389.sin


Processing misc_X-FLASH-ALL-2389.sin
 - Extracting from misc_X-FLASH-ALL-2389.sin
 - Extracting signature misc.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\misc.cms
      signature:00000890
      OKAY.
 - Extracting sparse chunk misc.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\misc.000
      download:00001000
      OKAY.
      erase:misc
      OKAY.
      flash:misc
      OKAY.
 - End of misc_X-FLASH-ALL-2389.sin


Processing modem_X-FLASH-ALL-2389.sin
 - Extracting from modem_X-FLASH-ALL-2389.sin
 - Extracting signature modem.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.cms
      signature:000008b1
      OKAY.
 - Extracting sparse chunk modem.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.000
      download:035ceb8d
      OKAY.
      Partition: modem have slot: yes
      erase:modem_a
      OKAY.
      flash:modem_a
      OKAY.
 - Extracting sparse chunk modem.001
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.001
      download:02d7ad1f
      OKAY.
      flash:modem_a
      OKAY.
 - End of modem_X-FLASH-ALL-2389.sin
 - Extracting from modem_X-FLASH-ALL-2389.sin
 - Extracting signature modem.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.cms
      signature:000008b1
      OKAY.
 - Extracting sparse chunk modem.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.000
      download:035ceb8d
      OKAY.
      Partition: modem have slot: yes
      erase:modem_b
      OKAY.
      flash:modem_b
      OKAY.
 - Extracting sparse chunk modem.001
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.001
      download:02d7ad1f
      OKAY.
      flash:modem_b
      OKAY.
 - End of modem_X-FLASH-ALL-2389.sin


Processing oem_other_X-FLASH-CUST-2389.sin
 - Extracting from oem_other_X-FLASH-CUST-2389.sin
 - Extracting signature oem.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\oem.cms
      signature:000008b5
      OKAY.
 - Extracting sparse chunk oem.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\oem.000
      download:00000a94
      OKAY.
      Partition: oem have slot: yes
      erase:oem_a
      OKAY.
      flash:oem_a
      OKAY.
 - End of oem_other_X-FLASH-CUST-2389.sin


Processing oem_X-FLASH-CUST-2389.sin
 - Extracting from oem_X-FLASH-CUST-2389.sin
 - Extracting signature oem.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\oem.cms
      signature:000008d5
      OKAY.
 - Extracting sparse chunk oem.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\oem.000
      download:051f9512
      OKAY.
      Partition: oem have slot: yes
      erase:oem_b
      OKAY.
      flash:oem_b
      OKAY.
 - Extracting sparse chunk oem.001
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\oem.001
      download:003eb087
      OKAY.
      flash:oem_b
      OKAY.
 - End of oem_X-FLASH-CUST-2389.sin


Processing rdimage_X-FLASH-ALL-2389.sin
 - Extracting from rdimage_X-FLASH-ALL-2389.sin
 - Extracting signature rdimage.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\rdimage.cms
      signature:00000893
      OKAY.
 - Extracting sparse chunk rdimage.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\rdimage.000
      download:04000000
      OKAY.
      Partition: rdimage have slot: yes
      erase:rdimage_a
      OKAY.
      flash:rdimage_a
      OKAY.
 - End of rdimage_X-FLASH-ALL-2389.sin
 - Extracting from rdimage_X-FLASH-ALL-2389.sin
 - Extracting signature rdimage.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\rdimage.cms
      signature:00000893
      OKAY.
 - Extracting sparse chunk rdimage.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\rdimage.000
      download:04000000
      OKAY.
      Partition: rdimage have slot: yes
      erase:rdimage_b
      OKAY.
      flash:rdimage_b
      OKAY.
 - End of rdimage_X-FLASH-ALL-2389.sin


Processing recovery_X-FLASH-ALL-2389.sin
 - Extracting from recovery_X-FLASH-ALL-2389.sin
 - Extracting signature recovery.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\recovery.cms
      signature:00000894
      OKAY.
 - Extracting sparse chunk recovery.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\recovery.000
      download:06000000
      OKAY.
      Partition: recovery have slot: yes
      erase:recovery_b
      OKAY.
      flash:recovery_b
      OKAY.
 - End of recovery_X-FLASH-ALL-2389.sin


Processing spunvm_X-FLASH-ALL-2389.sin
 - Extracting from spunvm_X-FLASH-ALL-2389.sin
 - Extracting signature spunvm.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\spunvm.cms
      signature:00000892
      OKAY.
 - Extracting sparse chunk spunvm.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\spunvm.000
      download:00057000
      OKAY.
      erase:spunvm
      OKAY.
      flash:spunvm
      OKAY.
 - End of spunvm_X-FLASH-ALL-2389.sin


Processing super_X-FLASH-ALL-2389.sin
 - Extracting from super_X-FLASH-ALL-2389.sin
 - Extracting signature super.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.cms
      signature:00000e57
      OKAY.
 - Extracting sparse chunk super.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.000
      download:03ccb4b6
      OKAY.
      erase:super
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.001
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.001
      download:052707ad
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.002
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.002
      download:047280c0
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.003
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.003
      download:048f9535
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.004
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.004
      download:030fd077
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.005
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.005
      download:03937461
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.006
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.006
      download:032674c6
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.007
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.007
      download:034c98ec
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.008
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.008
      download:047f97b6
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.009
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.009
      download:02ee6188
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.010
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.010
      download:04938cce
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.011
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.011
      download:06311695
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.012
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.012
      download:05bdd00d
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.013
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.013
      download:03d6bd02
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.014
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.014
      download:03458cc4
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.015
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.015
      download:03a1b20d
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.016
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.016
      download:03f19faa
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.017
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.017
      download:05008f76
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.018
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.018
      download:063db3eb
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.019
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.019
      download:04fb65ff
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.020
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.020
      download:03bef498
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.021
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.021
      download:0442d26b
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.022
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.022
      download:03d520ec
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.023
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.023
      download:041e896f
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.024
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.024
      download:03d58c2e
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.025
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.025
      download:03c478b1
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.026
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.026
      download:0429e91e
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.027
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.027
      download:0516d0f2
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.028
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.028
      download:041e219f
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.029
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.029
      download:039efff6
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.030
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.030
      download:03f832b5
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.031
 - Uploading sparse chunk
[CODE]C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.031
      download:03f976b6
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.032
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.032
      download:03e1a3f7
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.033
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.033
      download:03d7b33b
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.034
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.034
      download:03aebfd2
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.035
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.035
      download:03bdeccc
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.036
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.036
      download:0407b076
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.037
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.037
      download:056770a6
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.038
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.038
      download:037d4de2
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.039
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.039
      download:0313960a
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.040
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.040
      download:03ecfec4
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.041
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.041
      download:0365414b
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.042
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.042
      download:03c0f165
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.043
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.043
      download:03c6d740
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.044
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.044
      download:043fab68
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.045
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.045
      download:0373459f
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.046
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.046
      download:002d4a03
      OKAY.
      flash:super
      OKAY.
 - End of super_X-FLASH-ALL-2389.sin


Processing userdata_X-FLASH-CUST-2389.sin
<NOERASE>userdata_X-FLASH-CUST-2389.sin</NOERASE>
 - Skipping userdata_X-FLASH-CUST-2389.sin


Processing vbmeta_system_X-FLASH-ALL-2389.sin
 - Extracting from vbmeta_system_X-FLASH-ALL-2389.sin
 - Extracting signature vbmeta_system.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\vbmeta_system.cms
      signature:00000899
      OKAY.
 - Extracting sparse chunk vbmeta_system.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\vbmeta_system.000
      download:00001000
      OKAY.
      Partition: vbmeta_system have slot: yes
      erase:vbmeta_system_b
      OKAY.
      flash:vbmeta_system_b
      OKAY.
 - End of vbmeta_system_X-FLASH-ALL-2389.sin


Processing vbmeta_X-FLASH-ALL-2389.sin
 - Extracting from vbmeta_X-FLASH-ALL-2389.sin
 - Extracting signature vbmeta.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\vbmeta.cms
      signature:00000892
      OKAY.
 - Extracting sparse chunk vbmeta.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\vbmeta.000
      download:00002000
      OKAY.
      Partition: vbmeta have slot: yes
      erase:vbmeta_b
      OKAY.
      flash:vbmeta_b
      OKAY.
 - End of vbmeta_X-FLASH-ALL-2389.sin


Processing .ta files...


Processing auto-boot.ta
 - Partition: 2
 - Unit: 907 (2311)
 - Unit size: 0x1
      download:00000001
      OKAY.
      Write-TA:2:2311
      OKAY.


Processing CustomerID_S20000234_001_Default_c999999.ta
 - Partition: 2
 - Unit: 87B (2171)
 - Unit size: 0x7
      download:00000007
      OKAY.
      Write-TA:2:2171
      OKAY.
<NOERASE>master-reset.ta</NOERASE>
Skipping master-reset.ta




Processing osv-restriction.ta
 - Partition: 2
 - Unit: 91A (2330)
 - Unit size: 0x1
      download:00000001
      OKAY.
      Write-TA:2:2330
      OKAY.


Processing reset-force-psim-mode.ta
 - Partition: 2
 - Unit: 135F (4959)
 - Found specific unit which don't contain data.
      download:00000000
      OKAY.
      Write-TA:2:4959
      OKAY.


Processing reset-kernel-cmd-debug.ta
 - Partition: 2
 - Unit: 9A9 (2473)
 - Unit size: 0x1
      download:00000001
      OKAY.
      Write-TA:2:2473
      OKAY.


Processing reset-non-secure-adb.ta
 - Partition: 2
 - Unit: 9B6 (2486)
 - Found specific unit which don't contain data.
      download:00000000
      OKAY.
      Write-TA:2:2486
      OKAY.


Processing boot delivery...


Found boot_delivery.xml in boot folder.
 - Boot delivery version: 1320-2827
 - Verifying if boot delivery match with device...
      searching for: PLATFORM_ID="000C30E1";PLF_ROOT_HASH="502D5117AE7B00D9F89E4EAE078EE07D347F313333898EB57EB909BDA341D53D477719408654C25217EDC7BEF2FED8FB"
      Found bootdelivery match: COMMERCIAL_000C30E1
      TA file: PDX206_XBootConfig_MiscTA.ta


Processing ./boot/PDX206_XBootConfig_MiscTA.ta
 - Partition: 2
 - Unit: 84F (2127)
 - Unit size: 0x69
      download:00000069
      OKAY.
      Write-TA:2:2127
      OKAY.
 - Unit: 8FD (2301)
 - Unit size: 0x1
      download:00000001
      OKAY.
      Write-TA:2:2301
      OKAY.
      SIN file: bootloader_X_BOOT_SM8250_LA2_0_1_S_204_X-FLASH-ALL-2389.sin


Processing bootloader_X_BOOT_SM8250_LA2_0_1_S_204_X-FLASH-ALL-2389.sin
 - setting up inflate...
 - infflating, please wait...
      ........
 - inflate returned: 0
 - gzpipe: ok.
 - gunziped ok.
 - Extracting from bootloader_X_BOOT_SM8250_LA2_0_1_S_204_X-FLASH-ALL-2389.sin
 - Extracting signature bootloader.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\boot\bootloader.cms
      signature:00000896
      OKAY.
 - Extracting sparse chunk bootloader.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\boot\bootloader.000
      download:036ffe00
      OKAY.
      Partition: bootloader have slot: yes
      erase:bootloader_b
      OKAY.
      flash:bootloader_b
      OKAY.
 - End of bootloader_X_BOOT_SM8250_LA2_0_1_S_204_X-FLASH-ALL-2389.sin


=========== FIRMWARES HISTORY LOG =============
NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA1.0.1_Q_51, cdf_version:Unknown: Aug 28 2020/19:47:21, fs_version:Unknown: Aug 28 2020/19:47:21, sw_version:58.0.A.10.21
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA1.0.1_Q_51, cdf_version:Unknown: Sep 25 2020/13:51:23, fs_version:Unknown: Sep 25 2020/13:51:23, sw_version:58.0.A.12.23
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA1.0.1_Q_51, cdf_version:Unknown: Sep 30 2020/11:17:26, fs_version:Unknown: Sep 30 2020/11:17:26, sw_version:58.0.A.22.21
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA1.0.1_Q_51, cdf_version:Unknown: Nov  2 2020/19:18:21, fs_version:Unknown: Nov  2 2020/19:18:21, sw_version:58.0.A.28.25
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA1.0.1_Q_51, cdf_version:Unknown: Nov 28 2020/13:18:52, fs_version:Unknown: Nov 28 2020/13:18:52, sw_version:58.0.A.28.51
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Dec 16 2020/23:49:52, fs_version:Unknown: Dec 16 2020/23:49:52, sw_version:58.1.A.1.178
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Feb  2 2021/17:39:09, fs_version:Unknown: Feb  2 2021/17:39:09, sw_version:58.1.A.3.87
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Feb 25 2021/19:12:56, fs_version:Unknown: Feb 25 2021/19:12:56, sw_version:58.1.A.5.55
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Mar 30 2021/20:44:31, fs_version:Unknown: Mar 30 2021/20:44:31, sw_version:58.1.A.5.159
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Apr 22 2021/01:59:26, fs_version:Unknown: Apr 22 2021/01:59:26, sw_version:58.1.A.5.222
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Jun  1 2021/03:20:20, fs_version:Unknown: Jun  1 2021/03:20:20, sw_version:58.1.A.5.280
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Jun 28 2021/22:27:17, fs_version:Unknown: Jun 28 2021/22:27:17, sw_version:58.1.A.5.330
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Aug 20 2021/21:23:56, fs_version:Unknown: Aug 20 2021/21:23:56, sw_version:58.1.A.5.395
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Sep 14 2021/19:33:07, fs_version:Unknown: Sep 14 2021/19:33:07, sw_version:58.1.A.5.441
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Oct  6 2021/00:30:16, fs_version:Unknown: Oct  6 2021/00:30:16, sw_version:58.1.A.5.474
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Nov 11 2021/19:37:45, fs_version:Unknown: Nov 11 2021/19:37:45, sw_version:58.1.A.5.507
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Nov 27 2021/03:07:34, fs_version:Unknown: Nov 27 2021/03:07:34, sw_version:58.1.A.5.530


=================================================


Set slot 'b' active.


Device is put now out of flash mode.
Sent command: Sync
Sent command: reboot.


Done.
Closing device.
[/CODE]
 
Last edited:

munjeni

Senior Member
Jun 2, 2011
9,511
22,152
I flashed the A12 firmware on my

Thanks for the tool, I used it since I got my xzp, it's basically my device savior, I flashed the latest A12 fw on my xperia 5 ii today and it doesn't boot up...
This is the message in the end :
Set slot 'b' active.

Device is put now out of flash mode.
Sent command: Sync
Sent command: reboot.

And I can't change to slot a because: FAILED (remote: Slot Change is not allowed in Lock State).

Xperia Companion is always getting error on the downloading... What should I do?
XQ-AS52

The bootloader is locked


Code:
Repartitioning...
Found partition_delivery.xml in partition folder.
Determining LUN0 size...
UFS raw data[0xA9]:


  00000000  40 00 00 00 00 00 03 04 01 00 01 7F 00 01 04 00  @...............
  00000010  03 00 07 20 00 01 02 03 01 CE 10 10 02 00 00 81  ... ............
  00000020  01 20 00 00 20 00 00 00 00 00 04 00 00 00 00 00  . .. ...........
  00000030  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000040  23 02 00 01 00 00 00 00 00 00 0C 00 00 00 00 01  #...............
  00000050  DC 98 00 00 00 00 01 03 00 00 00 00 01 DC 98 00  ................
  00000060  00 00 00 23 02 01 01 01 01 00 00 03 00 0C 00 00  ...#............
  00000070  00 00 00 00 08 00 00 00 00 01 03 00 00 00 00 00  ................
  00000080  00 08 00 00 00 00 23 02 02 01 02 01 00 00 03 00  ......#.........
  00000090  0C 00 00 00 00 00 00 08 00 00 00 00 01 03 00 00  ................
  000000A0  00 00 00 00 08 00 00 00 00                       .........


LUN0 size = 124936192


Processing partition-image-LUN0_124936192_X-FLASH-ALL-2389.sin
 - Extracting from partition-image-LUN0_124936192_X-FLASH-ALL-2389.sin
 - Extracting signature partitionimage_0.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_0.cms
      signature:0000089c
      OKAY.
 - Extracting sparse chunk partitionimage_0.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_0.000
      download:00006000
      OKAY.
      Repartition:0
      OKAY.
 - End of partition-image-LUN0_124936192_X-FLASH-ALL-2389.sin


Processing partition-image-LUN0_249896960_X-FLASH-ALL-2389.sin
Skipping partition-image-LUN0_249896960_X-FLASH-ALL-2389.sin


Processing partition-image-LUN1_8192_X-FLASH-ALL-2389.sin
 - Extracting from partition-image-LUN1_8192_X-FLASH-ALL-2389.sin
 - Extracting signature partitionimage_1.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_1.cms
      signature:0000089c
      OKAY.
 - Extracting sparse chunk partitionimage_1.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_1.000
      download:00006000
      OKAY.
      Repartition:1
      OKAY.
 - End of partition-image-LUN1_8192_X-FLASH-ALL-2389.sin


Processing partition-image-LUN2_8192_X-FLASH-ALL-2389.sin
 - Extracting from partition-image-LUN2_8192_X-FLASH-ALL-2389.sin
 - Extracting signature partitionimage_2.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_2.cms
      signature:0000089c
      OKAY.
 - Extracting sparse chunk partitionimage_2.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\partition\partitionimage_2.000
      download:00006000
      OKAY.
      Repartition:2
      OKAY.
 - End of partition-image-LUN2_8192_X-FLASH-ALL-2389.sin


Processing .sin files...
Created ouput folder flash_session


Processing appslog_X-FLASH-ALL-2389.sin
<NOERASE>appslog_X-FLASH-ALL-2389.sin</NOERASE>
 - Skipping appslog_X-FLASH-ALL-2389.sin


Processing bluetooth_X-FLASH-ALL-2389.sin
 - Extracting from bluetooth_X-FLASH-ALL-2389.sin
 - Extracting signature bluetooth.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\bluetooth.cms
      signature:00000895
      OKAY.
 - Extracting sparse chunk bluetooth.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\bluetooth.000
      download:000ab000
      OKAY.
      Partition: bluetooth have slot: yes
      erase:bluetooth_a
      OKAY.
      flash:bluetooth_a
      OKAY.
 - End of bluetooth_X-FLASH-ALL-2389.sin
 - Extracting from bluetooth_X-FLASH-ALL-2389.sin
 - Extracting signature bluetooth.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\bluetooth.cms
      signature:00000895
      OKAY.
 - Extracting sparse chunk bluetooth.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\bluetooth.000
      download:000ab000
      OKAY.
      Partition: bluetooth have slot: yes
      erase:bluetooth_b
      OKAY.
      flash:bluetooth_b
      OKAY.
 - End of bluetooth_X-FLASH-ALL-2389.sin


Processing boot_X-FLASH-ALL-2389.sin
 - Extracting from boot_X-FLASH-ALL-2389.sin
 - Extracting signature boot.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\boot.cms
      signature:00000890
      OKAY.
 - Extracting sparse chunk boot.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\boot.000
      download:06000000
      OKAY.
      Partition: boot have slot: yes
      erase:boot_b
      OKAY.
      flash:boot_b
      OKAY.
 - End of boot_X-FLASH-ALL-2389.sin


Processing diag_X-FLASH-ALL-2389.sin
<NOERASE>diag_X-FLASH-ALL-2389.sin</NOERASE>
 - Skipping diag_X-FLASH-ALL-2389.sin


Processing dsp_X-FLASH-ALL-2389.sin
 - Extracting from dsp_X-FLASH-ALL-2389.sin
 - Extracting signature dsp.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\dsp.cms
      signature:0000088f
      OKAY.
 - Extracting sparse chunk dsp.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\dsp.000
      download:04000000
      OKAY.
      Partition: dsp have slot: yes
      erase:dsp_a
      OKAY.
      flash:dsp_a
      OKAY.
 - End of dsp_X-FLASH-ALL-2389.sin
 - Extracting from dsp_X-FLASH-ALL-2389.sin
 - Extracting signature dsp.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\dsp.cms
      signature:0000088f
      OKAY.
 - Extracting sparse chunk dsp.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\dsp.000
      download:04000000
      OKAY.
      Partition: dsp have slot: yes
      erase:dsp_b
      OKAY.
      flash:dsp_b
      OKAY.
 - End of dsp_X-FLASH-ALL-2389.sin


Processing dtbo_X-FLASH-ALL-2389.sin
 - Extracting from dtbo_X-FLASH-ALL-2389.sin
 - Extracting signature dtbo.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\dtbo.cms
      signature:00000890
      OKAY.
 - Extracting sparse chunk dtbo.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\dtbo.000
      download:01800000
      OKAY.
      Partition: dtbo have slot: yes
      erase:dtbo_b
      OKAY.
      flash:dtbo_b
      OKAY.
 - End of dtbo_X-FLASH-ALL-2389.sin


Processing elabel-XQ-AS52-rw-ru_20200911065419_private_X-FLASH-LTALABEL-2389.sin
 - Extracting from elabel-XQ-AS52-rw-ru_20200911065419_private_X-FLASH-LTALABEL-2389.sin
 - Extracting signature LTALabel.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\LTALabel.cms
      signature:000008b9
      OKAY.
 - Extracting sparse chunk LTALabel.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\LTALabel.000
      download:01000000
      OKAY.
      erase:LTALabel
      OKAY.
      flash:LTALabel
      OKAY.
 - End of elabel-XQ-AS52-rw-ru_20200911065419_private_X-FLASH-LTALABEL-2389.sin


Processing mdm1m9kefs1_X-FLASH-ALL-2389.sin
 - Extracting from mdm1m9kefs1_X-FLASH-ALL-2389.sin
 - Extracting signature mdm1m9kefs1.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs1.cms
      signature:00000897
      OKAY.
 - Extracting sparse chunk mdm1m9kefs1.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs1.000
      download:00000400
      OKAY.
      erase:mdm1m9kefs1
      OKAY.
      flash:mdm1m9kefs1
      OKAY.
 - End of mdm1m9kefs1_X-FLASH-ALL-2389.sin


Processing mdm1m9kefs2_X-FLASH-ALL-2389.sin
 - Extracting from mdm1m9kefs2_X-FLASH-ALL-2389.sin
 - Extracting signature mdm1m9kefs2.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs2.cms
      signature:00000897
      OKAY.
 - Extracting sparse chunk mdm1m9kefs2.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs2.000
      download:00000400
      OKAY.
      erase:mdm1m9kefs2
      OKAY.
      flash:mdm1m9kefs2
      OKAY.
 - End of mdm1m9kefs2_X-FLASH-ALL-2389.sin


Processing mdm1m9kefs3_X-FLASH-ALL-2389.sin
 - Extracting from mdm1m9kefs3_X-FLASH-ALL-2389.sin
 - Extracting signature mdm1m9kefs3.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs3.cms
      signature:00000897
      OKAY.
 - Extracting sparse chunk mdm1m9kefs3.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\mdm1m9kefs3.000
      download:000020a8
      OKAY.
      erase:mdm1m9kefs3
      OKAY.
      flash:mdm1m9kefs3
      OKAY.
 - End of mdm1m9kefs3_X-FLASH-ALL-2389.sin


Processing metadata_X-FLASH-ALL-2389.sin
<NOERASE>metadata_X-FLASH-ALL-2389.sin</NOERASE>
 - Skipping metadata_X-FLASH-ALL-2389.sin


Processing misc_X-FLASH-ALL-2389.sin
 - Extracting from misc_X-FLASH-ALL-2389.sin
 - Extracting signature misc.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\misc.cms
      signature:00000890
      OKAY.
 - Extracting sparse chunk misc.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\misc.000
      download:00001000
      OKAY.
      erase:misc
      OKAY.
      flash:misc
      OKAY.
 - End of misc_X-FLASH-ALL-2389.sin


Processing modem_X-FLASH-ALL-2389.sin
 - Extracting from modem_X-FLASH-ALL-2389.sin
 - Extracting signature modem.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.cms
      signature:000008b1
      OKAY.
 - Extracting sparse chunk modem.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.000
      download:035ceb8d
      OKAY.
      Partition: modem have slot: yes
      erase:modem_a
      OKAY.
      flash:modem_a
      OKAY.
 - Extracting sparse chunk modem.001
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.001
      download:02d7ad1f
      OKAY.
      flash:modem_a
      OKAY.
 - End of modem_X-FLASH-ALL-2389.sin
 - Extracting from modem_X-FLASH-ALL-2389.sin
 - Extracting signature modem.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.cms
      signature:000008b1
      OKAY.
 - Extracting sparse chunk modem.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.000
      download:035ceb8d
      OKAY.
      Partition: modem have slot: yes
      erase:modem_b
      OKAY.
      flash:modem_b
      OKAY.
 - Extracting sparse chunk modem.001
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\modem.001
      download:02d7ad1f
      OKAY.
      flash:modem_b
      OKAY.
 - End of modem_X-FLASH-ALL-2389.sin


Processing oem_other_X-FLASH-CUST-2389.sin
 - Extracting from oem_other_X-FLASH-CUST-2389.sin
 - Extracting signature oem.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\oem.cms
      signature:000008b5
      OKAY.
 - Extracting sparse chunk oem.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\oem.000
      download:00000a94
      OKAY.
      Partition: oem have slot: yes
      erase:oem_a
      OKAY.
      flash:oem_a
      OKAY.
 - End of oem_other_X-FLASH-CUST-2389.sin


Processing oem_X-FLASH-CUST-2389.sin
 - Extracting from oem_X-FLASH-CUST-2389.sin
 - Extracting signature oem.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\oem.cms
      signature:000008d5
      OKAY.
 - Extracting sparse chunk oem.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\oem.000
      download:051f9512
      OKAY.
      Partition: oem have slot: yes
      erase:oem_b
      OKAY.
      flash:oem_b
      OKAY.
 - Extracting sparse chunk oem.001
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\oem.001
      download:003eb087
      OKAY.
      flash:oem_b
      OKAY.
 - End of oem_X-FLASH-CUST-2389.sin


Processing rdimage_X-FLASH-ALL-2389.sin
 - Extracting from rdimage_X-FLASH-ALL-2389.sin
 - Extracting signature rdimage.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\rdimage.cms
      signature:00000893
      OKAY.
 - Extracting sparse chunk rdimage.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\rdimage.000
      download:04000000
      OKAY.
      Partition: rdimage have slot: yes
      erase:rdimage_a
      OKAY.
      flash:rdimage_a
      OKAY.
 - End of rdimage_X-FLASH-ALL-2389.sin
 - Extracting from rdimage_X-FLASH-ALL-2389.sin
 - Extracting signature rdimage.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\rdimage.cms
      signature:00000893
      OKAY.
 - Extracting sparse chunk rdimage.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\rdimage.000
      download:04000000
      OKAY.
      Partition: rdimage have slot: yes
      erase:rdimage_b
      OKAY.
      flash:rdimage_b
      OKAY.
 - End of rdimage_X-FLASH-ALL-2389.sin


Processing recovery_X-FLASH-ALL-2389.sin
 - Extracting from recovery_X-FLASH-ALL-2389.sin
 - Extracting signature recovery.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\recovery.cms
      signature:00000894
      OKAY.
 - Extracting sparse chunk recovery.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\recovery.000
      download:06000000
      OKAY.
      Partition: recovery have slot: yes
      erase:recovery_b
      OKAY.
      flash:recovery_b
      OKAY.
 - End of recovery_X-FLASH-ALL-2389.sin


Processing spunvm_X-FLASH-ALL-2389.sin
 - Extracting from spunvm_X-FLASH-ALL-2389.sin
 - Extracting signature spunvm.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\spunvm.cms
      signature:00000892
      OKAY.
 - Extracting sparse chunk spunvm.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\spunvm.000
      download:00057000
      OKAY.
      erase:spunvm
      OKAY.
      flash:spunvm
      OKAY.
 - End of spunvm_X-FLASH-ALL-2389.sin


Processing super_X-FLASH-ALL-2389.sin
 - Extracting from super_X-FLASH-ALL-2389.sin
 - Extracting signature super.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.cms
      signature:00000e57
      OKAY.
 - Extracting sparse chunk super.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.000
      download:03ccb4b6
      OKAY.
      erase:super
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.001
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.001
      download:052707ad
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.002
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.002
      download:047280c0
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.003
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.003
      download:048f9535
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.004
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.004
      download:030fd077
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.005
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.005
      download:03937461
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.006
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.006
      download:032674c6
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.007
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.007
      download:034c98ec
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.008
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.008
      download:047f97b6
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.009
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.009
      download:02ee6188
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.010
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.010
      download:04938cce
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.011
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.011
      download:06311695
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.012
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.012
      download:05bdd00d
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.013
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.013
      download:03d6bd02
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.014
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.014
      download:03458cc4
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.015
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.015
      download:03a1b20d
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.016
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.016
      download:03f19faa
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.017
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.017
      download:05008f76
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.018
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.018
      download:063db3eb
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.019
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.019
      download:04fb65ff
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.020
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.020
      download:03bef498
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.021
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.021
      download:0442d26b
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.022
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.022
      download:03d520ec
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.023
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.023
      download:041e896f
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.024
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.024
      download:03d58c2e
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.025
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.025
      download:03c478b1
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.026
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.026
      download:0429e91e
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.027
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.027
      download:0516d0f2
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.028
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.028
      download:041e219f
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.029
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.029
      download:039efff6
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.030
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.030
      download:03f832b5
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.031
 - Uploading sparse chunk
[CODE]C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.031
      download:03f976b6
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.032
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.032
      download:03e1a3f7
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.033
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.033
      download:03d7b33b
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.034
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.034
      download:03aebfd2
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.035
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.035
      download:03bdeccc
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.036
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.036
      download:0407b076
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.037
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.037
      download:056770a6
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.038
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.038
      download:037d4de2
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.039
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.039
      download:0313960a
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.040
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.040
      download:03ecfec4
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.041
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.041
      download:0365414b
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.042
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.042
      download:03c0f165
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.043
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.043
      download:03c6d740
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.044
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.044
      download:043fab68
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.045
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.045
      download:0373459f
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.046
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\super.046
      download:002d4a03
      OKAY.
      flash:super
      OKAY.
 - End of super_X-FLASH-ALL-2389.sin


Processing userdata_X-FLASH-CUST-2389.sin
<NOERASE>userdata_X-FLASH-CUST-2389.sin</NOERASE>
 - Skipping userdata_X-FLASH-CUST-2389.sin


Processing vbmeta_system_X-FLASH-ALL-2389.sin
 - Extracting from vbmeta_system_X-FLASH-ALL-2389.sin
 - Extracting signature vbmeta_system.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\vbmeta_system.cms
      signature:00000899
      OKAY.
 - Extracting sparse chunk vbmeta_system.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\vbmeta_system.000
      download:00001000
      OKAY.
      Partition: vbmeta_system have slot: yes
      erase:vbmeta_system_b
      OKAY.
      flash:vbmeta_system_b
      OKAY.
 - End of vbmeta_system_X-FLASH-ALL-2389.sin


Processing vbmeta_X-FLASH-ALL-2389.sin
 - Extracting from vbmeta_X-FLASH-ALL-2389.sin
 - Extracting signature vbmeta.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\flash_session\vbmeta.cms
      signature:00000892
      OKAY.
 - Extracting sparse chunk vbmeta.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\flash_session\vbmeta.000
      download:00002000
      OKAY.
      Partition: vbmeta have slot: yes
      erase:vbmeta_b
      OKAY.
      flash:vbmeta_b
      OKAY.
 - End of vbmeta_X-FLASH-ALL-2389.sin


Processing .ta files...


Processing auto-boot.ta
 - Partition: 2
 - Unit: 907 (2311)
 - Unit size: 0x1
      download:00000001
      OKAY.
      Write-TA:2:2311
      OKAY.


Processing CustomerID_S20000234_001_Default_c999999.ta
 - Partition: 2
 - Unit: 87B (2171)
 - Unit size: 0x7
      download:00000007
      OKAY.
      Write-TA:2:2171
      OKAY.
<NOERASE>master-reset.ta</NOERASE>
Skipping master-reset.ta




Processing osv-restriction.ta
 - Partition: 2
 - Unit: 91A (2330)
 - Unit size: 0x1
      download:00000001
      OKAY.
      Write-TA:2:2330
      OKAY.


Processing reset-force-psim-mode.ta
 - Partition: 2
 - Unit: 135F (4959)
 - Found specific unit which don't contain data.
      download:00000000
      OKAY.
      Write-TA:2:4959
      OKAY.


Processing reset-kernel-cmd-debug.ta
 - Partition: 2
 - Unit: 9A9 (2473)
 - Unit size: 0x1
      download:00000001
      OKAY.
      Write-TA:2:2473
      OKAY.


Processing reset-non-secure-adb.ta
 - Partition: 2
 - Unit: 9B6 (2486)
 - Found specific unit which don't contain data.
      download:00000000
      OKAY.
      Write-TA:2:2486
      OKAY.


Processing boot delivery...


Found boot_delivery.xml in boot folder.
 - Boot delivery version: 1320-2827
 - Verifying if boot delivery match with device...
      searching for: PLATFORM_ID="000C30E1";PLF_ROOT_HASH="502D5117AE7B00D9F89E4EAE078EE07D347F313333898EB57EB909BDA341D53D477719408654C25217EDC7BEF2FED8FB"
      Found bootdelivery match: COMMERCIAL_000C30E1
      TA file: PDX206_XBootConfig_MiscTA.ta


Processing ./boot/PDX206_XBootConfig_MiscTA.ta
 - Partition: 2
 - Unit: 84F (2127)
 - Unit size: 0x69
      download:00000069
      OKAY.
      Write-TA:2:2127
      OKAY.
 - Unit: 8FD (2301)
 - Unit size: 0x1
      download:00000001
      OKAY.
      Write-TA:2:2301
      OKAY.
      SIN file: bootloader_X_BOOT_SM8250_LA2_0_1_S_204_X-FLASH-ALL-2389.sin


Processing bootloader_X_BOOT_SM8250_LA2_0_1_S_204_X-FLASH-ALL-2389.sin
 - setting up inflate...
 - infflating, please wait...
      ........
 - inflate returned: 0
 - gzpipe: ok.
 - gunziped ok.
 - Extracting from bootloader_X_BOOT_SM8250_LA2_0_1_S_204_X-FLASH-ALL-2389.sin
 - Extracting signature bootloader.cms
 - Uploading signature C:\Users\javi_\Desktop\newflasher_v52\boot\bootloader.cms
      signature:00000896
      OKAY.
 - Extracting sparse chunk bootloader.000
 - Uploading sparse chunk C:\Users\javi_\Desktop\newflasher_v52\boot\bootloader.000
      download:036ffe00
      OKAY.
      Partition: bootloader have slot: yes
      erase:bootloader_b
      OKAY.
      flash:bootloader_b
      OKAY.
 - End of bootloader_X_BOOT_SM8250_LA2_0_1_S_204_X-FLASH-ALL-2389.sin


=========== FIRMWARES HISTORY LOG =============
NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA1.0.1_Q_51, cdf_version:Unknown: Aug 28 2020/19:47:21, fs_version:Unknown: Aug 28 2020/19:47:21, sw_version:58.0.A.10.21
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA1.0.1_Q_51, cdf_version:Unknown: Sep 25 2020/13:51:23, fs_version:Unknown: Sep 25 2020/13:51:23, sw_version:58.0.A.12.23
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA1.0.1_Q_51, cdf_version:Unknown: Sep 30 2020/11:17:26, fs_version:Unknown: Sep 30 2020/11:17:26, sw_version:58.0.A.22.21
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA1.0.1_Q_51, cdf_version:Unknown: Nov  2 2020/19:18:21, fs_version:Unknown: Nov  2 2020/19:18:21, sw_version:58.0.A.28.25
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA1.0.1_Q_51, cdf_version:Unknown: Nov 28 2020/13:18:52, fs_version:Unknown: Nov 28 2020/13:18:52, sw_version:58.0.A.28.51
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Dec 16 2020/23:49:52, fs_version:Unknown: Dec 16 2020/23:49:52, sw_version:58.1.A.1.178
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Feb  2 2021/17:39:09, fs_version:Unknown: Feb  2 2021/17:39:09, sw_version:58.1.A.3.87
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Feb 25 2021/19:12:56, fs_version:Unknown: Feb 25 2021/19:12:56, sw_version:58.1.A.5.55
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Mar 30 2021/20:44:31, fs_version:Unknown: Mar 30 2021/20:44:31, sw_version:58.1.A.5.159
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Apr 22 2021/01:59:26, fs_version:Unknown: Apr 22 2021/01:59:26, sw_version:58.1.A.5.222
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Jun  1 2021/03:20:20, fs_version:Unknown: Jun  1 2021/03:20:20, sw_version:58.1.A.5.280
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Jun 28 2021/22:27:17, fs_version:Unknown: Jun 28 2021/22:27:17, sw_version:58.1.A.5.330
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Aug 20 2021/21:23:56, fs_version:Unknown: Aug 20 2021/21:23:56, sw_version:58.1.A.5.395
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Sep 14 2021/19:33:07, fs_version:Unknown: Sep 14 2021/19:33:07, sw_version:58.1.A.5.441
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Oct  6 2021/00:30:16, fs_version:Unknown: Oct  6 2021/00:30:16, sw_version:58.1.A.5.474
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Nov 11 2021/19:37:45, fs_version:Unknown: Nov 11 2021/19:37:45, sw_version:58.1.A.5.507
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1320-2827_X_Boot_SM8250_LA2.0_R_107, cdf_version:Unknown: Nov 27 2021/03:07:34, fs_version:Unknown: Nov 27 2021/03:07:34, sw_version:58.1.A.5.530


=================================================


Set slot 'b' active.


Device is put now out of flash mode.
Sent command: Sync
Sent command: reboot.


Done.
Closing device.
[/CODE]
Hope you know that downgrading is not possible, if you downgrading you need to unlock bootloader, if you not unlock bootloader but want to downgrade you will get boot loop because of "rollback protection", more info about roll back protection you can search forum. So if you need to stay locked bootloader you need excatly the same rom or newer one to flash, or option two is unlock bootloader, flash rom, relock bootloader to reset rollback index to zero. Hope this help.
 
  • Like
Reactions: Aqq123

Top Liked Posts

  • 2
    Hi guys
    Recently i updated my Xperia 10 ii (xq-au52) from Android 11 (59.1.A.2.232) to Android 12 (59.2.A.0.422).
    I want to go back to 11.
    I downloaded newflasher and a firmware from xperifirm.
    The firmware i downloaded is XQ-AU42_MVNO JP_59.1.A.4.177-R4B.
    I think it's the closest to the version i had before updating. (It was the SEA version btw)
    I know it'll probably sound dumb but i have no clue what to do now.
    Idk if that's the right firmware.
    Idk how to put phone in flash mode.
    Please may someone help me.
    Thanks in advance.
    You want to restore the firmware to an older version? Don't do that! Rolback protection not allow downgrade, and your phone will not boot! We have already spent 3 pages on it, feel free to read before you decide on the next step! I really don’t want to repeat myself.

    How to put phone in flash mode? Simply power off phone first, than connect usb cable to the phone, than while keeping volume down button connect another side of the cable to the PC, you will notice green light on phone, thats indication for flash mode, now release volume buton and you are in flash mode. You must have right driver on your pc for flash mode so before putting phone in flash mode install driver first! How to install driver? Simply run newflasher, it will ask you for "extract gordon gate driver", simply confirm with "y" and press enter, driver will be extracted to the same folder with newflasher. Install driver and thats it. About flashing phone with newflasher google it! Have a ton of tutorials on the net about how to flash phone with newflasher, simply read.
  • 3
    It doesn't support Xperia Z2
    Probably true, I realy don't know, I have used s1tool on my xperia z1 compact a lot of years ago, have no idea even if s1tool devs done something further for newer phones
    2
    hi,
    i have a xperia 1 mark 3 xq-bc72, after recent android 12 update my phone started to bootloop and got the 'your device is corrupt...' message.
    i read this whole forum and tried sony companion first but no success. so i tried with newflasher many times with fw for xq-bc72 (i tried all different regions) but no matter what i do its not working for me and phone keeps bootlooping until the corrupt message appears, can anyone help i dont know what im doing wrong.
    I don't want to repeat about "rollback protection" just read whole page 105!! In your log I have found

    NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA2.0_S_104, cdf_version:Unknown: Mar 23 2022/17:47:07, fs_version:Unknown: Mar 23 2022/17:47:07, sw_version:61.1.A.7.35

    try download excatly the same firmware, also try the same firmware but for diferent regions one will probably boot. If nothing help read post 4 -> https://forum.xda-developers.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-72610228
    2
    Hi guys
    Recently i updated my Xperia 10 ii (xq-au52) from Android 11 (59.1.A.2.232) to Android 12 (59.2.A.0.422).
    I want to go back to 11.
    I downloaded newflasher and a firmware from xperifirm.
    The firmware i downloaded is XQ-AU42_MVNO JP_59.1.A.4.177-R4B.
    I think it's the closest to the version i had before updating. (It was the SEA version btw)
    I know it'll probably sound dumb but i have no clue what to do now.
    Idk if that's the right firmware.
    Idk how to put phone in flash mode.
    Please may someone help me.
    Thanks in advance.
    You want to restore the firmware to an older version? Don't do that! Rolback protection not allow downgrade, and your phone will not boot! We have already spent 3 pages on it, feel free to read before you decide on the next step! I really don’t want to repeat myself.

    How to put phone in flash mode? Simply power off phone first, than connect usb cable to the phone, than while keeping volume down button connect another side of the cable to the PC, you will notice green light on phone, thats indication for flash mode, now release volume buton and you are in flash mode. You must have right driver on your pc for flash mode so before putting phone in flash mode install driver first! How to install driver? Simply run newflasher, it will ask you for "extract gordon gate driver", simply confirm with "y" and press enter, driver will be extracted to the same folder with newflasher. Install driver and thats it. About flashing phone with newflasher google it! Have a ton of tutorials on the net about how to flash phone with newflasher, simply read.
    2
    What i explained also ? Redownload the correct fw or another region or/and another usb cable/usb port and try again, it should work mate, believe me, i was also a flashjunkie but not anymore.
    You said right. He just need to find which fw "region" was on his device when it worked. Also he might try to switch to slot A first, here is posts eplaining how it can be done by newflasher trought command line:

    newflasher set_active:a

    reboot device than flash.
  • 330
    Disclaimer:

    newflasher tool was made for testing and educational purposes, ME is not responsible for what you do on/with your device using newflasher, you must agree that you using newflasher on your own risk, I am not responsible if you brick your device or anything else!


    How to use:

    OPTIONAL STEP 1:
    - if you have missing flash driver just double click exe and confirm driver extraction, an exe will become available, run it and install driver.

    OPTIONAL STEP 2:
    - this step is optional, this step dump trim area, you can do this and keep those file somewhere on your pc in case you hard brick your device so give it to servicians to repair your phone.

    STEP 1:
    - Download right firmware for your device using XperiFirm tool, put newflasher.exe into firmware dir created by XperiFirm tool. Before you double click newflasher.exe do in mind something, newflasher tool is programed to flash everything found in the same dir!!! So tool flash all .ta files, all .sin files, boot delivery (whole boot folder), partition.zip, in short all files found in dir! If you no want to flash something just move file which you no want to flash OUT OF FOLDER! Partition.zip .sin files can be flashed only if you extract partition.zip into newly created folder called partition!

    STEP 2:
    - To start flashing phone put your phone into flash mode, double click newflasher.exe and wait wait wait until your device gets flashed, thats it. Look into log to see if something goes wrong! If all right you are done. If not post your log so I can look!

    SOME MORE THINGS:
    "You do not need to unlock bootloader or to root the phone if you want to flash a stock firmware from XperiFirm.
    There are no files in the stock firmware that need to be deleted. Prompts will ask you to skip some files.
    Feel free to press N to every prompt since:
    - TA dumping it's not related with DRM keys.
    - Flash persist_* files only if you know what you are doing, since you will lose your attest keys. Backup persist partition.
    If you need the firmware on both A and B slot use fastboot commands to choose the inactive partion and re-flash."

    Happy flashing!


    Supported platforms:

    - Newflasher is working on Windows, Linux, Android and Darwin, just chose right newflasher binary. With Android version you can flash phone by using another phone!


    Changelog:

    - version 1: Sorry a lot of work is done in pre pre alpha version and I can't count every changes, just folow development process about version 1, a lot of work is done before it started working. One esential change was done to tool improvement and it is described in one of the my posts related to moving function "erase:" to the section before function "flash:", it is realy improvement and more safer than in time when it was at the start of flashing routine.

    - version v2 (15.Aug.2017)
    Implemented free disk space safety check, it was missing and danger in case flashing process gets interupted because of the lack of the free disk space needed for sin extractions and temporary files. I have also include GordonGate flash driver prompt so in case somebody have missing flash drivers, simple need to double click exe and folow drivers archive extraction procedure, later need to install these drivers trought Windos device mannager. Also I have implemented an realy pre pre alpha version of the maybe non working trim (why maybe? Because I don't own xzp so can't test) area dump routine, in case it is working we can dump some esentials trim area units from device (probably not a full dump as like it was on every oldest xperia models - no permissions for dumping drm key unit)

    - version v3 (23.09.2017)
    Some more security checks, it's now a bit safer than v2

    - version v4 (21.10.2017)
    Updated trim area dumper, now it stores log to the trimarea.log but dump is now in .ta format and writen to the 01.ta and 02.ta

    - version v5 (22.10.2017)
    Updated trim area dumper, add progress meter, fix y-n prompt (thanks @pbarrette)

    - version v6 (22.10.2017)
    Updated trim area dumper

    - version v7 (23.10.2017)
    Updated trim area dumper, newflasher redesigned a bit, fix new partitioning for Oreo

    - version v8 (24.10.2017)
    Fix trim area dumper

    - version v9 & v10 (25.10.2017)
    Workaorunds on trim area dumper

    - version v11 (07.04.2018)
    Support for 2018 devices

    - version v12 (29.04.2018)
    Try fix doublefree bug/crash (most noticed on Linux 64 bit binary)

    - version v13 (01.05.2018)
    Fix doublefree bug/crash by removing dynamic allocation from function get_reply

    - version v14 & v15 (12.06.2019)
    Sony XPeria 1 support added.

    - version v16 (16.06.2019)
    LUN0 detection optimized.

    - version v17 (24.06.2019)
    LUN0 detection bug fixed.

    - version v18 (10.08.2019)
    Untested fix for https://forum.xda-developers.com/cr...wflasher-xperia-command-line-t3619426/page105
    Using builtin mkdir instead of calling it trought system call

    - version v19 (08.10.2019)
    Implemented prompt for flashing persist partition; print skipped .sin files

    - version v20 (13.12.2019)
    implemented prompt for flashing bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots

    - version v21 (29.06.2020)
    implemented battery level status check before flashing, flashing bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots is mandatory now and is flashed by default right now, more info, try fix previously reported isue on sync and powerdown command reported 2-3 years ago so I have disabled it and now enabled for test, implemented Macos support (curently need to be tested! If you have plan to test please flash only cache.sin DO NOT flash the rest because of safety for your device!)

    - version v22 (30.06.2020)
    trying to fix battery capacity retrieval

    - version v23 (04.07.2020)
    removed battery capacity retrieval (not going to work that way), fix trim area dump file name, new gordongate drivers

    - version v24 (04.07.2020)
    new feature - now you can run newflasher from script or console with your own command, e.g. newflasher getvar:Emmc-info , I didn't tested all the list of commands, if you do it share them with us!

    - version v25 (09.07.2020)
    New trim area dump tool, with this change trim area dump is created in 3 secconds. Do in mind this not dump protected units like drm key...etc! Some changes in scripting feature from v24

    - version v26 (10.07.2020)
    Added 4 diferent reboot modes, reboot to android, reboot to fastboot, reboot to bootloader, power off

    - version v27 (11.07.2020) (not yet released)
    Workaround in mac libusb

    - version v28 (12.07.2020)
    Workaround to sync response bug; Fully implemented support for Mac. I'm tested myself on mac 10.14 but confirmed working on mac 10.15 too

    - version v29 (12.07.2020)
    Mac proper libusb deinitialisation

    - version v30 (13.07.2020)
    Preparation for Debian packaging; I'm noticed that hex modified arm64 fake pie binary is not working so its now compiled with ndk and its true pie binary now

    - version v31 (14.07.2020)
    Fix cosmetic bug https://forum.xda-developers.com/showpost.php?p=83056693&postcount=1212 which might confuse somebody

    - version 32, not yet released

    - version 33 (30.07.2020)
    Allow bootloader unlocking with newflasher; Try fix sync response bug for win and darwin too

    - version 34 (08.08.2020)
    Added support for 32bit sized trim area units (as trim area api changed in xperia mark 2 line) (not yet released because of bug)

    - version 35 (08.08.2020)
    Updated support for 32bit sized trim area units (as trim area api changed in xperia mark 2 line); Move trim area dumps out of root folder so it not get acidentaly flashed, dumps is now inside folder tadump

    - version 36 (27.08.2020)
    Some improvements and and possible bug fixes

    - version 37 (09.12.2020)
    Added support for Xperia 5 II with emmc instead of ufs (not working)

    - version 38 (10.12.2020)
    Fixed impropper implementation from v37

    - version 39 (13.12.2020)
    Since mark 2 devices protocol is changed a bit and on some devices OKAY reply is not in separated usb poacket, instead it is merged with data packet, added support for it

    - version 40 (03.01.2021)
    Temporary solution for determining partition 0 sin file caused by two diferent emmc csd info we found recently on mark 2 devices

    - version 41 (03.01.2021)
    Removed temporary solution from version 41 so right lun0 sin file get flashed and seccond lun0 get skipped or booth skipped if lun0 sin file do not match device storage size

    - version 42 (11.03.2021)
    Fix bug in flashing booth slots when current slot is A, thanks to @chrisrg for discovering bug!

    - version 43 (12.06.2021)
    Support for Mark 3 devices

    - version 44 (19.06.2021)
    Fully Mark III device implementation

    - version 45 (20.06.2021)
    Implemented battery level check and prompt user to take a risk and continue flashing or stop flasing if battery level is less than 15 percent

    - version 46 (08.07.2021)
    Fix problem with filenames which contain "_other", it need to be always flashed to the diferent slot

    - version 47 (15.07.2021)
    Removed prompt for persist.sin flashing, now its by default skip. Implemented bootloader log retrieval at the end of flashing for better understanding when something goes wrong. Implemented firmware log history retrieval for those who want to know history of the flashed firmwares

    - version 48 (19.07.2021)
    Flash bootloader,bluetooth,dsp,modem,rdimage to booth slots only on a,b devices

    - version 49 (31.07.2021)
    Support for XQ-BT41

    - version 50 (12.08.2021)
    Workin progress on asynchronous usb to make it more like synchronous, added progress bar during send-receive usb packets and more logging. Increased usb timeout to 2 minute. Trying fix sync command at the end of flashing as reported here -> https://github.com/munjeni/newflasher/issues/42

    - version 51 (12.08.2021)
    Fix empry line printed while receiving usb packets, thanks @elukyan

    - version 52 (01.10.2021)
    Implemented userprompt for keeping userdata, thanks @OhayouBaka for figuring out! Removed bootloader log retrieval

    Credits:

    - without @tanipat and his pc companion debug logs this tool will never be possible! Thank you a lot for your time providing me logs! (by the influence of others, He was disappointed me with last post, but I still appreciate his help and can't forget it)
    - without @thrash001 who helped testing our tool I never be continue building our tool since I don't have device for testing, thanks mate!
    - didn't forgot @beenoliu, thanks mate for testing!
    - thanks to @porphyry for testing linux version!
    - thanks to @Snow_Basinger for providing sniff log from 2018 device and for testing on his 2018 device
    - thanks to @frantisheq for testing newflasher on his 2018 device and for notify about doublefree bug
    - thanks to @serajr for providing me some logs which helped me to figure out some things related to 2018 devices
    - thanks to @noelex for helping in Xperia 1 implementation
    - thanks to @Meloferz for testing on his xperia 1 mark II
    - thanks to github contributors, testers and reporters: vog, noelex, TheSaltedFish, solarxraft, pbarrette, MartinX3, kholk
    - thanks to Chirayu Desai for tracking addition to Debian and thanks to vog for initiating all that
    - thanks to @elukyan for testing and providing me usb sniff logs for mark 3 devices imlementation, thank you so much

    Common errors and how to solve:
    https://forum.xda-developers.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-72610228

    Source code:

    https://github.com/munjeni/newflasher
    20
    Please remember something, I made newflasher for all you, I didn't made it for me remember that, I dodn't ask for money for my work, all is for free, all is done in my spare time and for free, I have made everything just to make all you happy, remember that! I must say something more, some xda members, including some moerators, don't appreciate my effort, thats shame. I lost my recognised developer / recognised contributor title because ot that guys, I allways must remind all you that.

    Enjoy flashing! Cheers! ;)
    14
    V14 is out, added Xperia 1 support (curently untested!)

    If you flash partitions please give me newflasher log, need to know if I implemented things right!
    12
    New version is out!
    11
    New version is out! Changelog:
    - implemented flash driver, just double click exe and folow procedure (optional step)
    - trim area dump (optional step and maybe not a functional! Need confirmation.)

    Do not use any old newflasher, its soo old and definitelly not a better than latest one! Folow my instructions and put a trust on me, I am developer of the newflasher and nobody know that better than me, if you have a questions just ask here! I have removed my posts because virus tolal found a malware on all my exe files. Later I found what was going on. UPX (any version) contain the same malware, but since my exe was packed with upx all my exe contain the same malware, reason was UPX! Have no idea why virustotal see upx as a malware but I need now to recompile all my exe without using upx just because I no want to risk with it, don't know if that upx is false warining or not but definitelly better idea omiting upx.