yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium Guides, News, & Discussion] the_brad:
okay, I rebooted to TWRP, checked mount /system manually and unchecked 'mount system read-only', then rebooted to fastboot and reran xperifix. Now it is able to push some files to /system but it is not rooted after all. See log.
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
Thanks for the quick response. I have checked and the ckb is active . How do i show the logs?
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Okay, looks like a bug with adb or drivers. As you can see in the logs, the files are pushed, but some of them got a connection error. The connection to the device is lost while pushing the files. Strange...
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
Appreciate some help buddy. My camera does not work at all.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Puh... did a extreme fast update now... haha...

Whooop!

v2.1:

- Updated Magisk to v16.0

- Fixed TWRP for XZ1 & XZ1 Compact (missing binaries)

- Changes in XperiFIX-Flasher (modified paths)

- Changes in XperiFIX software (breaks between operations)

- Changed the path for temporary flashable zips

- Added missing function for old CredMgr files

- Small fixes...

Download: https://www.xperifix.com/download/xperifix-latest/

300+ downloads so far... So maybe there are just a few users with bugs. But I will check them, be sure.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Download XperiFIX again (2.1), install and run it. Maybe it works for you.
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
:( it still does not work..how do i restore back to stock to retry the process again, it will be much helpful for a quick tutorial. Regards
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Please share the logs from XperiFIX program folder. ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
I cant see that folder on the root of the phone? am i looking in the right place?
[Sony Xperia XZ Premium Guides, News, & Discussion] iArvee:
Logs are still the same for me. :/ I wonder why I always get the error "adb: error: remote object '/system/vendor/bin/secd' does not exist". Perhaps this is only a G8142 problem? I read that it worked for some user on G8141.

Will attach the logs again just in case. :)

Sorry if this is too troublesome!

You can find it at C:/Xperifix from your PC.
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
I hope this is right for you pal.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Can you please check if your antivirus/firewall is active and blocks the traffic?

Which Windows version do you have?

To me it looks like there is something that blocks adb from various operations, because some of the files are pushed, some not (random)...
[Sony Xperia XZ Premium Guides, News, & Discussion] iArvee:
I turned off my Antivirus and firewall just to be sure and still the same result.

Currently on Windows 10 64 bit. I have another computer with Windows 7 on it, I'll try it on there.

---------- Post added at 08:02 AM ---------- Previous post was at 07:41 AM ----------

It worked!!!! I'm not sure if it's because of the drivers or the windows. I didn't use Sony drivers on my old Windows 7 computer. Instead, I just used the generic ADB/Fastboot drivers here on XDA.

System files pulled successfully, everything flashed successfully. Magisk installed, passed safetynet, and I can take camera pictures again.

Though I'm still really stumped as to why it doesn't work on W10...
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
I think I have found the bug and fixed it. The /system partition maybe wasn't mounted on some devices.

Please download XperiFIX (2.1) again, install and run it like before! It should work now!
[Sony Xperia XZ Premium Guides, News, & Discussion] iArvee:
Looks like that did it! Got it to work on my Windows 10 64 bit. Hopefully this also fixes the problems others are having. Great job!!
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
Well buddy, here is what i did, i flashed back to a stock rom with newflasher and it completed perfectly. I have reflashed your fix and now my camera works :D :D :D

On my previous install everything went just fine. I started to debloat the rom with titanium backup with success apart from 2 apps which would not uninstall (Koko Books & Prime Video) I did install NDR Utilities and when i ran it to boot into recovery i got a message saying "factory reset" Very weird this...Maybe this was the cause as i also noticed after running the app "OEM" in settings was highlighted again whereas when the fix is done it is greyed out saying bootloader unlocked.

I cant be certain but other users may have a similar problem.

I am not new to rooting but using newflasher for the first time was stressful for me.

Im sure i will have more questions in the coming days but my main one is.. Titanium backup should work just fine with this fix right??

PS I will be sending a donation your way for all your hard work, very much appreciated.

Thanks.
[Sony Xperia XZ Premium Guides, News, & Discussion] iArvee:
Attach the logs next time or use the

tag. :D

I had that same issue on my other computer and realized I forgot to install ADB drivers. Make sure ADB drivers are properly installed. Based on your logs it's not finding your device.
[Sony Xperia XZ Premium Guides, News, & Discussion] Mr.Vag:
For those who have problem with adb errors on windows 10, navigate to flashtool installed folder and you will find the drivers, reboot recovery (select number 7 "disable driver signature") install the drivers,accept the warnings and reboot.

This on will be fix many driver errors.
[Sony Xperia XZ Premium Guides, News, & Discussion] tolol:
i'm on old xperiafix can i just update magisk v16 zip, is it safe?
[Sony Xperia XZ Premium Guides, News, & Discussion] SilverGamer_YT:
IDK why the XperiaFix didnt recognized my device but my computer does it
[Sony Xperia XZ Premium Guides, News, & Discussion] the_brad:
I finally managed to get everything to work!

I'm on Win10 x64. I started with disabled drivers verification, then installed drivers from flashtool\drivers folder again (the 2 top items) and cleared the folder /TWRP on the internal memory of the phone. Then, I ran xperifix again and everything went fine, wohoooo :)

Thanks
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
i solved this problem and v2.1 is working fine and doimg the job

turn off ur device

hold volume + and plug the usb in the pc

enter to device manager and uninstall your phone driver

re-install the driver

you can see now that the application is starting doing the job [MENTION=5181762]10%[/MENTION] but your phone is turned off

unplug the usb and hold vulum + and replug the usb

phone enter twrp nd continue the job

wait till 100% and ur done
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
Am i able to install busybox using this fix? Regards
[Sony Xperia XZ Premium Guides, News, & Discussion] CoolXz:
Camera not working
[Sony Xperia XZ Premium Guides, News, & Discussion] karrouma:
all works fine with me without any problem
[Sony Xperia XZ Premium Guides, News, & Discussion] tummycj:
Feedback to those people who used this in their XZ1. Thanks!
[Sony Xperia XZ Premium Guides, News, & Discussion] patrol-cz:
Hi sToRm!

Thanks for developing this wonderful tool! I would like to use it as well, but I'm a Linux user, so I have to create a manual procedure for implementation. I'm asking here for a small consultation :).

The initial state is functional XZP G8141 ...5.49 release with your first DRMFix installed manually as well.

After looking onto the DATA directory of DRMFix 2.0, I plan to perform the following procedure (please correct me if I'm wrong and answer my questions, where applicable).

1) Copy xperifix.zip and drm shared libraries (.so) from DATA/DRM and magisk160.zip from DATA/ROOT to the SD card.

> QUESTION: Is the old recovery from previous DRMFix still usable with this one ?

1b) If not, copy recovery xzp-twrp.img from DATA/TWRP and flash it with the old recovery. If yes, skip this step.

2) Using newflasher, update to current ..12.75 release (omitting userdata, recovery partition, TA changes and partition specification).

3) Boot into the recovery.

4) Flash xperifix.zip.

> QUESTION: Is it necessary to prepare the flash (i.e. mount some filesystems or do other things) manually?

5) Using adb (still in the recovery), copy drm libraries into appropriate directories in /system/vendor.

> QUESTION: Is some permission/selinux context tweaking necessary for the files ? I plan to set the permissions to meet the rest of files in the directory.

> QUESTION: Where is patched secd ? Not neccessary to change it in 2.x ? So keep the original secd in place ?

6) Flash magisk160.zip.

7) Wipe Cache/Dalvik

8) Pray intensively :)

9) Boot the system.

Is this correct ? Am I missing some steps ? Or should I change their order ?

I would like to check it ASAP. Of course I'll post my experiences (and maybe a short tutorial for other Linuxers) here.

With regards,

Pavel
[Sony Xperia XZ Premium Guides, News, & Discussion] nkod:
same g8142 .75
[Sony Xperia XZ Premium Guides, News, & Discussion] Rastabude:
me too. camera not working g8141 also i do a new flash with emma i only can took green pictures. can anyone tell me how to get my camera work again? I cannot find the drm patch fix for xperifix in the folder? where can i download it.
[Sony Xperia XZ Premium Guides, News, & Discussion] CoolXz:
I returned to version 49 when the camera did not work.. Camera is green :(:( Please help
[Sony Xperia XZ Premium Guides, News, & Discussion] Rastabude:
same problem. made a complete reset with emma flash tool. and camera is still green. if I use xperifix then kamera doesn't work. if i push the camera button the camera stop and don't shoot a foto. need help, too.:)
[Sony Xperia XZ Premium Guides, News, & Discussion] bebup:
Camera working fine on .75 with XperiFIX 2.1.

G8142.
[Sony Xperia XZ Premium Guides, News, & Discussion] Rastabude:
have xperifix 2.1, too but not working. now i am trying it with antother firmware and telekom software instead of a custom rom. perhaps it will help but I don't thnik that there is differnce. g8141. camera is green on stock rom and with xperifix they stopped working if I push the camera button. no other cam app is working. tried other magisk version 15.3. and 14.5 and 16.00 everytime the same. looses my drm and the cannot be simulated or restored anyway at the moment I think.. very bad for me. I hope anybode has got a solution .I have tried to restore with emma and with newflasher 10.0. everything ist working fine. fastboot and flash mode are working and adb drivers and anything else are correct installed. have got win10 64 in testmode for this and no problems. can enter the twrp recovery after I uses xperifix .everything ist working only my camera not. Only can take a video if i reset my handy with emma and don't use xperifix. I hope you have got a solution for me to get my camera work again. If you have a link for the drm patch fix then I can try this. but this isn't in the xperifolder anymore. there are drm root and twrp folders. need help help help;) thanks a lot :)

frimware 47.1.A.12.75 shall i change it? is this the error? cam is still green or doesn't work
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Please share logs (XperiFIX program folder) so I can check what's wrong. Also please share more informations about the device, model, firmware,...

:)
[Sony Xperia XZ Premium Guides, News, & Discussion] noppoer2:
When i read the log i get the error. more than one device/emulator. And i can't get it fixed even when i restart the computer it wont work the error keeps comming
[Sony Xperia XZ Premium Guides, News, & Discussion] iArvee:
You need to reinstall ADB drivers, or make sure the ADB driver is installed properly. This happened to me and I forgot that I did not have ADB drivers installed.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Firewall active?

This bug isn't related to XperiFIX. It's a driver/adb issue.
[Sony Xperia XZ Premium Guides, News, & Discussion] CoolXz:
G8141_47.1.A.8.49 adb drivers installed works.. :) Thanks sToRm
[Sony Xperia XZ Premium Guides, News, & Discussion] _Matthew:
Latest update works on XZ1 G8341 for root but not DRM fix with the log saying "Unpacking the installer...Updater process ended with ERROR: 1" and TWRP showing errors in red too.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Will be fixed in the next update. ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] lGIKDk:
not working on korean rom

check please
[Sony Xperia XZ Premium Guides, News, & Discussion] LukeTheDuke97:
FINALLY DID IT!

Thank you so much man, I tried with disabled firewall and updated adb and it worked!

Thanks everyone that contributed in this thread and thank YOU Storm, you are the man :fingers-crossed:
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
You can see XperiFIX 2.0+ in action here:

[YOUTUBE]XeYlIHnSuOM[/YOUTUBE]

The next update will maybe come up today, if the new flasher works on XZ1/c (actually in testing).

Whooop!
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
To all XZ1 and XZ1 Compact users:

XperiFIX now supports your devices! You can download the current version (fixed) again, install and run it.

https://www.xperifix.com/download/xperifix-latest/

Please report if it works for you!

Cheers!
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
Can i bump my post with regards to installing busybox for use with lucky patcher etc, I installed the magisk version from the repo..it installed fine but my phone froze on the xperia logo so i had to recover from TWRP, regards
[Sony Xperia XZ Premium Guides, News, & Discussion] Hakkinen3K:
I'm crying .... can i now root my XZ Premium G8142? :victory:
[Sony Xperia XZ Premium Guides, News, & Discussion] CoolXz:
Can i update 12.75 ? (phone update manager notifications 12.75). I am using 8.49.
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
You can, but not OTA. You have to use Xperifirm to download the firmware and Newflasher to flash it.

To keep your files, just delete the userdata_xyz.sin file from the firmware folder. But you should backup all your data and apps to an external SD card before. Also you should disable the lock screen pin or gesture before flashing.

After flashing the firmware, run XperiFIX again and you are done.
[Sony Xperia XZ Premium Guides, News, & Discussion] CoolXz:
Thanks.. Newflasher is flash tool ?

---------- Post added at 10:31 PM ---------- Previous post was at 10:00 PM ----------

I am download from 12.75 from xperifirm but not ftf file. :( Flashtool is not working
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
No. Search for Newflasher v10 here on XDA. ;)
[Sony Xperia XZ Premium Guides, News, & Discussion] CoolXz:
I do not know to use newflasher :)
[Sony Xperia XZ Premium Guides, News, & Discussion] whoosename:
It's explained here: https://xdaforums.com/crossdevice-dev/sony/progress-newflasher-xperia-command-line-t3619426
[Sony Xperia XZ Premium Guides, News, & Discussion] CoolXz:
Thanks friends :) Great :)
[Sony Xperia XZ Premium Guides, News, & Discussion] 7aMooD-DmC:
Hi , i used a password in my phone and things became encrypted , and used the tool multiple times and now it says that Bootloader must be unlocked :( now i will try to reflash my system cause now it won't boot and was refusing to do a factory reset .

Also when the tool goes into TWRP it first asks me to enter Password but then it switches to ask me to allow modifications then it flashes and shows a lot of errors then the tool get's stuck at 90% and the recovery get's back to main menu and it shows "Internal storage 0 MB , SD Card 110056 MB" . looks like that i caused troubles for my self </3 .
[Sony Xperia XZ Premium Guides, News, & Discussion] whoosename:
Download your rom with XperiFirm and flash with newflasher. In case that the flash won't work and you're on Windows, try Emma: https://developer.sony.com/develop/open-devices/get-started/flash-tool/download-flash-tool
[Sony Xperia XZ Premium Guides, News, & Discussion] JackyJacks:
The topic says DRM fix/restore, does the restore parts actually works on XZ1/XZ1C ?

I thought this was not known how to backup the keys (then to restore).

If there's just the fix and not the restore, please indicate this in the OP.
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
It doesn't say restore TA or restore keys. It says restore DRM function, which it does.

Perhaps it's a translation thing?
[Sony Xperia XZ Premium Guides, News, & Discussion] Mutex88:
Nevermind, for some magic reason it worked after I used XperiFix again this morning :fingers-crossed:
[Sony Xperia XZ Premium Guides, News, & Discussion] numios:
Green Photos after the FIX was finished successfuly

thank you for your hard work, however i encountered a problem with the camera on G8142

My firmware is the latest 47.1.A.12.75

i did everything according to the XDA instruction and the video, but my camera takes green photos now. When Xperifix showed 20% of the booting recovery and the count was finished a new window in the app appeared and asked me to push Volume UP button together with Power button until the device vibrates three times, so I did all according to the steps in the window and the Xperifix continued work and finished saying that eveyrhting is fine now. However I encountered a problem with the camera now. How to fix the problem with the camera?
[Sony Xperia XZ Premium Guides, News, & Discussion] 4rz0:
You have to provide logs in order for people to be able to help you.
[Sony Xperia XZ Premium Guides, News, & Discussion] numios:
where i can find the logs?
[Sony Xperia XZ Premium Guides, News, & Discussion] _Matthew:
txt files in c:/XpiriFIX
[Sony Xperia XZ Premium Guides, News, & Discussion] numios:
i found the logs. where I should send them ? it i impossible to send it here
[Sony Xperia XZ Premium Guides, News, & Discussion] _Matthew:
Either copy and paste into here with code tags around it or you can attach the txt files.
[Sony Xperia XZ Premium Guides, News, & Discussion] _Matthew:
Looks like a problem with ADB drivers. Try reinstalling them and disabling firewall.
[Sony Xperia XZ Premium Guides, News, & Discussion] numios:
do you mean i should try to use XperiFix app once again after reinstall the adb drivers and close firewall?
[Sony Xperia XZ Premium Guides, News, & Discussion] _Matthew:
correct
[Sony Xperia XZ Premium Guides, News, & Discussion] numios:
which driver i should reinstall?

A) ADB interface driver

B) Bootloader interface driver

C) Compatible ADB interface driver

which one?
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
So i have my g8141 rooted with this awesome fix :) and a vast majority of my apk's installed. Just a couple of root only apps to go.

I am trying to install busybox for ndk from the repo through magisk so i can use certain apps. I always get boot loop when i have installed it via magisk or twrp. Here is the log i saved so hoping someone might know what i am doing wrong.

- Copying zip to temp directory

- Installing Busybox_for_Android_NDK-1.28.1.zip

mount: can't read '/etc/fstab': No such file or directory

mount: can't read '/etc/fstab': No such file or directory

mount: can't read '/etc/fstab': No such file or directory

Busybox Installer Script

by osm0sis @ xda-developers

Mounting...

Extracting files...

Archive: /data/user/0/com.topjohnwu.magisk/cache/install.zip

inflating: META-INF/com/google/android/update-binary

inflating: META-INF/com/google/android/updater-script

inflating: README.md

inflating: busybox-arm

inflating: busybox-arm64

inflating: busybox-mips

inflating: busybox-mips64

inflating: busybox-x86

inflating: busybox-x86_64

inflating: module.prop

inflating: META-INF/MANIFEST.MF

inflating: META-INF/CERT.SF

inflating: META-INF/CERT.RSA

Installing...

Using architecture: arm64

umount: can't unmount /dev/tmp/magisk_merge: No such file or directory

Using path: /dev/tmp/magisk_merge/busybox-ndk/system/xbin

Cleaning...

Creating symlinks

Thanks in advance for any help and another shout out to storm.
[Sony Xperia XZ Premium Guides, News, & Discussion] Didgesteve:
Have you thought of posting this on the Busybox thread?
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
I didn't wanna just yet as it might be related to the fix im not sure as i have not used this combo before. Correct me if i am wrong... and i will make a post over at busybox you said. cheers
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Please don't ask for LP, because it's forbidden on XDA.

If you need Busybox for various apps that search it on standard locations, just copy busybox to /system/xbin for example. No need for an installer or something like that.
[Sony Xperia XZ Premium Guides, News, & Discussion] A1pha Asy1um:
I have edited my post and thanks for your info. Please remove the term from your quote, regards
[Sony Xperia XZ Premium Guides, News, & Discussion] mar10777:
Hello Storm: great job! I exspected impatiently your fix for G8441. It was easily done and works perfectly! I happily donated to you
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Nice to hear that. Thanks! :)
[Sony Xperia XZ Premium Guides, News, & Discussion] iArvee:
ADB interface driver. If it doesn't work, try the others. :D
[Sony Xperia XZ Premium Guides, News, & Discussion] numios:
the Bootloader interface driver was used to unlock the phone via Fastboot. it is better if i get an exact reply to my question.
[Sony Xperia XZ Premium Guides, News, & Discussion] Hakkinen3K:
Hi, question: Is necessary (or mandatory) to have Magisk installed?

Thanks.
[Sony Xperia XZ Premium Guides, News, & Discussion] derjaeger:
[MENTION=236992]Storm[/MENTION]

Hello Storm, looking at the many logs and posts of these last days, it appears that there might be diffuse problems with drivers/firewalls which prevent xperifix correct operation.

I suggest it would be really useful to state in OP which are the standard drivers you officially support and test xperifix on, so that everybody could install the same ones and one variable less of the equation is left to users.

Thanks to you, I am getting closer to unlock my XZP :)
[Sony Xperia XZ Premium Guides, News, & Discussion] Niko of Death:
For some reason I can't find any way to get mtp to work in twrp. In device manager MTP USB Device appears working, but I can't access it at all. I've tried uninstalling/reinstalling all the drivers I could, what should I do?
[Sony Xperia XZ Premium Guides, News, & Discussion] numios:
i did everything as you suggested and it was fixed successfully this time! the camera works fine now! thank you a lot! i will support this project!
[Sony Xperia XZ Premium Guides, News, & Discussion] sToRm//:
Update: https://www.xperifix.com/2018/03/06/update-2-2-xz1-and-xz1-compact-update/

v2.2:

- Modified TWRP for XZ1 & XZ1 Compact devices

- Added fixed temporary TWRP images for recovery boot

- Added missing device (model) keys

XZ1 & XZ1 Compact users:

Please try the new version and give feedback. Thank you!
[Sony Xperia XZ Premium Guides, News, & Discussion] dhchris:
On XZ1c XperiFix is working fine, only at first boot into TWRP, I get stuck at Sony Screen -> had to boot into Recovery manually.

Then XperiFix starts its work.

Camera is working!

Big Thanks and :highfive:
[Sony Xperia XZ Premium Guides, News, & Discussion] numios:
after i successfully rooted my xz premium i want to enable Daydream VR compatibility. could you share some information of how to do it? i tried to enter a command to enable it, but it does not let me because the system is read only.