yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] mesabogiii:
Edited

Thank you.

It is working under x86 x64.

ARM based will not as following,

Would it be possible to support ARM based?

Macbook Pro M1

Sony 1 VI

Tried Parallel Windows - Driver installed but unable to detect phone.

Thanks for helping in advance.

Trying to flash under Parallel Linux with following log.

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

newflasher.arm64 v57 by Munjeni @ 2017/2023

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

Determining available free space:

Available space to caller = 39109 MB

Total space on current drive = 62731 MB

Free space on drive = 42328 MB

cannot open /dev/bus/usb/003/004 for writing

cannot open /dev/bus/usb/003/003 for writing

cannot open /dev/bus/usb/003/002 for writing

cannot open /dev/bus/usb/003/001 for writing

cannot open /dev/bus/usb/002/001 for writing

found device with vid:0x0fce pid:0xb00b.

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

n

Reboot mode at the end of flashing:

type 'a' for reboot to android, type 'f' for reboot to fastboot, type 's' for reboot to same mode, type 'p' for poweroff, and press ENTER.

f

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.

Do in mind this doesn't dump drm key since sake authentifiction is need for that! But it is recommend to have dump in case hard brick!

n

- (ep_out size=24)ERROR: n = -1, errno = 110 (Connection timed out)

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

- (ep_out size=17)ERROR: n = -1, errno = 110 (Connection timed out)

- Error writing command reboot-bootloader!

Closing device.
[Sony Cross-Device General] Victorson:
Please Help

Will changing the rom from HK to SEA will allow VOWIFI and 5G in india
[Sony Cross-Device General] munjeni:
You can't use newflasher for android for Mac, you need mac version, currently only darwin64 version newflasher exist and I don't going to support mac, if current one not work I not going to support it anymore.
[Sony Cross-Device General] munjeni:
Device specific things please do not ask in newflasher thread, you have your device model subforums and ask it there thank you
[Sony Cross-Device General] Chemikill:
I was unaware of this. Will have to try it once I have some time.
[Sony Cross-Device General] Chemikill:
I haven't deleted anything from what was downloaded to the rom folder that newflasher is in.

How do I provide you with a log?

Also where can I download other stock roms? Xperifirm only provides a single rom for my region and that's what I've been trying to flash with newflasher that's causing the bootloop.
[Sony Cross-Device General] munjeni:
Log you can paste on pastebin.com . There is roms for other regions probably which you can try if neither other work for you.
[Sony Cross-Device General] Equinocs:
@munjeni

Apologies if this question is superflous, but my grasp regarding Android internals is even worse than for Linux in general. I'd just like to make sure that I don't lose data while updating the device.
[Sony Cross-Device General] munjeni:
You no need to delete anything, just folow on screen when newlasher ask you for "keep userdata", comfirm with no.
[Sony Cross-Device General] popolou:
@munjeni Quick question please: the update.xml contains the xml tags <FACTORY_ONLY>.</FACTORY_ONLY> - is this ignored when userdata is retained?

I follow that any .sin files within the NOERASE flags are ignored if the choice is to retain the userdata but i have not come across confirmation that this is the same for the persist_*.sin.

I am reflashing the operator firmware back to an XZ1 and want to keep both the userdata and the attestation partition.

Thanks

Pops

Addendum: Edited to add that on my review of your source code, i think you implemented an option that if the persist_ sin is found, it gives you the option of keeping the partition intact or overwriting. Is this correct?
[Sony Cross-Device General] munjeni:
Persist is skip by newflasher. If you flash persist somehow you will lose it, what is inside I don't know, I know that its unique per device and thats all. I forgot half of things due to my low activity on telephone things, that not interest me anymore, what I can do now is only some eventualy updades to newflasher, everything else not interst me anymore, do that in mind while somebody want to ask me something in relation to telephones.
[Sony Cross-Device General] popolou:
Excellent and thank you. Yes, am slowly reading up on this thread and i see this was implemented from v48 onwards.
[Sony Cross-Device General] munjeni:
I recommend to everybody read whole thread, a lot of things is happened, almost all the things is explained, tested...etc and also some things is not resolved on recent devices which have rollback protection, I still have old xperia 10 without rollback protection and I can't test thing in relation to recent protections, so if you need to know something do in mind I don't know, you need to try yourself and of course on your own risk. And if somebody figure out than let me know and I will implement into newflasher. Until things is unclear I have no idea.

What is android?

Android is not an open source, look at it as half open source, let's say android is 50% open source and its brother called propertiary prebuilts, all things is organized so that when a new model comes out, all that was created before that and where you as forum members tried to maintain and where you lost your time with it, one day everything stops working and everything you tried to maintain falls into the water, because proprietary blobs are no longer compatible, I can call it nothing but a waste of time. It forcing you for buy new phone, In my protest to that lay about open source I will not buy a new phone as long as the screen does not fall off the one I have. And it is made in such a way that even ldpreloading can no longer be implemented, it is so organized that you are simply forced to buy a new phone. Even an old phone can sometimes no longer do simple things because the applications are also made to simply be outdated, so even the ones you have in your phone no longer work. That's android, in short an business, not open source as declared. So I would advise you not to waste your precious time for the phone, it is not worth your time, use that time for something more useful!
[Sony Cross-Device General] munjeni:
In that case backup your data to your PC, thats a only safe way for your personal userdata!
[Sony Cross-Device General] popolou:
@munjeni It appears that the flash completed but errors out at the end on the sync: -

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, no sync response!
Closing device.
Press any key to continue . . .

I repeated the process selecting to boot into safe mode but this failed (logs attached).

Do you know why it would do this?

Cheers

Pops
[Sony Cross-Device General] munjeni:
Thats reported ten times in this thread and I also replied ten times, simply ignore sync error, who know whyit hapen sometimes.
[Sony Cross-Device General] popolou:
Understood, then i believe i am experiencing a problem elsewhere. I suspect there is an app in the userdata that is corrupt and it is causing the boot loop. I know which one it is but i am also now fearful of what it could mean... :(
[Sony Cross-Device General] Alkéryn:
hey, any idea how i could get the system raw partition ?

i want to write an integrity check tool that hashes the partitions on the phone and from the rom.
[Sony Cross-Device General] munjeni:
https://xdaforums.com/t/tool-windows-linux-android-apple-unpack-any-sony-firmware-file.3530077/
[Sony Cross-Device General] Alkéryn:
Thank you!

But my issue is i can't find a system.sin file.
[Sony Cross-Device General] munjeni:
https://xdaforums.com/t/tool-win-li...ake-partitions-rw-in-super-partition.4120963/ :)
[Sony Cross-Device General] Alkéryn:
Oh thank you very much !

that should do it ! :)

btw do you know of the best ways to do full system integrity checks when you are root ?

ie check if a root level persistent malware may be present etc.
[Sony Cross-Device General] munjeni:
Unfortunately no, I don't understand how it works, I tried to simulate something via openssl trught signature from the end of file but I didn't find the public key in device... etc, similar to what you are trying, but unfortunately I didn't succeed, now it not interest me anymore to be honest in general, phones and etc.
[Sony Cross-Device General] Alkéryn:
alright thank you !

i installed shamiko and only learnt after the fact it was closed source, so i'm now kinda worried it may have installed malware, i'm considering reflashing my phone tbh.
[Sony Cross-Device General] Alkéryn:
anyone has tested it to work on xperia VI ?
[Sony Cross-Device General] munjeni:
Let us know! : )
[Sony Cross-Device General] Guido83:
I tried it on Xperia 1 VI but it does not seem to work. I cannot make a dump of the phone (got null data_len error) so I didn't try to go further

EDIT:

Flashing the Firmware goes through
[Sony Cross-Device General] PlayAndroidMaybe:
hi, i want to local debugging on windows. If this is possible, how should I configure the environment?
[Sony Cross-Device General] munjeni:
Debug what? If you mean android debug search google for ADB debugging as a start point
[Sony Cross-Device General] munjeni:
Sorry but without your newflasher log I have no idea
[Sony Cross-Device General] PlayAndroidMaybe:
Well, I want to customize the dtbo.sin file and flash it, can newflasher do that? I want to replace the battery with a larger capacity🤣
[Sony Cross-Device General] munjeni:
You can't modify any sin file because it contain digital Sony signature which can't be modified without Sony signing key in any way. And you can't get key in anyway too.
[Sony Cross-Device General] Malandirix:
I may have found a solution.

You can find your IMEI number using the Emma tool. After it gives you the error saying it can't function with a the bootloader locked, click "show report" in Emma. It will give you a IMEI number which you can use to unlock the bootloader using fastboot. Instructions here. https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader/

I have now reached the point where I think I need to restore this original IMEI number but with a snapdragon chipset this seems hard. I won't ask here because it's not allowed it seems.

The phone is now not bootlooping once I have restored to the oldest firmware available on Emma. That's a start at least.

Ask if you need to clarify anything. Good luck.
[Sony Cross-Device General] munjeni:
When bootloader is unlocked there is no limit, you can flash whatever you need on your device, for example an LineageOS which is in my opinion the best android for those with unlocked bootloader. I'm stil using stock xperia 10 with unlocked bootloader. Isue above related to no sim is in relation to modem files, e.g. fw for Japanese sim cards, fw for european sim cards, dual sim, single sim... etc, I would sugest an stock rom designed for your region and it will work on unlocked bootloader without any problem, e.g. if your phone is Japanese version do not flash an european version othervise you will get no sim card isue, just example.
[Sony Cross-Device General] thinhbk11:
Hi @munjeni

Thanks for your great fool.

I have a xperia 5V (XQ-DE72) and this phone doen't support call recording function. While Xperia 5V XQ-DE44 ( Japanese free sim) support

I afraid that Japanese phone has some difference relating to NFC, 4G/5G baseband ..

Can I using XQ-DE44 rom for XQ-DE72? Or can I mix these roms to a new one which suports XQ-DE72 and has call recording function?
[Sony Cross-Device General] munjeni:
You need to unlock bootloader, the first thing to do, the rest you need to ask somebody else since I'm not in android developement for 5 years : ) It was possible by deodexing stock aplications than trought java byte code "smali" an app was need to be modified, today how it work I have no idea and to be honest that not interest me anymore. Search XDA for XQ-DE72 maybe there is some custom stocj roms available with those feature enabled!
[Sony Cross-Device General] thinhbk11:
Many thanks for your quick reply and always support.
[Sony Cross-Device General] kirdroid:
How do you put the XZ premium in flash mode?
[Sony Cross-Device General] munjeni:
Shutdown phone first, than hold volume down while turn usb cable
[Sony Cross-Device General] kirdroid:
You mean connect to USB C cable to phone by holding power down? Do I need any Xperia drivers? This my first Xperia phone in a long time.

---------- Post added at 12:14 PM ---------- Previous post was at 12:11 PM ----------

Tried it nothing happens. Am I missing some drivers or something?
[Sony Cross-Device General] munjeni:
I was not clear? Hold volume down button while connecting usb cable (phone must be shutdown first). In most case you have missing drivers! See what say your pc device mannager
[Sony Cross-Device General] MGSBigBoss:
sd
[Sony Cross-Device General] kirdroid:
You were clear but it's just I can't get the volume down and plugging the cable to put in flash mode. I even downloaded the flash tool installed the drivers from there, installed Xperia companion everything. But I turn off the phone, then keep pressing volume down and plug in the USB C cable but nothing happens ☹️☹️☹️

Edit: It worked, I was expecting some kind of UI for flash mode like when we boot into recovery ... Didn't know it'll just be black screen with notification light indicating if the PC recognized the device ???

Flashed the CE1 firmware for the US model and damn it's nice to get that fingerprint sensor back. Tool worked flawlessly ????
[Sony Cross-Device General] MGSBigBoss:
How did you get it to work it isn't recognizing the usb drive. Just closes out of application after I hit a key. I unstained xz premium drivers from Sony. I have it in flash mode which had the green led in corner and black screen
[Sony Cross-Device General] munjeni:
About which application you talking about? Newflasher? If true, that probably it say "no usb device with vid and pid...", right?
[Sony Cross-Device General] MGSBigBoss:
Yes that's exactly what it says what did you do to resolve this? I'm in windows 7. I already have the hk firmware downloaded unless there's a better one to flash over a us xz premium to enable fingerprint? I didn't see a uk one or any other English speaking one.
[Sony Cross-Device General] munjeni:
1. All 2017 models uses new flashing protocol, usb pid is no more ADDE like on pre 2017 models, its now B00B, you ca check that in pc device mannager! In case you see "somc flash device" and its pid is B00B and you do not have yellow triangle than everything is right. In case yellow triangle that mean you have missing driver. But in case everything right, device driver ok...etc but pid is not B00B e.g it is ADDE than probably your device is not a premium model, its maybe xz without P... Let me know your vid and pid of the usb device while in flashing mode (probably us model have it diferent than B00B?) and let me know about driver status!

2. Can you give me screenshoot of the "about phone" from the settings menu?
[Sony Cross-Device General] MGSBigBoss:
it says no usb device with vid:0x0fce pid0xb00b
[Sony Cross-Device General] slackbits:
I have a similar problem. My Hardware ID is B00B, but device manager say driver is not installed, however, I have the companion tools installed. Where in the world are the flash mode drivers? I have been searching and I cannot find any posts that are not circular or dead links.
[Sony Cross-Device General] munjeni:
You quoted me but seems you didn't read it?
[Sony Cross-Device General] munjeni:
Download flashtool it have gordon gate installer in drivers folder!
[Sony Cross-Device General] MGSBigBoss:
i got it to work is because i didn't have it in the flashtool folder. i have a question is there a way to keep my usa baseband but flash the rest of the europe firmware? the usa firmware seemed to display the service better? or maybe baseband is not what I'm looking for. any files to replace in the europe firm ware to give same signal for like in usa?
[Sony Cross-Device General] munjeni:
Don't know realy! You can try and let us know! :)
[Sony Cross-Device General] AJHutchinson:
Why create a new tool when flashtool is as good as you need?

Sorry for coming across like I don't appreciate all the hard work that's going in to this I don't mean to but I'm just curious to what this does different :confused:
[Sony Cross-Device General] munjeni:
Flashtool doesn't support totaly new flashing protocol which newer Sony device curently have! ;)
[Sony Cross-Device General] AJHutchinson:
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?
[Sony Cross-Device General] chuache69:
Thanks you for job
[Sony Cross-Device General] munjeni:
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?
[Sony Cross-Device General] AJHutchinson:
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 ?
[Sony Cross-Device General] tanipat:
i can help ofcourse for the good sake of great developer like you [MENTION=4120742]munjeni[/MENTION] 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
[Sony Cross-Device General] AndroPlus:
Here is log... I put cache.sin but it didn't flash?

--------------------------------------------------------
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]:
[Sony Cross-Device General] AndroPlus:
Here is the new log:

--------------------------------------------------------
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]:
[Sony Cross-Device General] munjeni:
<MODERATOR EDITED>
[Sony Cross-Device General] AndroPlus:
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.
[Sony Cross-Device General] munjeni:
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!
[Sony Cross-Device General] munjeni:
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!