munjeni / newflasher

Flash tool for new Sony flash tool protocol (Xperia XZ Premium and further)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Xperia Ace and Xperia 8

AkazaRenn opened this issue · comments

commented

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.

Any log? The rest of firmware is flasheable?

commented

Any log? The rest of firmware is flasheable?

Sorry I closed it, I'll try again tonight and see if there's anything I can provide.

commented

@munjeni
For unmodified ftf package J3173_53.0.C.0.220_1320-4559_R7A.ftf

Product: SO-02L
Version: 0.4
Bootloader version: 1310-0301_X_Boot_SDM630_LA3.0_P_101
Baseband version: 1316-7200_53.0.B.2.137
Serialno: ***
Secure: yes
Loader version: XFL-HOUOU-3
Phone ID: ***
Device ID: ***
Platform ID: 000AC0E1
Max download size: 104857600
Sector size: 512
Rooting status: NOT_ROOTABLE
Ufs info: FAILUfs-info not supported
Emmc info: SAMSUNG,0x0100,0x0
Default security: ON
Keystore counter: 2
Security state: ***
Sake root: A672
S1 root: S1_Root_70f0
Root key hash: ***
Slot count: 2
Current slot: b

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 appslog.sin
 - Extracting from appslog.sin
 - Extracting signature appslog.cms
 - Uploading signature E:\Downloads\Compressed\Firmware\J3173_53.0.C.0.220_1320-4559_R7A\flash_session\appslog.cms
      signature:00000533
      Error, didn't got signature OKAY reply! Got reply: FAILFailed to verify cms

Set slot 'b' active.

Device is put now out of flash mode.

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

For modified package aka: moving partition-image.sin into a new folder named partition and creating a partition_delivery.xml in the root dir with contents:

<PARTITION_DELIVERY FORMAT="1">
  <PARTITION_IMAGES>
    <FILE PATH="partition-image.sin"/>
  </PARTITION_IMAGES>
</PARTITION_DELIVERY>

the result is:

Product: SO-02L
Version: 0.4
Bootloader version: 1310-0301_X_Boot_SDM630_LA3.0_P_101
Baseband version: 1316-7200_53.0.B.2.137
Serialno: ***
Secure: yes
Loader version: XFL-HOUOU-3
Phone ID: ***
Device ID: ***
Platform ID: 000AC0E1
Max download size: 104857600
Sector size: 512
Rooting status: NOT_ROOTABLE
Ufs info: FAILUfs-info not supported
Emmc info: SAMSUNG,0x0100,0x0
Default security: ON
Keystore counter: 2
Security state: ***
Sake root: A672
S1 root: S1_Root_70f0
Root key hash: ***
Slot count: 2
Current slot: b

Device is put now in flash mode.

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

Processing partition-image.sin
 - Extracting from partition-image.sin
 - Extracting signature partitionimage_0.cms
 - Uploading signature E:\Downloads\Compressed\Firmware\J3173_53.0.C.0.220_1320-4559_R7A\partition\partitionimage_0.cms
      signature:0000053c
      Error, didn't got signature OKAY reply! Got reply: FAILFailed to verify cms

Set slot 'b' active.

Device is put now out of flash mode.

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

Nothing as I can feel was written into the phone.

commented

Furthermore, by moving partition_delivery.xml into the partition folder:

Product: SO-02L
Version: 0.4
Bootloader version: 1310-0301_X_Boot_SDM630_LA3.0_P_101
Baseband version: 1316-7200_53.0.B.2.137
Serialno: ***
Secure: yes
Loader version: XFL-HOUOU-3
Phone ID: ***
Device ID: ***
Platform ID: 000AC0E1
Max download size: 104857600
Sector size: 512
Rooting status: NOT_ROOTABLE
Ufs info: FAILUfs-info not supported
Emmc info: SAMSUNG,0x0100,0x0
Default security: ON
Keystore counter: 2
Security state: ***
Sake root: A672
S1 root: S1_Root_70f0
Root key hash: ***
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[0x204]:

  00000000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01  ................
  00000010  39 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  9...............
  00000020  00 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000030  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000040  0F 00 00 C8 C8 C8 80 05 05 00 01 00 00 00 00 00  ................
  00000050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000060  00 00 00 00 00 05 00 00 00 00 00 00 00 00 FD 03  ................
  00000070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000080  00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000090  00 00 00 00 00 00 00 00 00 00 00 00 00 8F 0E 00  ................
  000000A0  07 01 01 02 00 00 14 1F 80 00 00 00 00 00 00 00  ................
  000000B0  00 00 00 00 00 00 00 00 01 03 00 00 00 00 00 00  ................
  000000C0  08 00 02 00 57 1F 0A 02 00 00 00 00 00 00 00 00  ....W...........
  000000D0  00 00 00 01 00 C0 47 07 07 11 00 07 07 10 01 01  ......G.........
  000000E0  01 07 20 00 07 11 1B 55 02 00 00 00 00 00 00 00  .. ....U........
  000000F0  00 1E 00 00 00 00 00 3C 0A 00 00 01 00 00 02 00  .......<........
  00000100  00 00 00 00 00 00 00 00 01 20 00 01 01 01 00 00  ......... ......
  00000110  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000120  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000130  00 00 00 0F 01 00 00 00 00 00 00 00 00 00 00 00  ................
  00000140  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000150  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000160  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000170  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000180  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00000190  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  000001A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  000001B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  000001C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  000001D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  000001E0  00 00 00 00 00 00 00 00 00 81 C7 00 00 03 03 07  ................
  000001F0  05 00 02 01 3F 3F 01 01 01 00 00 00 00 00 00 00  ....??..........
  00000200  4F 4B 41 59                                      OKAY

LUN0 size = 0
ERROR: TIMEOUT: failed with error code 997 as follows:
Overlapped I/O operation is in progress.
 - Error reply: null!

Set slot 'b' active.

Device is put now out of flash mode.

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

Same, feel like nothing changed on my phone.

I see no changes in sin format, but I see you have using wrong firmware! Your device is SO-02L but you have using firmware from device J3173 ! Thats why your device bootloader reject cms signature, wrong signature because of wrong model firmware! About partition, do not create xml file, just create partition folder and move partition sin file to that folder.

commented

I see no changes in sin format, but I see you have using wrong firmware! Your device is SO-02L but you have using firmware from device J3173 !!!

But they are the SAME DEVICE. They are both Xperia Ace (Houou) just for different carriers. I think it is supposed to work, just like what people did for old devices that they bought Japanese devices and flashed them with international firmwares.

It might be the same device but definitelly use two diferent firmwares, in our case seems there is no more possibilities for using Japanese firmware on World phone or vice versa, it was a case on old models but for now it use two diferent sign keys. You can try with SO-02L and let me confirm this please!

Edit:
Your device is : Rooting status: NOT_ROOTABLE , it might mean that your device is fully carier locked and fully signed with carier key, it might reject international firmware from SO-02L too! If SO-02L firmware not working try with carier firmware. Let me know please.

commented

@munjeni
Sorry I just noticed that there might be some trick from docomo preventing my phone from being flashed - getvar:max-download-size will only get responded for the initial few moments when the phone enters the flash mode, that is tosay, if I plug it in first and then open newflasher (would take me 10 seconds or something), it will always be stucked on

ERROR: TIMEOUT: failed with error code 997 as follows:
Overlapped I/O operation is in progress.
 - Error reply: null!

no matter what firmware I am using.

Thus, I'm sorry that I cannot do further tests with Xperia Ace, but I do believe it would be possible if you can change the script to "wait for the device to be plugged in and directly start flashing", this problem can be solved.

FYI, I tried writing a fsc for FlashTool by myself and successfully flashed the system sin for SO-02L into my phone, and as you would expect that did not work with the sin of J3173, so you might be right, but I'm not 100% sure.

Ok, i will close this. Check your usb cable, gordon gate drivers...etc, if you find something reopen this

I was trying to flash H8216_Customized UK_52.1.A.3.49-R8C global rom on japanese xz2 SO-03K_NTT DoCoMo JP_52.0.B.9.330-R13B...... I have heard that newflasher can flash firmwares without unlocking bootloader.. but this isnt flashing ..please help.... newflasher says....
Uploading signature C:\Users\user\Documents\H8216_Customized UK_52.1.A.3.49-R8C\partition\partitionimage_0.cms
signature:0000053c
Error, didn't got signature OKAY reply! Got reply: FAILFailed to verify cms

"I just wanna delete those Japanese bloatwares completely by replacing system img"or, a global rom

Every firmware is signed by Sony private key and contain digital signature signed by Sony, when you want to flash firmware e.g. Hxxxxx on Gxxxx device model bootloader will reject flashing proces with message excatly the one you getting. Your firmware must be excatly the same as your device model SO-03K!! Your dvice is not H8216 ! I told you that on (#28 (comment) but seems you didn't figured that out.

If you need to flash H8216 firmware you must not use newflasher, instead unlock your bootloader and do that using an twrp recovery, hope this help. Please use forum for further questions https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/

Please can you tell me how to unlock this so-03k phone bootloader? Without s1 unlock tool... it's very expensive to me ...
Unlock bootloader allowed: no

Unlock bootloader = NO mean that your phone is locked to an mobile carier network? If yes you will probably need to unlock it first by buying an unlock code online, search google. After that probably your bootloader will be unlock allowed = YES. If not go to Sony centre and ask for bootloader unlock. Hope this help.

But it's not network locked.. I'm really confused
Screenshot_20231123-170805~2(1)
Screenshot_20231203-232937

Ok, than I can't help other than to sugest you, go to sony center and ask for bootloader unlock, they have all the tools to do that! Newflasher can't do that.