[TOOL] Newflasher (xperia command line flasher)

Search This thread

lgoxvxe

Member
Dec 15, 2020
12
0
LianYunGang
IMG_20210401_064851.jpg

I used lg g7 OTG to flash Xperia 1, and showed an error. Did I do something wrong?
Screenshot_20210401-065136.png
 
Last edited:

KK102

New member
May 22, 2017
3
0
Hello, I was using newflasher to flash the firmware, but when it finishes, the phone just keep boot again and again, please reply this if
someone know what to do.

the final message from the CMD

Code:
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...
.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.
 

munjeni

Senior Member
Jun 2, 2011
9,284
21,910
View attachment 5265691
I used lg g7 OTG to flash Xperia 1, and showed an error. Did I do something wrong?
View attachment 5265697
A segmentation fault with error 139 basically means you are trying to read something you don't have access to. That have many meaning which you will need to figure out (see dmesg for idea), for example maybe selinux denials, insuficient privilegies... etc
 

munjeni

Senior Member
Jun 2, 2011
9,284
21,910
Hello, I was using newflasher to flash the firmware, but when it finishes, the phone just keep boot again and again, please reply this if
someone know what to do.

the final message from the CMD

Code:
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...
.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.
No log and no real reply. Rollback protection -> https://forum.xda-developers.com/t/...a-command-line-flasher.3619426/#post-72610228
 
  • Like
Reactions: oF2pks

munjeni

Senior Member
Jun 2, 2011
9,284
21,910
Has anyone tried fixing the OTA issue on Android 11 for Xperia 5 II? Would like to know some details on how it should be done. Thanks in advance!
Its allready discused in this thread and figured out that it is not newflasher isue but firmware usue! Isue is identified inside vendor partition inside customisation xml file vendor forgot to change customisation string! Try search for that post.
 

munjeni

Senior Member
Jun 2, 2011
9,284
21,910
Oh, your program doesn't ignore simlock.ta anymore (v13 did), and no mention in changelog...
I just flashed my phone and now it doesn't see simcards :(
What can I do?
It perfectly ignore all units from simlock! Even 2500 downloads and nobody had problem with simlock. In diferencie from version 13 to right now there is nothing changed in function flash_ta. Post your log.
 

AndreyAleks

Member
Sep 14, 2019
40
7
It perfectly ignore all units from simlock! Even 2500 downloads and nobody had problem with simlock. In diferencie from version 13 to right now there is nothing changed in function flash_ta. Post your log.
I have Sony Xperia XA2 Ultra H4233 phone and Lineage OS on it. I wanted to update my firmware to the latest available using that guide (maintainer wrote it).
I downloaded firmware files using XperiFirm. I select "Hong Kong" regional edition (see attach 1), but previously there was different one (maybe it's important?). Once it downloaded I remove these files (just like mentioned in guide):
- boot_X-FLASH-ALL-18AE_0x00.hash
- boot_X-FLASH-ALL-18AE.sin
- persist_X-FLASH-ALL-18AE_0x00.hash
- persist_X-FLASH-ALL-18AE.sin
- system_other_X-FLASH-ALL-18AE_0x00.hash
- system_other_X-FLASH-ALL-18AE.sin
- system_other_X-FLASH-ALL-9B8D_0x00.hash
- system_X-FLASH-ALL-18AE_0x00.hash
- system_X-FLASH-ALL-18AE.sin
- system_X-FLASH-ALL-9B8D_0x00.hash
- userdata_X-FLASH-CUST-18AE.sin
- vendor_X-FLASH-ALL-18AE_0x00.hash
- vendor_X-FLASH-ALL-18AE.sin
- vendor_X-FLASH-ALL-9B8D_0x00.hash

There's no simlock.ta in the list by the way, so I didn't delete it.
I turned off my phone and boot it in 'Flash Mode' (green light).
I copied newflasher.exe to that directory (H4233_Customized HK_50.2.A.3.77-R3B-orig) and start it:
Code:
--------------------------------------------------------
            newflasher.exe v42 by Munjeni @ 2017/2020
--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

  Available space to caller    = 140718 MB
  Total space on current drive = 238467 MB
  Free space on drive          = 140718 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#6&2c26709d&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: SOMC Flash Device
Device Instance Id: USB\VID_0FCE&PID_B00B\6&2C26709D&0&1


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: H4233
Version: 0.4
Bootloader version: 1310-0301_X_Boot_SDM630_LA3.0_P_38
Baseband version: 1312-7408_50.2.A.3.55
Serialno: CQ3001CPXQ
Secure: no
Loader version: XFL-SDM630-204
Phone ID: 0000:35285309171183,0000:35285309171184
Device ID: 1B2864FE
Platform ID: 000AC0E1
Max download size: 104857600
Sector size: 512
Rooting status: ROOTED
Ufs info: FAILUfs-info not supported
Emmc info: SAMSUNG,0x0100,0x0
Default security: ON
Keystore counter: 2
Security state: TvF2l+0Or40aQudMdC8LLMt1auy6bg2DtGVLnpGqPyk=
Sake root: A672
S1 root: S1_Root_70f0
Root key hash: 5F01088791F1DDAD20DB0DF59453943E4D275929A01705C83502AD5403F9010F
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 appslog_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from appslog_X-FLASH-ALL-18AE.sin
- Extracting signature appslog.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\appslog.cms
      signature:00000533
      OKAY.
- Extracting sparse chunk appslog.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\appslog.000
      download:0000e094
      OKAY.
      erase:appslog
      OKAY.
      flash:appslog
      OKAY.
- End of appslog_X-FLASH-ALL-18AE.sin

Processing bluetooth_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from bluetooth_X-FLASH-ALL-18AE.sin
- Extracting signature bluetooth.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\bluetooth.cms
      signature:00000535
      OKAY.
- Extracting sparse chunk bluetooth.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\bluetooth.000
      download:0008b000
      OKAY.
      Partition: bluetooth have slot: yes
      erase:bluetooth_b
      OKAY.
      flash:bluetooth_b
      OKAY.
- End of bluetooth_X-FLASH-ALL-18AE.sin
- Extracting from bluetooth_X-FLASH-ALL-18AE.sin
- Extracting signature bluetooth.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\bluetooth.cms
      signature:00000535
      OKAY.
- Extracting sparse chunk bluetooth.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\bluetooth.000
      download:0008b000
      OKAY.
      Partition: bluetooth have slot: yes
      erase:bluetooth_a
      OKAY.
      flash:bluetooth_a
      OKAY.
- End of bluetooth_X-FLASH-ALL-18AE.sin

Processing diag_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from diag_X-FLASH-ALL-18AE.sin
- Extracting signature diag.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\diag.cms
      signature:00000530
      OKAY.
- Extracting sparse chunk diag.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\diag.000
      download:00019094
      OKAY.
      erase:diag
      OKAY.
      flash:diag
      OKAY.
- End of diag_X-FLASH-ALL-18AE.sin

Processing dsp_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from dsp_X-FLASH-ALL-18AE.sin
- Extracting signature dsp.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\dsp.cms
      signature:0000052f
      OKAY.
- Extracting sparse chunk dsp.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\dsp.000
      download:01000000
      OKAY.
      Partition: dsp have slot: yes
      erase:dsp_b
      OKAY.
      flash:dsp_b
      OKAY.
- End of dsp_X-FLASH-ALL-18AE.sin
- Extracting from dsp_X-FLASH-ALL-18AE.sin
- Extracting signature dsp.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\dsp.cms
      signature:0000052f
      OKAY.
- Extracting sparse chunk dsp.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\dsp.000
      download:01000000
      OKAY.
      Partition: dsp have slot: yes
      erase:dsp_a
      OKAY.
      flash:dsp_a
      OKAY.
- End of dsp_X-FLASH-ALL-18AE.sin

Processing elabel-H4233-row-row_201801190205771.1_50.1.A.10.40_X-FLASH-LTALABEL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from elabel-H4233-row-row_201801190205771.1_50.1.A.10.40_X-FLASH-LTALABEL-18AE.sin
- Extracting signature LTALabel.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\LTALabel.cms
      signature:0000055b
      OKAY.
- Extracting sparse chunk LTALabel.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\LTALabel.000
      download:01000000
      OKAY.
      erase:LTALabel
      OKAY.
      flash:LTALabel
      OKAY.
- End of elabel-H4233-row-row_201801190205771.1_50.1.A.10.40_X-FLASH-LTALABEL-18AE.sin

Processing fsg_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from fsg_X-FLASH-ALL-18AE.sin
- Extracting signature fsg.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\fsg.cms
      signature:0000052f
      OKAY.
- Extracting sparse chunk fsg.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\fsg.000
      download:00072328
      OKAY.
      erase:fsg
      OKAY.
      flash:fsg
      OKAY.
- End of fsg_X-FLASH-ALL-18AE.sin

Processing fsmetadata_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from fsmetadata_X-FLASH-ALL-18AE.sin
- Extracting signature fsmetadata.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\fsmetadata.cms
      signature:00000536
      OKAY.
- Extracting sparse chunk fsmetadata.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\fsmetadata.000
      download:00000001
      OKAY.
      erase:fsmetadata
      OKAY.
      flash:fsmetadata
      OKAY.
- End of fsmetadata_X-FLASH-ALL-18AE.sin

Processing misc_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from misc_X-FLASH-ALL-18AE.sin
- Extracting signature misc.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\misc.cms
      signature:00000530
      OKAY.
- Extracting sparse chunk misc.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\misc.000
      download:00001000
      OKAY.
      erase:misc
      OKAY.
      flash:misc
      OKAY.
- End of misc_X-FLASH-ALL-18AE.sin

Processing modemst1_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from modemst1_X-FLASH-ALL-18AE.sin
- Extracting signature modemst1.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\modemst1.cms
      signature:00000534
      OKAY.
- Extracting sparse chunk modemst1.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\modemst1.000
      download:00000400
      OKAY.
      erase:modemst1
      OKAY.
      flash:modemst1
      OKAY.
- End of modemst1_X-FLASH-ALL-18AE.sin

Processing modemst2_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from modemst2_X-FLASH-ALL-18AE.sin
- Extracting signature modemst2.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\modemst2.cms
      signature:00000534
      OKAY.
- Extracting sparse chunk modemst2.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\modemst2.000
      download:00000400
      OKAY.
      erase:modemst2
      OKAY.
      flash:modemst2
      OKAY.
- End of modemst2_X-FLASH-ALL-18AE.sin

Processing modem_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...
      ..
- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from modem_X-FLASH-ALL-18AE.sin
- Extracting signature modem.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\modem.cms
      signature:00000531
      OKAY.
- Extracting sparse chunk modem.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\modem.000
      download:06051000
      OKAY.
      Partition: modem have slot: yes
      erase:modem_b
      OKAY.
      flash:modem_b
      OKAY.
- End of modem_X-FLASH-ALL-18AE.sin
- Extracting from modem_X-FLASH-ALL-18AE.sin
- Extracting signature modem.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\modem.cms
      signature:00000531
      OKAY.
- Extracting sparse chunk modem.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\modem.000
      download:06051000
      OKAY.
      Partition: modem have slot: yes
      erase:modem_a
      OKAY.
      flash:modem_a
      OKAY.
- End of modem_X-FLASH-ALL-18AE.sin

Processing oem_other_X-FLASH-CUST-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from oem_other_X-FLASH-CUST-18AE.sin
- Extracting signature oem.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\oem.cms
      signature:00000555
      OKAY.
- Extracting sparse chunk oem.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\oem.000
      download:00050094
      OKAY.
      Partition: oem have slot: yes
      erase:oem_b
      OKAY.
      flash:oem_b
      OKAY.
- End of oem_other_X-FLASH-CUST-18AE.sin

Processing oem_X-FLASH-CUST-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from oem_X-FLASH-CUST-18AE.sin
- Extracting signature oem.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\oem.cms
      signature:00000555
      OKAY.
- Extracting sparse chunk oem.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\oem.000
      download:002380ac
      OKAY.
      Partition: oem have slot: yes
      erase:oem_a
      OKAY.
      flash:oem_a
      OKAY.
- End of oem_X-FLASH-CUST-18AE.sin
Skipping partition-image_X-FLASH-ALL-18AE.sin

Processing Qnovo_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...
      .
- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from Qnovo_X-FLASH-ALL-18AE.sin
- Extracting signature Qnovo.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\Qnovo.cms
      signature:00000531
      OKAY.
- Extracting sparse chunk Qnovo.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\Qnovo.000
      download:0000f094
      OKAY.
      erase:Qnovo
      OKAY.
      flash:Qnovo
      OKAY.
- End of Qnovo_X-FLASH-ALL-18AE.sin

Processing rdimage_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from rdimage_X-FLASH-ALL-18AE.sin
- Extracting signature rdimage.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\rdimage.cms
      signature:00000533
      OKAY.
- Extracting sparse chunk rdimage.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\rdimage.000
      download:00000001
      OKAY.
      Partition: rdimage have slot: yes
      erase:rdimage_b
      OKAY.
      flash:rdimage_b
      OKAY.
- End of rdimage_X-FLASH-ALL-18AE.sin
- Extracting from rdimage_X-FLASH-ALL-18AE.sin
- Extracting signature rdimage.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\rdimage.cms
      signature:00000533
      OKAY.
- Extracting sparse chunk rdimage.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\rdimage.000
      download:00000001
      OKAY.
      Partition: rdimage have slot: yes
      erase:rdimage_a
      OKAY.
      flash:rdimage_a
      OKAY.
- End of rdimage_X-FLASH-ALL-18AE.sin

Processing ssd_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...

- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from ssd_X-FLASH-ALL-18AE.sin
- Extracting signature ssd.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\ssd.cms
      signature:0000052f
      OKAY.
- Extracting sparse chunk ssd.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\flash_session\ssd.000
      download:00000001
      OKAY.
      erase:ssd
      OKAY.
      flash:ssd
      OKAY.
- End of ssd_X-FLASH-ALL-18AE.sin

Processing .ta files...

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

Processing cust-reset.ta
- Partition: 2
- Unit: 8A4 (2212)
- Unit size: 0xe
      download:0000000e
      OKAY.
      Write-TA:2:2212
      OKAY.

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

Processing reset-wipe-reason.ta
- Partition: 2
- Unit: 9F9 (2553)
- Found specific unit which don't contain data.
      download:00000000
      OKAY.
      Write-TA:2:2553
      OKAY.

Processing simlock.ta
- Partition: 2
- Unit: 7DA (2010)
- Unit size: 0x13c
- Skipping unit 7DA

Processing boot delivery...

Found boot_delivery.xml in boot folder.
- Boot delivery version: 1310-0301
- Verifying if boot delivery match with device...
      searching for: PLATFORM_ID="000AC0E1";PLF_ROOT_HASH="5F01088791F1DDAD20DB0DF59453943E4D275929A01705C83502AD5403F9010F"
      Found bootdelivery match: COMMERCIAL_000AC0E1
      TA file: Nile_XBootConfig_MiscTA.ta

Processing ./boot/Nile_XBootConfig_MiscTA.ta
- Partition: 2
- Unit: 84F (2127)
- Unit size: 0x74
      download:00000074
      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_SDM630_LA3_0_P_38_X-FLASH-ALL-18AE.sin

Processing bootloader_X_BOOT_SDM630_LA3_0_P_38_X-FLASH-ALL-18AE.sin
- setting up inflate...
- infflating, please wait...
      ..........
- inflate returned: 0
- gzpipe: ok.
- gunziped ok.
- Extracting from bootloader_X_BOOT_SDM630_LA3_0_P_38_X-FLASH-ALL-18AE.sin
- Extracting signature bootloader.cms
- Uploading signature C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\boot\bootloader.cms
      signature:00000538
      OKAY.
- Extracting sparse chunk bootloader.000
- Uploading sparse chunk C:\0\01Distribs\win_progs\android\H4233_Customized HK_50.2.A.3.77-R3B-orig\boot\bootloader.000
      download:01480800
      OKAY.
      Partition: bootloader have slot: yes
      erase:bootloader_a
      OKAY.
      flash:bootloader_a
      OKAY.
- End of bootloader_X_BOOT_SDM630_LA3_0_P_38_X-FLASH-ALL-18AE.sin

Set slot 'a' 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: powerdown.

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

I see "Processing simlock.ta", it's not flashed?
Next, after closing newflasher I disconnect the USB cable, and then start the phone (according to guide).
My phone starts, it asked me PIN code for my SimCard (does it mean that the problem is not in 'simlock.ta'?), then - graphical passkey. When boot process is finished, I can't call - it returns me "Turn off Airplane mode to make a call." (but it's off). The indicator of cellular network signal strength is at 0 with little cross (see attach 2).
WiFi doesn't work normally - it doesn't see network on 13 channel (2472 MHz), other is visible, bluetooth is OK.

Well, accordind to that guide I have to flash FW to second slot too. But I didn't do anything else.
One thing I've tried: reboot to 'fastboot mode' and switch to another slot to see will it return back.
Code:
Microsoft Windows [Version 10.0.17763.1757]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot getvar current-slot
current-slot: a
finished. total time: -0.000s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot set_active b
Setting current slot to 'b'...
OKAY [  0.016s]
finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>
But there's the same on slot b.

I used Newflasher 2 years ago without problems (same guide for firmware update). But what was wrong in my actions now?
Sorry for big post.
 

Attachments

  • 01.jpg
    01.jpg
    132.1 KB · Views: 19
  • 02.jpg
    02.jpg
    281.7 KB · Views: 19

munjeni

Senior Member
Jun 2, 2011
9,284
21,910
Yes simlock.ta is completelly ignored! See your log:

Code:
Processing simlock.ta
- Partition: 2
- Unit: 7DA (2010)
- Unit size: 0x13c
- Skipping unit 7DA

After you switch to diferent slot you must always reboot to make slots active othervise you are on the same slot until you reboot. Further things about your sim status please ask in thread of those rom author or inside your phone forum...
 

AndreyAleks

Member
Sep 14, 2019
40
7
Yes simlock.ta is completelly ignored! See your log:

Code:
Processing simlock.ta
- Partition: 2
- Unit: 7DA (2010)
- Unit size: 0x13c
- Skipping unit 7DA

After you switch to diferent slot you must always reboot to make slots active othervise you are on the same slot until you reboot. Further things about your sim status please ask in thread of those rom author or inside your phone forum...
Thanks for confirmation! I've tried to flash all firmware files (except simlock and persist) and now it's ok. All working just as earlier.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Hi you can switch boot slots like this
    Bash:
    ./fastboot --set-active=a
    and like this :)

    newflasher set_active:a
    2
    Slot change is for experienced users you must agree, so for novice users with less knownlegde is not recommend to change slot, agree? If I do step to always change slot to A than everybody who allready set slot B and who want slot B e.g. while using lineage for example will complain about why slot A is set, agree? I definitelly will not do that. You should set slot you need before you use newflasher.
    KK, thansk for your answers.

    ------EDIT-----
    For these users, who already on slot B after stock upgrading, after they flashing with newflasher will always be bootloop because of the bad super image design. Hope this feedback could help them.
    1
    hi all, i need help
    My phone original is Xperia XZ2 Premium SOV38 AU, i flashed succesful to UK firmware, before flash UK firmware, i deleted all file.TA and persist.sin.

    But now,i want to back original AU firmware. So, can i flash all file (inclue TA and PErsist) ?
    And, AU firmware is now Android 9, but my phone now on Android 10 UK firmware. So can i downgrade by Newflasher?
    Flash everything, only exclude persist
    1
    Hi, log is inside main screen of the newflasher!
    Sorted it out on my own, thanks :) Device has successfully booted
    1
    Hi,
    Here I found a 'bug': On Sony's Dynamic partitions devices, the vendor_b and product_b are empty in super image. If the users staty on slot B before using newflasher, they will bootloop when try to boot. Is there anyway to force the slot to A after flashing?
    Hi you can switch boot slots like this
    Bash:
    ./fastboot --set-active=a
  • 295
    Disclaimer:

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


    How to use:

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

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

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

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

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

    Happy flashing!


    Supported platforms:

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


    Changelog:

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

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

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

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

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

    - version v6 (22.10.2017)
    Updated trim area dumper

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

    - version v8 (24.10.2017)
    Fix trim area dumper

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

    - version v11 (07.04.2018)
    Support for 2018 devices

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

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

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

    - version v16 (16.06.2019)
    LUN0 detection optimized.

    - version v17 (24.06.2019)
    LUN0 detection bug fixed.

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

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

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

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

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

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

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

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

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

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

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

    - version v29 (12.07.2020)
    Mac proper libusb deinitialisation

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

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

    - version 32, not yet released

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

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

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

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

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

    - version 38 (10.12.2020)
    Fixed impropper implementation from v37

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

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

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

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

    Credits:

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

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

    Source code:

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

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

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

    Do not use any old newflasher, its soo old and definitelly not a better than latest one! Folow my instructions and put a trust on me, I am developer of the newflasher and nobody know that better than me, if you have a questions just ask here! I have removed my posts because virus tolal found a malware on all my exe files. Later I found what was going on. UPX (any version) contain the same malware, but since my exe was packed with upx all my exe contain the same malware, reason was UPX! Have no idea why virustotal see upx as a malware but I need now to recompile all my exe without using upx just because I no want to risk with it, don't know if that upx is false warining or not but definitelly better idea omiting upx.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone