yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
after I tested it, Do you want to open a XDA thread I can link to or should I simply add it to the TWRP tar.gz file? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
I created it for personal use only, and I didn't intend to share it, much less create a thread for it (as it seems unnecessary).

Go ahead mate!

Edit: fastboot-ing vbmeta.img with params is still required!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Didn't got the time to download and now the attachment got removed. I don't have it. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It seems that at the moment the new OmniROM source may result being incompatible with the stock touch drivers.

I investigate why it doesn't work.

Maybe the next TWRP build will be delayed.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
My bad mate... file's there again!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you and commited. :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
Followed the instructions to the letter and it worked perfectly on my Sony Xperia XZ2 H8216, Build 52.0.A.3.163.

Can we relock the bootloader or are we gonna permanently see the scary message each time you restart the phone???

How do I restore my backup data from Google and Xperia via the back up menu, it says I can't do it as the phone is rooted. Is there a way around this???
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Nice, thank you for report. :)

Sadly no.

And the Xperia backup need a drmfix.

You would need to downgrade to Oreo, use xperifix and use Xperia backup.

Google Backup works fine here in Oreo and pie.

With and without magsik (root). :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Raphos:
Hi MartinX3,

I want to test your last TWRP version with the camera fix on .163 firmeware.

I didn't find the file on android filehost here

Should I wait ? Is the last version under construction or should I use Source Code to build it ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
https://xdaforums.com/xperia-xz2/de...-3-2-2-0-touch-recovery-t3821597/post78856089

Sadly at the moment new builds aren't working in combination with the stock touch drivers.

Maybe because of the change from 9.0_r30 to 9.0_r31.

Still investigating. :(

Maybe the January touch drivers aren't working with January stock kernel and February security patch level ramdisk. :(

I am hoping that with the February firmware 52.0.A.3.202 the problems are solved.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Raphos:
Ok, thank you for your answer. I'm hoping too !

Maybe a early WIP camera hal rewrite for TAMA will appear before in AOSP !!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
Thanks man, I'll stick with Pie for now, you'll have to keep us updated on a Pie Xperia Backup DRMfix, I can't afford lose my stuff. lol.

Also, I have another question I'm having issues trying to locate an English version of stock firmware build number 52.0.A.3.163. I downloaded the correct one via Xperifirm and I got the chinese version from, even though I selected the Customized UK version. Could'nt update my apps, couldn't download any apps and when you looked at the internal storage all the folder names are complete gibberish.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome. :)

I hope too.

But it's difficult

They need to write code for hex hardware addresses

0x12ab and so on

And test it.

Looking if there is no drain, no damage

Etc

It's completely new hardware

Many addresses

Many lines of code

Many pages of hardware documentations :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I didn't heard any news about the previous drm fix maker, sadly. :(

But if I hear something I write it down here. :)

You have the H8296 hardware and used the H8266 firmware?

Did you fullwipe your phone?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
I was tinkering with the TWRP and broke something so it went in to a bootloop. I have the Sony Xperia XZ2 H8216. After I broke it, I I used XperiFirm and Newflasher to reinstall the latest firmware for my Sony Xperia XZ2 H8216 and this is the result.

http://i66.tinypic.com/kd26b5.png
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's the encryption.

Do you use the latest .163 twrp from 3. february with the .163 firmware?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ToraxOutlaw:
yeah. i followed your instructions. any suggestions on how to fix this.

Update: OK, I read your first post thoroughly, I performed and advanced wipe on all the tickable boxes. Running Newflasher now, and reinstalling the stock firmware. I will post my results shortly.

Update 2: After perform a complete advanced wipe, reinstalling stock firmware and then following your instructions, I have a working phone again.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Nice to hear :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I found the broken TWRP solution together with the sony developers.

It's the cause of the Omni 9.0.0_r31 ramdisk (february security level)

I need to wait for the february security patch stock update.

The rollback security is preventing me to use an january kernel with the february firmware, resulting in a blinking bootlooping black/logo/black/logo twrp animation.

Will release the next working TWRP with twrp camerafix & magisk camerafix included and maybe my touch driver approch will work then, ( now I know it should work, it was only the cause of this security behaviour)

PS:

The touch apprach worked fine!

Saved 12.1MB uncompressed space in twrp.img and twrp.zip file. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] old.splatterhand:
Sounds nice!

I think, now you need to help the Sony devs to finish their camera (code) on aosp...

;) Lol
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Hihi, thank you :P

At the moment I help them fixing exFAT support in AOSP and the custom roms :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
I'm now on Pie, .84.

I have not been able to get a working device flashing .163 over .84 excluding the vendor partition (it's required to get the [MENTION=2902434]Pandemic[/MENTION] fix working). I get white blank screen after boot and/or phone app FC... :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
just use the newflasher to flash .163 completely

don't jump over any partition ;)

and please test my updated camera fix i added below.

A full wipe is recommended to avoid any FC errors and runtime bugs

And of course the .84 may be not compatible with .163.

And don't forget the vbmeta parameters.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Thanks bro but I'll waiting that someone else test it. I don't want to lose my data one more time...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome. :)

i mean I tested it only on my own xz2 :P

You won't loose your data.

The worst thing which can happen is a black camera preview. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
A full wipe means losing data.

I'll wait for further confirmations ^^

BTW, thanks a lot for your good job on twrp :good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you, you're welcome :)

It depends, using the Android 8 UserData works.

If the vendor partition is the only thing, you avoided while upgrading to .163 just put the vendor.sin and the newflasher file in the same folder (with no other files in there) and just flash the vendor partition.

Then reapply the vbmeta parameters (newflasher reactivates it) and flash my attached camera fix.

The camera should work and your FC's should disappear.

And I always recommend Google Cloud Backup for device settings and titanium backup for apps and userdata.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Yes, I may try smthg next week :)

For now, I'm tired because I've spent my all last night to fail to get FW163 working with vendor FW84... :eek:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You will get success. Just use vendor .163, the camera preview can be fixed afterwards. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Hi bro from who you toke the files in the zip ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That are stock firmware files from .84 firmware vendor.sin

So sony gave them to me.

You know I uploaded the firmware on android file host.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Raphos:
Hi,

Stop exciting your neurons :laugh:

I tried both fix on .163 : none are working for me...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Because you didn't use drm fix on oreo, take one pic and updated to pie with newflasher, thats why it aint work :laugh:

10.000 pages back explained but some dont listen.. Own fault lol

All works amazing here with a "working" camera + preview :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Raphos:
Ah, you talk about Xperifix !

I don't want to use it, not for the 19 box, it's against my principles... :laugh:

Stock rom is just bull**** for me.

I'm waiting for AOSP or OmniROM with good camera (no black camera preview at this time in this rom's). :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just the xperifix on OREO changes something in the TA partition, so our fix will work on PIE :)

(People unlocked this phone on .126 or later doesn't need the fix)

Btw. The camera support in AOSP is in the works and will be finished in the end.

But it takes time, much much time, to write the closed source code for the hardware in the OEM blobs :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Yes, during my tests the night before, I've come to get a .123 FW working with a .84 vendor, and so the [MENTION=2902434]Pandemic[/MENTION] fix did work. Unfortunately, there was a conflict between FW .123 the .84 vendor (phone app FC), so I went back to FW .84.

Obviously, I'm one of those who unlocked their device under Oreo and applied the Oreo DRM fix...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just try a complete .163 and my drmfix.

It worked on my phone without problems.

And don't forget the vbmeta parameters after every newflasher usage.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Done, it's working :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Niiiiiiiiiiiiiice :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
10.02.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
[MENTION=6031898]MartinX3[/MENTION]

I guess the steps to update the twrp for stock and Custom roms are the same, right?

I just want to be sure.

And does the backup function of the Custom rom twrp works without problems? I'm asking because i'm prefer to backup my data via twrp and want to be sure that the restore works as it should.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You need to install the bundled DTBO and of course the vbmeta parameters are important. :)

Eeerrrrm, good question.

Feel free to test, I didn't heard about bugs, but I use titanium backup and google cloud backup. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Ok i'm not sure whether i understand the thing with the bundled dtbo thing.

I think i will make the following steps then:

1.Backup the data partition via twrp and Titanium Backup

2. Install the stock firmware of Feb via newsflasher (When it's out:D)

3. Install the new Omnirom build

4. Boot

5. Install the new custom rom twrp

6. Restore the data with twrp (when it doesn't work then i use Titanium Backup for this)

And of where needed the vbmeta stuff.

Should work i guess.

Ok i will test.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
you need to boot stock once for full security updates and follow the installation instructions on the first page. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Ups of course. i forgot to write it.

Shame on me:D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I nthe end everything should work, like on my akari. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vojtoun:
Hello. What to do with step 2? I dont get it. If i enter fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img, i got this.(C:\adb\fastboot.exe: unknown option -- disable-verity) I think I am doing something wrong, but dont know what. My fastboot version is (fastboot version eac51f2bb6a8-android)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You need at least the plattform tools r28.0.1

"fastboot --version"

"adb --version"

But i see an empty space between -- and disable-verity
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Here are 2 photos to compare.

One with stock and one with open camera.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
I don't understand what that has to do with my post, maybe you misunderstood it?

What I meant was that with previous models (like XZ Premium) you could at least use the viewfinder but taking pics with unlocked bootloader made the pics turn out green.

Now with the XZ2 Premium, if you unlock the bootloader the camera breaks completely, the viewfinder is completely black.

I found one app called Open Camera that could still take pics even though the viewfinder were black and the pics didn't turn out green.

If I could only see things when having the camera app open but oh well, I personally picked rooted phone over camera so I can't complain.

Off-topic I guess, sorry.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sorry, i did mistakenly put your old text in my message.

I wanted to compare how the photo would look like with DRM fix.

Because the open camera app can't use the DRM protected stuff, like the bigger count of megapixels.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Today came the update for the XZ1(c) and XZ Premium. Muahahahahaha.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
:silly::crying::laugh:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Since a few minutes the XZ2, XZ2 Premium and the XZ2 Compact (Single-/Dualsim) got the update.

From 51.1.A.11.26 to 51.1.A.11.51

The version jump is a little too low for a such a big update like a bootloader update.

But maybe they ignoring the version number rules.

Edit:

https://developer.sony.com/develop/open-devices/latest-updates

We got also an update.

From 51.1.A.11.26 to 51.1.A.11.51
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
so what about the bootloader update? not yet in this update? :crying:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It got only released for a few countries.

The germans got only the XZ2c dual SIM release.

So maybe it is really the bootloader update and they don't want an apocalypse in every country, because they could made a mistake. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
can't you ask jerpelea just for confirmation and curiosity? :o
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
https://github.com/sonyxperiadev/bug_tracker/issues/149#issuecomment-421309022 :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Now it is available for germany.

I'm downloading the update now.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The installation takes ages on the first of three parts.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
good sign maybe? :?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
I have this version installed, wondered how to get the bootloader version.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Installation is finished!

September Security Level (1. September 2018)

WIN WIN WIN WIN WIN BAAAAAAAAAAAAAAAAAAAAAAAAANG :silly::silly::silly::silly:

fastboot getvar all

has much more output.

The same amount, like the XZ2 Android 9 Beta Bootloader.

That means, we don't have the restricted one anymore.

The further steps are now

1. Recompile Sony AOSP with the latest 8.1 sources and see if it can be installed and will boot.

2. If Step 1 is working, I will update my TWRP device config and recompile a new TWRP with the AOSP Kernel and Omni 8.1 sources.

Compiling is fast, but in my vaccation I've got only 2MB upload.

So it will take hours.

Stay tuned!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
Lastest: Your AOSP build is working.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The one I compiled in the past?

Woohoooo, no more bootloader restrictions! :silly:

You could test the twrp builds, too, if you want.

But I don't think that they are bugfree.

adb devices
adb reboot bootloader
fastboot boot <filename>.img
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
14.09.2018
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] yanke928:
I tried sony-omni-8.0-twrp-3.2.3-xz2-04-08-2018-recovery.img, not working.

sony-omni-8.0-twrp-3.2.3-xz2-04-08-2018-recovery-with-stockkernel: still stuck at TWRP logo.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thx!

And the other files in my TWRP_8.0 folder?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vojtoun:
Same error on 28.0.1. On adb --version i got this (Android Debug Bridge version 1.0.32)

On fastboot --version this (fastboot version eac51f2bb6a8-android)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
you don't use the latest platform tools :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Vojtoun:
How is that possible? xD If I go there, it will download 28.0.1 (latest version says page)https://developer.android.com/studio/releases/platform-tools#downloads

EDIT-Oh, i see. My fault, Will try and inform. Thanks

---------- Post added at 02:52 PM ---------- Previous post was at 02:44 PM ----------

Strange. Must be my fault, but if I open command prop everywhere on my PC, it will open 1.0.32 ADB. If i open it directly in adb installation folder, 1.0.39 will open and then it will work xD Thanks :D Will definitelly send you donate right after my salary will arive on my bank account. I was pretty nervous, comming from xiaomi devices and unlocking BL was pretty easy there :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Corro:
I'm still getting the infamous "flashing is not allowed in this partition" when trying to flash vbmeta.img with french H8216.

Which rom do you use with newflasher ? I tried the two FR labelled I was able to find on XperiFirm, but same error.

I'm thinking about doing it with Emma (the soft, not the girl), but I don't get why it wants to flash my phone with UK rom...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Woohooo thank you :)

you installed it globaly some time in the past

and if you are in the folder, you execute the newer downloaded binary. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you unlock your bootloader with the special sony code from the sony website?

And please use the newest available PIE firmware to do this.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Corro:
https://xdaforums.com/xperia-xz2/de...h-recovery-t3821597/post78225252#post78225252

Yes, I'm not a newbie, I never post before searching decently.

It's unlocked, the LED is blue and latest platform tools.

Which rom should I use, the latest Customized CE1 (Central Europe 1) I have on XperiFirm is 51.1.A.11.51 / R1A ?

I tried on two different Windows 7 laptops Customized FR and Orange MCV FR/ES/PL/SK/RO.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I would flash the latest PIE firmware on your region.

do you use the latest platform tools (r28.0.1)?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Corro:
Microsoft Windows [version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

C:\Users\admin>cd C:\adb2

C:\adb2>fastboot --version

fastboot version 28.0.1-4986621

Installed as C:\adb2\fastboot.exe

C:\adb2>adb --version

Android Debug Bridge version 1.0.40

Version 4986621

Installed as C:\adb2\adb.exe

C:\adb2>fastboot devices

QV700PGY1B fastboot

C:\adb2>fastboot flash boot twrp.img

Sending 'boot_b' (33524 KB) OKAY [ 1.070s]

Writing 'boot_b' OKAY [ 0.330s]

Finished. Total time: 1.410s

C:\adb2>fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Sending 'vbmeta' (4 KB) OKAY [ 0.010s]

Writing 'vbmeta' FAILED (remote: 'Flashing is

not allowed for partition

')

Finished. Total time: 0.030s

I'm on 52.0.A.3.163 / R3B or /R8B...

This is frustrating. I guess I'm gonna try another region.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Indeed frustrating.

Did you tried vbmeta_b ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I spoke with the sony devs.

Please switch to slut A.

B is broken for custom flashing.

Bootloader bug.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Corro:
What am I doing wrong ?

C:\adb2>fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.i

mg

Sending 'vbmeta_a' (4 KB) OKAY [ 0.010s]

Writing 'vbmeta_a' FAILED (remote: 'Flashing is

not allowed for partition

')

Finished. Total time: 0.020s

I'm using this file of yours to flash :

https://androidfilehost.com/?fid=11410963190603914357

Same error with vbmeta_b.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You need to switch the bootloader slot

"fastboot set_active a"

or

"fastboot set_active _a"

Then reflash via newflasher the firmware and repeat the twrp installation steps. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Corro:
Now I'm stuck on Sony logo with a bootloop... hahahaha. I love this phone.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
did you reflash with newflasher? and flashed newflasher most of the stuff on A ? :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Corro:
Absolutely, I reflashed with newflasher_v13.

Managed to boot in fastboot mode :

C:\adb2>fastboot flash boot twrp.img

Sending 'boot_a' (33524 KB) OKAY [ 1.420s]

Writing 'boot_a' OKAY [ 0.320s]

Finished. Total time: 1.740s

C:\adb2>fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Sending 'vbmeta' (4 KB) OKAY [ 0.010s]

Writing 'vbmeta' FAILED (remote: 'Flashing is

not allowed for partition

')

Finished. Total time: 0.030s

C:\adb2>fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.i

mg

Sending 'vbmeta_a' (4 KB) OKAY [ 0.010s]

Writing 'vbmeta_a' FAILED (remote: 'Flashing is

not allowed for partition

')

Finished. Total time: 0.020s

I'm gonna start all over again but so far, it's getting worst... At least, it seems harder to brick than my old Z1C.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I spoke again with the sony devs

maybe they have an idea

It's weird

I use an akari XZ2 too

and many others using twrp, too. weird weird weird :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Pie FW .163: unfortunately, data restoration does not work in twrp: Error 255 :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oh ****

Please give me the dmesg, logcat and /temp/recovery.log after the error happened. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
I've re-wiped since then...

Maybe the "rm -f" should not be used for data partition??
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
rm -f only removes files (not folder) and force it
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Yes, I know (I'm not a linux noob lol), and it must be used to restore system and vendor partition but maybe restoring data need reformating ??
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I need the logs or I can't assume the right cause :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Corro:
Finally, it worked with Emma on slot A, thanks for your help !