yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
[MENTION=6031898]MartinX3[/MENTION], don't forget to add "fastboot flash vbmeta vbmeta.img" into the first post flashing instructions :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Done :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Didn't forget you :)

https://github.com/MartinX3sAndroidDevelopment/bug_tracker/issues/31

Just a bit more time for discussion if this is the right way.

Edit:

Added testbuild to issue ticket

http://www.dhsfileserver.de/ftp/Mar...Xperia XZ2 Compact/Touch Issues/apollo_v9.zip

fastboot flash boot boot.img
fastboot flash vendor vendor.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Ping [MENTION=1119573]bluep[/MENTION]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Cool, no problem.

Tried the testbuild, but hangs on splashscreen with the google sign.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please try it on a fresh installation

GAPPS may sometimes start to loose app permissions if you flash a new bootimage

Maybe this happened here, too

We want to make sure, that the crash in the touch driver is now fixed.

Edit:

If you mean google boot logo instead of google sign in, then an adb dmesg & logcat would be nice. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
It's the google boot logo, of course. Was a long day yesterday... ;)

Here's logcat, dmesg is not possible since I'm not able to flash magisk. I installed boot.img, vendor .img (both apollo_v9) and vbmeta.img (from latest AOSP_ROM release) via fastboot. After installing recovery into ramdisk (here touch worked) and booting into recovery touch is not working anymore (although I installed working touch version).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ah perfect, your device awaits the vibrator.

I will rebuild the vendorimage today.

(Repacked the one from v8 because missing time until sleep for university, sorry)

And I think I need to rebuild twrp as well.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sadly the new build will delay 1 day.

The android build system invalidated my cache and I need to compile the entire rom again.

(Seems to be connected to the 10.0 branches repo sync did download)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sadly we need a bit more discussion time :)

https://github.com/sonyxperiadev/kernel/pull/2076
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Hey no prob. Lucky me, you're taking care of the issue at all...:good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
The first Sailfish image was made and it resulted in spectacularly fast display of red triangle with the text along the lines "that this device cannot be trusted, it will not boot, and will shutdown". Trying to get into TWRP resulted in the same message, so no access to logs either. I wonder whether anything comes into mind.

Kernel config: https://github.com/sailfishos-sony-.../arch/arm64/configs/aosp_tama_akari_defconfig - see last few commits in that repo for changes. For example, CONFIG_DM_VERITY=n

flashed via fastboot

fastboot flash boot_a hybris-boot.img
fastboot flash boot_b hybris-boot.img
fastboot flash userdata sailfish.img001
fastboot flash system_b fimage.img001
fastboot flash vendor_a vendor.img001
fastboot flash vendor_b vendor.img001

Slot A is current. In Sailfish, we boot from boot partition, mount system_b for system and have Sailfish specific root and user home in userdata.

I will be away for few days and will have a chance to work on it only at the end of the next week. Posting it now since I remember the details.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please use the slot A to boot sailfish and disable the vbmeta partition

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

or generate an image with the correct hash values of the partitions like AOSP does. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
I suspect that I tried that, but I'll try again when I get back (traveling right now). Could it also be related to dtbo or combination with vbmeta? Don't know much about, sorry for asking. Where is actually a forum to ask these questions? I presume its not your thread at XDA that has to be hijacked for such side projects...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The userdebug should be more robust against error messages and should not crash as fast as a eng build.

Weird. Let's see, what my build will do. :)

Thx for sharing that information :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Argh, made a mistake.

Recompiling now the XZ2 and XZ2C build.

The last build was too long ago.

Now I am doing it right.

3 hours for the first build is a little bit hard.

I regret the cleaning of my build cache.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Status update:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
From bug tracker it seems camera is not working yet?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It is working, but the pictures are too dark. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
Can't you add commit? Microg is easy to add.

Envoyé de mon H8266 en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I am not a C developer :P

And would need to maintain my code changes and sync them with every new AOSP code sync. :P

But you could install it on your own

https://microg.org/

https://microg.org/download.html

And you will need signature spoofing.

That's the installation manual

https://github.com/microg/android_packages_apps_GmsCore/wiki/Signature-Spoofing

http://nanolx.org/nanolx/nanodroid

Maybe this tool installs MicroG and SignatureSpoofing for you.

But follow the special Android 9 deodex instructions.

[MENTION=9542156]dhacke[/MENTION] could you share your experience?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Of course. As soon as i have my xz2. I guess i will buy it in the middle of december.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nasko_spasko:
[MENTION=6031898]MartinX3[/MENTION] No luck, mate! I'm stuck at sony logo. The first time I flashed it 2-3 days ago it was fine altho I've notices slow bootups. I'll investigate further tonight. Just to clarify, it works on stock.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Weird bug.

Can you start the AOSP recovery?

Maybe you want to open a bug tracker issue?

Did you flash the vendorfiles form the universal folder?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nasko_spasko:
OMG! I forgot the binaries... Nope. I didn't. By the way your boot.img.gz file is zero bytes (MEGA). Have you noticed?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You unzipped the files?

An upload error. :(

Will replace the files in 1-2 hours. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nasko_spasko:
Yeah

7z x boot.img.gz

returns error. :))
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Because of the 0 bytes :silly:

At the old gdrive url you will find the working version. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nasko_spasko:
true; I've downloaded it and flashed the blobs as well and it boots. Maybe I've forgot the blobs when testing my builds.... Oops :D

PS: Man, those animations are smooooth. <3
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Wooohohhooooooo :victory:

After the last bad bugs got fixed, it will be better, faster, smaller than the stock firmware. :)

But don't forget to install each new stock firmware every month. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
I'm a camera guy so can't really test this atm, but as soon as camera problems will be sorted out (hopefully) will surely give this a try, thanks for your continued work for our devices in any case!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nasko_spasko:
I think the camera will become even better than stock once we have a decent Camera2 compliance and he gcam app. :))))
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
that's what I hope for the future, but someone will have to mod the code, at least for the camera2 thing, will be there someone able to do that? :confused::fingers-crossed:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The dtbo need to match the kernel

In theory a unified kernel with device specific dtbo partition content is now possible.

(Which isn't really used because the sodp xperias before xz2 doesn't have a dtbo partition).

Vbmeta can just be deactivated like in my twrp instructions mentioned.

And you're welcome :)

I would use the bug tracker and I'll write you a pm.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
I most probably missed dtbo for my kernel, thanks! In Sailfish, we do disable verity and there are few extra features enabled when compared with the default kernel config. So, uniform kernel is a touch away for me.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I'm sorry for the delays happening because of my private life

Here is a fresh testbuild http://www.dhsfileserver.de/ftp/Mar...ouch Issues/Xperia XZ2 Compact/apollo_v10.zip

I need the logs and if touch works or not.

We're testing a rework of the entire touch driver, so that clearpad and tcm can happily co-exist. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Will test it tonight. Still on the road...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Ok, touch working in ROM as well as TWRP. Boots into ROM after initial installation wihtout any problems. But a bootloop into recovery after installing TWRP into ramdisk. Still random reboots after booting into ROM. Logs attached...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you very much :)

But since the crashes also happen without the touch patch it's not as easy as it could be to locate the crash reason only you get on a xz2c with the newest stock firmware.

But at least we have now touch everywhere.

About the twrp patch

That's weird.

I'm running the same modified files just like you but for xz2 and the twrp runs fine.

That's a bit weird, too.

Was the twrp stuck at the twrp logo?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nos1609:
Sailfish ROM would be a great addition for our devices ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
I have to correct the circumstances when the reboots happen: As long as it's connected to a PC, even if data connection via USB is not active and USB Debugging turned off and also after the screen turns off, the phone runs continously. If it's only attached to a charger the reboots happen sometimes within a few seconds, sometimes within a minute after the screen is turned off. If it's not connected to anything, same behaviour.

Maybe it has something to do with power saving modes of android (since an active usb connection keeps it alive)? Or a watchdog running out?

About the TWRP patch:

The patch itself is running perfectly. Touch is working. I can install and boot into twrp and work with it. But as soon as I try to boot into system, after reboot I find myself back in TWRP (which then works without any problems). Maybe my post earlier was a bit misleading. (Note to myself: next time be more precise... ;) )
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you for the clarification :)

It helps finding the root cause

Ahh, good to know

I assume I just need to compile a new twrp

I will report back after I know more :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
[MENTION=1119573]bluep[/MENTION]

Since you installed twrp with the "install ramdisk" button

(And it was the correct twrp.img file)

Please give me the output of "cat /dev/block/bootdevice/by-name/misc"

It may contain the reboot to recovery reason.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Hm, tried to generate the information requested and tadaaa installation was successful... Installed apollo_v10 boot and vendor and vbmeta from ROM, then was able to install TWRP into ramdisk (is there any other way?), boot into installed recovery and flash dualsimpatch and magisk. After that a reboot booted into ROM. Maybe it was too late yesterday and I somehow messed up the steps for installing. Anyway, it works!

Investigate further into the reboots issue: Several tries (logs from one of those are attached) always showed the same behaviour (if you look into dmesg):

tries to access an i2c device (don't know which devices are attached to the i2c bus) which somehow fails (don't know if this is really relevant but it shows up any log shortly before it reboots)

[ 502.738665] i2c_geni a88000.i2c: i2c error :-107

....

....

....

[ 650.068722] PM: suspend entry 2019-10-15 13:15:16.412430506 UTC

Then it enters suspend mode and obviously sleeps so deep that it only wakes up via reboot. ;) At least this is always the last dmesg log entry before reboot (as written earlier, made several tries today)!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Perfect that twrp works :)

Yeah i2c is for the clearpad/TCM touch

Thank you for the logs :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I am now confused

Are you sure you installed V10?

I see now kernel 4.9.182 from Sep 8 2019 instead of kernel 4.9.194 from Oct 14 2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Yeah, double ckecked it. It's definitly v10.

BTW good news: runs stable without reboots since I installed it,shortly prior to my previous posts.

Absolutely, always connect my displays via i2c to the uCs I use. So if I had spent some more thoughts I could have guessed already, that it has something to do with the display driver...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's weird

I use the same and it says 194 here

Your previous dmesg said 194 also

did you flash a different file?

I mean now also twrp works, too at your side

please double check it :S

the 8. sept shows me that you may installed V8 instead of V10.

It's always nice to have a hobby :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Hehe, now I understand the confusion. V10 is now running without any problems but I recorded the logs earlier today when I was still on v8.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ahhh now I understand

That means V10 runs perfectly, no crashes, and touch works? :D

Last time you had crashes with V10, what did you change?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Exactly! V10 is running perfect! No crashes, touch working without any issues in ROM as well as TWRP. So thanks so much for your help!

Regarding the crashes/reboot into recovery: to be honest I don't know. While trying to figure out your request from post #990, I installed v10 again (switched back to v8 yesterday, since the phone is/was already in daily use). Suddenly everything worked fine. My assumption is that I messed up the installation sequence yesterday.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Nice, dankeschön! :)

I just still need a dmesg from you so we can finish the last code development. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
No prob. Here you go...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] maverick6664:
Hi all,

I jumped into this thread today (late.......yes, I know..dumn!!) and found my xz2 (dual sim) didn't recognize my micro sd formatted in fat32; it said it's corrupt!! Hey! I've been using this with stock firmware w/o problem. I kept my previous backup in that card, and twrp can read this (it can read exfat also) but somehow aosp seems picky with the card (ID?). I copied the contents of the sdcard to pc and formatted the card with the phone, then copied the backup files back to sdcard, then the phone read smoothly. How can I teach AOSP to read any fat32 formatted sdcard?

Personally, I want it to read ext4 or at least exfat.

EDIT: I found in this thread exfat is source-closed. Then I want ext4 or ext3 or something. It's a Linux machine!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Magisk 20.0 is available : should I already try it ? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
I would say yes. I use OmniROM from MartinX3 and Magisk v20 works without problems by me.

Same on my old z3 with LOS 16.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yeah, magisk 20 should work everywhere :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, it's exfat and not fat32.

Luckily it became open source now and slowly find its as into the kernel where it can get backported to our kernel

To format the sdcard I used gparted on Linux and my sdcard reader.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mirhl:
*it was patent-encumbered and the spec was closed

But open source drivers have existed since years already.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Not inside the kernel

Someone hacked the samsung driver illegally (patent law), then there was a fuse driver etc

But real kernel support was missing, which makes it not really usable on an AOSP ROM which wants to rely on as most free open source code as possible.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
I'm stuck on Sony logo with Magisk 20.0, installed from Magisk Manager :(

Coming back to 18.1 works fine.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Interesting

Here an upgrade from 19.4 to 20.0 and a fresh installation directly to 20.0 didn't kill my phone (xz2)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
I did not upgrade to 19.4, I didn't see it available before 20.0.

I might try it manually.

edit: Oh, that's funny, on this page https://magisk.download/magisk-zip/ Magisk 20.0 is labelled as Magisk 19.4 ^^

(edit: and I'm reading here: https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 that this website is not official…)

edit 2 : and it seems I already tried 19.4…

edit 4 : Ok, I instaled 19.4, tried (failure), then 20.0 (tried, failure), then went back to 18.1, it works again (hopefully).

Magisk >18.1 doesn't seem to work on a XZ2C (dual sim) :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
what happens if you upgrade from 18.1 to 20.0 through the magisk app?

Please add logs and a description in their bug tracker :)

https://www.didgeridoohan.com/magisk/HomePage
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
That was my first test. Stuck on Sony logo.

I can't extract the log, I can't use adb at the point (Sony logo).

edit: sounds like someone successfully did it on the same device: https://xdaforums.com/showpost.php?p=80527177&postcount=36254
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yeah, I wonder about some troubles here sometimes.

I know most guys here are no IT professionals, but I am every time happy if they tell me that it starts working after a reinstallation or something else. :laugh:

(I mean the devices and their source code are very very very similiar I provide roms for and the stuff works here).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
i cant find somewhere to download img files (boot.img, dtbo.img, vbmeta.img, system.img, vendor.img) on GG

i built img myself by follow this guide - https://developer.sony.com/develop/...ild-instructions/build-aosp-android-p-9-0-0-2 - 2 times but all failed :( so poor my laptop

anyone can share this img files for me please :3
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
The img files are in the zip. Just extract it and you should get the needed imgs.

By the way what do you mean with "GG"?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
haha, i mean google

sorry for my bad english

btw, i cant find zip file that you said :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Did you extract the zip twice? And did you download from Androidfilehost or dhsfileserver as said in OP?

(By the way i would suggest dhsfileserver; it's tracking free:D)

If you only search over google you probably will not find the needed zip.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
hic, downloaded file from 2 url:

http://www.dhsfileserver.de/ftp/MartinX3/Xperia XZ2 Dual/android_9/

https://androidfilehost.com/?w=files&flid=288310

But there is no file zip that contains img files :(

i newbie in aosp, i just want to use pure android on my xz2

So, i found https://ci.android.com/builds/submitted/5934805/aosp_arm64_a-userdebug/latest

can i use img files in this url?

---------- Post added at 04:11 PM ---------- Previous post was at 03:57 PM ----------

wao, is that it? http://www.dhsfileserver.de/ftp/MartinX3/Xperia XZ2/android_9/custom_rom/aosp/
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Ah i think now i understand.

You are in wrong folder of dhsfileserver. The zips are in the folder for the non Dual SIM Devices.

The folder in which you looked is only the place where you get the dual patcher If you have a dual sim device.

So because you have the xz2 this is the right folder:

http://www.dhsfileserver.de/ftp/MartinX3/Xperia XZ2/android_9/custom_rom/aosp/

Here you will find the mentioned zip. If your device is dual sim then you need the dual sim patcher, too.

Link:

http://www.dhsfileserver.de/ftp/MartinX3/Xperia XZ2 Dual/android_9/

I hope you will find it now.

Yes.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
thank you so much :D [MENTION=1555922]dhacker[/MENTION]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
hi [MENTION=1555922]dhacker[/MENTION], i downloaded file from http://www.dhsfileserver.de/ftp/MartinX3/Xperia XZ2/android_9/custom_rom/aosp/ several times but always corrupted, i open it by winrar

can you check this pls?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Can you test it with 7zip?

And yes i can test it, too ( but first today evening; i'm at work atm).

By the way my nickname is dhacke; not dhacker?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
sorry, so shy :)))))

i successful open the file by 7zip, thank you again
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
No problem:)

Juhuuu:victory:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
hi, after flash all img files, i reboot device and stuck at G logo, what should i do next ?

thanks :D

--> i flash all file again and it works, so great
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
is this twrp for aosp rom? http://www.dhsfileserver.de/ftp/MartinX3/Xperia XZ2/android_9/twrp/custom_rom/

thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Yes.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
sorry, i flash twrp.img but it isnt go into twrp recovery, i used hardbutton to go into fastboot mode

should i do in this case?

thanks!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Did you follow exactly the install instructions in twrp thread? Which steps did you make exactly?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
i copy twrp.img to device, turn off, enter fastboot (by press up volume and plug cable)

then i use command fastboot boot twrp.img

the devices reboot but not enter to twrp recovery like when i do this in stock rom :D

i missed something, right?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Yes. You only try to boot the twrp but not install it. As you can read in twrp thread after booting the twrp it must be installed via recovery ramdisk.

And don't use the hardware when you want to boot the twrp. It triggers a bug which prevent the twrp to boot via fastboot command (described in the twrp thread,too;)).

If we have luck it will be fixed with the new bootloader coming with Android 10 but that needs still some time.

My suggestion: Read the OP in the twrp thread carefully and follow exactly the install instructions. Then it should work.