yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium Guides, News, & Discussion] ZeroXXoreZ:
Hi Storm,

Thanks so much for the fix - having some issues I beleive are related to driver/windows 10 I'm hoping someone can help with.

When I attempt to get the phone into fast boot mode, windows 10 attempts to install 'Android' which then sits in device manager in 'other devices'. I have tried to manually install driver (both Xperia XZ Premium driver from Sony's website and Google USB driver from https://developer.android.com/studio/run/win-usb.html)

The only way I've been able to proceed with unlocking the bootloader and getting XperiFIX to run was by using zadig to install 'Android' as WinUSB. This allows XperiFIX to run, but doesn't result in a rooted phone (see log file below).

I'm sure it's something simple, I've seen a few similar problems in this thread so maybe a noobie update to the OP would help?

Thanks in advance
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Please check the settings in TWRP! Seems like TWRP was installed before and you didn't allow system modifications. Start TWRP, go to "Mount" and uncheck the option for "mount system read-only". The system partition has to be mounted read/write! Turn off the phone, then boot to bootloader (fastboot). Start XperiFIX again, it should work now. Please report back if it fixed your problem. Thanks!
[Sony Xperia XZ Premium Guides, News, & Discussion] nkod:
it work good man

g8142 .75
[Sony Xperia XZ Premium Guides, News, & Discussion] patrol-cz:
Hi to myself (but to [MENTION=8363210]sToRm//[/MENTION] as well!)

So, by analysis of logs posted by many people, I found that my approach was rather naive and my questions as well :).

In principle, all seems to be doable in Linux, excluding patching secd (probably this is why the strange sfk.exe windows binary is there, calling it is not documented in logs but I believe it lies between downloading end reuploading secd :) ). Otherwise, the logs are perfectly suggesting, what to do, step by step.

[MENTION=8363210]sToRm//[/MENTION], are you still planning to support us, Linux/MacOS users ? Should I wait more ? Or should I attempt to do it on my own ?

WIth regards, Pavel
[Sony Xperia XZ Premium Guides, News, & Discussion] tramtrist:
[MENTION=8363210]sToRm//[/MENTION] I also would like to use Linux native. Is it possible? Thanks!
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
I will create a linux version asap. Will take some time, but it will work like the windows solution.
[Sony Xperia XZ Premium Guides, News, & Discussion] fobtob387:
Is there anyway to obtain older versions of XperiFIX from around a year ago? None of the new versions work for me.
[Sony Xperia XZ Premium Guides, News, & Discussion] ZeroXXoreZ:
Hi Storm,

Thanks, that did it. I had not previously installed any recovery program but was never prompted to allow write access to the system partition through TWRP. When I booted into recovery I was prompted to allow access and re-ran XperiFIX and it was successful :) Coffee incoming, thanks again!
[Sony Xperia XZ Premium Guides, News, & Discussion] _Matthew:
What device? and what problems are you getting with the newest version?
[Sony Xperia XZ Premium Guides, News, & Discussion] fobtob387:
XZ Premium (G8141), XperiFIX gets stuck at "booting recovery" every single time and doesn't work no matter what I do (replugging in cable, restarting phone into TWRP, etc. I've tried everything). This has only been happening with the most recent versions of XperiFIX, I never used to have this issue on the older versions (well it did get stuck on "booting to recovery", but re-plugging the cable always fixed it).
[Sony Xperia XZ Premium Guides, News, & Discussion] iArvee:
Can you post the logs? Let's try to see where the problem is.
[Sony Xperia XZ Premium Guides, News, & Discussion] mar10777:
Same in my G8441, but also no problem after manually boot in TWRP
[Sony Xperia XZ Premium Guides, News, & Discussion] johnny_9790:
Doubt

I am trying to perform the root process on my Xperia XZ Premium and the XperiFIX software does not find my device even in flash mode.

In the device manager of windows, with the mobile in flash mode appears an option "other devices" and inside it has "Android", as if it had not been able to install the android drive.

What can be happening?
[Sony Xperia XZ Premium Guides, News, & Discussion] geodim1974:
what is this ?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Your device has to be in fastboot mode, not flashmode.
[Sony Xperia XZ Premium Guides, News, & Discussion] Hakkinen3K:
Hi [MENTION=8363210]sToRm//[/MENTION] first of all, give me some time to donate i see a great work you did. Congrats.

I some a questions:

in the video you said that it take some time when taking pictures, all the time will be like this?

The camera it has all functions working?

Can i unistall Magisk (after all the process) and let rooting "old fashion way"? SuperSu or you don't recommend it?

Can i modify system files "normally" or with magisk can't?

Again, congrats for the great work.
[Sony Xperia XZ Premium Guides, News, & Discussion] fobtob387:
Here you go:

XperiLOG-devinfo-07-3-2018_19-22-45: https://pastebin.com/B2MK4iCt

XperiLOG-routine-07-3-2018_19-23-13: https://pastebin.com/Sy8LA35a
[Sony Xperia XZ Premium Guides, News, & Discussion] li0nh3art3d:
Different device: Xperia XA2 - It seems to be a problem I had HELL with in windows 10 getting it to recognize my device. After a couple hours manually installing different USB drivers, FINALLY I got fastboot to work, but ADB wouldn't. Still, it worked long enough to successfully unlock the bootloader, and now, after a few restarts, once again my device is no longer picked up in fastboot mode. Like you, in device manager, it says Android Device, and cannot be recognized. Fastboot no longer works. I think the issue is between Sony devices and Windows 10
[Sony Xperia XZ Premium Guides, News, & Discussion] _Matthew:
Need to reinstall adb drivers. also try disabling firewall
[Sony Xperia XZ Premium Guides, News, & Discussion] fobtob387:
Ok thanks, I'll reinstall them and report back.

Firewall is already disabled.
[Sony Xperia XZ Premium Guides, News, & Discussion] nkod:
https://media.giphy.com/media/ci0uDcGQtBh0k/giphy.gif​
[Sony Xperia XZ Premium Guides, News, & Discussion] fobtob387:
Reinstalled ADB drivers, twice. Once via Android Studio and the other via Universal ADB Drivers, neither worked.

Can someone please just upload one of the older versions of XperiFIX?
[Sony Xperia XZ Premium Guides, News, & Discussion] Beetle84:
Working like a charm on Win10, for XZP with latest firmware [MENTION=8363210]sToRm//[/MENTION]. Thanks for all your time and effort.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Please don't use universal drivers. Sony has it's own drivers for their devices. Download and install the right driver for your device directly from Sony.

Next days I will post some detailed instructions and Q&A on the website, because there are many users that have connection problems.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Thanks :)

- No, it's only temporary. After you fixed the device, it has to generate some data for the camera functionality. Because of this, the first few pics take a few seconds to be saved. After that, the camera works fast like nothing happened.

- As far as I now, yes. There are just some differences in quality since Sony upgraded to Oreo. But these are firmware related. A good friend has bought an XZP that is locked. I will try to make pics for comparison asap.

- There is no need for a switch from Magisk to SuperSU. Magisk is a lot better and I heard that SuperSU isn't supported by the dev anymore. With Magisk you have some cool features like SafetyNet fix and Magisk hide. Keep it!

- You can. Use the custom recovery to flash like on other devices or simply use a file explorer like "Root Explorer" or "ES file explorer" that has mount system r/w functionality.

Again... Thank you :)
[Sony Xperia XZ Premium Guides, News, & Discussion] fobtob387:
I just did it with Sony's driver, same problem. I'll try it on my friend's laptop later and see if it works on there.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Try to manually set the driver while TWRP is running or in USB debug mode while phone is running. Should be done in Windows device manager. Because Windows takes one of the installed drivers and maybe it's the wrong one. ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] fobtob387:
That worked!!!!!!!!!!! Thanks so much!!!!
[Sony Xperia XZ Premium Guides, News, & Discussion] johnny_9790:
Have you tried another version of windows?

in all the windows 10 that I tried, all happened the same thing.

I will try to install another version of windows to see if I succeed
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
Did you go into safemode and install the drivers with 'driver verification' turned off?

Lots of people posting the same problem and the fault is on Windows 10 not giving you any error messages that it failed to install the drivers in normal mode.
[Sony Xperia XZ Premium Guides, News, & Discussion] johnny_9790:
I did this, it still did not work, the Xperia XZ Premium drive installed perfectly, which is preventing the application from finding my phone in fastmode, it's the android drive

as mentioned in other posts, should have some incompatibility of windows 10 with the Xperia XZ Premium :(

I'm going to install windows 7 or 8 on a machine to see if I succeed.
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
bro can you delete all these lines and attache as .txt file or document file

thank u
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Looks like Magisk wasn't flashed. No idea why... Hm... Try it manually, it should work then.
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
@ sToRm

Donation made for the wonderful xperifix :)
[Sony Xperia XZ Premium Guides, News, & Discussion] jgreene617:
Hi, I'm reporting that XperiFIX 2.2 works on my XZ1 Compact (G8441). It took me a while to get the Windows drivers working, because at first I didn't understand that there are actually several drivers that need to be installed, and Windows 7 usually doesn't choose the correct driver automatically. So I had to force it to accept the drivers.

I tested it successfully on a fresh install of these two firmwares:

47.1.A.12.34, customization 1310-4371_R8B "Customized US"

47.1.A.12.75, customization 1310-4371_R8B "Customized US"

These are the drivers that ended up working for me on Windows 7, 64 bit:

Flashmode: "SOMC Flash Device", Sony Mobile Communications, v3.2.0.0, 2017-12-06

Bootloader: "Android Bootloader Interface", Google, Inc., v8.0.0.0, 2013-07-09

Recovery: "Sony sa0117 ADB Interface Driver" (not digitally signed), Sony, v2.0.10.30034, 2017-06-22

USB file transfer: "Xperia XZ1 Compact", Microsoft, v6.1.7601.23403, 2006-06-21

A few minor issues with XperiFIX:

After it installed TWRP, it did not successfully boot into recovery. I had to manually boot into recovery each time.

When this happens, XperiFIX gives instructions for how to manually boot into recovery. The instructions are basically correct, but for clarification you may want to add that you need hold down the power button for about 4 seconds.

The XperiFIX progress meter will make it all the way to 100% even if everything is failing, which is confusing.

When my phone booted into recovery, TWRP prompted me for my password to decrypt my data partition. I entered it, but I don't know if I really needed to.
[Sony Xperia XZ Premium Guides, News, & Discussion] Castiglionais:
Hi there,

I tested xeprifix and it works perfectly, at first I had trouble that the software recognizes my device, after I had to install the driver manually.

At first try, xperifix installed only recovery, on the second try, everything works perfectly, thank you again [MENTION=8363210]sToRm//[/MENTION] you're the man

PS: I'm on Xperia XZ Premium G8142 Customized US 1308-6041 47.1.A.12.75_R4B
[Sony Xperia XZ Premium Guides, News, & Discussion] Hakkinen3K:
Hello, can you try please (and after upload)...

take some pictures from far to close same object?

See if works slow mo?

Record a short video with zoom 1080p and 4K?

I hope not to bother you but i like to see the quality after the process with XperiFix and compare with before process.

Thanks.
[Sony Xperia XZ Premium Guides, News, & Discussion] iArvee:
There is no difference in quality. I remember someone posting something like this before, and the quality is the same.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Thaaaaaat's reporting I love. Thank you! Like I said, there will be a few fixes and also a page with instructions, to make it better for understanding. Biggest problems were drivers and TWRP all the time, because official TWRP doesn't boot with "fastboot boot" method. So I had to patch the images. But with XZ1/c there are still bugs with this. Maybe we can get it to work someday.

Cheers! :)
[Sony Xperia XZ Premium Guides, News, & Discussion] kpjs4s:
Issue when trying to Install on Xperia XZ1 Compact

Details:

Phone: XZ1 Compact - G8441

Build : 47.1.A.12.75

OS: Windows - 10

Bootloader - Unlocked.

Issue:

Scenario 1:

Phone - normal mode

Usb Debugging - ON

Opening the XperiFix App detects the Serial but unable detect Device and Firmware.

Status on the XperiFix App - Getting Info.

The XperiFix App freezes after that.

Log - only one line with shows the Serial Number

Scenario 2:

Phone - fastboot mode

Opening the XperiFix App

Status on the App - Waiting for device....

Nothing happens on XperiFix App

No logs generated .

Can someone help me out please?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
1. XperiFIX can't detect your device in adb debug while the phone is running, because XperiFIX uses fastboot to get the informations.

2. Please install the correct driver for your device (look at the last posts here - some users had same problems).
[Sony Xperia XZ Premium Guides, News, & Discussion] Castiglionais:
Hey guys, I had a little problem on update 12.75

I don't find fingerprints manager, is this normal ?
[Sony Xperia XZ Premium Guides, News, & Discussion] vmicovic:
i have latest xperia xz premium (single sim) and do "fix" and nothing happent, he finish, i start telephone and he is the same, when i check with supersu, he say it is not rooted...

what can be wrong?
[Sony Xperia XZ Premium Guides, News, & Discussion] Aldo Troncoso:
Everything working on my XZ1 compact.

I have to change my firmware first. Didn´t work with 47.1.A.12.75 / R17B Nordic combined CUSTOMIZED NOBA.

I had to use the 47.1.A.12.75, customization 1310-4371_R8B "Customized US". worked at first try. No issues, no problems.

Thank you so much for this.
[Sony Xperia XZ Premium Guides, News, & Discussion] feek.404:
[MENTION=8363210]sToRm//[/MENTION] would it be possible to make a list of drivers that are known to work with XperiFix? Not sure if it can be done, but perhaps bundle them in one package with the tool in some future version? Thanks for your outstanding work!
[Sony Xperia XZ Premium Guides, News, & Discussion] Rastabude:
hey, I have got a problem. I unlocked my bootlader and flashed it via xperifix. so everything fine but my first microphone isn't working anymore. I have done a complete wipe and factory reset without twrp and anything but my mic isn't working. If I take a video then it is working. if I take the speaker by calling then the mic is working, too. In google assistant it isn't working and in the service menu it isn't wrking, too. Is my mic defekt or I what can I do to get it working again? tried a lot of things. mabye a custom rom would help. pls help me to get my mic working again:)
[Sony Xperia XZ Premium Guides, News, & Discussion] bajanka:
hi

My camera did not work Sony Xperia XZ Premium Firmware @47.1.A.12.75: What could be the problem
[Sony Xperia XZ Premium Guides, News, & Discussion] angelica_kh:
For everyone having driver issues.

Try installing flashtool, and then install the drivers through flashtool ..they're in its directory under drivers (only select the Flashmode Drivers and Fastboot drivers in the setup).
[Sony Xperia XZ Premium Guides, News, & Discussion] johnny_9790:
Hi.

I'm having the same problem, I already tried several windows 10, windows 7, and they all happen the same thing.

if you got anything put here.
[Sony Xperia XZ Premium Guides, News, & Discussion] Castiglionais:
Try again it work perfectly for the second time
[Sony Xperia XZ Premium Guides, News, & Discussion] 7aMooD-DmC:
Hey Dude , Can u upload a how to do it manually using Recovery for oreo , like the tutorial u did for nougat.

Thanks <3
[Sony Xperia XZ Premium Guides, News, & Discussion] Beetle84:
Dude, edit your post please, you have quoted the whole OP.

You can simply write @ before a users name to get their attention.
[Sony Xperia XZ Premium Guides, News, & Discussion] TheMops:
Pity thing, it doesn´t work. I´ve patched 5 times my XZP but the pics are still green.

I`ve a XZP G8142 with Firmware 47.1.A.12.75. It´s rooted and the bootloader is open.

Xperifix is completing his work but the camera still makes green pics.

With the formware before .....51 it works well.

Anyone an idea what´s going wrong?
[Sony Xperia XZ Premium Guides, News, & Discussion] _Matthew:
Send over the logs then we'll be able to help
[Sony Xperia XZ Premium Guides, News, & Discussion] Rastabude:
where can I download the acutal firmware for my xz premium? Model: G8141 @ Android: 7.1.1 @ Build: 45.0.A.7.137_R7A cannot find a downlaod link anywhere

---------- Post added at 12:50 PM ---------- Previous post was at 12:48 PM ----------

can anyone help me with my mic problem or have i send it back?
[Sony Xperia XZ Premium Guides, News, & Discussion] TheMops:
Where can I find the logs?
[Sony Xperia XZ Premium Guides, News, & Discussion] _Matthew:
In the Xperifix folder on the C drive
[Sony Xperia XZ Premium Guides, News, & Discussion] TheMops:
This is the last log-file
[Sony Xperia XZ Premium Guides, News, & Discussion] Rastabude:
where is a link to download the newest firmaware for my xz premium Model: G8141 @ Android: 7.1.1 @ Build: 45.0.A.7.137_R7A. is this ne newest? but i cannot downlod it because it is not a link in your description. can you send me one pls? and my first microphone isnt working . what is the problem?
[Sony Xperia XZ Premium Guides, News, & Discussion] NAerop:
i install fix and everything cool, but what i must to do when sony create new firmware or google create new version of android?
[Sony Xperia XZ Premium Guides, News, & Discussion] fobtob387:
You can use Xperifirm to download Xperia firmware, the first XDA link on Google.
[Sony Xperia XZ Premium Guides, News, & Discussion] alexkatayama:
tool worked for my xz1 dual (g8342, firmware 47.1.A.12.75)

i ran this without issue on my xz1 dual (g8342, firmware 47.1.A.12.75). currently restoring backups so cannot confirm everything has been fixed but i took a few pictures and no longer getting green on either the front or rear camera. drm fix appears to be working as i'm getting all the sony apps again.

i can see a few things tripping people up:

- on my xz1 dual, i had to open twrp manually after the countdown ran out

- when you open twrp manually, *do not forget* to swipe to allow the modification of files - this can be easy to miss since the xperifix script will push ahead if you don't swipe (i had to run the xperifix twice because i missed this the first time around - plugged the usb cable and hit ok before i swiped)

other than that, this appears to work flawlessly. more than worthy of my 15 euro donation.
[Sony Xperia XZ Premium Guides, News, & Discussion] TheMops:
Any solution available?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Disable your firewall and check the driver for your device.
[Sony Xperia XZ Premium Guides, News, & Discussion] TheMops:
Ok, I´ll try.

In the logfile is a failure reported, look:

adb: error: remote object '/system/vendor/bin/secd' does not exist

10-3-2018_12-12-24 ===> Push system file

adb: error: cannot stat 'C:\XperiFIX\DATA\DRM\****that.bin': No such file or directory

10-3-2018_12-12-25 ===> Push lib file

Sure, that it´s coz of the firewall or driver. For me it looks like there are missing files :confused:
[Sony Xperia XZ Premium Guides, News, & Discussion] kpjs4s:
Guide for Installing the drivers

Finally got it working

just follow this tutorial https://www.youtube.com/watch?time_continue=105&v=nQjg6ePnGAc :good:
[Sony Xperia XZ Premium Guides, News, & Discussion] CoolXz:
Add account "Google play services stopped". why?
[Sony Xperia XZ Premium Guides, News, & Discussion] abgrxenda:
Green Photo

I follow all the instructions and there were no error messages during the whole process, yet; the camera is taking green photos, anyone else was able to fix this issue?

Sony Xperia XZ Premium(G8142). 47.1.A.12.75_R4B

I tried two times, and I attached the last log file that was generated by XperiFIX 2.2.0.0
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Please read the last posts and do a search in this thread, if you have problems. The solution is already posted by me. Your TWRP doesn't allow system modifications. You didn't swipe on boot (TWRP). When TWRP is booting and asks you if you want to allow system modifications, the swipe to the right. If not, boot TWRP and then choose menu "mount". There you can uncheck the option for "keep system read-only". Shutdown the phone and run XperiFIX again.
[Sony Xperia XZ Premium Guides, News, & Discussion] marcquisdale2:
Am i missing something? Im typing in the command

fastboot -i 0x0fce oem unlock 0x<unlock code>

EDIT... I figured the problem
[Sony Xperia XZ Premium Guides, News, & Discussion] Rastabude:
frist microphone xz premium wont work anymore. anyone else these problems? after root. but i f do a full back on stock rom it won't wokring, too. Seems that it is rubbis h and have to send it back or can it be that i must stop a google service or anything to get it working again? thank you really much for a solution. otherwise I will send back my device in the afternoon. It isn't working in a call only I use the speaker. In a video it is working. in the service menu mic test only the 2nd mic is working. strange or? the xz is from congstar and only a week old. I a other handy the simcard is working perfectly. I did everything. re to stock rom, tried some other custom roms, the original telekom rom etc.. but norhing is working anymore. with root or without root. the green camera problem i get fixed if I have got the right rom from telekom, not the custom rom from xerpifrim and run it xperifix twice then everythinng is working perfect but only my mic not. that is very anoying
[Sony Xperia XZ Premium Guides, News, & Discussion] abgrxenda:
still not working, is there a manual way to do this?

I ended up

1. booting the phone into TWRP to mount the system

2. from the CMD I run adb push to the four files in DRM/lib and DRM/lib64

3. the log files say something about chmod, but I am not sure what it is, so there is a missing step here

4. I Instal XperiaFIXFlash.zip

5. I Instal Magiskflash.zip

6. Wipe cache and dalvik

now I am rooted, but the camera is not responding, when I click (whether the camera button on screen button) the options disappear as it will take a photo but nothing happen, I tried to instal one camera app from the google store, it shows a green photo

the adb push for the DRM files was successful, but what is the next step after that,

I cannot find an answer within these 176 pages of this thread,

please help
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
I haven't read the install script, but CHMOD is for changing permission on a file. I suspect it would have to be changed to 644.

But with the right drivers in place the script should run this automatically. The only hurdle being to make the system file read/write (done in TWRP).

Any log files?
[Sony Xperia XZ Premium Guides, News, & Discussion] Kim Lu:
I had similar problem before, later I disabled "Secure start-up" feature (you can disable it by changing the screen lock setting), and xperifix worked as it should.