yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, Sir. ?

Even if it is the wrong firmware you could flash the right one afterwards.

(Of course remove the userdata.sin)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] gouster3:
Oh, ok... i didnt knew that u have already released stockkernel installer for .126 fw.

BTW, twrp ramdisk is yours.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You could update to my 126 ramdisk, if you want to integrate my work :silly: ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
When do you expect we should be able to upgrade security patches?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
https://github.com/sonyxperiadev/bug_tracker/issues/261

:fingers-crossed:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] gouster3:
Your stockkernelinstaller does flash unmodified .126 kernel (u didnt modified it),

and your twrpinstaller (with twrp ramdisk patch) includes all your work.

Right?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes :silly:

Of course I could modify it, so I could get rid of the touch drivers, but doing that for every device ever month, takes quite an amount of time.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] gouster3:
This solution is better. and it can be easy used on any kernel (just extracting boot.img from boot.sin got fomr actual firmware and flashing your ramdisk patcher over it.)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you, But then I wouldn't need to update the touch drivers and would save storage space :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Third party apps are getting screen pictures.

Standalone camera apps (stock and third party camera apps) only get a black preview.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Matmani:
Beginner's question

I followed the process and I am on version 51.1.A.11.51 with twrp and xperifix everything works well for 1 week (camera, applications ...)

If I go to Pie (the version you shared .84) through flashtool do I keep the camera or not?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Ok so the twrp img file i used won’t work on my xz2c (h8314). I downloaded the twrp img from:

Sony-android9-twrp-universal-2018/11/16-

Twrp-3.2.3-0-xz2-xz2c.img.gz

I then extracted it to get the actual img file. So what do I do? It booted up twrp just fine except I can’t swipe or click anything on it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Matmani:
[/COLOR]

What are the choices I have to check?

Thanks

[IMG="ft"]https://photos.google.com/share/AF1QipO6y3SQPVg2LEGcdMfFNNjabcUPnpZeBFAm1f_ji_FHPGxLYhGcfjB0XNYI2Ebq4Q/photo/AF1QipPVjTGs8RLCGTbq65MI2I-2RJIwhHyNUe5ZxQoJ?key=Q2Zsc0twN0c5enktajBBc2laYkdKVTZva2toSEpn[/IMG]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Thank you, reflash and see what comes out
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] 695235079:
if i boot system than boot to bootloader and flash the twrp,i can not boot it.

if i flash stock rom than boot to bootloadet and flash it,i can boot to twrp.

So if i need boot to twrp,i should flash the stock rom again.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
I reflashed it and flash boot.img and boot boot.img. Then I still get into battery charging mode.

Maybe I should unplug the USB at some proper time?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] 695235079:
I am trying to catch log.

---------- Post added at 03:31 PM ---------- Previous post was at 03:23 PM ----------

https://www.picb.cc/image/JAnb2G

I think it can not connect with pc.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you!

That's sad.

I hope so much the September update will update our bootloader to the right version, too.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Yeah, here's the same.

The only difference is you can enter it further, I can only get TEAMWIN logo.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] 695235079:
Thanks for your work.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
We will get success in the future. :)

Thanks for your helping!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] M-Rom:
You can look at this file init.sony-device-common.rc
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you for your response, but what should I see there?

The problem at the moment is, that this device need a new bootloader.

The current one refuses to boot anything expect the stock bootloader.

Also modifying the stock one causes easily the device to refuse the boot process without the ability to receive a log.

Jerpeleae told us, that the September stock update should be shipped with the new bootloader.

So the XZ2 and XZ2c can be an official part of the open devices project.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] janjan:
Ummm...so it means it work?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] 695235079:
No,it just can boot.?Let wait for it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] janjan:
If someone give me a complete log, then I will look further on it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] 695235079:
But it can not connect with pc.

---------- Post added at 06:27 PM ---------- Previous post was at 06:08 PM ----------

https://www.picb.cc/image/JAnTB6

I also can boot aosp recovery-stockkernel.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Weird bootloader. :eek:

Does a factory data reset help?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] 695235079:
emmm，i do not have a try.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Nice!

https://github.com/sonyxperiadev/device-sony-tama/pull/11

https://github.com/sonyxperiadev/device-sony-tama/pull/12
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] 695235079:
Good news！
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] jamesys:
XZ2-akari-H8266-51.1.A.11.26.zip missing

XZ2-akari-H8266-51.1.A.11.26.zip link is not available on MEGA
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I wouldn't use it.

The TWRP for the XZ2 project is on hold until Sony releases the needed bootloader to boot it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Try the last one from the 10. Month.

Some devices doing some weird **** with touch drivers.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
What do you mean?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Matmani:
Do I have to check apps_log / userdata or cut-reset in flashtool??
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Use newflasher instead of flashtool
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
ok so i got a huge ISSUE!!!!

i got android 9 root and camera working just fine so i decided i can swap my sim card in now because i ready to use my new sony phone however i only get verizon service for a brief second at start up and for a brief second after using airplane mode...

could the root and/or older firmware make it to where i cant get cell service from verizon towers. im on tech support line and theyre having trouble getting my phone to stay connected.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
You have only issues that you post here, kinda strange and you followed exact the steps ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's not real true.

But this bug has nothing to do with TWRP.

https://xdaforums.com/xperia-xz2/help/tested-verizon-support-phone-t3785635
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
:good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Yeah I’m not sure what’s going on it with it. Is the firmware you modded the US variant? Maybe that could be the issue??? Idk what else could cause phone to not pick up service or be able to activate sim.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Matmani:
Perfect ! Now I'm on the pie with functional camera

I want to reinstall TWRP I am stuck at the fourth step -TWRP] flash stockkernel-installer.zip- I can not find the file on the SD card nor internal storage.

I copy all the files on internal storage and SD I find the file Magisk but not "stockkernel-installer.zip" nor "twrp-installer.zip"

I use the files from the folder android_9 / universal-XZ2 "A.3.84"

Have you ever had this case?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Universal has twrp installer. And the xt2 fder has the stock kernel installer
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Of course you can use xperifirm to download the firmware of your cousin try.

And I did not modify anything in my uploaded firmwares. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
When you are in the twrp you can use adb sideloading to install the files.

Then you don't need to find the files on your phones because the phone takes the files from the computer.

Just google it.

I had a similar problem. I didn't have a SD card so i copied the files into the internal memory and didn't find them anymore. So i install the files via adb sideloading.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
So which country one did you use with your mega thread? Maybe I need to find a nov version of a US one.

---------- Post added at 02:06 PM ---------- Previous post was at 01:53 PM ----------

So which country one did you use with your mega thread? Maybe I need to find a nov version of a US one.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Should be Central Europe . :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
****ing bad news.

https://github.com/sonyxperiadev/bug_tracker/issues/261

Unlock the bootloader only with the December update or later!

**** Sony communication.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Fs00:
Problem with latest TWRP imgs

Hi,

I've just successfully unlocked the bootloader of my XZ2C with the latest firmware (.126). Then I tried to install TWRP as explained in the third post, but when I ran the first command (fastboot flash boot twrp.img), I received this output:

$ fastboot flash boot twrp-3.2.3-0-xz2c.img
target reported max download size of 536870912 bytes
sending 'boota' (33760 KB)...
OKAY [ 1.064s]
writing 'boota'...
FAILED (remote: No such partition.)
finished. total time: 1.065s

I suppose that there's a typo somewhere in the img file... shouldn't be "boot" instead of "boota"?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Upgrade to r28 fastboot / adb and run ever fastboot command again. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
To bad bro :(

Then we should use my camera fix on fw 126 with the vendor of 84, there are holes then because have root so we have already holes in that case.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Is here any way we can try getting the firmware for the USA variant. I think this may be why my phone isn’t working.

---------- Post added at 04:39 PM ---------- Previous post was at 04:34 PM ----------

Also wouldn’t xperifirm not work because it would be an updated patch and not November??? Or just to test theory out couldi just install the us firmware to see if service returns
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] skolas35:
Is it now possible to decrypt filesystem in android 9?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
No, root doesn't make holes.

Magical could have holes. If something workaround its root question
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
We have root so thats a risk to, admit that ;)

But i hope we can grt a fix soon because its f#cked u and if they told it earlier then i never unlocked my bl -___-"
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
In my opinion root is only risk when you don't know how you can responsible with it. Then yes root could be risk but normally no apps run with root rights unless you allow it.

So missing security patches are more worse than root. But that's my opinion.

And yes i understand you. The situation with the camera isn't good.

Sry for off topic.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Dxue:
just wondering, what guarantees do we have that sony won't be pulling another stunt like this in the future? I'm glad i was too busy to unlock the phone in hindsight.

Good thing there is a fix, shouldn't sony be able to implement this fix in their future updates?

I like the phone, but this 'accident' isn't really assuring to unlock the phone...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, but make the existence of sudo a security hole widely used in the Linux Desktop?

Of you deny a bad root question, then the risk of butthurt virus action is low.

Or the rest, we have the monthly security patches

These fixed holes can be used without a root for the end-user. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Ok. So using xperifirm I managed to get a US firmware for my device. Good news Is I have a working phone on Verizon towers now. However bad news... I can install twrp but that’s it. I make it to where I install kernel and twrp installer but after that he phone hangs on Sony logo when booting. So do I need to use different files now that I’m on a different firmware from anyone else using your mega folder for downloads??

I’m currently using

Phone: Xperia xz2 compact

Model: H8314 (single sim from Best Buy)

Firmware: 1313-0031_52.0.A.3.84

Android: 9

Security patch: November 1, 2018

Kernel version: 4.9.112-perf+

#1 mon oct 22 19:50:50 2018

So anyway for me to get a clean systemless root still with this going on?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Matmani:
I put "stokkernel", "twrp", "magisk" in the same folder.

But when I restart into recovery / twrp I see only "magisk"

I will try adb sideload

Thank you
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] masoxik_cz:
I have working phone again. The malfunction was on the Main Board. It was replaced under the warranty by a service center.

But now I am afraid to do root process again. Because problem with GSM module appeared immediately on the first boot after rooting.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You executed the vbmeta commands again?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Yes I did everything step by step
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Did you use the folders with the files from November?

And mayby the us Version isn't fully compatible with the files which MartinX3 provide.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Yeah that's my guess. Different firmware so I'll be waiting a tad bit longer for root capability.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Like the Chinese firmware.

While Honkong and Taiwan are working.

Something is different in their bootimage / kernel.

Maybe censorship & policing stuff? :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] laoli0913:
I think so. Or it's hard to explain why it can't boot in CN firmware
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shoey63:
A couple of observations.

- After using the paid for "fix" on Oreo, it persists after a clean Oreo flash, which should actually delete it.

- If you subsequently flash latest pie, and then flash only vendor partition from .84 pie firmware, it still persists - camera works with no black preview. (kudos to [MENTION=2902434]Pandemic[/MENTION] for noticing this)

So what vendor files in. 84 firmware are responsible for keeping the camera working?

Maybe it is only one file or module.

It would be good if [MENTION=8363210]sToRm//[/MENTION] could look at it when he gets back to his desk?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] aragorn771:
Hi MartinX3, maybe could you update post #3 to show how to go from Oreo to Pie when rooted/drm fix. Not that I have the DRM fix...I have a driver issue apparently. But it'd be helpful to have ALL instructions in one place.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Actually, only the camera preview persists, the denoise algorithm does not.

The fix likely modifies smthg in the TA partition which persists.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just install pie like any other stock update.

Nothing special :silly:

I uploaded the November firmware which is the last working with TWRP, too.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Huh so there is no working twrp for fw 126 ? :(

Correct me if i am wrong or missed something, its in the megalink right under twrp (xz2) fw 126 ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Well i'm on fw 126 and twrp starts with no problems by me?.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
My TWRP works magically too with 126 :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
HELP

I'm stuck and need some help please,as you can see from the attached image i want through most of the process of installing TWRP on my XZ2,I've tried it twice,the first time flashing the vbmeta failed (something about too many lines,it mentioned lines) and thought i was in trouble,but phone loaded up told me data was corrupt and asked me to either retry or factory reset,retry did nothing so i reset and everything worked fine.

I then tried everything again and got the error in adb that you can see in the image on the attached link,which caused my phone to soft brick with error "Your device is corrupt It cannot be trusted and will not boot".

Luckily after a lot of panic i managed to get it working again by flashing with xperifirm and flashtool but i still want to get TWRP installed,so i can flash safely after.

imgur.com/a/95tRHUV

Thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] boringpie:
Have you installed the Android drivers by disabling Windows signature?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
Hmm no i haven't disabled Windows signature,but the drivers seem to be working fine otherwise adb wouldn't work right,drivers seem to be in order:

ibb.co/1vvdXDV
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
You need fastboot as well. So check whether your phone is recognized in the fastboot mode,too.

So boot into fastboot mode with your phone and type this command:

.\fastboot devices (or if it doesn't work only the "fastboot devices" part)

When you see your phone in powershell window then you go can to the next steps.

And what market did you use when you download the firmware? In my case i have the german or central europe Version and twrp works by me. But i heard that for example the us version or china version makes trouble with the files from MartinX3 (probably they aren't completly compatible).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
Hi,so it does show up when show fastboot devices,maybe i'm using wrong files,for twrp im using Android_9TWRPXZ22018-12-10_23.11+2.00_52.0.A.3.126 from mega.nz/#F!1I1kBaYa!4AdkR3f-dcxGV9dCOl_bFQ!RNkAgQpC which was posted on forum on 26th July,i've noticed there are updated posts on forum since then but no download links to any new files,and the version is the very latest android version so not sure.

Maybe i should download from AOSP folder i just found instead?

youtu.be/QTR7N6WEaZo
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Corrupt means you did not used voldown + power correctly to boot TWRP in the 126 December pie firmware for your xz2. :)

(Which is not USA or CHINA)

So after a few bootloops it will shutdown your phone :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
So what have i done wrong,i flashed twrp then the extra file,then i unplug phone (phone is then off) i then hold the volume down and then power button at same time at which point i get the will not boot message.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You hold power and cold down until you see the "unlocked" bootscreen logo?

You flashed vbmeta with exact the same parameters?

You flashed the latest 126 firmware with newflasher?

Everything including TA files?

(Userdata.sin can be deleted)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
Ok so phone starts on latest firmware,

Then I did these 2 and was successful (cmd said it was anyway):

ibb.co/NL37z27

Then unplug then hold volume down and power but no twrp load,just the "Your device is corrupt It cannot be trusted and will not boot" error.

So then i have to flash the latest firmware using flashtool with firmware from xperifirm to get phone working again.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you unlock it with Oreo or with the December pie patch?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
Hmm think i'll have to try again when i can borrow a phone to record what i'm doing on my phone :(

It has been on pie while i unlock bootloader and try to install twrp (and twrp was downloaded from the folder matching my firmware)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
I'm just a little irritated from your picture.

I see that you flash 'twrp.img' but when i download the twrp file from MartinX3 folder and unzip it i get the file "twrp-3.2.3-0-xz2.img".

And this file you must flash. So the command which i used when i installed the twrp on my xz2 was the following:

fastboot flash boot twrp-3.2.3-0-xz2.img

For me it look like you flash some other twrp image but not that one which you get from MartinX3 folder.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Can someone confirm that a phone unlocked with December pie patch can't boot TWRP?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
Oh yes sorry,it did start as twrp-3.2.3-0-xz2.img,i renamed it to twrp to make it easier to follow the instructions,and shorter to type in cmd.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Ah ok.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You did confuse me, but I am happy that it works now :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
So no idea what is going wrong then,surely renaming the img and using that img name can't be the issue,but i have the same firmware as dhacke:

ibb.co/NxqqTSj
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
Also if i do manage to get TWRP to install and load properly for step 3,i need stockkernel-installer.zip on my phone right to flash directly using twrp? Also do i need a copy of the twrp zip on phone as well for step 4? (flash twrp-installer.zip) and which twrp zip am i meant to use,does it mean the gz containing the image?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, unzip the gz stuff :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
Same crappy error on phone again,so frustrating,anyone else have any insight/ideas in to whats going wrong?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] alexandroid5:
i had that device corrupt error when i forgot to unzip the files. After you download all the files, use 7-zip to unzip then flash the files. If your phone isn't being detected in fastboot, make sure to download the right drivers, i believe i found them on Sony's website.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] JimJam1991:
I unzipped them using winrar,is that an issue? and i'm using google drivers from sdk not sony drivers but my phone does get detected fine as fastboot device.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I use 7zip :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mimi73:
i have xz2c can i unlock bootloader in pie 52.0.A.3.126?? and intall twrp and root it... with Camera Fix For Android Pie On FW 52.0.A.3.126 or should i have xperifix (drmfix)??????
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Unlock it in 126 PIE and you don't need a DRM fix for basic camera quality. :)

But the anti noise function is out of order then.

For this, we need to wait for PIE TWRP.