Code Monkey home page Code Monkey logo

newflasher's Issues

Hi, I have some problem when I flash my phone ,could you help me?

Hi, i have some problem when i flash my phone ,could you help me...
I want to flash my SO-05K to 52.1.A.0.618 version(which can temp root ), but i couldn‘t find this version of firmware for my device。
There is another firmware for H8314 ,so i want to flash it to my device ,but newflasher show "Error, didn't got signature OKAY reply! Got reply: FAILFailed to verify cms",i tried flashtool,tried replace .000 file but filed.....
i read the newflasher.c and find the code at line 1722 , i think i can bypass the signature detection if i delete line 1723 and use gcc rebuild the newflasher.exe , but i didn‘t have the *.h file like expat.h to rebuild , could you give me some advice or some help?thank you very very much!!sorry for my bad english,i have almost twelve years live without english……thank you very very much again!!

ERROR: Error CreateFile! failed with error code 5 as follows:

--------------------------------------------------------
            newflasher.exe v52 by Munjeni @ 2017/2020
--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

  Available space to caller    = 279318 MB
  Total space on current drive = 1907599 MB
  Free space on drive          = 279318 MB

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip.
This creates GordonGate driver installer in the same dir with newflasher.exe!
n
Device path: \\?\usb#vid_0fce&pid_b00b#5&2aa56d36&0&6#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: SOMC Flash Device
Device Instance Id: USB\VID_0FCE&PID_B00B\5&2AA56D36&0&6

ERROR: Error CreateFile! failed with error code 5 as follows:
Access is denied.

Press any key to continue . . .

I ran this as administrator and I've this error.

Support for Xperia 1

Looks like the size of root key hash of Xperia 1 is no longer 0x20. I made a slight change to ensure root key hash can be read successfully. Not sure whether this repository is still active so I post the patch and binary file here in case someone else needs this.

newflasher.patch.zip

Notice:
Before flashing, please check partition directory in the firmware and ensure there is only 1 sin file for LUN0. If your firmware is downloaded via XperiFirm, there should be two in the directory: partition-image-LUN0_62480384_X-FLASH-ALL-A2CD for 64GB flash and partition-image-LUN0_124960768_X-FLASH-ALL-A2CD for 128GB flash. Keep one according to your phone's flash size and delete the other one.

A MACOS version?

I am a user of Xperia and MacBook, when I want to flash my phone, I have to use flashtool. But I think newFlasher is better for me because I used to flash my phone on Windows computer, I think a Mac version newFlasher can be good.

Has chosen to skip userdata but userdata.sin is still flashed

I choose skip userdata, and rename userdata sin to prefix _, but userdata is still flashed and my all data is lost.
Ridiculous! I check code logic and don't know why update.xml is still checked and userdata is flashed, after I has chosen skip userdata.

Flashing doesn't work on XZ2 Compact with latest commit (3328b0a)

Logs from attempt to flash with latest 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 03 01 0F 00  @...............
  00000010  02 10 01 18 01 02 03 04 01 98 10 10 02 00 1D 03  ................
  00000020  01 40 00 00 20 00 10 00 00 0D 05 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 01 00 00 0C 00 00 00 00 00  #...............
  00000050  EE 58 00 00 00 00 01 02 00 00 00 00 00 EE 58 00  .X............X.
  00000060  00 00 00 23 02 01 01 01 01 00 00 04 00 0C 00 00  ...#............
  00000070  00 00 00 00 04 00 00 00 00 01 02 00 00 00 00 00  ................
  00000080  00 04 00 00 00 00 23 02 02 01 02 01 00 00 04 00  ......#.........
  00000090  0C 00 00 00 00 00 00 04 00 00 00 00 01 02 00 00  ................
  000000A0  00 00 00 00 04 00 00 00 00                       .........

LUN0 size = 62480384

Processing partition-image-LUN0_X-FLASH-ALL-B6B5.sin
 - Extracting from partition-image-LUN0_X-FLASH-ALL-B6B5.sin
 - Extracting signature partitionimage_0.cms
 - Uploading signature ./partition/partitionimage_0.cms
      signature:0000053c
      OKAY.
 - Extracting sparse chunk partitionimage_0.000
 - Uploading sparse chunk ./partition/partitionimage_0.000
      download:00006000
      OKAY.
      Repartition:0
 - (ep_in) ERROR: n = -1, errno = 110 (Connection timed out)
 - Error reply: null!
      Error, no Repartition OKAY reply!

 - (ep_out size=12)ERROR: n = -1, errno = 110 (Connection timed out)
Error writing command 'set_active:a'!

End. You can disconnect your device when you close newflasher

I checked out the previous commit, built, and successfully reflashed my XZ2C, so the new timeout seems to be way too low.

Xperia 5 II (XQ-AS72) bootloops

Tried to flash my devices with newflasher v39
Then I got bootloops with sony logo too, I have tried to flash all the file without persist.sin #37 (including boot and partition), still boot loop.
My Customization is HK, tried CN\SEA\TW, both failed. Haven't tried HK due version in xperifirm lower than version on my devices. But I have seen others succeed to covert HK to CN.

--------------------------------------------------------
            newflasher.exe v39 by Munjeni @ 2017/2020
--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

  Available space to caller    = 275258 MB
  Total space on current drive = 476684 MB
  Free space on drive          = 275258 MB

Reboot mode at the end of flashing:
  typa 'a' for reboot to android, type 'f' for reboot to fastboot, type 's' for reboot to same mode, type 'p' for poweroff, and press ENTER.
a

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip.
This creates GordonGate driver installer in the same dir with newflasher.exe!
n
Device path: \\?\usb#vid_0fce&pid_b00b#5&34617498&0&17#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: SOMC Flash Device
Device Instance Id: USB\VID_0FCE&PID_B00B\5&34617498&0&17


Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that! But it is recommend to have dump in case hard brick!
n
Product: XQ-AS72
Version: 0.4
Bootloader version: 1320-2827_X_Boot_SM8250_LA1.0.1_Q_51
Baseband version: 58.0.A.28.17
Serialno: QV72008W52
Secure: yes
Loader version: XFL-EDO-SM8250-16
Phone ID: 0000:35119115021560,0000:35119115021561
Device ID: 29635A14
Platform ID: 200C30E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTABLE
Ufs info: TOSHIBA,THGJFCT1T84BAICB,0100
Emmc info: FAILEmmc-info not supported
Default security: ON
Keystore counter: 2
Security state: 9hVHs82HDVbmXdpJ3fHpaod1NV4/GQSuzrwwyrEcD9s=
Sake root: 19408654C25217EDC7BEF2FED8FB
S1 root:
Root key hash: 502D5117AE7B00D9F89E4EAE078EE07D347F313333898EB57EB909BDA341D53D477719408654C25217EDC7BEF2FED8FB
Slot count: 2
Current slot: b

Device is put now in flash mode.

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 03 01 0F 00  @...............
  00000010  03 00 05 19 01 02 03 04 01 98 10 10 02 00 00 33  ...............3
  00000020  01 40 00 00 20 00 10 00 00 0D 05 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 01 00 00 0C 00 00 00 00 03  #...............
  00000050  B9 48 00 00 00 00 01 02 00 00 00 00 03 B9 48 00  .H............H.
  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 02 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 02 00 00  ................
  000000A0  00 00 00 00 08 00 00 00 00                       .........

LUN0 size = 249896960

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

Processing partition-image-LUN0_249896960_X-FLASH-ALL-2389.sin
 - Extracting from partition-image-LUN0_249896960_X-FLASH-ALL-2389.sin
 - Extracting signature partitionimage_0.cms
 - Uploading signature F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\partition\partitionimage_0.cms
      signature:0000089c
      OKAY.
 - Extracting sparse chunk partitionimage_0.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\partition\partitionimage_0.000
      download:00006000
      OKAY.
      Repartition:0
      OKAY.
 - End of 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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\partition\partitionimage_1.cms
      signature:0000089c
      OKAY.
 - Extracting sparse chunk partitionimage_1.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\partition\partitionimage_2.cms
      signature:0000089c
      OKAY.
 - Extracting sparse chunk partitionimage_2.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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
 - Extracting from appslog_X-FLASH-ALL-2389.sin
 - Extracting signature appslog.cms
 - Uploading signature F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\appslog.cms
      signature:00000893
      OKAY.
 - Extracting sparse chunk appslog.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\appslog.000
      download:00002000
      OKAY.
      erase:appslog
      OKAY.
      flash:appslog
      OKAY.
 - End of 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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\bluetooth.cms
      signature:00000895
      OKAY.
 - Extracting sparse chunk bluetooth.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\bluetooth.000
      download:00067000
      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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\bluetooth.cms
      signature:00000895
      OKAY.
 - Extracting sparse chunk bluetooth.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\bluetooth.000
      download:00067000
      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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\boot.cms
      signature:00000890
      OKAY.
 - Extracting sparse chunk boot.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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
 - Extracting from diag_X-FLASH-ALL-2389.sin
 - Extracting signature diag.cms
 - Uploading signature F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\diag.cms
      signature:00000890
      OKAY.
 - Extracting sparse chunk diag.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\diag.000
      download:00002000
      OKAY.
      erase:diag
      OKAY.
      flash:diag
      OKAY.
 - End of 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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\dsp.cms
      signature:0000088f
      OKAY.
 - Extracting sparse chunk dsp.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\dsp.cms
      signature:0000088f
      OKAY.
 - Extracting sparse chunk dsp.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\dtbo.cms
      signature:00000890
      OKAY.
 - Extracting sparse chunk dtbo.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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-AS72-cn_20200917020436_private_X-FLASH-LTALABEL-2389.sin
 - Extracting from elabel-XQ-AS72-cn_20200917020436_private_X-FLASH-LTALABEL-2389.sin
 - Extracting signature LTALabel.cms
 - Uploading signature F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\LTALabel.cms
      signature:000008b9
      OKAY.
 - Extracting sparse chunk LTALabel.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\LTALabel.000
      download:01000000
      OKAY.
      erase:LTALabel
      OKAY.
      flash:LTALabel
      OKAY.
 - End of elabel-XQ-AS72-cn_20200917020436_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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\mdm1m9kefs1.cms
      signature:00000897
      OKAY.
 - Extracting sparse chunk mdm1m9kefs1.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\mdm1m9kefs2.cms
      signature:00000897
      OKAY.
 - Extracting sparse chunk mdm1m9kefs2.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\mdm1m9kefs3.cms
      signature:00000897
      OKAY.
 - Extracting sparse chunk mdm1m9kefs3.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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
 - Extracting from metadata_X-FLASH-ALL-2389.sin
 - Extracting signature metadata.cms
 - Uploading signature F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\metadata.cms
      signature:00000894
      OKAY.
 - Extracting sparse chunk metadata.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\metadata.000
      download:000003b0
      OKAY.
      erase:metadata
      OKAY.
      flash:metadata
      OKAY.
 - End of 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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\misc.cms
      signature:00000890
      OKAY.
 - Extracting sparse chunk misc.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\modem.cms
      signature:000008d1
      OKAY.
 - Extracting sparse chunk modem.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\modem.000
      download:0142628f
      OKAY.
      Partition: modem have slot: yes
      erase:modem_a
      OKAY.
      flash:modem_a
      OKAY.
 - Extracting sparse chunk modem.001
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\modem.001
      download:03be028b
      OKAY.
      flash:modem
      OKAY.
 - Extracting sparse chunk modem.002
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\modem.002
      download:01834409
      OKAY.
      flash:modem
      OKAY.
 - End of modem_X-FLASH-ALL-2389.sin
 - Extracting from modem_X-FLASH-ALL-2389.sin
 - Extracting signature modem.cms
 - Uploading signature F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\modem.cms
      signature:000008d1
      OKAY.
 - Extracting sparse chunk modem.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\modem.000
      download:0142628f
      OKAY.
      Partition: modem have slot: yes
      erase:modem_b
      OKAY.
      flash:modem_b
      OKAY.
 - Extracting sparse chunk modem.001
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\modem.001
      download:03be028b
      OKAY.
      flash:modem
      OKAY.
 - Extracting sparse chunk modem.002
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\modem.002
      download:01834409
      OKAY.
      flash:modem
      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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\oem.cms
      signature:000008b5
      OKAY.
 - Extracting sparse chunk oem.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\oem.000
      download:00001380
      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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\oem.cms
      signature:00000978
      OKAY.
 - Extracting sparse chunk oem.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\oem.000
      download:056836b5
      OKAY.
      Partition: oem have slot: yes
      erase:oem_b
      OKAY.
      flash:oem_b
      OKAY.
 - Extracting sparse chunk oem.001
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\oem.001
      download:0622f093
      OKAY.
      flash:oem
      OKAY.
 - Extracting sparse chunk oem.002
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\oem.002
      download:05f68aec
      OKAY.
      flash:oem
      OKAY.
 - Extracting sparse chunk oem.003
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\oem.003
      download:0536cc14
      OKAY.
      flash:oem
      OKAY.
 - Extracting sparse chunk oem.004
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\oem.004
      download:05f69a39
      OKAY.
      flash:oem
      OKAY.
 - Extracting sparse chunk oem.005
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\oem.005
      download:061f0309
      OKAY.
      flash:oem
      OKAY.
 - Extracting sparse chunk oem.006
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\oem.006
      download:02f6a274
      OKAY.
      flash:oem
      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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\rdimage.cms
      signature:00000893
      OKAY.
 - Extracting sparse chunk rdimage.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\rdimage.cms
      signature:00000893
      OKAY.
 - Extracting sparse chunk rdimage.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\recovery.cms
      signature:00000894
      OKAY.
 - Extracting sparse chunk recovery.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\spunvm.cms
      signature:00000892
      OKAY.
 - Extracting sparse chunk spunvm.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.cms
      signature:00000c97
      OKAY.
 - Extracting sparse chunk super.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.000
      download:0386cd3f
      OKAY.
      erase:super
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.001
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.001
      download:0447887e
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.002
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.002
      download:052d37ad
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.003
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.003
      download:0630f605
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.004
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.004
      download:051b37ee
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.005
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.005
      download:059dd60f
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.006
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.006
      download:05056b73
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.007
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.007
      download:03009044
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.008
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.008
      download:037ce5e1
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.009
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.009
      download:03ad48f6
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.010
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.010
      download:0324fa3c
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.011
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.011
      download:0340321a
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.012
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.012
      download:0412debd
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.013
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.013
      download:03c3e966
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.014
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.014
      download:04055e9f
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.015
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.015
      download:04907549
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.016
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.016
      download:063b1672
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.017
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.017
      download:0546424b
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.018
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.018
      download:03f4ad4b
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.019
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.019
      download:04abc39c
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.020
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.020
      download:02f7560b
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.021
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.021
      download:03d3b1c4
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.022
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.022
      download:03c2c09a
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.023
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.023
      download:03989610
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.024
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.024
      download:03617f97
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.025
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.025
      download:0372ff09
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.026
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.026
      download:03bd1475
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.027
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.027
      download:03994947
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.028
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.028
      download:03103677
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.029
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.029
      download:03f6c294
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.030
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.030
      download:033fa207
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.031
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.031
      download:04bf273b
      OKAY.
      flash:super
      OKAY.
 - Extracting sparse chunk super.032
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\super.032
      download:014c84c7
      OKAY.
      flash:super
      OKAY.
 - End of super_X-FLASH-ALL-2389.sin

Processing userdata_X-FLASH-CUST-2389.sin
 - Extracting from userdata_X-FLASH-CUST-2389.sin
 - Extracting signature userdata.cms
 - Uploading signature F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\userdata.cms
      signature:000008ba
      OKAY.
 - Extracting sparse chunk userdata.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\userdata.000
      download:000e86b7
      OKAY.
      erase:userdata
      OKAY.
      flash:userdata
      OKAY.
 - End of 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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\vbmeta_system.cms
      signature:00000899
      OKAY.
 - Extracting sparse chunk vbmeta_system.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\flash_session\vbmeta.cms
      signature:00000892
      OKAY.
 - Extracting sparse chunk vbmeta.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\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 master-reset.ta
 - Partition: 2
 - Unit: 9F6 (2550)
 - Unit size: 0x1
      download:00000001
      OKAY.
      Write-TA:2:2550
      OKAY.

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_LA1_0_1_Q_51_X-FLASH-ALL-2389.sin

Processing bootloader_X_BOOT_SM8250_LA1_0_1_Q_51_X-FLASH-ALL-2389.sin
 - setting up inflate...
 - infflating, please wait...
      ...
 - inflate returned: 0
 - gzpipe: ok.
 - gunziped ok.
 - Extracting from bootloader_X_BOOT_SM8250_LA1_0_1_Q_51_X-FLASH-ALL-2389.sin
 - Extracting signature bootloader.cms
 - Uploading signature F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\boot\bootloader.cms
      signature:00000896
      OKAY.
 - Extracting sparse chunk bootloader.000
 - Uploading sparse chunk F:\Downloads\ROM\XQ-AS72_Customized CN_58.0.A.28.60\boot\bootloader.000
      download:03713600
      OKAY.
      Partition: bootloader have slot: yes
      erase:bootloader_b
      OKAY.
      flash:bootloader_b
      OKAY.
 - End of bootloader_X_BOOT_SM8250_LA1_0_1_Q_51_X-FLASH-ALL-2389.sin

Set slot 'b' active.

Device is put now out of flash mode.
Sent command: Sync
Waiting sync to finish...
.sync response[0x4]:

  00000000  4F 4B 41 59                                      OKAY

 done
Sent command: continue.
reboot mode response[0x4]:

  00000000  4F 4B 41 59                                      OKAY


Done.
Closing device.

collect2: error: ld returned 1 exit status

Running make newflasher.x64 on Fedora release 29 gives the error

/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make: *** [makefile:24: newflasher.x64] Error 1

I couldn't find a lot on the Internet about this error and I'm not sure what additional information would help.
report.txt

Protocol error

How to fix this, When I use version 52 it will be like this

Screenshot_20211223-014912_Termux

Written protocol error or writtenIt says protocol error or sometimes connection timeout, but when using version 30 it will work like this

Screenshot_20211223-015435_Termux

I'm running linux on android, and maybe it's a problem with my usb port but why on version 30 it works. And I once ran v52 on the pc it ran smoothly, But my pc is broken so I run linux on android..

local debug

Hi,

I want to modify some code and debug it locally in Windows. Is this feasible? For example, I want to flash the dtbo file alone.

Support for Xperia Ace and Xperia 8

Looks like these two devices no longer have a standalone partition folder nor a partition_delivery.xml, instead the partition-*.sin is placed in the root folder with all other files. I tried creating a partition_delivery.xml following the format of other devices to flash it in but that failed with a connection timeout.

Newflasher stucks on MacOS Ventura with M1

Hi, another M1 issue again...
I've self-built Newflasher with the following makefile modifications.

ifeq ($(OS),Darwin)
CFLAGS+= -I/opt/homebrew/Cellar/libusb/1.0.26/include/libusb-1.0 -L /opt/homebrew/Cellar/libusb/1.0.26/lib
LIBS+=-lusb-1.0
endif

Build process was successful. However, it seems that it gets stuck while running. More specifically, it stuck after the dump trim area selection, no matter which option I give.

Here is a complete log:

> ./newflasher
--------------------------------------------------------
            newflasher v55 by Munjeni @ 2017/2020
--------------------------------------------------------

Determining available free space:

  Available space to caller    = 17602452 MB
  Total space on current drive = 194008576 MB
  Free space on drive          = 17602452 MB

Device properties:
        bus number: 0
         port path: 1 (from root hub)
             speed: 480 Mbit/s (USB HighSpeed)

Reading device descriptor:
            length: 18
      device class: 0
               S/N: 0
           VID:PID: 0xFCE:0xB00B
         bcdDevice: 0x100
   iMan:iProd:iSer: 1:2:0
          nb confs: 1

Reading configuration descriptors:
             nb interfaces: 1
              interface[0]: id = 0
interface[0].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 0xFF 0x42 0x3
       endpoint[0].address: 0x81
           max packet size: 0x200
          polling interval: 0x0
       endpoint[1].address: 0x01
           max packet size: 0x200
          polling interval: 0x1

Set configuration: succed.

Claiming interface 0: succed.

Reading string descriptors:
   String (0x01): "Google"
   String (0x02): "Android"


Do you want to keep userdata? Type 'y' and press ENTER to confirm, or type 'n' to erase userdata.
y

Reboot mode at the end of flashing:
  type 'a' for reboot to android, type 'f' for reboot to fastboot, type 's' for reboot to same mode, type 'p' for poweroff, and press ENTER.
s

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that! But it is recommend to have dump in case hard brick!
y

pre-compiled arm builds does not flash on Raspberry Pi 4

Raspberry Pi 400 actually, running CentOS 7
tadump can be created successfully on the same machine, and there is data in the dumps.

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that! But it is recommend to have dump in case hard brick!
y
Dumping trimarea partition 1.
Created ouput folder tadump.
./tadump/tadump_1.ta created.
Dumping trimarea partition 2.
Dumping trim area to tadump folder.
./tadump/tadump_2.ta created.
Sent command: continue.

Done.
Closing device.

however, when trying to flash, newflasher gives the following error after a long freeze.

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that! But it is recommend to have dump in case hard brick!
n
 - (ep_out size=17)ERROR: n = -1, errno = 110 (Connection timed out)
 - Error writing command getvar:slot-count, ignore this error!
 - (ep_out size=14)ERROR: n = -1, errno = 110 (Connection timed out)
 - Error writing command getvar:Battery!
 - (ep_out size=4)ERROR: n = -1, errno = 110 (Connection timed out)
 - Error writing command Sync!
Closing device.

Allow flashing global firmwares on Docomo model Xperias

For Docomo model phones, newflasher refuses to flash global firmwares on them, even though they're the same hardware. It always ends up erroring out with "Error, didn't got signature OKAY reply! Got reply: FAILFailed to verify cms". It would be nice to be able to get a cheap Docomo Xperia and flash normal firmware onto it, even if it requires the paid bootloader unlock.

--------------------------------------------------------
            newflasher.exe v57 by Munjeni @ 2017/2023
--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

  Available space to caller    = 510632 MB
  Total space on current drive = 1907726 MB
  Free space on drive          = 510632 MB

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip.
This creates GordonGate driver installer in the same dir with newflasher.exe!
n
Device path: \\?\usb#vid_0fce&pid_b00b#9&18a9b1f9&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: SOMC Flash Device
Device Instance Id: USB\VID_0FCE&PID_B00B\9&18A9B1F9&0&3


Do you want to keep userdata? Type 'y' and press ENTER to confirm, or type 'n' to erase userdata.
n

Reboot mode at the end of flashing:
  type 'a' for reboot to android, type 'f' for reboot to fastboot, type 's' for reboot to same mode, type 'p' for poweroff, and press ENTER.
a

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that! But it is recommend to have dump in case hard brick!
n
Product: SO-05K
Version: 0.4
Bootloader version: 1310-7079_X_Boot_SDM845_LA2.0_P_118
Baseband version: 1311-9109_52.0.B.9.316
Serialno: BH903TUZD1
Secure: yes
Loader version: XFL-SDM845-O-25
Phone ID: 0000:35365209382136
Device ID: 812BDB8F
Platform ID: 2008B0E1
Max download size: 104857600
Sector size: 4096
Rooting status: NOT_ROOTABLE
Ufs info: TOSHIBA,THGAF8G9T43BAIRB,0300
Emmc info: FAILEmmc-info not supported
Default security: ON
Keystore counter: 2
Security state: dS3QaYTgEB9EEOi83MaafFx6k+wygTuc1UW4KpXTsSo=
Sake root: B7DF
S1 root: S1_Root_e090
Root key hash: C8D92A2DBA1482588EFF712963329500AC7155CEA8494FDD4B7B180F2F871801
Slot count: 2
Current slot: a
Battery level: 42

Device is put now in flash mode.

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 03 01 0F 00  @...............
  00000010  02 10 02 18 01 02 03 04 01 98 10 10 02 00 1D 03  ................
  00000020  01 40 00 00 20 00 10 00 00 0D 05 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 01 00 00 0C 00 00 00 00 00  #...............
  00000050  EE 58 00 00 00 00 01 02 00 00 00 00 00 EE 58 00  .X............X.
  00000060  00 00 00 23 02 01 01 01 01 00 00 04 00 0C 00 00  ...#............
  00000070  00 00 00 00 04 00 00 00 00 01 02 00 00 00 00 00  ................
  00000080  00 04 00 00 00 00 23 02 02 01 02 01 00 00 04 00  ......#.........
  00000090  0C 00 00 00 00 00 00 04 00 00 00 00 01 02 00 00  ................
  000000A0  00 00 00 00 04 00 00 00 00                       .........

LUN0 size = 62480384

Processing partition-image-LUN0_X-FLASH-ALL-B6B5.sin
 - Extracting from partition-image-LUN0_X-FLASH-ALL-B6B5.sin
 - Extracting signature partitionimage_0.cms
 - Uploading signature F:\Docs\Desktop\H8314_Customized US_52.1.A.3.137-R7C\partition\partitionimage_0.cms
      signature:0000053c
      Error, didn't got signature OKAY reply! Got reply: FAILFailed to verify cms

=========== FIRMWARES HISTORY LOG =============
NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA1.0_O_57, cdf_version:1315-7886_R7A, fs_version:GENERIC_51.1.B.0.460, sw_version:1311-9109_51.1.B.0.460
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA1.0_O_59, cdf_version:1315-7886_R9A, fs_version:GENERIC_51.1.B.9.8, sw_version:1311-9109_51.1.B.9.8
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA1.0_O_61, cdf_version:1315-7886_R9A, fs_version:GENERIC_51.1.B.9.29, sw_version:1311-9109_51.1.B.9.29
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA2.0_P_118, cdf_version:1315-7886_R8B, fs_version:GENERIC_52.0.B.8.12, sw_version:1311-9109_52.0.B.8.12
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA2.0_P_118, cdf_version:1315-7886_R9B, fs_version:GENERIC_52.0.B.9.49, sw_version:1311-9109_52.0.B.9.49
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA2.0_P_118, cdf_version:1315-7886_R10B, fs_version:GENERIC_52.0.B.9.103, sw_version:1311-9109_52.0.B.9.103
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA2.0_P_118, cdf_version:1315-7886_R11B, fs_version:GENERIC_52.0.B.9.147, sw_version:1311-9109_52.0.B.9.147
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA2.0_P_118, cdf_version:1315-7886_R11B, fs_version:GENERIC_52.0.B.9.212, sw_version:1311-9109_52.0.B.9.212
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA2.0_P_118, cdf_version:1315-7886_R11B, fs_version:GENERIC_52.0.B.9.263, sw_version:1311-9109_52.0.B.9.263
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA2.0_P_118, cdf_version:1315-7886_R11B, fs_version:GENERIC_52.0.B.9.294, sw_version:1311-9109_52.0.B.9.294
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA2.0_P_118, cdf_version:1315-7886_R11B, fs_version:GENERIC_52.0.B.9.316, sw_version:1311-9109_52.0.B.9.316
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA2.0.1_Q_206, cdf_version:1315-7886_R7C, fs_version:GENERIC_52.1.B.0.188, sw_version:1311-9109_52.1.B.0.188
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA2.0.1_Q_206, cdf_version:1315-7886_R9C, fs_version:GENERIC_52.1.B.0.266, sw_version:1311-9109_52.1.B.0.266
NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1310-7079_X_Boot_SDM845_LA2.0_P_118, cdf_version:1315-7886_R11B, fs_version:GENERIC_52.0.B.9.316, sw_version:1311-9109_52.0.B.9.316

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

Set slot 'a' active.

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

Done.
Closing device.
Press any key to continue . . .

error on linux mint 18.2

bash-5.0# /home/admz/Downloads/xperia_xz1/newflasher.x64
--------------------------------------------------------
            newflasher.x64 v19 by Munjeni @ 2017/2019           
--------------------------------------------------------

Determining available free space:

  Available space to caller    = 22225 MB
  Total space on current drive = 444237 MB
  Free space on drive          = 44859 MB
found device with vid:0x0fce pid:0xb00b.

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that!
n
 - (ep_out size=24)ERROR: n = -1, errno = 110 (Connection timed out)
 - Error writing command getvar:max-download-size!

End. You can disconnect your device when you close newflasher.x64

Can't flash a second hand xperia 10 iii

I just bought a second hand xperia 10 iii, I guess it's SO-52B with firmware XQ-BT52. It can't get latest OS update so I want to flash it to SO-52B firmware. Now I have downloaded firmware from Xperifirm, and newflasher meets this error

Processing partition-image-LUN0_124936192_X-FLASH-ALL-F007.sin
 - Extracting from partition-image-LUN0_124936192_X-FLASH-ALL-F007.sin
 - Extracting signature partitionimage_0.cms
 - Uploading signature C:\Users\me\Downloads\SO-52B\SO-52B_NTT DoCoMo JP_62.1.B.0.504\partition\partitionimage_0.cms
      signature:0000089c
      device from 2021 and up?
      download:0000089c
      OKAY.
      signature
      Error, signature OKAY reply, got reply: FAILFAILFailed to verify cms!

the whole terminal output is

--------------------------------------------------------
            newflasher.exe v52 by Munjeni @ 2017/2020
--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

  Available space to caller    = 84543 MB
  Total space on current drive = 384708 MB
  Free space on drive          = 84543 MB

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip.
This creates GordonGate driver installer in the same dir with newflasher.exe!
n
Device path: \\?\usb#vid_0fce&pid_b00b#5&26471407&0&7#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: SOMC Flash Device
Device Instance Id: USB\VID_0FCE&PID_B00B\5&26471407&0&7


Do you want to keep userdata? Type 'y' and press ENTER to confirm, or type 'n' to erase userdata.
n

Reboot mode at the end of flashing:
  typa 'a' for reboot to android, type 'f' for reboot to fastboot, type 's' for reboot to same mode, type 'p' for poweroff, and press ENTER.
a

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that! But it is recommend to have dump in case hard brick!
n
Product: XQ-BT52
Version: 0.4
Bootloader version: 1322-1665_X_Boot_SM6350_LA2.0_R_49
Baseband version: 62.0.A.3.109
Serialno: HQ60B33009
Secure: yes
Loader version: 1322-1665_X_Boot_SM6350_LA2.0_R_49
Phone ID: 0000:35060312003039,0000:35060312003040
Device ID: FC2B7590
Platform ID: 0013F0E1
Max download size: 805306368
Sector size: 4096
Rooting status: ROOTABLE
Ufs info: SKhynix,H9HQ15AECMADAR,A902
Emmc info: FAILEmmc-info not supported
Default security: ON
Keystore counter: 3
Security state: 6SwNttTgWIDo9GMaPP5anvPAahffQRIhGmFHMOKHLGU=
Sake root: 4A28F176A1DF191CF57828DA95BB
S1 root:
Root key hash: 71F0185D71A926B61852C62AE24E220ACF68F56DE9A180EF52035A74496CAE9EC48A4A28F176A1DF191CF57828DA95BB
Slot count: 2
Current slot: a
Battery level: 4188

Device is put now in flash mode.

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  02 10 05 21 01 02 03 04 01 AD 10 10 02 00 00 31  ...!...........1
  00000020  03 20 44 04 20 00 00 00 00 00 05 00 00 00 00 00  . D. ...........
  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 02 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 02 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 02 00 00  ................
  000000A0  00 00 00 00 08 00 00 00 00                       .........

LUN0 size = 124936192

Processing partition-image-LUN0_124936192_X-FLASH-ALL-F007.sin
 - Extracting from partition-image-LUN0_124936192_X-FLASH-ALL-F007.sin
 - Extracting signature partitionimage_0.cms
 - Uploading signature C:\Users\me\Downloads\SO-52B\SO-52B_NTT DoCoMo JP_62.1.B.0.504\partition\partitionimage_0.cms
      signature:0000089c
      device from 2021 and up?
      download:0000089c
      OKAY.
      signature
      Error, signature OKAY reply, got reply: FAILFAILFailed to verify cms!

=========== FIRMWARES HISTORY LOG =============
NEW_VERSION: erased_user_data:true, variant:userdebug, s1boot_version:1322-1665_X_Boot_SM6350_LA2.0_R_34, cdf_version:Unknown: May 31 2021/11:05:00, fs_version:Unknown: May 31 2021/11:05:00, sw_version:Unknown: May 31 2021/11:05:00
NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1322-1665_X_Boot_SM6350_LA2.0_R_49, cdf_version:Unknown: Jul 29 2021/14:04:58, fs_version:Unknown: Jul 29 2021/14:04:58, sw_version:62.0.A.3.109

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

Set slot 'a' active.

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

Done.
Closing device.
请按任意键继续. . .

What's the error here? 😵 Thanks

libusb problems on M1 mac

dumping trim area or flashing with pre-compiled build gives the following error
bulk transfer (in): LIBUSB_ERROR_OVERFLOW

self-building gives error, modded makefiles CFLAGS+= -I/opt/homebrew/Cellar/libusb/1.0.26/include/libusb-1.0 according to #45

ld: library not found for -lusb-1.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [newflasher] Error 1

Flashing custom ROMs (or TWRP)

Thanks a lot for this project.
Any idea if this project can be extended to flash custom ROMs?
If not, can it flash something like TWRP? Normally using fastboot doesn't work for me.

Add support for command line options

Hi there, I'm trying to run Newflasher in a script. However, this tool only works interactively. Is it possible to add the functionality to control this tool with command line options?

Bootloop problem with Xperia 5ii

Hi, this is not newflasher isue, Mark 2 devices faces rollback protection, more info about it read this https://forum.xda-developers.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-84077083 . Further questions please ask in forum.

Originally posted by @munjeni in #39 (comment)

Sorry for disturbing, but that issue is closed and I am not sure whether my reply could be seen in previous issue.
It seems that it isn’t a rollback problem because I have use the newer version firmware. Since my original version is 58.0.A.28.17 and the version I have flashed is 58.0.A.28.60.

I have tried flashing older version to generate a rollback problem, and found that the fault appearance is quite different.
If there is a rollback problem, the device will shows 'Your device is corrupt' instead of bootloops

My english is not very good. My apologize for not clearly describing the problem in the previous issue.

Please add support Xperia 1 II XQ-AT52

Please add support Xperia 1 II XQ-AT52(for Hong Kong)

ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:
ファンクションが間違っています。

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

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

End. You can disconnect your device when you close newflasher.exe

Question/Suggestion for persist partition flashing prompt

Hi there, first of all, thanks for the efforts made in creating this tool.
I'm a new user, and this is also my first time flashing a newer model Xperia, Xperia XZ1.
I did a flashing on my unit, and after a lengthy, very long flashing process, it asked whether I wanted to flash persist partition.
So, I don't know about it and I copied the url, read everything in the thread, and decided not to flash persist.
However when I switch back to the CMD, it came up in my mind that it was written something like "Press Y to skip flashing persist.sin", so I pressed Y.
Immediately I noticed that it started to flash persist.sin. I immediately reach out for the usb port but I hesitated because I don't know if I interrupt the process, will my device get a hard brick. I just bought this device.
Therefore, I decided to let the flashing continue. And very sad, extremely sad, I confirmed that the attestation key is completely gone.

I thank you for implementing the warning, not blaming you because I'm extremely exhausted at that time so I was extremely careless. Just I would like to provide suggestions so maybe other users can avoid carelessness like me.

  1. Maybe make the skip option as the first option in the sentences, because it reads that it is recommended to skip but the not to skip option comes first, then only followed by the skip option.
  2. Or maybe, I actually prefer this more, is that ask this before flashing process starts (along with the other prompts like the backup ta and driver stuff). With this, maybe can also add a prompt to confirm flashing so we can actually still cancel if we press the wrong key before start flashing the device.
  3. Since this is quite crucial, maybe make it to type something longer instead of just a single letter, like for example, 'n' to skip persist but 'yes' to flash persist
  4. Make the warning a bit scary, like upper case texts, or some scary disclaimer, or something like FLASH AT YOUR OWN RISK! I AM NOT RESPONSIBLE FOR YOUR ATTESTATION KEY LOST!
  5. Also, just asking, if we pressed Y, and it started to flash, at which flash stage it is still safe to disconnect the device to avoid persist.sin to be flashed?

I would like to express that I'm not blaming the dev! I really thankful the warning is given and actually get to understand it before answering the prompt. It's just my carelessness. So I would like to provide suggestion in order to help avoid this. I actually read through your threads and get to know the amount of effort put into this newflasher and the xflasher. Thanks for the contribution!

Thanks and have a nice day!

Can't compile into an exe using mingw

Hey there,
I am using Windows and mingw, however I cannot for the life of me get newflasher to compile. I keep getting issues with make. Does this need to be compiled on a Linux machine? Or am I missing something?

If possible, it would be nice if there were prebuilt binaries for newflasher.

Xperia 5 II (XQ-AS52) bootloops after flash

When flashing the latest firmware with newflasher v36 on an Xperia 5 II the phone loops on the Sony logo and doesn't even get to the bootanimation. Using a different cable or usb port apparently fixed this for one user but not for me. I tried every port und three different cables but same result.

Allow custom PID and VID

I have no usb device with vid:XXXX pid:XXXXX
is possible to add custom vid,pid args like
./newflasher
because i find out every device has different pid,vid. like mine


    USB 3.1 Bus:

      Host Controller Driver: AppleT8103USBXHCI

        XQ-BT52:

          Product ID: 0x320d
          Vendor ID: 0x0fce  (Sony Ericsson Mobile Communications AB)
          Version: 4.19
          Serial Number: HQ615841A8
          Speed: Up to 480 Mb/s
          Manufacturer: Sony
          Location ID: 0x01100000 / 1
          Current Available (mA): 500
          Current Required (mA): 0
          Extra Operating Current (mA): 0

    USB 3.1 Bus:

but in line 2725,2726 of newflasher.c
it use PID:0xb000b, VID: 0x0fce
so i hope newflasher could add a feature that can allow user use custom PID,VID.

( I dont have any C Experience, i tried to read the code and these are what i found)

Automatic poweroff or reboot after flashing

I'd like to improve the final step after flashing, and to continue what has apparently been prepared, but disabled, in the source. Namely, to support:

  • Poweroff after flashing
  • Reboot into bootloader after flashing (This is what I'm mostly interested in!)
  • Reboot into OS after flashing

@munjeni Would you mind to quickly share your knowledge about this? For example:

  • Do you have any idea why the current poweroff code, if enabled, doesn't have any effect on the device? (At least the device doesn't complain about the command itself.)
  • Are you aware of any reboot commands? I tried variants like reboot, reboot:bootloader, etc., but always get an error message via USB that the command doesn't exist.
  • Slightly related: Regarding bootloader / fastboot, are you aware of an OEM command the switches into flashmode? (See also my question on XDA)

Professionalize newflasher and prepare for Debian

For Sony Xperia XA2 devices, newflasher plays an indispensable role in installing LineageOS, because the stock firmware of XA2 has a critical bug: When it is booted in SYSTEM_B, several sub systems like wifi and bluetooth don't work, meaning that after installation, the first OTA update of LineageOS (switching between SYSTEM_A and SYSTEM_B) makes the device unusable. Currently, the only known solutions are to either always install 2 updates in a row (which becomes annoying quickly over time), or to reflash parts of the firmware via newflasher. So if we want LineageOS to be installable long-term on XA2, we need to make newflasher long-term available.

This is why I would like to professionalize newflasher to reach a level of quality that it is acceptable by the Debian project. I plan to volunteer for the role as Debian maintainer for this package, but wouldn't be unhappy if somebody else wants to do that job. ;-) I already contacted the Debian AndroidTools team and they agreed to review and upload a Debian package for newflasher as soon as it meets their standards. They also performed a first quick review on this repository and provided lots of valuable hints about what should be improved. I'll try to fix each of those hints in the following issues and pull requests.

@munjeni Since you wrote in #3 that you are "not active here" anymore, may I propose that you create a new GitHub organization newflasher and transfer this repository over there? That way, you could add some trusted people as admins and establish a maintenance team, where each member could continue this project even if all others gets stuck in daily-life obligations.

A/B device flash current slot problem

Sony official image's Super has not slot' B' image.
So, when flash device current slot 'A' mode, Newflasher is flash to 'B' broken super image,
Device is boot loop

Error, no DATA reply

I always get "Error, no DATA reply". I tried time and again. The weird thing is: I already used this tool successfully two times. On this PC (Manjaro Linux). I even tried the same folder with the same flasher version (v57) again. For the life of me, I can't get it to work :-( I'm at a loss here. How can I debug this further? What could possibly be the reason for this. Manjaro is a rolling release Linux. Perhaps a new kernel, some permissions that got changed inadvertently?

image

Xperia 1 IV XQ-CT72 TW Not flashing properly

I have been trying to flash the latest version (61.2.A.2.144 obtained using XperiFirm), however it instead soft bricks(bootloop and then phone is corrupt) the phone, which can only be recovered using Xperia Companion. Included is the logs from the flashing process. The device is a dual sim model, with one sim card in slot 1.
newflasher.log

Bootloop after flash Xperia 1 II (PDX203)

As the title reads. Bootloop continues before the "xperia" logo appears. Reflashing a custom rom to get out of the bootloop is possible but then the device has no imei number and therefore unable to read sim card for calls/network data.

Xperia 1 III (XQ-BC72) flash failed

D:\mobiletools\Root\SONY\XQ-BC72_61.0.A.23.20_Customized_TW>newflasher

        newflasher v55 by Munjeni @ 2017/2020

Determining available free space by GetDiskFreeSpaceEx:

Available space to caller = 1192879 MB
Total space on current drive = 11444223 MB
Free space on drive = 1192879 MB

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip.
This creates GordonGate driver installer in the same dir with newflasher!
n
Device path: \?\usb#vid_0fce&pid_b00b#5&15c311e1&0&10#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: SOMC Flash Device
Device Instance Id: USB\VID_0FCE&PID_B00B\5&15C311E1&0&10

update.xml not exist in current folder!

Reboot mode at the end of flashing:
type 'a' for reboot to android, type 'f' for reboot to fastboot, type 's' for reboot to same mode, type 'p' for poweroff, and press ENTER.
a

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.
Do in mind this doesn't dump drm key since sake authentifiction is need for that! But it is recommend to have dump in case hard brick!
n
Product: XQ-BC72
Version: 0.4
Bootloader version: 1322-1669_X_Boot_SM8350_LA2.0.1_T_205
Baseband version: 61.2.A.0.382
Serialno: QV7800XA8G
Secure: yes
Loader version: 1322-1669_X_Boot_SM8350_LA2.0.1_T_205
Phone ID: 0000:35292034044036,0000:35292034044037
Device ID: BB8788E0
Platform ID: 301350E1
Max download size: 805306368
Sector size: 4096
Rooting status: ROOTABLE
Ufs info: SKhynix,HN8T15BZGKX016,A002
Emmc info: FAILEmmc-info not supported
Default security: ON
Keystore counter: 2
Security state: 3ZSdgbZm7KCDQGLaJXvBJAFt57+Ggguoee3iMp9Gj+s=
Sake root: 032F03E14777E1B8A88520664B7B
S1 root:
Root key hash: DE899A8AE73A3BB3062F1597B3316A930095EEC7CE8BD9641DE7850E034211E10B8D032F03E14777E1B8A88520664B7B
Slot count: 2
Current slot: a
Battery level: 15

Device is put now in flash mode.

Repartitioning...
partition_delivery.xml not exist in partition folder or no partition folder.

Processing partition-image-LUN0_124936192_X-FLASH-ALL-4BA8.sin

  • Extracting from partition-image-LUN0_124936192_X-FLASH-ALL-4BA8.sin
  • Extracting signature partitionimage_0.cms
  • Uploading signature D:\mobiletools\Root\SONY\XQ-BC72_61.0.A.23.20_Customized_TW\partition\partitionimage_0.cms
    signature:0000089c
    device from 2021 and up?
    download:0000089c
    OKAY.
    signature
    OKAY.
  • Extracting sparse chunk partitionimage_0.000
  • Uploading sparse chunk D:\mobiletools\Root\SONY\XQ-BC72_61.0.A.23.20_Customized_TW\partition\partitionimage_0.000
    download:00006000
    OKAY.
    Repartition:0
    OKAY.
  • End of partition-image-LUN0_124936192_X-FLASH-ALL-4BA8.sin

Processing partition-image-LUN0_249896960_X-FLASH-ALL-4BA8.sin

  • Extracting from partition-image-LUN0_249896960_X-FLASH-ALL-4BA8.sin
  • Extracting signature partitionimage_0.cms
  • Uploading signature D:\mobiletools\Root\SONY\XQ-BC72_61.0.A.23.20_Customized_TW\partition\partitionimage_0.cms
    download:0000089c
    OKAY.
    signature
    OKAY.
  • Extracting sparse chunk partitionimage_0.000
  • Uploading sparse chunk D:\mobiletools\Root\SONY\XQ-BC72_61.0.A.23.20_Customized_TW\partition\partitionimage_0.000
    download:00006000
    OKAY.
    Repartition:0
    OKAY.
  • End of partition-image-LUN0_249896960_X-FLASH-ALL-4BA8.sin

Processing partition-image-LUN0_499818496_X-FLASH-ALL-4BA8.sin

  • Extracting from partition-image-LUN0_499818496_X-FLASH-ALL-4BA8.sin
  • Extracting signature partitionimage_0.cms
  • Uploading signature D:\mobiletools\Root\SONY\XQ-BC72_61.0.A.23.20_Customized_TW\partition\partitionimage_0.cms
    download:0000089c
    OKAY.
    signature
    OKAY.
  • Extracting sparse chunk partitionimage_0.000
  • Uploading sparse chunk D:\mobiletools\Root\SONY\XQ-BC72_61.0.A.23.20_Customized_TW\partition\partitionimage_0.000
    download:00006000
    OKAY.
    Repartition:0
    Error, didn't got Repartition OKAY reply! Got reply: FAILFAILRepartition

=========== 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
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA1.0_R_27, cdf_version:Unknown: Aug 12 2021/15:49:45, fs_version:Unknown: Aug 12 2021/15:49:45, sw_version:61.0.A.11.92
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA1.0_R_31, cdf_version:Unknown: Sep 23 2021/21:59:32, fs_version:Unknown: Sep 23 2021/21:59:32, sw_version:61.0.A.14.14
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA1.0_R_31, cdf_version:Unknown: Sep 28 2021/19:26:19, fs_version:Unknown: Sep 28 2021/19:26:19, sw_version:61.0.A.15.35
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA1.0_R_31, cdf_version:Unknown: Nov 12 2021/09:59:35, fs_version:Unknown: Nov 12 2021/09:59:35, sw_version:61.0.A.23.20
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA2.0_S_104, cdf_version:Unknown: Jan 28 2022/20:12:28, fs_version:Unknown: Jan 28 2022/20:12:28, sw_version:61.1.A.2.211
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA2.0_S_104, cdf_version:Unknown: Mar 14 2022/21:18:13, fs_version:Unknown: Mar 14 2022/21:18:13, sw_version:61.1.A.6.2
NEW_VERSION: erased_user_data:false, 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
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA2.0_S_104, cdf_version:Unknown: Apr 28 2022/23:45:38, fs_version:Unknown: Apr 28 2022/23:45:38, sw_version:61.1.A.9.73
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA2.0_S_105, cdf_version:Unknown: May 20 2022/23:49:43, fs_version:Unknown: May 20 2022/23:49:43, sw_version:61.1.A.9.128
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA2.0_S_105, cdf_version:Unknown: Jul 13 2022/22:21:38, fs_version:Unknown: Jul 13 2022/22:21:38, sw_version:61.1.A.9.219
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA2.0_S_105, cdf_version:Unknown: Aug 4 2022/23:46:56, fs_version:Unknown: Aug 4 2022/23:46:56, sw_version:61.1.A.11.36
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA2.0_S_105, cdf_version:Unknown: Sep 30 2022/17:46:06, fs_version:Unknown: Sep 30 2022/17:46:06, sw_version:61.1.A.11.88
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1322-1669_X_Boot_SM8350_LA2.0.1_T_205, cdf_version:Unknown, fs_version:Unknown, sw_version:61.2.A.0.382

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

Set slot 'a' active.

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

Done.
Closing device.

newflasher fails when there is a space in the user folder name

Kept getting "C:\Users\Isaac" no such file or directory errors. My home folder is "C:\Users\Isaac Stone".

Just an FYI. I was able to get it to work by creating a new user account on my machine (with no space)

Cool tool and thanks for making it 👍

Support to switch between slots

Hi,

@rmrfl5 has softbricked his Xperia 5 II due to flashing his device with newflasher while the currently active slot is 'b'. Due to super.sin containing a valid image set for the slot a, but an empty or otherwise non-bootable image set on slot b, the phone is now not able to boot. The phone's bootloader is locked, and trying to switch slots with fastboot results in an error.

For this reason, I made a small snippet in newflasher's source that switches the currently active slot to the opposite slot than the one that's selected. patch-0001.zip

Obviously, I am not going to submit that to upstream. But I cannot test it either due to unclear instructions on how to replicate the build environment needed to make the windows crossbuild.

Would you please help me build newflasher for windows with the patch I submitted so that we can make @rmrfl5's device boot again?
Thank you.

Not sure if this is a bug or user error

I am trying to flash an Xperia 1 802SO with Newflasher v35 and it seems to be giving an error:

`newflasher.exe v35 by Munjeni @ 2017/2020
Determining available free space by GetDiskFreeSpaceEx:

Available space to caller = 322159 MB Total space on current drive = 487769 MB Free space on drive = 322159 MB

Reboot mode at the end of flashing: typa 'a' for reboot to android, type 'f' for reboot to fastboot, type 's' for reboot to same mode, type 'p' for poweroff, and press ENTER. p

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip. This creates GordonGate driver installer in the same dir with newflasher.exe! n Device path: ?\usb#vid_0fce&pid_b00b#5&1a1fdad1&0&13#{a5dcbf10-6530-11d2-901f-00c04fb951ed} Class Description: SOMC Flash Device Device Instance Id: USB\VID_0FCE&PID_B00B\5&1A1FDAD1&0&13

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip. Do in mind this doesn't dump drm key since sake authentifiction is need for that! But it is recommend to have dump in case hard brick! n Product: 802SO Version: 0.4 Bootloader version: 1315-2591_X_Boot_SM8150_LA2.0_Q_115 Baseband version: 1318-2148_55.1.B.0.300 Serialno: QV72012T2W Secure: yes Loader version: XFL-SM8150-P-16 Phone ID: 0000:35512710079495 Device ID: 1F689A53 Platform ID: 300A50E1 Max download size: 104857600 Sector size: 4096 Rooting status: NOT_ROOTABLE Ufs info: SKhynix,H28U72301CMR,0003 Emmc info: FAILEmmc-info not supported Default security: ON Keystore counter: 2 Security state: oDKCbTEsCrVnLDpC7EYggwb18sCWeUIjwGnfOdBhWtY= Sake root: 2D4C8D13E459AAC3381AE995680E S1 root: Root key hash: 6C8D8435187C0ED7160856812F66743E5632EEF38B1AC8D695A91F00D35E792864812D4C8D13E459AAC3381AE995680E Slot count: 2 Current slot: a

Device is put now in flash mode.

No .sin files in partition dir... You must extract partition.zip into 'partition' folder if you want flash partition image! On 2018 and UP models you must move partition sin files to 'partition' folder if you need flash partition images!

Processing .sin files... Created ouput folder flash_session

Processing oem_other_X-FLASH-CUST-A2CD.sin - Extracting from oem_other_X-FLASH-CUST-A2CD.sin - Extracting signature oem.cms - Uploading signature C:\Users\Brand\Downloads\Newflasher\flash_session\oem.cms signature:000008b5 OKAY. - Extracting sparse chunk oem.000 - Uploading sparse chunk C:\Users\Brand\Downloads\Newflasher\flash_session\oem.000 download:0000095b OKAY. Partition: oem have slot: yes erase:oem_b OKAY. flash:oem_b OKAY. - End of oem_other_X-FLASH-CUST-A2CD.sin

Processing oem_X-FLASH-CUST-A2CD.sin - Extracting from oem_X-FLASH-CUST-A2CD.sin - Extracting signature oem.cms - Uploading signature C:\Users\Brand\Downloads\Newflasher\flash_session\oem.cms signature:000008b5 OKAY. - Extracting sparse chunk oem.000 - Uploading sparse chunk C:\Users\Brand\Downloads\Newflasher\flash_session\oem.000 download:0002d246 OKAY. Partition: oem have slot: yes erase:oem_a OKAY. flash:oem_a OKAY. - End of oem_X-FLASH-CUST-A2CD.sin

Processing .ta files... No .ta files in current dir.

Processing boot delivery...

boot_delivery.xml not exist in boot folder or no boot folder.

Set slot 'a' active.

Device is put now out of flash mode. Sent command: Sync Waiting sync to finish... .............................. error, no sync response! Closing device. Press any key to continue . . .````

The device reboots normally if I reboot manually as Newflasher does not send the power off or reboot to android commands as I am guessing this is related to the service menu. It seems like it flashes fine although if I check the service menu or Phone information in the testing menu the files do not seem to flash and VoLTE is not enabled. Not sure if Newflasher supports the 802SO but it is in flash mode since the LED is dimly lit green when holding volume down then connecting power.

Flash the firmware to both slots

Dear @munjeni please make it possible to flash both slots in one flashing run.

It is important for the custom ROMs based on sony open devices project to have the newest firmware files on both slots.

The flashtool implemented it now, but I prefer newflasher. :)

Xperia 1 III(XQ-BC72) baseband lost

I has flash 61.1.A.2.211(Cust SEA, Android 12) into system ver 61.0.A.23.20(Cust CN, Android 11) when active slot is b
when it end and phone reboot, it got into boot loop
after 3 times reboot, I got "device isn't trusted and no boot" alarm
when I force power off and connect it in flash mode, newflasher show baseband version is the old one
so I try use tool send "set_active:a" cmd to device, then newflasher show current slot is a, then I flash it again
after this time, it can boot into system normally and show system is Android 12
but when I plug my phone card in, there shows no signal
then I open service menu, found IMEI and Softwear Verision become UNKNOWN
Now it seem that cellular function totally break down
Did baseband won't flash in flash process or missed file?

add a github release with binaries

Hi,
thanks so much for newflasher! I was able to get VoLTE on my phone because of it (the default firmware has it disabled...)

I spent a lot of time getting newflasher to build (I succeeded in the end). Could you maybe create a github release and upload the binaries too? I wasn't able to download the binaries from XDA because it always gave me 410 (probably some problem on their side).

Thank you

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

Hi there,
I succsessfully downgraded using newflasher couple of days ago, then I accedentaly updated firmware (big fingers), so I tried downgrading again, but now I get
...
Determining available free space:

Available space to caller = 173219 MB
Total space on current drive = 300325 MB
Free space on drive = 173235 MB
cannot open /dev/bus/usb/004/001 for writing
cannot open /dev/bus/usb/003/004 for writing
cannot open /dev/bus/usb/003/003 for writing
cannot open /dev/bus/usb/003/002 for writing
cannot open /dev/bus/usb/003/001 for writing
cannot open /dev/bus/usb/002/002 for writing
cannot open /dev/bus/usb/002/001 for writing
cannot open /dev/bus/usb/001/002 for writing
cannot open /dev/bus/usb/001/001 for writing

No usb device with vid:0x0fce pid:0xb00b !
...
$ lsusb
Bus 003 Device 009: ID 0fce:0dde Sony Ericsson Mobile Communications AB Xperia Mini Pro Bootloader

Adb is working and I have android-tools installed and nothing has change on my system in between these days, no system updates.
I have browsed XDA forum and there is no information other then install drivers..
but I just flashed resently on the same system, any Ideas?
(Linux x64 + android-tools-9.0.0.r30)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.