yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium Guides, News, & Discussion] DavidSnake:
Hello there!

This definitely seems the problem. So I should manually change the driver when in TWRP? From the google ADB to the sony driver?

EDIT: this was exactly what I had to do. I confirm that everything is working fine (DRM, root). So thank for pointing me in the right direction.

Thanks storm for the hard work, now my turn to help with some beers (too much coffee is not good for you!)

Maybe you should put this on the first page, it might help people like me (apparently there were some).

So in summary:

First you need to install the typical google usb drivers via the SDK Manager

For me this didn't work completely so I had to manually install the ADB driver at the end (install driver manually, I have disk, point to usb google driver)

Start the XperiFix process. When it fails to boot the TWRP automatically, boot manually via the instructions. Make sure system mount is checked (it never was for me) and the last option is unchecked (so it can read & write)

Go to device manager in windows, update driver, and do the same steps manually but now point to the sony usb driver.

Click OK on the instruction panel and now everything should be fine!
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
Yes, Windows chooses the wrong drivers by default. You have to manually add them.

Several people have said this video is very helpful, although I didn't follow it myself. I just spent several days guessing and swearing ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] shimeng:
help!!!!!

What should I do !?!?!?!：哭：：哭：：哭：

error: no devices/emulators found
[Sony Xperia XZ Premium Guides, News, & Discussion] Elwood_It:
Hello everyone, I'm planning to buy a xz1 compact (because I don't like the new xz2 compact and I need to change my phone) and I have a couple of questions regarding the drm keys for the camera.

Why is it necessary to apply this fix? I understood that when unlocking the bootloader, the drm keys are lost, but does this make impossible to use the camera or what is lost are only the proprietary algorithms that make photo processing for the camera?

Moreover, after applying the drm fix, how is the photo quality? I image is worse than the original, but does it get similar to the original if the modded google camera is used?

Thanks you
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
Several people have said this video is very helpful,

The DRM is fixed or broken, the camera is fixed or broken. There is no half way, poor pictures. There are no pictures (green) or perfect, everything works pictures. Perhaps you missed the explanation earlier in the thread.
[Sony Xperia XZ Premium Guides, News, & Discussion] Elwood_It:
Ok I did not understand that.

If I understood correctly this time, without the actual drm key (because this tool does not restore it) but with this fix, the sony camera is working like stock?
[Sony Xperia XZ Premium Guides, News, & Discussion] vingbombadao:
hi, i've already unlocked my phone bootloader and followed the steps, but the program dosnt recognize my phone, i've already allowed usb debbugging but when i turn off my phone, hold volume+ and connect the cable, my phone goes to fastboot mode, the led goes blue but the computer and the program still cant reconize my phone, pls help﻿
[Sony Xperia XZ Premium Guides, News, & Discussion] 4rz0:
Exactly that.

This fix "emulates" the DRM keys so that the software thinks they're still there.

There's no difference from stock in this case since the fix does not affect the camera functionality itself.
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
Yes

Several people have said this video is very helpful
[Sony Xperia XZ Premium Guides, News, & Discussion] vingbombadao:
hi, thanks for the help, it worked and now my device is being detected, i run the program and it goes all the way to 100% but my device is not getting rooted.. different of the video where in 20% the device oppen an program and u have to slide to the right to continue, my phone goes all the way in a black display, doesnt oppen anything, it get 100% appears a mesage saying that has done ok, but the phone dosnt get rooted , i downloadedthe twrp app and tried again, but no changes, the phone still is not rooted :/ du u have any ideia of what should i do? thanks
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
Unless you post the log files from Xperiafix it's impossible to know what's wrong. Possibly you need to change the USB ADB driver, as windows drivers break this.

Try assigning a Sony driver in device manager when the phone is connected and in recovery mode.
[Sony Xperia XZ Premium Guides, News, & Discussion] barcodevii:
Hi guys,

Long time ago, i root and fix the drm use old method very old because it was first fix from this thread and running well until today.

I would like to update it to Oreo and fix the drm (camera) what should i do for the first step? Currently i still in 45.0.A.7.137 (N).

Just update it via updater then fix use xprifix or any other things before?

Thank you.
[Sony Xperia XZ Premium Guides, News, & Discussion] vingbombadao:
i tried downloading the driver from sony website, but when i go to device manager , whit my phone in fastboot and search for de driver in the files downloaded from sony website, it says that the windows could not locate the files.. and how should i get the event log from xperifix? sorry, im trying but i have no much experience in this area and my english dosnt help me very much
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
The log files are in C:\XperiFIX

You need to unpack the drivers you downloaded. You have to click on them, open them and save them to your desktop.

Then connect your phone while TWRP is running. When you see the phone/device added in the device manager, use the update driver and add the Sony drivers.

You already have the drivers in place, which is the hard part. So yes, it should just be download the new 2.2 version. Follow instructions. Don't forget to manually put the phone into recovery when the Xperiafix says 'booting to recovery' , then swipe to allow system changes, mount the system folder. then plug the phone back in and let it carry on.
[Sony Xperia XZ Premium Guides, News, & Discussion] feek.404:
Logs are stored in the Xperifix folder on your C:// drive.
[Sony Xperia XZ Premium Guides, News, & Discussion] zegoo:
Your mistake or forgotten things to do was to really unlock your bootloader ...:D

Switching on OEM in Dev options is not the only things to do to unlock your bootloader. You had to go there.
[Sony Xperia XZ Premium Guides, News, & Discussion] vingbombadao:
I went to te site and made also this check

In your device, open the dialer and enter *#*#7378423#*#* to access the service menu.

Tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.

My phone is "yes" to bootloader unlocked.. Do i have to do something else? Also has in the site a spot to put my imei, i put it and get a unlock code, but there's nothing else that the site tells me to do.. Do i have to use this code somewhere?
[Sony Xperia XZ Premium Guides, News, & Discussion] zegoo:
You never did a bootloader unlocking ? :silly: "Yes" means that your bootloader's device can be unlocked. (Bootloader unlock allowed: Yes)

Do you understand the difference between "done" and "could be done" ? ;)

Be aware about what you are going to do. Look for a tuto which will explain you how to do it. So, you will need to know your IMEI. You'll receive a email from Sony with YOUR unlocking bootloader code.

Using fastboot, you could unlock your bootloader and after redone all about this thread ... Courage ! :eek:

Not complicated, just follow instructions steps on Sony's pages.
[Sony Xperia XZ Premium Guides, News, & Discussion] xueyaotianxia:
I see on Sony's website it supports XZP unlock now, does it mean it will not erase drm if you choose the XZP (if you have not unlocked)?

Here is the page: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/#unlock-code
[Sony Xperia XZ Premium Guides, News, & Discussion] zegoo:
For Sony XZ series, you'll loose your DRM keys, forever if you decide to unlock your bootloader IF YOU CAN, IF YOUR DEVICE CAN BE BOOTLOADER UNLOCKED. :(

For now, if we want to root our device, we need to have bootloader unlocked, but some devices can't have permission to unlock their bootloader. When you see Bootloader unlock allowed: NO" in Services Menu, you can't unlock your bootloader and can't apply XPERIFIX with success.

The FIRST thing needed to apply the HACK+MOD from [MENTION=8363210]sToRm//[/MENTION], is to get your bootloader unlocked.
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
Ok so my xz1 compact turned up today well happy does this tool work with the xz1 compact because i noticed that it says experimental next to it in the first post
[Sony Xperia XZ Premium Guides, News, & Discussion] barcodevii:
[edit] - now its successfully update to O.

when i run xperifix, my ADB Stop Working, any idea why? then the result i got green camera :|
[Sony Xperia XZ Premium Guides, News, & Discussion] MaNiAc_4LIFE:
If I could help you with my work, I would be glad if you give me a small thank you. This would also support further development for newer versions and other devices. Big thanks!

Hey do you have a BTC address I could donate too?
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
I have a XZ1 compact and flashed it last week.

It works perfectly, camera is exactly as before and no side effects. But do take the time to get the right drivers installed.

The progress bar on the app isn't reflective of the success of the flash, so take the time to look in the C:\Xperiafix folder for the logs and use them to diagnose what the problem is, or post them here

---------- Post added at 07:35 PM ---------- Previous post was at 07:33 PM ----------

I can't imagine that the drivers changed between your first flash and second. Did you swipe in TWRP to let system be writeable? did you mount the system folder?

Post the log files
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
Ty i will give it a go hope it works got my z5 compact done that was like hell to do

---------- Post added at 08:45 PM ---------- Previous post was at 08:42 PM ----------

So in theroy/perfect world all the drivers should b installed when i plug my phone in and download xperifix? Or do i need additional drivers?
[Sony Xperia XZ Premium Guides, News, & Discussion] barcodevii:
i did swipe right and month system folder. the problem is in the ADB. now i remember when i flash this phone for first time, i use minimalADB. its some kind of "portable adb" you should flash it manually via fastboot from twrp after we done with twrp continue to flash kernel.zip in twrp then root, DRMfix.

just 15 min ago i did same step but then i got bootloop. now i reflash my phone :)
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
Jus seen on my service settings bootloader unlock no wtf does this mean no root?
[Sony Xperia XZ Premium Guides, News, & Discussion] zegoo:
I'm sorry but for now, if you saw "Bootloader unlock allowed: NO", that means you could not unlock your bootloader and could not run XPERIFIX for getting root, RIC OFF and Permissive Kernel. :(

For now ... Should/Could be solved in the future ... :fingers-crossed:
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
There is absolutely nothing I can do if I contacted Sony would they do it

---------- Post added at 10:37 PM ---------- Previous post was at 10:34 PM ----------

And I'm pretty sure my z5 said no but I rooted that and one of my rays said no also rooted that
[Sony Xperia XZ Premium Guides, News, & Discussion] zegoo:
No, you are unlucky ...:(

When i bought my Z5C, I asked the vendor to open the box, switch on the phone, looking for allowing way to unlock bootloader. She was surprised about my explanations but she accepted that I did it because I told her I will paid only for a phone I can unlock the bootloader. :o

When I bought my XZ1C coming from Hong Kong, i had 50% risk to get a bootloader no allowed to be unlocked phone. I took my chance and I received the good phone.

In France, we have rights to ask to the vendors to open the box and testing equipment ... The vendors could say no but he will lose a customer ...

So sorry for you.

Sorry for my poor english ...
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Next update will fix some things in progress and logs. There will also be a new way to use XperiFIX with manual configs. So devs can test it with universal devices and firmwares. There will be a backtest for drivers with instructions for getting the right ones, too.

Please be patient. Will get it soon. ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
If I use wotan server to unlock the carrier would that work I think that's how I did my ray

Xz1 compact
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
error: no devices/emulators found

19-3-2018_19-16-43 ===> List /system

So run it again, this time when you restart into recovery, go into mounts and tick 'system', make sure read only is unticked at the bottom of the page. Then plug it back in and let Xperiafix do its magic.

---------- Post added at 11:24 PM ---------- Previous post was at 11:20 PM ----------

What happens if you put your IMEI number into the Sony unlock page, have you tried to follow the instructions?

Kingroot and Wotan server, I don't know, I've heard stories about IMEI numbers being cloned.

Edit: you've got to ask yourself if the reason you're trying to root your phone is worth buying a new phone for? Trying to flash custom firmwares may well end in tears.
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
If i put my imei no in it pops up with a code to enter
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
Shall i try the number see if it works
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Thanks! :) That's already noticed for the next update. I forgot to do a check after mount. Will be fixed then.
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
Where do i enter the code once its been generated?
[Sony Xperia XZ Premium Guides, News, & Discussion] Kim Lu:
https://youtu.be/OEF7ZAAVW00?t=3m34s
[Sony Xperia XZ Premium Guides, News, & Discussion] Hakkinen3K:
Hi all.

There's a new update for XZ Premium 47.1.A.12.119 March 1st security patch.:eek:
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
If i can get in to fastboot mode ie blue led does this mean i can flash it because iv got unlock allowed no but i just got it in to fastboot mode
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
Omg iv connected my xz1 compact to flashtool with bootloader unlock no and it is connected in fastboot mode does this mean im good to go ?
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
You need to connect via ADB and apply the unlock code or nothing will happen
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
U mean in flashtool ?
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
I think you should just leave your phone as it is.
[Sony Xperia XZ Premium Guides, News, & Discussion] the_rorshach:
Any chance on the next update
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
The sony website works different for me it wont load the same page on that video it just askes me to enter my imei no and subscribe to a news letter then i click submit it gives me a code and thats it on the video it directs you to a page telling u what u need to do and how
[Sony Xperia XZ Premium Guides, News, & Discussion] the_rorshach:
Is there a difference between the G8141 47.1.A.12.75 and the G8142 47.A.12.75? trying not to brick my phone
[Sony Xperia XZ Premium Guides, News, & Discussion] vendeta4:
If you flash G8141 firmware into G8142, your device will be use only one sim card, the next slot will be can not be use for sim card or SD card. Others function no problem

---------- Post added at 09:15 AM ---------- Previous post was at 09:07 AM ----------

Yes. But I still don't know if Xperifix works well with 47.1.A.12.119... does any one know?
[Sony Xperia XZ Premium Guides, News, & Discussion] Kim Lu:
Yes. But I still don't know if Xperifix works well with 47.1.A.12.119... does any one know?[/QUOTE]

Xperiafix 2.2 doesn't support 12.119,it shows an error. Hopefully it will support 12.119 at next update.
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
If i was to send my phone back to vodafone whats the chance they would send another xz1 compact with unlock allowed yes and does anyone know why some are and some not?
[Sony Xperia XZ Premium Guides, News, & Discussion] the_rorshach:
Having trouble gaining root acces tried 6 times

Tried to install supersu when recovery popped up during install. Stuck in boot loop.. help?
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
You need to post the logs from C:\Xperiafix, can't tell what the problem is without those.

---------- Post added at 01:25 PM ---------- Previous post was at 01:20 PM ----------

If you buy (or get on contract) a phone direct from a provider, they quite often disable unlock. They don't want the headache of people breaking their phone. Requesting another phone from them will probably result in the same.

Buying from a third party (Carphone Warehouse) and choosing a tarrif from a provider will get you a enabled unlock device, with no branded software onboard.
[Sony Xperia XZ Premium Guides, News, & Discussion] Castiglionais:
New update for XPERIA XZ premium 47.1.A.12.119

Hi [MENTION=236992]Storm[/MENTION] can we root this firmware with xperifix without problem, what do you think, i'll try ?
[Sony Xperia XZ Premium Guides, News, & Discussion] kylefinn002:
Used newflasher/xperifirm to get my xz1c to 47.1.A.12.75 (UK version), then used xpirifix app, which seemed to complete happily.

Camera still shoots green photos 90% of the time. What logs/menus should I check to get more useful information?
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
C:\Xperiafix
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
So if i contacted vodafone is my contract u sayin they would unlock it?
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
Im using minimal adb and fast boot cmd window its recognizing my phone in fastboot im puttin in command (fastboot -i 0x0fce oem unlock 0xthenmycode) and its saying failed remote command not allowed any ideas i dont know if im typing the right command as im copying off that video apart from my generated code
[Sony Xperia XZ Premium Guides, News, & Discussion] snake218:
I buy my phone locked carrier and "unlock bootloader not allowed" status. Went to carrier and requested to change status. It can be done by your carrier but you will have to agree to lose warranty. Afaik simlock need to be removed to, so ask about what are the policies about it
[Sony Xperia XZ Premium Guides, News, & Discussion] patrol-cz:
You are doing it right, but the result is negative because you are NOT ALLOWED to do it. You know about it so don't try it anymore, it will never work. The only chance is to get another device with unlock status "allowed" or let the carrier technicians to reflash the bootloader to allow it (if they can do it, I'm not sure).

Pavel
[Sony Xperia XZ Premium Guides, News, & Discussion] md1982:
I will get on to them tomorrow

Xz1 compact
[Sony Xperia XZ Premium Guides, News, & Discussion] kylefinn002:
Ok, it seems like the ADB driver was not setup quite right. I managed to get it working, and now magisk actually shows up as a new app and the log file looks like things were actually done.

I don't really understand how it works, but it seems like I need to individually associate drivers in windows for each boot-mode of the phone, and the TWRP one was missing, so none of actual xperifix stuff actually ran. Going to Device Manager, finding the unrecognized device each time, and "updating driver" with something I downloaded was the key.
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
When Xperiafix says 'booting to recovery', manually go into recovery go into mount and tick 'system', make sure the readonly option at the bottom of the page is unticked. Plug the phone back in and let Xperiafix finish its job.,
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
The error seems to come from multiple versions of ADB running.

Open a command prompt where you ADB.exe is (C:\Users\A User\AppData\Local\Android\Sdk\platform-tools) and put adb kill-server

then adb start-server and see if you get any errors.

It may well be a problem with your ADB installation

Reboot to ensure no instances of adb is running

Launch SDK Manager in Android Studio: Tools->Android->SDK Manager

Select the SDK Tools tab

Deselect Android SDK Platform-Tools item

Hit Apply

Check the on screen logs to make sure the un-installation succeeded and that the SDK/platform-tools folder is empty.

This should completely remove adb from your SDK.

Now re-select the Android SDK Platform-Tools item

Hit apply

Check the on screen logs that installation was successful.

Then try Xperiafix again.
[Sony Xperia XZ Premium Guides, News, & Discussion] the_rorshach:
You've been a great help, got it all set and rooted busybox installed running on rooted 8.0 oreo. The Emma software got me out of a soft boot loop for anyone who needs it. It's on the Sony Dev website next to the bootloader unlock. Off topic anyone know how to fix a Samsung tab that won't connect to adb? https://xdaforums.com/galaxy-tab-a/help/samsung-t-357t-stuck-boot-loop-device-t3765417
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
If you're trying to build the Samsung on the same machine as the phone, it won't work. Windows will be assigning the wrong drivers to the ADB or USB ADB. Try using a different machine that has never had any USB drivers on it before.
[Sony Xperia XZ Premium Guides, News, & Discussion] Castiglionais:
Anybody tried to root the new firmware (12.119) with xperifix, and patch drm fix ??? thanks guys
[Sony Xperia XZ Premium Guides, News, & Discussion] the_rorshach:
Your best bet is to downgrade to 12.75 and root that way. Use newflasher to and flash tool to downgrade

---------- Post added at 11:23 AM ---------- Previous post was at 11:22 AM ----------
[Sony Xperia XZ Premium Guides, News, & Discussion] Castiglionais:
I'm already on 12.75 rooted with xperifix, i want to download and flash .119 but i'm not sure that xperifix will do the trick
[Sony Xperia XZ Premium Guides, News, & Discussion] the_rorshach:
No it won't

---------- Post added at 11:33 AM ---------- Previous post was at 11:31 AM ----------

It says its not compatible when you try, right now I'm just trying to fix this remote play issue it won't work after root
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
Perhaps this topic belongs in a different thread