yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Seems bricked...

Try vol+ / power and if it vibrates go immediately in flash mode (vol-)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] power_510:
Red light on and off
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Seems hard bricked -> Sony repair center...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] power_510:
I wonder if the sony bootloader can do a repair
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You can access flash mode and fastboot?

(green & blue LED)

This sounds like an empty battery, too.

Maybe you want to charge it for 30 minutes and try it again?

Comes the battery symbol?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] power_510:
I think I flashed a slot b twrp :(

---------- Post added at 12:04 PM ---------- Previous post was at 12:00 PM ----------

https://xdaforums.com/pixel-xl/help/pixelxl-bricked-t3517310
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Slot a or b doesn't matter

They are exact copies of the other one.

Except the OEM partition

There is only one slot.

You can change the slots with fastboot mentioned in the third post.

And VOLUP + POWER will restart your device.

If you hold it until you get 3 fast vibrations, then your phone will be turned off.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] karrouma:
[MENTION=8363210]sToRm//[/MENTION]

I have a question for you

The fix will continue working after android 9 update with xzp and xz1
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] old.splatterhand:
He can't answer you, his account currently disabled...:rolleyes:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] power_510:
my actions are respectively

1.fastboot flash boot twrp.img

reboot phone stuck sony logo

2. I got back to fastboot mode

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

successfully finished

reboot phone stuck sony logo reboot

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

fastboot set_active other

fastboot flash boot twrp.img

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

twrp current slot b

no longer touch the touch

I put it on by turning off the phone I wanted to get into flash mode and the red light is on
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
No, rework is needed. :)

We're working on it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Go into fastboot mode instead. :)

Press VOLUP + POWER until you get 3 fast vibrations.

Connect your phone with the USB PC cable and at the same time press VOLUP.

Keep it pressed until blue light is coming.

And please follow only the installation procedure at the third page if you need experience. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ionSeven:
I just ment the camera mate, everything else is fine.

Thank you for all the hard work and time you've put into this ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you :fingers-crossed:

Does the camera preview not work on PIE?

I lost it in Oreo while working on drmfix.

But got it back after completely new flashing PIE , including sound vibration and triluminos color enhancement without any drmfix.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Stunning! This means that it's still working at least partially.

Does DSEE HX still work ?? And Xperia backup/restore ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] karrouma:
Good luck on you work my friend

Hope xz3 also included in the work.

I will receive mine next week
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you :)

If you want to test, I can build a twrp for xz3 :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
They completely changed the drm protection, maybe they allow this now.

I think in the cam is only the noise reduction deactivated :)

I can activate dsee hx in the settings, but my hardware or my ears aren't good enough to hear the difference :)

Sony Backup & Restore still doesn't work and I can't login into Sony services :)

But I prefer titanium backup for backups :)

Synced via Google backup or P2P via Syncthing.

And of course encrypted. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mirhl:
How about widevine L1 drm?

I'm more worried for that than any other quantitative camera quality worsening.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I am not using Netflix, if you mean that :P

I have widevine L3.

Max HDCP Level supported = None/Unprotected.

Maybe because of root.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] karrouma:
When i will receive my xz3 i will ask about

Thank you
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] gouster3:
Does camera preview work for you?

---------- Post added at 06:05 PM ---------- Previous post was at 06:01 PM ----------

I had pie running, but unable to unlock bl, so i downgraded to oreo to unlock bl, then flashed pie back.

But my camera preview isnt working..

How to fix that preview? without DRMfix which isnt available yet for Pie.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe because of my experiments with the xperia drmfix in the past. (At the moment we fix the installation routine, which doesn't work)

But last time in oreo my preview became black again.

But Everytime I am in PIE it is working.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Have you tried a clean install of Pie?

I suspect that these famous previous "experiments" changed something in the camera app data (something like a switch.........)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
Yes, it does.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I did several clean installations :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
I do always also a clean install bro [MENTION=5231789]nreuge[/MENTION] and as i told you earlier, the camera preview works in Pie "without" drm fix and so far all good ;)

Edit:

Substratum can be use also again with root because Sony removed the theme engine, on Oreo it wasn't possible but on Pie we can use substratum again ^^
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Yes, but if you look some previous posts in the thread, camera preview does not work in Pie for several users.

I just try to understand...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
Yes, you're right. It'd be interesting, why it didn't work in that cases. Altough I don't think it has something to do with it: I have always replaced the kernel.img inside the stockkernel-xz2-installer.zip with the one of the firmware I've flashed. But as already said, most probably that isn't the point.

Did the people, recognizing the black preview, use Flashtool or [MENTION=4120742]munjeni[/MENTION]'s Newflasher? Afaik, MartinX3 already pointed out, Flashtool flashes only to one of the 2 slots, while Newflasher flashes the firmware to both slots...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
[MENTION=6031898]MartinX3[/MENTION]

Ok, then I misunderstood something - my fault. But in fact, pointing out why some people have no preview while on others devices it works, would be interesting and maybe could even help in some way?!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I use newflasher and the german H8266 firmware on my H8296 :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Has every FW the same kernel ?

Can you flash a H8296 kernel on a H8266 model?? (for instance)

This should be investigated.

A user has hard bricked his device today...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But it seems that power did not followed the exact installation process on the third post.

And the devices are very similar.

In the Xperia aosp project you can also use the same OEM vendor driver image and build image for them. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] janolucero:
sorry, but im stuck in sony logo can use flastboot and flashmode, but none of those modes recognize adb shell command :/

or do i have to get into twrp?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Yes, but... who knows for sure?

Maybe you should put as many boot.img as XZ2 models in your drive.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
To use as, you need to be in TWRP. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If someone can confirm that this fixes a bug, I will do :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
Useless

Kernels are nearly identical, only the device model is changed.

Envoyé de mon H8266 en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] churchner420:
Hi thanks for the TWRP ;) is it possible to boot to the recovery with the 'fastboot boot twrp.img' command without unlocking the bootloader?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Without a unlocked bootloader you can nothing do :(

You also need

"Fastboot flash boot twrp.img"

I wonder why

"fastboot boot some.img" never works...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Status Update:

"fastboot boot stuff.img" will never work since the tama line.

Since this line the phone uses the vbmeta and dtb overlay.

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

Great changes.....

Maybe we find a solution.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If someone knows how to integrate vbmeta and dtbo(dtb overlay) into the bootimage, I would be very happy.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
AVB 2.0

Android Verified Boot 2.0

https://android.googlesource.com/platform/external/avb/+/master/README.md

Wonderful to break the standard way

fastboot boot bootimage.img

with vbmeta and dtbo :silly:

https://source.android.com/security/verifiedboot/verified-boot

https://source.android.com/devices/architecture/dto
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shoey63:
All that verity crap can be removed by building a custom kernel with it disabled. I'll have a look at the sources and try to compile it, as I will be ordering an XZ2 soon. . .
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I can help you compiling it.

BTW, compiling the stock kernel needs more things than compiling the entire aosp.

And yes, we could integrate the dtb into the kernel image, so that the dtb partition wouldn't be used.

Then I could ship the twrp img file with the aosp kernel.

But as far as I know the vbmeta stuff gets used by the bootloader until you disable it via fastboot.

And it wouldn't be ideal to build your own vbmeta with the needed stuff, because then we can't even change the system partition.

vbmeta is a treble hater. :silly:

The compilation of the vbmeta monster.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
How to get magisk installed via twrp? I tried it via adb sideload but the installer can't mount the /data partition...how did u guys made it running?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
All you need you'll find in the 3rd post. Just follow the instructions exactly - step by step.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
No, exactly that's the Problem: i can't finish the 7th Step because the magisk installler is "unable to mount partitions" and so the "updater process ended with error: 1"

i used the recent files in the gdrive and made it step by step
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's weird.

In PIE?

Of course mounting data will only show an encrypted partition.

But it shouldn't throw this error.

Did you reboot into TWRP again after installing the stock & twrp installer before installing magisk?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
I didn't made the update to pie, cuz i heard from some bugs with unlocking the Bootloader. That's why i decided to stay on Oreo until i've unlocked the Bootloader, like i did a few Hours ago. after the first unsuccessful Installation via adb sideload, i decided to try to boot into System when i ran out of ideas: bootloop. so i tried the recent magisk beta 17.3 with the same Problem. twrp wasn't possible to mount my internal storage (btw: it's an clean install, i wiped the phone before)

i never booted to System after unlocking the Bootloader, Maybe this could be the reason for it....:rolleyes:

EDIT: i tried to wipe the Partition and changed the filesystem from ext4 to fat. TWRP could Access then and the magisk installer went completely through….now i got the Problem that i soft-bricked my phone with the message "your device is corrupt. it can't be trusted and will not boot"

now i'm searching for an Oreo-ftf or probably update to pie xD
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I didn't update the oreo TWRP anymore.

The pie TWRP has the latest Bugfixes. :)

And the bootloader bug does not break anything.

You can downgrade to Oreo and the bootloader will downgrade too.

I tested it and the Sony developer jerpelea did test the unlock of the bootloader after downgrading with success. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
Sounds good! But can i Flash twrp when i'm on pie with an locked bl? Doesn't the update to pie lock the bl again?

Or should i Flash twrp4pie first and update then via flashtool?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You can only flash signed stock firmware files. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
Okay, i thought about following steps:

1. Unbrick the phone with an oreo fw & newflasher

2. Unlock bootloader again

3. Flash twrp for pie and the pie fw (except boot to keep twrp)

4. Flash magisk

Is that the right order?

Sorry that i ask like an newbie, but i flashed my last phone to the times of android 5 :confused:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You may want to install a custom rom like lineageOS on the Android 5 phone to get Android 8 or 9 :silly:

After unlocking bootloader make a clean wipe flash of PIE.

Then follow the steps in the third post :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
I only meant that it's years ago when i last flashed anything...

I'll do that and give feedback from my xz2 ?

Thanks for your help and the awesome work to port us twrp to the xz2.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] janolucero:
How we can recover the camera preview feature after unlock the bootloader? im on android 9, or theres only fix for 8?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The xperia drmfix is in the works if you don't have a working camera preview in PIE.

(Weird, maybe the ones who used the Oreo DRMfix have a working one in PIE without it installed.)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Maybe someone want's to experiment with this OTA A/B TWRP keeper tool

https://github.com/Magisk-Modules-Repo/twrp-keep
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Status Update:

If I flash the boot.img file with the AOSP Recovery (made one on my own) I can still reboot into the system. Weird.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Sesamechicken:
Hi, for the second step

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

I get the error "unknown option"

Any ideas? I have the latest adb tools from google.

Thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
give me the output of

fastboot --version

adb --version

and we will see if you really really use the last version :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
I had the same. Try an older fastboot version. I made it with "minimal adb and fastboot"

---------- Post added at 09:24 PM ---------- Previous post was at 09:23 PM ----------

It worked! I finally got an xz2 on pie with magisk...but without an camera preview ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Nice :)

I'm using the newest r28 ADB and fastboot Plattform Tools from Google without any problems.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Sesamechicken:
fastboot version eac51f2bb6a8-android

adb version just gives me the menu
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
[MENTION=6031898]MartinX3[/MENTION]

One more!

I come to think that only those who had flashed the "old drmfix" on Oreo get the camera preview on Pie...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Sesamechicken:
f**k the minimal adb version worked. Thanks a lot guys!

---------- Post added at 09:29 PM ---------- Previous post was at 09:19 PM ----------

But now after step 5, I reboot the recovery and now I am stuck at the TWRP loading screen. Any ideas? Sorry for noob questions, this is my first sony device.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
Repeat step 1?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If you execute the latest version of the mentioned files in the exact mentioned order, this shouldn't happen in Android PIE 9.0 :confused:

I hope you used the latest fastboot, I had this fproblem with the wrong version.

At my side

./fastboot --version
fastboot version 28.0.1-4986621
./adb --version
Android Debug Bridge version 1.0.40
Version 4986621
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] janolucero:
Can you share it with me? Im truly desperate about camera preview :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please wait for [MENTION=8363210]sToRm//[/MENTION] making it installable. :)

The old drm was for the previous device generation and may harm your device.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
You should mention in your 1st post: Due to the loss of DRM, there is a probability that unlocking the bootloader breaks the camera preview (on Oreo for sure but can happen even on Pie). Some devs are working on a DRMfix.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Haldi4803:
Isn't it more like those who made a clean flash of PIE had a preview?

Anyone on Unlocked Bootloader with OTA that made a wipe/ clean flash afterwards and got Preview working?

Or anyone with a working preview who did NOT install DRM fix previously?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Thesinistah86:
I flashed an clean pie and got no camera preview. I guess it's only working when u flashed the drmfix for oreo before updating. Maybe pie uses the drmfix then and compile it somehow to work again(?????)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
No. Those who had flashed the old DRMfix in Oreo and then did a clean install of Pie get the camera preview (but no denoise, no xperia backup/restore, etc...).

I come to think that the old DRMfix had changed something in TA partition which persists and allows at least to keep the camera preview in Pie...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
That's possible. And that's what i warned about. Because if some data was written to the TA it's irreversible. Ahm... But it's also possible that there are some parts in the firmware, that were not flashed while updating to Pie. There were a lot of users reporting differences in the behavior after flashing Oreo with Flashtool instead of Newflasher. On other devices the DRM fix didn't work after flashing the Oreo firmware with Flashtool. I personally recommend Newflasher.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
ciao storm, any news about a official drmfix fully working with latest Oreo fw? i flashed it cause i don't like pie and also because to unlock the bl I'll need Oreo in any case, but for sure I'm not unlocking bl if we don't get a fully working drmfix first .. ;)

I flashed latest Oreo with flashtool though, so you mean I'll have to reflash it again with newflasher before unlocking and applying your fix when it will be ready? sad.. ;(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] sToRm//:
Sorry, but I'm not allowed to talk about that. Because the XDA mods think it's advertising if I answer questions like this.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
what's the problem if it is us who are asking and interested in your great tool? can't understand.. anyway can you reply me in private or can we make a telegram channel for example for people interested in updates on your fix, getting/testing it etc? tia
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
You can, as long as you don't say that we have to purchase a paid fix (and you don't give the link of course).

For instance, look at this thread: Mark Bencze - SUBSTRATUM & Legacy G6 Themes. Feedback, communication

XDA rules are clear enough ^^
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] janolucero:
hey strom if you have an external link, or if you want a contribution for your work im fine with it, but i really need the fix, so if you cant post things you can always send a message :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Clark Joseph Kent:
Thread cleaned.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
[MENTION=4387744]Frank Castle[/MENTION] since when you changed your name from JJD to this one and how you doing ? :)

Btw:

Bro [MENTION=6031898]MartinX3[/MENTION] any news about full working twrp or still issues with encryption, or can we use it with that and what are the bugs then ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The not decrypted userdata is the only bug and only don't let you use the userdata partition / internal sdcard.

And I continue my work in the few free time I get.

I created now a minimal Omni 9.0 build environment, since the previous owner stopped his work with 8.1

Will test it and then create a pull request for him.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] whiteduck89:
I'm coming undone on my H8324 dual sim XZ2C. EDIT - This is a two part problem ...

When trying on Oreo ...

1. fastboot flash boot twrp.img - Works, all good

2. fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img <- IMPORTANT OR THE SYSTEM WON'T BOOT! Works, all good

Reboot into RECOVERY (Power + VOL DOWN)

3. TWRP flash stockkernel-installer.zip Works, all good

4. TWRP flash twrp-3.2.3-0-xz2-xz2c-xz2p-installer.zip Works, all good

Reboot into RECOVERY

....

anddddd I'm stuck at the teamwin splash screen. I can access adb from here, but no idea where to now.

When trying on Pie ... - Updated

When using the files in 2018-10-13_19:39, the first boot into recovery would load a TWRP that had no touch.

When using the files in 2018-10-13_01:10, I had no problem. System boots and I now have rooted Pie :)

Just need DRMfix for Pie and I'll be happy as a pig in sh*t.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
[MENTION=218086]Martin[/MENTION]

What about oem partition?

Envoyé de mon H8266 en utilisant Tapatalk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You can only encrypt userdata/internal sdcard and sdcard.

And only userdata/internal sdcard is encrypted by default.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Are you using the pie latest stock firmware?

And did you used the last Universal and the last xz2c stuff?

In these two builds should be the same touchdrivers included.

In the third post is written what I need to find the cause of touch problems. :)

It's weird for me because I got touch.