[TOOL] Newflasher (xperia command line flasher)

Search This thread

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
Damnn so they ain't gonna update it for support ? Guess it's a goodbye flashtool then ?, guessing this works similar other than there's no user interface?

Androxide I think working on it! About diferencie, yes its diferent, one thing my tool doesn't depend on java or etc, its native binary, on windows it need only gordon gate flaah driver, but linux version and android version is totaly native, doesn't need any driver or etc. One thing about android version, you can flash your phone trought another phone :) . I have no skills to make ui but I think tool doesn't need it, things is prety easy figuring out, just moving files out of folder and double clicking on tool to flash, prety easy, right?
 
Last edited:

AJHutchinson

Senior Member
Aug 29, 2012
311
88
Sony Xperia 1 III
Sony Xperia 1 IV
Androxide I think working on it! About diferencie, yes its diferent, one thing my tool doesn't depend on java or etc, its native binary, on windows it need only gordon gate flaah driver, but linux version and android version is totaly native, doesn't need any driver or etc. One thing about android version, you can flash your phone trought another phone :) . I have no skills to make ui but I think tool doesn't need it, things is prety easy figuring out, just moving files out of folder and double clicking on tool to flash, prety easy, right?
Flashing phone through another phone will be pretty impressive ? + nah a UI slows down the operation if anything, looking forward to see where this goes ?
 
Last edited:

tanipat

Senior Member
Nov 22, 2011
353
107
i can help ofcourse for the good sake of great developer like you @munjeni anyhow i do not know well why 2017 user not cooperative with this life saver tools i will read carefully and try to see if i can help here


Sent from my iPhone using Tapatalk
 
  • Like
Reactions: munjeni

AndroPlus

Senior Member
Mar 13, 2013
1,898
4,156
Kyoto
androplus.org
Lenovo P11
Xiaomi Mix Fold 2
New version is out! Peoples, I am forced to test this -> https://xdaforums.com/showpost.php?p=72749556&postcount=246 ! Since nobody care about testing it, I have disabled flashing! Only cache.sin can be flashed, sorry! I must test that first to make tool more safe! Without your log newflasher will continue restricted, only cache.sin can be flashed until somebody test and give me log finally which I reguest! Sorry! Lets make a deal! Give me log and I will give you working version! Peoples with 2017 models seems not much cooperative , so I am forced to do some restriction sorry :(

Here is log... I put cache.sin but it didn't flash?
Code:
--------------------------------------------------------
              newflasher.exe by Munjeni @ 2017
--------------------------------------------------------
Device path: \\?\usb#vid_0fce&pid_b00b#5&289a2f9c&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: ユニバーサル シリアル バス コントローラー
Device Instance Id: USB\VID_0FCE&PID_B00B\5&289A2F9C&0&3

Product: G8142
Version: 0.4-SONY-0.1
Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D
Baseband version: 1306-8501_45.0.A.5.8
Serialno: CB512EFPPB
Secure: no
Loader version: XFL-MSM8998-N-36
Phone ID: 0000:35700808199012,0000:35700808199013
Device ID: 3C4B4C8F
Platform ID: 2005E0E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTED
Ufs info: SAMSUNG,KLUCG4J1ED-B0C1,0200
Emmc info: FAILEmmc-info not supported
Default security: ON
Keystore counter: 1
Security state: BA1894F07A55612C78DAADBA68D953CB4B3D2133
Sake root: D159
S1 root: S1_Root_e69c
Root key hash: C30DEC2471CEA311E6918657367B51068A39583BBF89FD68B379BCD5A709AB1B
PEOPLES, I AM FORCED TO TEST THIS https://xdaforums.com/showpost.php?p=72749556&postcount=246 SINCE NOBODY GAVED ME LOG PER MY REGUEST!
CURRENT VERSION IS TEST VERSION ONLY, FINAL VERSION DEPEND ON HOW FAST I GET YOUR LOG FROM CURRENT VERSION!
PLEASE GIVE ME LOG AND I WILL ENABLE THE REST OF FLASH! WITHOUT LOG FINAL VERSION WILL NEVER HAPPEN AND YOU CAN FLASH ONLY CACHE! SORRY!

Device is put now in flash mode.

Processing .sin files...
Created ouput folder flash_session
No .sin files in current dir.

Device is put now out of flash mode.
Sent command: Sync
ERROR: TIMEOUT: failed with error code 997 as follows:
重複した I/O 処理を実行しています。
 - Error reply: less than 4!
Raw input[0x0]:
 
  • Like
Reactions: munjeni

AndroPlus

Senior Member
Mar 13, 2013
1,898
4,156
Kyoto
androplus.org
Lenovo P11
Xiaomi Mix Fold 2
It will flash cache.sin! But seems you didn't had cache in the same dir with newflasher?

Edit:
Sorry I have forgot to enable cache.sin flash, please redownload new version!


Here is the new log:

Code:
--------------------------------------------------------
              newflasher.exe by Munjeni @ 2017
--------------------------------------------------------
Device path: \\?\usb#vid_0fce&pid_b00b#5&289a2f9c&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: ユニバーサル シリアル バス コントローラー
Device Instance Id: USB\VID_0FCE&PID_B00B\5&289A2F9C&0&3

Product: G8142
Version: 0.4-SONY-0.1
Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D
Baseband version: 1306-8501_45.0.A.5.8
Serialno: CB512EFPPB
Secure: no
Loader version: XFL-MSM8998-N-36
Phone ID: 0000:35700808199012,0000:35700808199013
Device ID: 3C4B4C8F
Platform ID: 2005E0E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTED
Ufs info: SAMSUNG,KLUCG4J1ED-B0C1,0200
Emmc info: FAILEmmc-info not supported
Default security: ON
Keystore counter: 1
Security state: BA1894F07A55612C78DAADBA68D953CB4B3D2133
Sake root: D159
S1 root: S1_Root_e69c
Root key hash: C30DEC2471CEA311E6918657367B51068A39583BBF89FD68B379BCD5A709AB1B
PEOPLES, I AM FORCED TO TEST THIS https://xdaforums.com/showpost.php?p=72749556&postcount=246 SINCE NOBODY GAVED ME LOG PER MY REGUEST!
CURRENT VERSION IS TEST VERSION ONLY, FINAL VERSION DEPEND ON HOW FAST I GET YOUR LOG FROM CURRENT VERSION!
PLEASE GIVE ME LOG AND I WILL ENABLE THE REST OF FLASH! WITHOUT LOG FINAL VERSION WILL NEVER HAPPEN AND YOU CAN FLASH ONLY CACHE! SORRY!

Device is put now in flash mode.

Processing .sin files...
Using existing folder flash_session

Processing cache.sin
 - setting up infflate...
 - infflating, please wait...

 - infflate returned: 0
 - gzpipe: ok.
 - gunziped ok.
 - Extracting from cache.sin
 - Extracting signature flash_session/cache.cms
 - Uploading signature flash_session/cache.cms
      signature:00000533
      OKAY.
 - Extracting sparse chunk flash_session/cache.000
 - Uploading sparse chunk flash_session/cache.000
      download:0080f0c4
      OKAY.
      erase:cache
      OKAY.
      flash:cache
      OKAY.
 - End of cache.sin

Device is put now out of flash mode.
Sent command: Sync
ERROR: TIMEOUT: failed with error code 997 as follows:
重複した I/O 処理を実行しています。
 - Error reply: less than 4!
Raw input[0x0]:
 
  • Like
Reactions: munjeni

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
For the timeout error, I tested on different PC and cable but I still got it.
The error also appears in older version and the latest version at OP.

Can you provide log? It looks like you didn't flashed anything so sync fail because nothing flashed. I have no idea why you get timeout but you have the same device like this one https://xdaforums.com/crossdevice-dev/sony/progress-newflasher-xperia-command-line-t3619426/page22 only diferencie is bootloader version :( But all 3 devices have diferent bootloader version, only your giving timeout! I don't know realy why that happen and I realy can't figure out that since peoples do not provide logs. I need more logs! Did you tried to flash something diferent, e.g. other sin files, or bootbundle or something, maybe command "sync" need after flashing something diferent e.g. bootbundle? I don't know realy since I have z1c, you guys need to figure that! I can easilly update version but without logs I can do nothing!
 
Last edited:
  • Like
Reactions: AndroPlus

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
New version is out, its much much safer than all before! Command "erase" is moved to the position before command "flash", its now excatly the same like this https://xdaforums.com/showpost.php?p=72749556&postcount=246 . One guy tested it and gaved me his log by pm, perfectly working!

Peoples, remember something, I don't have newer xperia to test anything so if you realy need improved and bug free newflasher version test it and GIVE log! It will NOT help me but YOU! So help byself, test and give your log. No log, no improvement, hope you understand. Enjoy!
 
Last edited:

AndroPlus

Senior Member
Mar 13, 2013
1,898
4,156
Kyoto
androplus.org
Lenovo P11
Xiaomi Mix Fold 2
Log? I have no idea why you get timeout but you have the same device like this one https://xdaforums.com/crossdevice-dev/sony/progress-newflasher-xperia-command-line-t3619426/page22 only diferencie is bootloader version :( I don't know realy why that happen and I realy can't figure out that since peoples do not provide logs. I need more logs! Did you tried to flash something diferent, e.g. other sin files, or bootbundle or something, maybe command "sync" need after flashing something diferent e.g. bootbundle? I don't know realy since I have z1c, you guys need to figure that! I can easilly update version but without logs I can do nothing!


Sorry, I skipped the log because only Device path and Device Instance Id were different...

You can ignore this timeout since flashing is successful and it looks like Microsoft is doing something bad.
https://knowledge.autodesk.com/sear...-Overlapped-I-O-operation-is-in-progress.html



The log when I flashed only cache and boot:
Code:
--------------------------------------------------------
              newflasher.exe by Munjeni @ 2017
--------------------------------------------------------
Device path: \\?\usb#vid_0fce&pid_b00b#5&18ac2dfb&0&16#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: ユニバーサル シリアル バス コントローラー
Device Instance Id: USB\VID_0FCE&PID_B00B\5&18AC2DFB&0&16

Product: G8142
Version: 0.4-SONY-0.1
Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D
Baseband version: 1306-8501_45.0.A.5.8
Serialno: CB512EFPPB
Secure: no
Loader version: XFL-MSM8998-N-36
Phone ID: 0000:35700808199012,0000:35700808199013
Device ID: 3C4B4C8F
Platform ID: 2005E0E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTED
Ufs info: SAMSUNG,KLUCG4J1ED-B0C1,0200
Emmc info: FAILEmmc-info not supported
Default security: ON
Keystore counter: 1
Security state: BA1894F07A55612C78DAADBA68D953CB4B3D2133
Sake root: D159
S1 root: S1_Root_e69c
Root key hash: C30DEC2471CEA311E6918657367B51068A39583BBF89FD68B379BCD5A709AB1B

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!

Processing .sin files...
Created ouput folder flash_session

Processing cache.sin
 - setting up infflate...
 - infflating, please wait...

 - infflate returned: 0
 - gzpipe: ok.
 - gunziped ok.
 - Extracting from cache.sin
 - Extracting signature flash_session/cache.cms
 - Uploading signature flash_session/cache.cms
      signature:00000533
      OKAY.
      erase:cache
      OKAY.
 - Extracting sparse chunk flash_session/cache.000
 - Uploading sparse chunk flash_session/cache.000
      download:0080f0c4
      OKAY.
      flash:cache
      OKAY.
 - End of cache.sin

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

Processing boot delivery...

Found boot_delivery.xml in boot folder.
 - Boot delivery version: 1306-5035
 - Verifying if boot delivery match with device...
      searching for:
PLATFORM_ID="0005E0E1";PLF_ROOT_HASH="C30DEC2471CEA311E6918657367B51068A39583BBF89FD68B379BCD5A709AB1B"
      Found bootdelivery match: COMMERCIAL_0005E0E1
      TA file: Maple_XBootConfig_MiscTA.ta

Processing boot/Maple_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_MSM8998_LA1_1_N_59_D_X-FLASH-ALL-42E5.sin

Processing bootloader_X_BOOT_MSM8998_LA1_1_N_59_D_X-FLASH-ALL-42E5.sin
 - setting up infflate...
 - infflating, please wait...
      .....
 - infflate returned: 0
 - gzpipe: ok.
 - gunziped ok.
 - Extracting from bootloader_X_BOOT_MSM8998_LA1_1_N_59_D_X-FLASH-ALL-42E5.sin
 - Extracting signature boot/bootloader.cms
 - Uploading signature boot/bootloader.cms
      signature:00000538
      OKAY.
      erase:bootloader
      OKAY.
 - Extracting sparse chunk boot/bootloader.000
 - Uploading sparse chunk boot/bootloader.000
      download:012da000
      OKAY.
      flash:bootloader
      OKAY.
 - End of bootloader_X_BOOT_MSM8998_LA1_1_N_59_D_X-FLASH-ALL-42E5.sin

Device is put now out of flash mode.
Sent command: Sync
ERROR: TIMEOUT: failed with error code 997 as follows:
重複した I/O 処理を実行しています。
 - Error reply: less than 4!
Raw input[0x0]:


When I flashed cache, boot, bluetooth, modem

Code:
--------------------------------------------------------
              newflasher.exe by Munjeni @ 2017
--------------------------------------------------------
Device path: \\?\usb#vid_0fce&pid_b00b#5&289a2f9c&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: ユニバーサル シリアル バス コントローラー
Device Instance Id: USB\VID_0FCE&PID_B00B\5&289A2F9C&0&3

Product: G8142
Version: 0.4-SONY-0.1
Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D
Baseband version: 1306-8501_45.0.A.5.8
Serialno: CB512EFPPB
Secure: no
Loader version: XFL-MSM8998-N-36
Phone ID: 0000:35700808199012,0000:35700808199013
Device ID: 3C4B4C8F
Platform ID: 2005E0E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTED
Ufs info: SAMSUNG,KLUCG4J1ED-B0C1,0200
Emmc info: FAILEmmc-info not supported
Default security: ON
Keystore counter: 1
Security state: BA1894F07A55612C78DAADBA68D953CB4B3D2133
Sake root: D159
S1 root: S1_Root_e69c
Root key hash: C30DEC2471CEA311E6918657367B51068A39583BBF89FD68B379BCD5A709AB1B

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!

Processing .sin files...
Created ouput folder flash_session

Processing bluetooth_X-FLASH-ALL-42E5.sin
 - setting up infflate...
 - infflating, please wait...

 - infflate returned: 0
 - gzpipe: ok.
 - gunziped ok.
 - Extracting from bluetooth_X-FLASH-ALL-42E5.sin
 - Extracting signature flash_session/bluetooth.cms
 - Uploading signature flash_session/bluetooth.cms
      signature:00000537
      OKAY.
      erase:bluetooth
      OKAY.
 - Extracting sparse chunk flash_session/bluetooth.000
 - Uploading sparse chunk flash_session/bluetooth.000
      download:0005b000
      OKAY.
      flash:bluetooth
      OKAY.
 - End of bluetooth_X-FLASH-ALL-42E5.sin

Processing cache_X-FLASH-ALL-42E5.sin
 - setting up infflate...
 - infflating, please wait...

 - infflate returned: 0
 - gzpipe: ok.
 - gunziped ok.
 - Extracting from cache_X-FLASH-ALL-42E5.sin
 - Extracting signature flash_session/cache.cms
 - Uploading signature flash_session/cache.cms
      signature:00000533
      OKAY.
      erase:cache
      OKAY.
 - Extracting sparse chunk flash_session/cache.000
 - Uploading sparse chunk flash_session/cache.000
      download:0080f0c4
      OKAY.
      flash:cache
      OKAY.
 - End of cache_X-FLASH-ALL-42E5.sin

Processing modem_X-FLASH-ALL-42E5.sin
 - setting up infflate...
 - infflating, please wait...
      ..
 - infflate returned: 0
 - gzpipe: ok.
 - gunziped ok.
 - Extracting from modem_X-FLASH-ALL-42E5.sin
 - Extracting signature flash_session/modem.cms
 - Uploading signature flash_session/modem.cms
      signature:00000533
      OKAY.
      erase:modem
      OKAY.
 - Extracting sparse chunk flash_session/modem.000
 - Uploading sparse chunk flash_session/modem.000
      download:057cd000
      OKAY.
      flash:modem
      OKAY.
 - End of modem_X-FLASH-ALL-42E5.sin

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

Processing boot delivery...

Found boot_delivery.xml in boot folder.
 - Boot delivery version: 1306-5035
 - Verifying if boot delivery match with device...
      searching for: PLATFORM_ID="0005E0E1";PLF_ROOT_HASH="C30DEC2471CEA311E6918657367B51068A39583BBF89FD68B379BCD5A709AB1B"
      Found bootdelivery match: COMMERCIAL_0005E0E1
      TA file: Maple_XBootConfig_MiscTA.ta

Processing boot/Maple_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_MSM8998_LA1_1_N_59_D_X-FLASH-ALL-42E5.sin

Processing bootloader_X_BOOT_MSM8998_LA1_1_N_59_D_X-FLASH-ALL-42E5.sin
 - setting up infflate...
 - infflating, please wait...
      .....
 - infflate returned: 0
 - gzpipe: ok.
 - gunziped ok.
 - Extracting from bootloader_X_BOOT_MSM8998_LA1_1_N_59_D_X-FLASH-ALL-42E5.sin
 - Extracting signature boot/bootloader.cms
 - Uploading signature boot/bootloader.cms
      signature:00000538
      OKAY.
      erase:bootloader
      OKAY.
 - Extracting sparse chunk boot/bootloader.000
 - Uploading sparse chunk boot/bootloader.000
      download:012da000
      OKAY.
      flash:bootloader
      OKAY.
 - End of bootloader_X_BOOT_MSM8998_LA1_1_N_59_D_X-FLASH-ALL-42E5.sin

Device is put now out of flash mode.
Sent command: Sync
ERROR: TIMEOUT: failed with error code 997 as follows:
重複した I/O 処理を実行しています。
 - Error reply: less than 4!
Raw input[0x0]:
 
  • Like
Reactions: munjeni

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
Yes thats strange realy since only you have by now timeout on command sync. I have google translated error code which you got:

Duplicate I / O processing is being executed.

Is that right translate? Also checked for duplicate i/o in my source code in command sync, definitelly nothing duplicated. Strange realy! Can you try latest version and try run newflasher as administrator?

Edit:
Or maybe your bootloader Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D have sync bug so need to be updated? For that you need flash bootbundle. But in case you flashing latest fw its recommended to flash whole fw
 
Last edited:
  • Like
Reactions: AndroPlus

AndroPlus

Senior Member
Mar 13, 2013
1,898
4,156
Kyoto
androplus.org
Lenovo P11
Xiaomi Mix Fold 2
Yes thats strange realy since only you have by now timeout on command sync. I have google translated error code which you got:

Duplicate I / O processing is being executed.

Is that right translate? Also checked for duplicate i/o in my source code in command sync, definitelly nothing duplicated. Strange realy! Can you try latest version and try run newflasher as administrator?

Edit:
Or maybe your bootloader Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D have sync bug so need to be updated? For that you need flash bootbundle. But in case you flashing latest fw its recommended to flash whole fw

OK I downloaded English lang pack and run latest version of newflasher as administrator.
English error code was "Overlapped I/O operation is in progress.".

Actually I'm using 45.0.A.5.8 (upgraded with whole fw flashing), which is the latest fw for G8142.
https://xpericheck.com/device/G8142

Code:
--------------------------------------------------------
              newflasher.exe by Munjeni @ 2017
--------------------------------------------------------
Device path: \\?\usb#vid_0fce&pid_b00b#5&289a2f9c&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: Universal Serial Bus controllers
Device Instance Id: USB\VID_0FCE&PID_B00B\5&289A2F9C&0&3

Product: G8142
Version: 0.4-SONY-0.1
Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D
Baseband version: 1306-8501_45.0.A.5.8
Serialno: CB512EFPPB
Secure: no
Loader version: XFL-MSM8998-N-36
Phone ID: 0000:35700808199012,0000:35700808199013
Device ID: 3C4B4C8F
Platform ID: 2005E0E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTED
Ufs info: SAMSUNG,KLUCG4J1ED-B0C1,0200
Emmc info: FAILEmmc-info not supported
Default security: ON
Keystore counter: 1
Security state: BA1894F07A55612C78DAADBA68D953CB4B3D2133
Sake root: D159
S1 root: S1_Root_e69c
Root key hash: C30DEC2471CEA311E6918657367B51068A39583BBF89FD68B379BCD5A709AB1B

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!

Processing .sin files...
Using existing folder flash_session

Processing cache_X-FLASH-ALL-42E5.sin
 - setting up infflate...
 - infflating, please wait...

 - infflate returned: 0
 - gzpipe: ok.
 - gunziped ok.
 - Extracting from cache_X-FLASH-ALL-42E5.sin
 - Extracting signature flash_session/cache.cms
 - Uploading signature flash_session/cache.cms
      signature:00000533
      OKAY.
 - Extracting sparse chunk flash_session/cache.000
 - Uploading sparse chunk flash_session/cache.000
      download:0080f0c4
      OKAY.
      erase:cache
      OKAY.
      flash:cache
      OKAY.
 - End of cache_X-FLASH-ALL-42E5.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.

Device is put now out of flash mode.
Sent command: Sync
ERROR: TIMEOUT: failed with error code 997 as follows:
Overlapped I/O operation is in progress.
 - Error reply: less than 4!
Raw input[0x0]:
 
  • Like
Reactions: munjeni

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
Ok thanks! Waiting more logs from peoples, let see that later, unable to figure by now :( . If you somedays figure that out please tell us!
 

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
One guy reported the same sync bug but have the same bootloader version 1306-5035_X_Boot_MSM8998_LA1.1_N_59-D , seems that version of the bootloader have that bug! Anybody confirm?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 348
    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://xdaforums.com/crossdevice-dev/sony/progress-newflasher-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://xdaforums.com/showpost.php?p=83056693&postcount=1212 which might confuse somebody

    - version 32, not yet released

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

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

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

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

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

    - version 38 (10.12.2020)
    Fixed impropper implementation from v37

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

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

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

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

    - version 43 (12.06.2021)
    Support for Mark 3 devices

    - version 44 (19.06.2021)
    Fully Mark III device implementation

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

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

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

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

    - version 49 (31.07.2021)
    Support for XQ-BT41

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

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

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

    - version 53, 54, 55 (20.08.2022)
    Fix trimarea dumper crash on big endian machines, update building makefiles

    - version v56, v57 (07.07.2023)
    Add suport for Xperia 1 generation 5, changed bootdelivery xml atributes

    Credits:

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

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

    Source code:

    https://github.com/munjeni/newflasher
    21
    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