[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Quarzkopf:
As promised, a little tutorial for people does not quite know about it. Like me, for example

!!! Only Android 8 !!! Xperia XZ2 Compact

Read it through first, find everything together and take your time.

In the same way I did it with a lot of nice help from the forum people.

Before you start:

Required tools / software:

installs current drivers for your device best with Companion / or Googling

- Minimal adb and fastboot and tests if the device works with the drivers

(best switch to fastboot mode on the device and "/ fastboot devices"

- Flashtool64 0.9.25.0

- Xperifix 3.2

- The following files from the beginning of the thread https://drive.google.com/open?id=1OD...VecfegzctzKyS2

H8324_Customized CE1_1313-3194_51.1.A.11.51_R8A, stockkernel-xz2c-installer, twrp-3.2.3-0-xz2c.img, vbmeta-xz2c.img, Magisk-v17.1.zip, permissive1.2.zip (At the end)

0. First of all to avoid spelling mistakes = unlock bootloader

0.1 In Developer Options, click 5xBuild Enable OEM Unlock

https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/

0.2 Go to the above page. Choose Xperia XZ1 Compact below and enter your IMEI. How you get that out is in the text above.

Then confirm all boxes and unlock with the Fastboot command and the unlock code inserted there.

"fastboot -i 0x0fce oem unlock 0xinsert your unlock code"

DRM KEYS ARE DEFINITIVE AND CAMERA IS OFF. OWN RISK

---> Now let's first prepare the Rome for flashing <---

1.H8324_Customized CE1_1313-3194_51.1.A.11.51_R8A unpack.

2nd !!! Important with the downloaded files the "fwinfo.xml delete" !!!

2.1. In the Flash tool go to Tools> Bundles> Create

2.2 There is a folder in which the firmware is located.

2.3 Then select your device at device.

2.4 When branding enter your country version. In my case Germany.

2.5 In version your firmware version you want to install.

*2.5 Now important and careful. With folders you add all files to the firmware content.

2.6 Then click Create and wait.

3. Then copy the complete folder "User". \ Flash tool \ devices \ H83XX into the folder "User" \. FlashTool \ mydevices

4. Flashing

4.1 Click on the flash symbol in the flash tool.

4.2 Select flash mode

4.3 For Source folder, select the folder with the previously created firmware file in * .ftf.

4.4 Select Device for Device Filter.

4.5 At Firmwares, select your created firmware.

4.6 For Wipe Sin, select APPSLOG / USERDATA

4.7 Select Disable final verification.

4.8 Flash (Connecting in flash mode as the tool tells you)

When flashing, he asks if he should use the 51.x.fsc

Simply confirm everything then works well.

So then before the restart of the device SIM cards out and hands away from the wifi no updates or setup something else just turn it on if it uploads, and then right back out. Throughout the tutorial, not somehow connect the phone to the Internet and pull the update.

*Now we come to the TWRP.

made by MartinX3 thanks

[FASTBOOT] fastboot flash boot twrp.img

[FASTBOOT] fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img <- IMPORTANT OR THE SYSTEM WILL NOT BE BOAT!

Reboot into RECOVERY / TWRP (Power + VOL DOWN)

Reconnect with Pc when you are in the TWRP.

[ADB] push stockkernelinstaller.zip / sdcard

[ADB] push twrp-installer.zip / sdcard

[ADB] push Magisk / sdcard

[TWRP] flash stockkernel-installer.zip <- IMPORTANT OR THE SYSTEM WILL NOT BOAT!

[TWRP] flash twrp-installer.zip

Reboot into RECOVERY / TWRP

[TWRP] flash Magisk <- IMPORTANT OR THE SYSTEM WILL NOT BOAT!

Reboot into SYSTEM

Now we come to Xperifix

1. Buy the developers should also be rewarded.

2. Use the following settings in Xperifix

vendor mode + a / b device

Omit the TWPRP check mark and specify the path to Magix.

3. install the permissive.zip module in Magix. thanks to FcukBloat

https://www.google.com.pe/url?sa=i&...apps/magisk/module-magisk-selinux-permissive- script-t3577549% 2Fpage1 & psig = AOvVaw13BmnsDNZFqgB8w1gnPppM & ust = 1543197332591266

Then restart the app like the one on the bottom right and everything works.

By Titanium Backup I have the update function of Sony suspended because I do not know if the DRMfix for an update is still working.