yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] hary232:
Hi Martin,

Can you give enlighment to me , how can I fix build issue:

1. hardware/qcom/gps/sdm845 exists

2. Libloc_core missing

Thanks before
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If you can give me a log?

I will continue working on this evening.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] hary232:
Not for now, since I reconfigured the environment to build Pie (which failed at 99% due to lack of RAM, anyway).

I'll post it once I have something to share.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's good.

But remember, you shouldn't use pie for now.

There are more bugs, than in Oreo 8.1.

https://github.com/sonyxperiadev/bug_tracker/issues?utf8=✓&q=is:issue+is:open+Android+9

Even the touchscreen does not work.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
so still no twrp possible until xz2 is added in xperia open source program? or you Will try it?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I will try to work with the stock kernel in my next free time.

Because only this one is stable.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
I can't wait to get TWRP on stock kernel ?

Also do you plan to build something else than aosp?

ABC rom by [MENTION=2095315]ezio84[/MENTION] would be awesome ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I can't wait, too :D

I am not a C++ developer (only java, c#, python, javascript, html, etc) , so it would end in chaos :)

I work as DevOps, so I am good in searching and reporting bugs, stick things together, administrate linux, provide self compiled stuff and find a solution to everything, where I don't need to write my own c code files. :P

I hope there are guys, which will provide custom roms.

In the future I will only provide TWRP and AOSP. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
16.09.2018
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
PS: I can't work on TWRP, because the kernel sources from the last version are not online.

Maybe someday next week.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
Kernel is nearly always identical each month, source from previous build should work.

I've a question, why are you doing a link between twrp and kernel? TWRP is supposed to work without any kernel since we can flash kernel in recovery. Also I've been able able to use TWRP on my previous device with wrong phone kernel.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I hope the August Kernel will be compatible with the September System Version.

I will update the device sources for TWRP and recompile the kernel later today.

The XZ2 is a A/B device.

That means, there is no recovery partition anymore.

TWRP is now part of the boot/kernel partition. :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
Thanks for the explanation ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
I assuming same steps as before. Or has it changed since September?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Eeerrrrrm

Good question

I update the installation steps every time they change on the first page. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Wasn't there something I had to delete to ensure all my apps, photos and such aren't deleted?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
A fullwipe was only required of you switch to AOSP or another custom ROM :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rossxander:
Hello again everybody.

First of all, sorry if my questions are redundant.

My XZ2 is still on 8.0.0 (1st September 2018), build 51.1.A.11.51.

If I want to upgrade my XZ2 to Pie, I presume I need to use Flashtool64.

My questions are:

-What version of Pie I need to install

- If I use Flashtool, I guess it will erase all the phone (not a problem), but, it's for twrp and the drmfix, do I need to reinstall them ? Because let's be honest, it was hard for me the first time ^^
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
No pie drmfix

If you delete userdata.sin before flashing all is fine

Just use latest PIE

But fullwipe is recommended

I use titanum backup for backups

But may switch to "migrate" in the future

Happy upgrading :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rossxander:
Oh it's cool if we don't need a drmfix for the camera under Pie.

I guess I delete userdata.sin with twrp ^^
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It's a file to flash with newflasher [emoji14]

And the low light noise reduction algorithm my not work under stock. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rossxander:
O, it's a bad news for me. I guess I will stay on Oreo after all :/
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Or wait until the custom roms getting a feature complete camera.

OEM v8 should bring some upgrades. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] alexsmel1:
Hello! I used to install the firmware flash_scripts. After flash for instructions TWRP. flash TWRP-xz2 ,reboot, flash magisk and gapps. After that, the phone is constantly reloaded on the logo. What's my mistake. Please help me.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
rom, version, etc?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] alexsmel1:
Rom 2019-02-21_23-04-16_sony_aosp_xz2, Recovery 2019-02-10_11-32-16_sony_custom_rom_twrp_xz2, Xperia xz2 H8296
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
did you use OEM v6 six february

not 7 seven march?

we need a new build for 7

and did you fullwipe your phone before switching from stock to the custom rom?

and did you installed and booted the last PIE stock firmware once before all?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] alexsmel1:
I apologize! I wrote the wrong topic. This is related to AOSP.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
30.03.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
no problems. :)

At least no twrp problem

I tried it in februar with februar aosp, februar twrp, OEMv6six and a fullwipe.

It did work :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] alexsmel1:
Do I need to flash oem v6 instead of v7? Right?))
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] alexsmel1:
ok i'll try)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Hingbong:
update 0330twrp from 0325 via twrp,and get stuck on twrp logo
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Anyone else have this ?

I did not tried it but curious :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Fixeed. uploading now a rerelease. :)

the mtp / touch bug is 99% fixed.

If you boot twrp with connected usb cable. please disconnect it.

The touch will come back shortly. And then you can reconnect the cable and everything is fine.

Or restart it with disconnected usb.

Or deactivate and activate the screen with the power button.

You'll see a white flashing screen and then the touch works.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
31.03.2019

A touch/mtp bug

To fix it:

Don't start TWRP with connected USB

Disconnect your USB while in TWRP

Deactivate and activate the screen with the power button. The screen may become completely white for a short time and the touch gets fixed.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nikkdib:
to update the firmware with newflasher do I have to put all the newflasher files in the firmware folder and start the .exe right? and to update without losing the data which files should I remove from the firmware folder? thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
The newsflasher.exe file in the unpacked stock rom folder is enough. Then start the exe.

Delete the userdata.sin file.

But i would recommend to make a wipe (so with the userdata.sin file)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mimi73:
Why there is NO dark mode or night mode in pie on sony ???? like the others phone that got pie (samsung.pixel.....)???
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I don't know it.

I am just the TWRP slave in this TWRP thread.

btw. Official dark mode comes with Q.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
01.04.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] turnout96:
Hi，Sir，Flash twrp-stock-installer.zip then reboot to TWRP can not read the storage, whether it is built-in storage or external SD card， Device：H8296 52.0.A.8.14
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You did encrypt the external storage?

Can you read it in the Android system?

Did you exactly repeated every step?

Because it runs on m H8296 fine :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] turnout96:
I have not encrypted any storage, I plan to try a few more times, maybe which step is wrong.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Do you run a Chinese firmware?

it may make complications.

the sdcard (external storage) is not encrypted by default.

It should be usable even if the decryption doesn't work.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] turnout96:
Do you mean that the language used by TWRP is Chinese, which will make it impossible for me to read the storage?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The used European kernel may be a bit shwhqhsba in combination with the Chinese vendor drivers
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
Hi guys, so I just bought XperiFix, and wanted to check that the Oreo firmware [MENTION=6031898]MartinX3[/MENTION] has for the XZ2 H8216 will work before I start [emoji2957]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
yes, it'll work on your iPad.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
Haha, so it’ll be ok, and I just do as I always do with TWRP, just remembering I have XpariFix now lol
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
02.04.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Build-In Omni twrp and current aosp twrp has a bug.

Will release new twrp aosp build with this comment reverted

https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/33783/

It wasn't able anymore to install the magisk.zip (digest verification failed).

Just install the aosp twrp over the omni installation.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
Can’t for the life of me get XperiFix to work, it finds my phone and everything goes well then I get an upload error, any ideas?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] BigBudss808:
I am on 52.0.A.8.14, how can I use now TWRP? There is no Download for this Version. Thanks for your help
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Error?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I uploaded I'd on Android file host for Android 9 in the right device section o.O
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
Yeah, that’s what I get...

View attachment 4735942
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zezzet2727:
yesterday i installed twrp and root with magisk but today, when i'm going to nandroid backup, appear this error when backup DATA:

createtarfork error 255...

anyone can hel me?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nikkdib:
sorry for my noob question: why we can't have a zip to install from recovery for the firmware update? like other devices (I had a samsung and I could install the firmware via recovery)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Are sure you're in the right thread?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oh, what says the xperifix log?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Stock?

It didn't happen yesterday?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
All stock, no mods. It happens on both PCs. As for the log, that’s all it says...

03-4-2019_00-11-09 ===> Serial: QV704F2A1B

03-4-2019_00-11-09 ===> Get device unlocked info

unlocked: yes

finished. total time: 0.000s

03-4-2019_00-11-10 ===> Get device product id

product: H8216

finished. total time: 0.000s

03-4-2019_00-11-10 ===> Get device firmware info

version-baseband: 1311-7915_51.1.A.11.51

finished. total time: -0.000s
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Nothing more? O.o

Then something with the usb cable, the Fastboot/adb driver, the usb port or the operating system is wrong

It happens on usb2 and usb 3?

You tested it on another computer?

I remember that my adb Fastboot Driver adventure on windows last year was a pain in the ass. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
255 shows me in Google a problem if you made a backup on a multi user phone and try to restore it on a single user phone.

Or single on last phone and multi on your new phone.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zezzet27:
Yes I'm stock... There are custom Rom for Xperia xz2 premium? I have pie 52.0.a.8.14

Inviato dal mio H8116 utilizzando Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
Nope, nothing more. I’ve tried several cables and all the drivers are fine...however, I have just noticed that when in TWRP both PCs are in installing the phone as a OnePlus, and I can’t change it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You mean if both are connected you need the Fastboot Parameter to choose the device?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zezzet27:
I try for the first time after root to do a backup and I have this error.. If I don't include data on backup work fine.

Inviato dal mio H8116 utilizzando Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Both phones (backup and restore) were single account / user phones?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zezzet27:
Where I can check if single account, user phone?

Inviato dal mio H8116 utilizzando Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
What’s happening is that when I plug the phone into the PC in TWRP as per the XperiFix instructions, the phone is being found as a OnePlus device, shouldn’t it come up as an ADB device?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It should come as Xperia

Try the custom installer

A/B, Vendor, magisk.zip
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
That’s how it looks right now. That’s with the phone in TWRP.

View attachment 4735969View attachment 1
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
View attachment 4735971
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
On your old phone it should be in the settings entry "user & accounts"
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe your phone driver is wrong.

It should be listed as your Xperia.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
Windows doesn’t seem to want to let me change it lol, I can’t even uninstall the OnePlus device, which my I add, I have never owned [emoji2957]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you tried to install the OnePlus drivers or are you using a fake Xperia? [emoji848][emoji12]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
Neither, I’ve only ever installed the official Sony and Android drivers...and the phone is definitely real. Never had this happen before.

I might install pie and TWRP, and what it says then in device manager.

---------- Post added at 09:56 AM ---------- Previous post was at 09:54 AM ----------

The phone is coming up as Xperia XZ2 when in standby, it’s just when in TWRP.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ahhhhh, that's fine.

The PIE twrp should be corrected.

Did the custom installation work in xperifix with Oreo?

I used it to install xperifix.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
I just get the same error, it be strange it be.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Can you use ADB stuff in twrp and Fastboot stuff in Fastboot?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
ADB doesn’t recognise the phone at all in TWRP, fastboot works fine in fastboot mode.

---------- Post added at 10:08 AM ---------- Previous post was at 10:06 AM ----------

ADB doesn’t see the phone at all in TWRP, fastboot is fine in fastboot mode.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's the culprit.

It needs to work work adb.

Does ADB not find the phone, or aren't you authorized?

Does activating deactivating mtp help?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
ADB now finds the phone in TWRP, still have the same error
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
What did you change?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
I just restarted CMD and plugged the phone back in lol. I’ve restarted my PC as well to make sure that wasn’t an issue. It’s odd that it’s only an upload error though, everything else seems fine in XperiFix and such.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Do you need xperifix to get the camera in PIE or to use Oreo?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
I want the camera in Pie tbh

---------- Post added at 10:39 AM ---------- Previous post was at 10:33 AM ----------

I’ve narrowed it down I think. It looks like XperiFix just isn’t getting ADB access in TWRP.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bartys:
Hi did someone managed to boot android q dp2 gsi released today by google? For me its not booting (stuck on sony logo)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I am not sure if the stock is compatible

But my next sonyAOSP release is.

Since OEMv7 it is Q compatible.

Maybe my omnirom too.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bartys:
I'm waiting for it thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome

And of you install omnirom make sure you disabled vbmeta and run your phone in permissive selinux.

There is a selinux rule bug denying the access of the sensors.rc in the vendor partition
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dadme:
Thanks. It works perfect on Oreo, but on H8324_Customized+CE1_1313-3194_52.0.A.3.84_R2B i am stuck on Sony logo.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
06.04.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please use the PIE TWRP for PIE and follow exactly the installation instructions. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Can it be that aosp version from today is incompatible to the current OmniROM?

I asking because i updated the aosp twrp with the "update instruction" and the twrp hangs at the Logo.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Twrp logo or Sony logo?

Is a log possible?

Did you deactivate vbmeta?

Did you flashed the dtbo too?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Twrp logo. I can boot into OmniROM without problems. Only twrp hangs.

On first try no. Then i flash twrp again with dtbo, twrp.img and vbmeta with the deactivation parameters from the twrp folder.

Same result. Twrp hangs.

And i just tested the version from 02.04.16, too.

Installation via twrp.img, dtbo and vbmeta as by the 06.04.19 version. Here the twrp works.

Mayby we need a new stock firmware?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
2.4 doesn't work but 6.4 does?

Did you had the usb connected while booting twrp?

2.4 is r34 march security update

6.4 is r35 April security update
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
(Sry i read too fast. Now this post is correct?)

Other way around. 2.4 works but 6.4 not.

I don't have usb connected while booting.

I think i will wait until the stock Firmware for this month comes out and try it again.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dadme:
Solved. Just dumb mistake, used latest PIE version instead .84 version..I have your Customized .84 version installed.

Just a small curiosity, camera quality on PIE suffer any degradation, if i used Xperifix on Oreo, and take photos on Oreo?

Preview works perfect now on .84 PIE. If i update pie to .14, i presume that i need camera fix.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yeah, you need the camerafix.zip then.

The quality is the same as .84 :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] danerrickcuba@gmail.com:
I'm lost, I want to update to latest TWRP, but in androidfilehost for my XZ2 I don't see anything uploaded since 19th/02/2019, where is this stable TWRP 3.3? I'm on pie 52.x.x.302
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
So?

Btw stable stock 3.3 comes with April stock Firmware.

Aosp twrp is 3.3 at the moment.

Like in the central project page mentioned.View attachment 4738338
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
And what is the twrp version now for stock ? Its kinda unclear in the 2nd post like what is for stock and what is for aosp
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
3.2.3-0 like all the months ago since 2018 :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
07.04.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ZioFrengo:
Even if I mount the fix for the camera, I still have the problem of the black preview, why?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] salvatorebgd:
I have XZ2 on 52.0.A.8.14 firmware. Will camera work properly and what will I lose if I unlock bootloader now?

Thank you
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
The camera should work (as far as i understood only people who unlocked their devices on Oreo loose the camera preview; so they need xperiafix).

But you will loose some features which need sonys drm keys ( for example the noise reduction algorithm).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
09.04.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vladaha:
Hi. I have XZ2. 52.0. A.8.25. I want to establish twrp and root.

There will be enough this twrp ?

From MartinX3sAndroidDevelopment/android_device_sony_tama_stock_twrp\boot.img
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please use the Download link on the first page the third post :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vladaha:
It is necessary root.

The phone is unlocked, model H8266.I have 52.0. A.8.25.

Set:

1)fastboot flash boot twrp-xz2

2)fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

than reboot to recovery, set twrp-stock-installer-xz2, set Magisk, and reboot to system, but Screen turns on with "Experia" logo.

Download files from first page
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please use the matching twrp version.

And the vbmeta app parameters are important

It works on my XZ2.

Maybe you need a full wipe?

But I don't think so
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vladaha:
I did are full dumping,

the version for 9 Androids(2019-04-09_23-19-16_sony_stock_twrp_xz2_52.0.A.8.25)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Did you even extract the downloaded files with 7zip ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vladaha:
yes of course differently I would not be loaded in recovey 2 or 3 times.

the file twrp-stock-installer-xz2 I have extracte to and then stitch?