yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] foresto:
Hi, [MENTION=4120742]munjeni[/MENTION].

I'm trying to use newflasher to install your openbootloader preset1.ta file on my amami device. It seems to fail because the program is looking for product id b00b, while amami (in flash mode) has product id adde. Will it work on my device if I replace b00b with adde in the source code and recompile? Or, has the protocol changed such that doing this will brick my device?
[Sony Cross-Device General] arslanon.e:
XZ2 Service Tests=>Security

Hi,

Will you kindly take a look at the screenshots and comment if something seems odd?

One thing, when I try to boot from a powered off state, once or twice the phone just vibrates and LED flashes green once and nothing happens. Then on 2nd or 3rd try Sony logo appears and phone boots.

I'm trying to figure out if I've lost my DRM keys.
[Sony Cross-Device General] kw0n2k:
Guys, i have a XZP.

Just wanna confirm that if i download a firmware from xpirifirm, Do you need to delete the .ta files before flashing as to not delete your DRM keys?
[Sony Cross-Device General] MartinX3:
You can't delete the keys with a locked bootloader.
[Sony Cross-Device General] kw0n2k:
Thanks for the clarification!

How do I confirm that my boot locker is locked? I did the *#*#7378423#*#*.

In the Service info - Configuration states my bootlocker unlocked allowed: Yes.

I know my DRM keys are still here after converting it from a G8142 to G8141 due to the fact i flashed it without the .TA files initially.
[Sony Cross-Device General] arslanon.e:
Hi [MENTION=4120742]munjeni[/MENTION],

I just finished the whole thread, started yesterday sometime. Words are not enough, but I thank you really! I now have a little idea what amount of effort and hard work goes into something like this. Much Respect!

And I thank from heart [MENTION=4351315]tanipat[/MENTION], [MENTION=4027728]thrash001[/MENTION], [MENTION=3272573]beenoliu[/MENTION], [MENTION=7236686]porphyry[/MENTION], [MENTION=5571921]Snow_Basinger[/MENTION], [MENTION=4575700]frantisheq[/MENTION] and [MENTION=3989065]serajr[/MENTION] as well and those who helped behind the scenes. Respect!
[Sony Cross-Device General] MartinX3:
To unlock the bootloader you need to put your IMEI in the Sony website, generate a special code and execute it in fastboot. :)

Before I unlocked my XZ2 I was able to switch it between models like hell, without loosing my drm keys of course. :)
[Sony Cross-Device General] kw0n2k:
Legend! thanks mate for the info!
[Sony Cross-Device General] gabry97:
How can I install newflasher on ubuntu?
[Sony Cross-Device General] MartinX3:
Download and use it :silly:
[Sony Cross-Device General] gabry97:
Can You tell me a guide?
[Sony Cross-Device General] arslanon.e:
Download it. Extract it. See. There must be shell script file. Now. If you don't know what to do with it, you need a Linux basics guide ( Google, Youtube), not flashing guide.
[Sony Cross-Device General] gabry97:
Ok grazie
[Sony Cross-Device General] gabry97:
but where do I download the file? the one on the front page is for window
[Sony Cross-Device General] arslanon.e:
The rar has all the files. You just need to make .x64 or .i386 executable in Linux and run them.
[Sony Cross-Device General] gabry97:
thank you . I solved
[Sony Cross-Device General] kingstah:
Hi,

I am trying to flash latest firmware to my XZ1 Compact using Linux.

This is what I get when running newflasher.x64 in the directory with all the files:

The phone is in flash mode (green LED) and also connected properly:

Am I missing a driver? If yes, how can I install that on Linux? Or what else could be the problem?

Thanks in advance!
[Sony Cross-Device General] Geoffxx:
Just used newflash on my XZ2 Premium and now stuck in bootloop, only file I excluded was userdata.sin

I also said no to all the preflash prompts - perhaps that is were I went wrong

any help appreciated, currently trying to do a PC Companion Repair
[Sony Cross-Device General] MartinX3:
You need root or a udev rule. :)
[Sony Cross-Device General] kingstah:
Ah, stupid me. Root did it, thanks for the quick help!
[Sony Cross-Device General] Mad07:
File Type: rar	newflasher_v13.rar - ist Gone?

I couldn"t download therar :(
[Sony Cross-Device General] mad0701:
Solved

with a normal PC I could DL the file:)
[Sony Cross-Device General] Tuxedo75:
Hum...

I flashed 52.a 0.32.7 here, but cant receive updates... Its normal?

Non november patch out for xz3?

Inviato dal mio H8416 utilizzando Tapatalk
[Sony Cross-Device General] S1gma:
Check https://xpericheck.com/ for newer firmware.
[Sony Cross-Device General] Tuxedo75:
I checked and seems that my firmware ( customized IT) was one of the worst updated...

Maybe better to switch to the uk or german that seems better supported?

The italian language was inside that firmwares too I think, right?

Inviato dal mio H8416 utilizzando Tapatalk
[Sony Cross-Device General] S1gma:
Yes, if you choose European variant, you are getting same language list. Only difference may be in preinstalled packages.
[Sony Cross-Device General] seanp25:
I get this error: (end of my log)
[Sony Cross-Device General] mad0701:
I've received the same error...

After download the Firmware once again and do not delete Qnovo, amss*, ssd sin Files, the flash progress was successful.
[Sony Cross-Device General] seanp25:
Thanks. I had not been deleting those file (only the .ta files) but still get the error.

I can try again without deleting any .ta files., but not sure if this is recommended?

EDIT: Just coming back to say that issue is sorted now. If anyone is reading this looking for a solution, for me I just changed to another USB port and it stopped dropping out during the flash. Maybe the other was loose, not sure.
[Sony Cross-Device General] gouster3:
[MENTION=4120742]munjeni[/MENTION], is there any way to skip driver promport (skip it) and trim backup promport (force it or skip it) using cmd line arguments?

if not, can u implement them into next version please?

Thanx.

---------- Post added at 10:13 AM ---------- Previous post was at 10:09 AM ----------

When i extract .ftf archive, and i move boot_delivery.xml to boot folder, and partition_delivery.xml to partition folder, to get it like newflasher wants it, i am able to flash firmware, but phone stuck on sony logo, then i got reboot. when i flashed .ftf using flashtool, phone was working good, and when i flashed xperifirm download using newflasher, it was working too. so my point isnt to get phone working, as i did it already. My point is to know what i am missing when trying to flash .ftf using newflasher. Any suggestions?
[Sony Cross-Device General] TPlatt:
HI, IM GETTING THIS ERROR EACH TIME I ATTEMPT

--------------------------------------------------------

newflasher.exe v13 by Munjeni @ 2017/2018

--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

Available space to caller = 339309 MB

Total space on current drive = 459144 MB

Free space on drive = 339309 MB

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip.

This creates GordonGate.7z archive in the same dir with newflasher.exe!

N

Device path: \\?\usb#vid_0fce&pid_b00b#5&75c2fb5&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}

Class Description: Android Phone

Device Instance Id: USB\VID_0FCE&PID_B00B\5&75C2FB5&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!

N

ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:

Incorrect function.

- 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

Press any key to continue . . .
[Sony Cross-Device General] old.splatterhand:
I answered you already in another thread, and other people can find this post with exact same error (with the solution in last sentence).
[Sony Cross-Device General] azam_:
Can someone tell me what is error code 5. Access is denied error.
[Sony Cross-Device General] dhacke:
Hi guys i need your help. Recently i bought a xperia xz2 and i unlocked my bootloader with fastboot.

Now i want to update my stock system via newflasher.

So i download and extract the new sony Firmware on my pc, copied the newflasher.exe into the the extracted folder.

Then i wanted to flash it but get the error "no usb device with vid:0x0fce pid:0b00b.

I tested it with with volume up and down (so i had once the led with green and blue) but in both modes my xz2 wasn't recognized.
[Sony Cross-Device General] AAZZAAMM:
You need to install the fastboot and flashmode drivers
[Sony Cross-Device General] dhacke:
Thx for the hint. After i installed Emma it worked.

I just forgot the additional driver for flashmode.
[Sony Cross-Device General] landsome:
Bad post. Sorry
[Sony Cross-Device General] LuminousOne:
Any idea what is causing error writing?
[Sony Cross-Device General] makotech222:
I'm getting :

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

With a Sony XA2. I used newflasher when it first came out for XA2 and it worked fine. Not sure if anything has changed at all?

My phone is in flash mode, holding volume up key when connecting to usb. Has blue light on. Also tried green light with volume down.
[Sony Cross-Device General] dcrin3:
You need to install the drivers provided by newsflasher. Maybe your drivers were removed?
[Sony Cross-Device General] makotech222:
Not likely, but ill try to reinstall. Is there a guide to installing them? Just looks like a bunch of dlls.
[Sony Cross-Device General] mad0701:
After start answer the first question with Y, After that the driver are in a new created subfolder (still described in the OT and Readme)
[Sony Cross-Device General] jodiskett:
Hello

Downlaod link in first page is dead could you replace it ?
[Sony Cross-Device General] Pandemic:
Download from attachment !
[Sony Cross-Device General] dentedilupo:
hi guys, wich drivers i need to install for the xperia xz2 is recognized by windows so i can start flashing the rom

thanks
[Sony Cross-Device General] dcrin3:
The ones provided by the app during firmware flashing. The application will ask you beforehand, it then creates a folder/file with the necessary stuff.
[Sony Cross-Device General] PhobiaSoft:
Just wanted to say this is a great thread and NewFlasher is an excellent program. My XZ1C updated from Oreo to Pie on its own from a Manufacturer OTA which would've frustrated me enough already since I use Andromeda+Substratum for unrooted themeing on Oreo, but this early version of Pie was also incredibly unstable for me, with the Camera, Calendar, GPS, Clock, and even Calculator becoming unresponsive. The Alarm system app actually crashed one morning and made me two hours late to work. I woke up to "Process Alarm is not responding" on my screen. Obviously this is unacceptable, but using Xperifirm and NewFlasher, I was able to downgrade back to Oreo without rooting, unlocking the bootloader, losing DRM keys, or triggering SafetyNet!

This guide is all you need to follow, and my only advice to those wishing to downgrade is to ignore the guides found all over the internet which encourage you to delete certain .TA files and UserData.SIN. At least for me, deleting those resulted in a boot loop. I was forced to flash the firmware in its entirety, which essentially preformed a factory reset (as one would expect) but ensured a stable and adaptable device. Thanks for the great program [MENTION=4120742]munjeni[/MENTION] and remember to turn off those automatic updates in your Settings menu! ;)
[Sony Cross-Device General] seXneo:
I'm encountering an issue with flashing (downgrading) my XZ1 Compact. I'm using Linux and tried the provided binary (x64) in the first post and compiled newflasher from source myself too. With two different USB ports and two cables I'm still getting the same error: Error, didn't got signature OKAY reply! Got reply: FAILFailed to verify cms

The firmwares I tried flashing are: 47.1.A.2.324_CE1 & 47.1.A.8.49_CE1. I'm currently on: 47.1.A.16.20

Full log:
[Sony Cross-Device General] thrash001:
--------------------------------------------------------
newflasher.exe by Munjeni @ 2017
--------------------------------------------------------
Device path: \\?\usb#vid_0fce&pid_b00b#5&15c311e1&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: USB-Controller
Device Instance Id: USB\VID_0FCE&PID_B00B\5&15C311E1&0&2

DATA[0xC]:

00000000 44 41 54 41 30 30 30 30 30 30 32 30 DATA00000020

Root Key Hash[0x20]:

00000000 58 18 26 01 C0 00 26 01 03 00 00 03 93 E7 00 00 X.&...&.........
00000010 E0 18 26 01 C0 00 26 01 28 18 26 01 C0 00 26 01 ..&...&.(.&...&.

Product: G8141
Version: 0.4-SONY-0.1
Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-A
Baseband version: 1306-8499_45.0.A.1.229
Serialno: CB512EADT6
Secure: yes
Loader version: XFL-MSM8998-N-35
Phone ID: 0000:35783808059099
Device ID: A6D4C462
Platform ID: 2005E0E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTABLE
Ufs info: TOSHIBA,THGAF4G9N4LBAIRB,0100
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: 58182601C00026010300000393E70000E0182601C000260128182601C0002601

DATA[0xC]:

00000000 44 41 54 41 30 30 30 30 30 30 30 31 DATA00000001

- Error, go_into_flash_mode DATA reaply string: DATA00000001 is not equal to expected: DATA:ïÓA!
End.
Drücken Sie eine beliebige Taste . . .
[Sony Cross-Device General] munjeni:
Many thanks! I am so sorry, was fast and made banal bugs, seems time for vacation, we was whole day on this :( Made new version and that bug is solved
[Sony Cross-Device General] munjeni:
Hey thank you a TON!!! I must go to bed :) See you guys tommorow, our last log will help me sure to solve root key hash bug thats definitelly and allso will continue on flashing mechanism, great thing we have 60 percent done, the remaining rest is fine tuning and optimisation, and also the rest of functions will be a lot easier porting when we success on curent task!
[Sony Cross-Device General] thrash001:
it looks good, i must recover my phone per companion. **** happens ;)
[Sony Cross-Device General] munjeni:
Realy? What happened?
[Sony Cross-Device General] thrash001:
a text at the display, i musst conect the phone on a pc to recover. sorry, i have equal companion start to recover. prozess in work. take a view minute
[Sony Cross-Device General] munjeni:
Seems device is not go out of flash mode since we wrote 1 to the trim area specific unit and it stay 1. If you did't recover untill tommorow I will modify tool a bit just to write 0 to the same location, not at pc now, father sleep in that room :(
[Sony Cross-Device General] thrash001:
i was start after the last attempt my phone. Can be that it would work with a next version the cache.sin to flash without error

edit:

recover finish
[Sony Cross-Device General] munjeni:
Need a time solving all bugs! Not a easy task but 2 to 3 days tool will work fully I promise! Did you recover your phone?
[Sony Cross-Device General] munjeni:
Great! I am glad realy! Can sleep now uhh
[Sony Cross-Device General] thrash001:
yes, recover with sony companion. great work from you! Is just measure that you have no device to test and to have our logs back
[Sony Cross-Device General] munjeni:
Will disable function "enter into flash mode" untill we solve flashing, Im believing that phone stayed in flash mode because ot that! Must go now, see you tommorow! Many thanks again!
[Sony Cross-Device General] tanipat:
Great work here, without you two we cant come this far. Hope you recover your phone well thrash001. i might not able to help much as i have little knowledge about it anyhow trying to help on anything you throw at. Awaits to see final end product^^
[Sony Cross-Device General] munjeni:
New version is out! I have disabled "enter into flash mode" and "get out of flash mode", also fixed bug which failed last time, also hope fixed bug with get root hash
[Sony Cross-Device General] munjeni:
WAU thats great!!! Seems all ok (except root key hash) :) Root key hash curently is not used for anything, it will need later for bootbundle which I going to implement soon. Good thing is we have succed on simulating sin flash! If you agree I can enable flashing?

Edit:

Have no idea whats going on with root key hash, tool sucesfully gets reaply:

- Successfully read 0x20 bytes from handle.
Raw input [0x20]:

00000000 C3 0D EC 24 71 CE A3 11 E6 91 86 57 36 7B 51 06 ...$q......W6{Q.
00000010 8A 39 58 3B BF 89 FD 68 B3 79 BC D5 A7 09 AB 1B .9X;...h.y......

But post string copy gives wrong hash :( It need to be C30DEC.... not understand why
[Sony Cross-Device General] munjeni:
New version with all features enabled (enter in flash mode, erase, flash, get out of flash mode) :) I am pretty sure it might work now :fingers-crossed: . If no error that mean cache sucesfully flashed

Edit:

If succed I will try to move command "erase" till before command "flash", it might be better idea in case command "download" no suced so to prevent erase because curently I have used erase command (as per pc companion sniff log) after certificate gets processed, maybe better idea is moving erase before flash?
[Sony Cross-Device General] thrash001:
--------------------------------------------------------
newflasher.exe by Munjeni @ 2017
--------------------------------------------------------
Device path: \\?\usb#vid_0fce&pid_b00b#5&15c311e1&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Class Description: USB-Controller
Device Instance Id: USB\VID_0FCE&PID_B00B\5&15C311E1&0&2

LET SEE WHERE HASH FAIL 1[0x20]:

00000000 44 41 54 41 30 30 30 30 30 30 32 30 2D 68 61 73 DATA00000020-has
00000010 68 00 32 43 37 38 44 41 41 44 42 41 36 38 44 39 h.2C78DAADBA68D9

LET SEE WHERE HASH FAIL 2[0x20]:

00000000 C3 0D EC 24 71 CE A3 11 E6 91 86 57 36 7B 51 06 ...$q......W6{Q.
00000010 8A 39 58 3B BF 89 FD 68 B3 79 BC D5 A7 09 AB 1B .9X;...h.y......

LET SEE WHERE HASH FAIL 3[0x20]:

00000000 C3 0D EC 24 71 CE A3 11 E6 91 86 57 36 7B 51 06 ...$q......W6{Q.
00000010 8A 39 58 3B BF 89 FD 68 B3 79 BC D5 A7 09 AB 1B .9X;...h.y......

LET SEE WHERE HASH FAIL 4[0x20]:

00000000 58 18 EA 00 C0 00 EA 00 03 00 00 03 4F DF 00 00 X...........O...
00000010 A8 18 EA 00 C0 00 EA 00 28 18 EA 00 C0 00 EA 00 ........(.......

Product: G8141
Version: 0.4-SONY-0.1
Bootloader version: 1306-5035_X_Boot_MSM8998_LA1.1_N_59-A
Baseband version: 1306-8499_45.0.A.1.229
Serialno: CB512EADT6
Secure: yes
Loader version: XFL-MSM8998-N-35
Phone ID: 0000:35783808059099
Device ID: A6D4C462
Platform ID: 2005E0E1
Max download size: 104857600
Sector size: 4096
Rooting status: ROOTABLE
Ufs info: TOSHIBA,THGAF4G9N4LBAIRB,0100
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: 5818EA00C000EA00030000034FDF0000A818EA00C000EA002818EA00C000EA00

Device is put now in flash mode.

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.
erase:cache
OKAY.
- Extracting sparse chunk flash_session/cache.000
- Uploading chunk flash_session/cache.000
download:0080f0c4
Proccessing sub chunk 1: 0x200000 bytes
Proccessing sub chunk 2: 0x200000 bytes
Proccessing sub chunk 3: 0x200000 bytes
Proccessing sub chunk 4: 0x200000 bytes
Proccessing sub chunk 5: 0xf0c4 bytes
OKAY.
- End of cache_X-FLASH-ALL-42E5.sin
flash:cache
Error, didn't got flash OKAY reaply! Got reaply: DATA0080f0c4

ERROR: TIMEOUT: failed with error code 997 as follows:
▄berlappender E/A-Vorgang wird verarbeitet.
- Error reaply: less than 4!
Raw input[0x0]:

- Error, no go_outof_flash_mode DATA reaply!
Sent command: Sync
ERROR: TIMEOUT: failed with error code 997 as follows:
▄berlappender E/A-Vorgang wird verarbeitet.
- Error reaply: less than 4!
Raw input[0x0]:

Drücken Sie eine beliebige Taste . . .

Phone started with "Software Update fail..."

---------- Post added at 06:20 PM ---------- Previous post was at 06:15 PM ----------

must i now repair with pc companion or wait for next version for correct it?
[Sony Cross-Device General] munjeni:
Wait please! I forgot to set increased timeout for getting reaply after "flash" and you got timeout :( Wait a moment, I will tell you when tool is ready, give me 15 minutes, going to solve hash bug (now I see where it fail), and also going to increase timeout!
[Sony Cross-Device General] kelumsd:
Awesome work [MENTION=4120742]munjeni[/MENTION] :D ! Appreciate your effort on this!

I've downloaded firmware using XperiFirm for my Xperia XA2 Plus Dual H4493, but I couldn't see "partition.zip" that need to create "partition" folder, in downloaded file so I'm afraid to flash as will it brick my device? How can I find partition .zip file for my H4493 ? I've attached screenshot showing all files I have with download. Please help me in flashing my device (XA2 Plus Dual H4493).

Appreciate your reply. :fingers-crossed:

Best regards,
[Sony Cross-Device General] Franco_Sposato:
Xa2 ultra dual flashed last oreo..all work fantastic
[Sony Cross-Device General] kelumsd:
Did you got "partition.zip" in your firmware files? Or did you flashed without partition folder? In my case my firmware (XA2 Plus H4493) does not have "partition.zip" file. So worried to flash. How did you flashed your one? Did you flashed without partition folder? :confused:
[Sony Cross-Device General] munjeni:
bootloader_X_BOOT_MSM8998 as I know is part of the boot delivery, and X_boot is determined trought device info which newflasher getting from your device to determine which x_boot to flash since there is four or two x_boot sin files in boot delivery, you must flash right one, probably you have moved wrong x_boot sin file from boot folder to the root folder and most probably you have moved wrong x_boot sin file! Don't move files from boot folder, it give error!
[Sony Cross-Device General] munjeni:
On 2018 and up there is no partition.zip, there is only one sin partition file. To flash that file you must move that partition sin file to 'partition' folder if you want flash partition image, if no partition folder with partition sin file partition sin file is ignored, skipped!
[Sony Cross-Device General] kelumsd:
Thanks [MENTION=4120742]munjeni[/MENTION] :o :o

One more, can I extract FTF file and then flash with your NewFlasher? Since I have FTF for My XA2 Plus, but at the moment I cant download from XperiFirm. :confused: Files are almost same, the difference is on the file names. (File names with FTF bundle and file names of XperiFirm download.)
[Sony Cross-Device General] seXneo:
Thanks. The only file I moved out of the folder is "persist_X-FLASH-ALL-42E5.sin". Everything else is untouched.
[Sony Cross-Device General] Franco_Sposato:
I have push exe file in the folder firmaware only
[Sony Cross-Device General] kelumsd:
I flashed my XA2 PLUS H4493 with firmware 50.1.A.11.40 with NewFlasher and it was success. :D Actually no problems. Awsome works [MENTION=4120742]munjeni[/MENTION].! But I feel really annoying thing that, every time I press power on button, green LED is briefly (about 0.2 sec) blinking every time, then phone boots. Why this green LED blinking every time and how I fix it as it is really annoying thing.