yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LazerL0rd:
Firstly, I would like to say I believe my eyes over my ears. If I can't see evidence of a working mod it's not true to me. I've experienced so many times placebo myself, let alone others.

There are quite a few props in that build.prop you gave which are designed for specific OEMs and don't apply to Sony. For example audio.hifi_rec.* and ro.config.hifi_always_on which don't make a difference on our device as they are LG props (specifically for the QuadDAC).

I've also worked on many audio mods, from the kernel side of my DTS HPX port (included in many custom kernels) to ARISE, to Ainur Sauron. So I've got a view from practically every angle there is - I've even got a custom CAF audio HAL that I used. About audio mods being outdated, have a look here: https://xdaforums.com/android/software/soundmod-ainur-audio-t3450516/post68427418

In fact, the build.prop changes just as much or even more than audio mods and so some changes which even if they worked universally, might not for very long. There are so many prop changes spammed across the web that don't work anymore or never even did. It's really best to avoid that until documentation can prove it. Eg. in our DTS port we don't add any props until we see the pseudocode function from the necessary libs we decompiled.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
Don't worrie about prop lines from other OEMs since My Patch isn't Device Specific like a usual ROM. It works on many Devices running both, Stock and AOSP. I said before it's a dirty and quick build.prop edit, but it doesn't forces conflicts/bugs and adds some things i still miss on many ROMs. Think we are going a bit OT here, but i think i'll upload some stuff this Year along with Threads on XDA and You can take a look on my latest work for Android 9 :cowboy:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] megaxp:
V0.3 available.

persists even may sleep dead in the GSI rom :(

problem persists in the following rom that install with RResurrection Remix and Pixel experience
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ricardo99831390:
what about the Bluetooth??
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] megaxp:
Bluetooth works fine on pixel exp and Rremix, the problem is in aex rom

Enviado desde mi Phh-Treble vanilla mediante Tapatalk
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ricardo99831390:
nice, and it's true that the sleep dead bug stills appears like the other guy said? have you experienced it I really want to make the change. Maybe it's related to that specific Rom
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] megaxp:
still persists sleep dead, the problem is OEM FW... wait a new release update of beta AOSP pie binaries. https://developer.sony.com/develop/open-devices/latest-updates
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ricardo99831390:
ohh ok thanks for the quick response I will have to wait.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Yanun:
There's update of kernel blobs(v5). Can someone check out if dead sleep bug still exists?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
I had never meet sleep dead issue ,tested on pixel experience,, OEM v4.

Based stock 47.1.A.16.20.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
It's fixed by flashing Your Kernel only over AEX. Devices wakes up fine even after covered sensors.

Only Bug with v3 is the Camera. Thanks for Your Updates and Work!

Edit: Random Dead again. Will try other GSIs after some sleep...
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Beetle84:
I will test on RR official Oreo gsi. Maybe just pie related?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
I'm still running AEX 9.0 with My build.prop and the Kernel from the V0.3 Vendor Zip with V4 SONY Image. The Sleep Bug seems to be fixed, the dead happend just once to Me in around 12 Hours with Only Magisk 18.0 on the Kernel Image...

XZP G8141 btw
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] megaxp:
On stock aosp sony have same problem sleepdead,

gsi Works fine a hours and get random sleep deads.

Test on fw .41.

Rremix

PE

Arrow Os

Aex

-----

Official aosp xperia xzp have same error sleep dead.

Enviado desde mi G8141 mediante Tapatalk
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ricardo99831390:
Yes I have experienced it too. Also wifi didn't worked. I flashed everything as the guide said we will have to wait for new binaries from sony
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] megaxp:
all guys, V5 is realeased https://developer.sony.com/file/dow...-for-aosp-pie-android-9-0-kernel-4-9-yoshino/

now I will install and test.

thank you very much for your great work I hope I can help you in reporting bugs [MENTION=8321130]Sjll[/MENTION]

edit: install 3 different roms, along with the v0.3 patch and v5 sony binaries.

does not start the system, it stays in the logos of the rom. over FW Oreo .20.

edit2: upgrade stock sony FW .41 (android O .20 to P .41) and next report comming soon.

Persist Sleep dead. binaries V5 more than faster to V4
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Yanun:
Summarizing what Sjll and Miustone wrote try this:

1.Be on stock oreo 47.1.A.16.20

2.Follow steps from first page

3.Let boot up gsi image

4.When gsi boot up, power off phone and go to fastboot

5. Extract boot.img from v0.3.zip and flash it

6.Boot up phone and see if dead sleep bug still exists.

I'm gonna try it as well and will report back if this method works.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Thanks for your feedback.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
OEM V5 need new vendor support it, new version is comming soon.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] megaxp:
Thanks for sharing new kernel all bugs finally fixed, .

Im have a problem with twrp, app freeze and force restart. work twrp with a usb, without usb force restart and freeze.

thx for your support

Enviado desde mi Phh-Treble vanilla mediante Tapatalk
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] fedemyth:
Same problem here. Hope it's just a silly mistake
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
App works fine with built AOSP system.img, It should be an issue of GSI.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
Glad to have You here Man! Awesome Update! You'll get a Coffee from Me next Month :highfive:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] megaxp:
I'm wrong, the application works fine, the problem is that when you turn on the phone and access TWRP, the phone freezes and restarts, the only way to fix it is by connecting the USB cable and there I can enter TWRP.

the other how can I install magisk? when patching the boot with Magisk, the system does not start, in the previous version there was no problem.

Very grateful for your great work!
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Beetle84:
Try different magisk zips?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Magisk seems not works with Android Security Patch on 2019.1.

I will try to check Twrp problem. Thanks for feedback.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Really thanks for your help!
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
About the Magisk Problem. I'm not sure but i think there is a Kernel Patch for Magisk which You can cherry Pick to gain better Support for it. It will also let us Pass SafetyNet out of the Box. Maybe can You ask Shoey who does the Stock Kernels here for the XZ Premium...!?

And while You work on TWRP. Could You please add the Options to Flash System and Vendor Images from the TWRP Install Menue? IT was really hard last night to get my Phone working again without a PC. My Axon 7 has this Options if You want to See how it looks like...
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] kugimiya530:
how do you guys flash gsi rom

TWRP or Fastboot....

in twrp i flash with .img there is no system can select

in fastboot after i flash and wipe data restart

Sony logo>Auto enter recovery..

sorry for my bad english

----------------update------------

finally i success

I didn't notice in TWRP WIPE>there is wipe data botton

I go advanced wipe data so i fail

thx all
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Naku0426:
倒数第二句啥意思？？

所以
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] kugimiya530:
wipe裡面還有一個進階 裡面也可以清除data 用這邊的清除是錯的 還是會造成無法進去

要選wipe進去裡面的右邊那個清除data的按鈕。

按了以後要輸入Yes才能清的那個選項就對了
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Naku0426:
。

---------- Post added at 07:40 AM ---------- Previous post was at 07:31 AM ----------
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ricardo99831390:
Do we use the binaries from Android file host? Or the ones from Sony the v5 version of course
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
They are the same, AFH is only for backup.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
https://www.androidfilehost.com/?fid=11410963190603912738

Try it, if works, feadback please.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
Thank you very much! I'll deep test and push feedback asap :good:

Think ill get my money today so i can finally Donate to You :)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
I'm having some strange issues on G8142 with this TWRP. I'm previously using official TWRP 3.2.3 and I'm preparing to flash this (currently on CarbonROM Oreo).

Your recovery (TWRP 3.1.1 based) doesn't seem to work (both twrp-Q and twrp-Q-v2). After flashing, I get to the menu with a CPU: 0 C (on official TWRP it's some very strange number), and TWRP just froze there then rebooted itself (presumably a kernel panic).

Do I need some other preparations before using this recovery? And, for better compatibility, do I need to do a full flash of a Pie stock FTF before flashing Project Treble files? (I'll have things fully backed up, as doing so will wipe everything)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
I'm on latest Pie for the latest Bootloader and Modem and don't have any issues with this Recovery. Except for the CPU info, but it never worked for Me with any TWRP Versions on the XZP. Try the latest FTF with Xperifirm and Newflasher and report back if it solved the Issues for you :fingers-crossed:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
Currently I'm only experienced in using FlashTool (Newflasher is still new to me)... is it possible to flash stock Pie ROMs with it right now? I know it can flash stock Oreo ROMs with it at present, and it's what I used to flash stock oreo versions (for modem and stock OEM).

I know that TWRP CPU info is bugged. On twrp-Q (v2) it simply shows 0 then it froze and rebooted. On official TWRP it shows some weird numbers but the recovery itself works.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Beetle84:
Newflasher works great with pie, just add the files to the firmware folder like oreo.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
I'll attempt using FlashTool for now (since I could control and confirm what files I'll be flashing to the device). From the looks of it, it's supposed to work if proper FSC files are provided... but will the FSC that were used to flash Oreo stock ROM usable for flashing Pie?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Sorry, I also build and tested treble on G8142, I had not met your problem. I think you may need to flash a FTF before go treble.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
I had already received your donation. Really thanks for your help!

BTW, can new twrp flash gsi image? The XZP I had returned to my netizen, so I can't test it.

If works, I will try to add function to flash OEM image.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Hey, I understand your problem. I used to own 2 Xperia X performance. One can hot boot twrp image via fastboot. But another could only boot into twrp via flashing image into recovery partition. My XZ1 could not hot boot a twrp image either.

I guess there are some difference among various area version.But I can't find them. So I could only tell you to use hot boot.

About Magisk, I am trying to find the reasons. It seems all SODP devices can't boot after flashing magisk with Android Security Patch on 2019.1.5
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
So the Magisk issue is SODP-generic. I recall back then when I attempted to build and flash a AOSP image (according to official guide), the phone bootloops if I flash Magisk, and can only be booted without it (though it only lasts for a few seconds as Bluetooth and other things crash immediately after startup then the phone powered off by itself). The AOSP image attempt was around early last December if I recall, so it might not entirely be specific to January 2019 security patch.

When flashing Magisk (on Treble or AOSP boot image) it reported about something like the image being "signed with AVB 1.0", and that it tried to remove "dm(avb)-verity" from dtb and signed the image back with test keys. With CarbonROM it wasn't the case (and no problems). It's possible that the phone might not be accepting a boot image signed with test keys which caused the phone to continue rebooting on Sony logo (as opposed to being stuck there).

And what about the ClassNotFoundException with the bluetooth stack? On AEX I couldn't turn on Bluetooth because of it. Something's probably missing. (EDIT: The bug was on AEX's side. For some reasons, bluetooth was left out on the latest build, 20181219). Speaking of GSIs, which one is the best for this device so far? I mean, no major issues like AEX's missing bluetooth stack, or other possibly missing/broken features.

I believe the compatibility between the recovery's kernel image and bootloader might be behind the TWRP booting issue. Back then with a 47.1.A.16.20 (Customized HK) ROM, I could always boot and reboot to flashed official TWRP without issues, but your TWRP freezes and reboot (as well as having black screen). Not sure if there's a way to substitute the kernel image used by the recovery for some better compatibility. I'm currently using 47.2.A.2.33 (Customized CN) as the base. (In turn, the official TWRP doesn't seem to boot properly via hot boot)

I've reverted to a previous backup of my CarbonROM (and my internal storage stuffs) for now. Magisk is essential here because I need it for Titanium Backup, which I use to restore previously installed apps with little hassle. Given how GSIs are installed (they're flashed directly, without caring about addon.d and such), I'm wondering if MagiCGApps module (which can systemlessly install OpenGapps) would be compatible for the purpose. (EDIT: It seems with stock Pie blobs I cannot access the camera properly anymore, like taking pictures or scanning QR code... so I really hope this can be resolved quick...)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] HuiYun:
老哥辛苦了，酷安来的
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
I posted a TWRP Log one or Two Pages back, maybe can You use it to find the the Problem. It seemed like it cant detect the Partition Sizes or the Image Size (Space calculation) but i think the Log isn't telling much. OEM Image and System Image Flash are both located on the Bottom of the Log. I also noticed that we can't wipe Vendor with V2 which could also be Helpful.

Maybe will it Help to use a newer TWRP Version with a newer Recovery Info Version (Actual One tells the Device is on 7.1.2 SDK25 from August 2017).

I'm looking forward to Push another Donation once this Problems are gone as little Motivation! Thank You very much for Your Work again. Think You're doing the Most important Work on this Device right now!

All the Best!
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
Is there any specific details about fixing the Magisk bootloop with January 2019 security patch yet?

Also, I'm wondering about any specific options needed to build the kernel for this (Treble) and, is it possible to build the kernel without signing it with AVB (or, does Android Pie enforce minimum AVB requirement)?

Currently the kernel image is AVB 1.0-signed and Magisk install involves removing dm(avb)-verity from dtb then sign back the image with test keys, and I suspect that might be related to the bootloop as I also had this same issue after flashing Magisk during an attempt to build and flash AOSP (built according to official guide), against the self-built AOSP kernel image (it was actually bootable without Magisk), between late November and early December last year (before Jan 2019 security). Is it possible to build the kernel without AVB and dm-verity (as I don't recall seeing CarbonROM's kernel having those when flashing Magisk, and it has no issues).

And as for the TWRP boot freeze issue, I might consider experimenting with substituting kernel image with the one from the official recovery to see if it could make any difference (hope the old tools I found for porting TWRP to unsupported MediaTek devices still works with this one...)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Try this one please.

https://www.androidfilehost.com/?fid=11410963190603914121
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
I think you can test newest AOSP whether it can boot with Magisk. Maybe we need to wait for Magisk update. About bluetooth, I guess it may related with GSI. If you want root, you can choose a GSI with su.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
Tried it and here is what i've noticed:

-System and SONY Images are flashing now

-I have a OEM and Vendor Partition in TWRP

-Flashed the SONY Image to both of them

-Got a Bootloop

-Wipe Menu does not show OEM and/or Vendor

-Backup/Restore can backup and Restore OEM/Vendor

-The TWRP does not Support F2FS

I will try to flash the SONY Image with fastboot flash oem to See If at least the System gets flashed correct (TWRP can be leaved without Missing OS Warning).

Will Report Back in some Minutes...

EDIT: Looks like MTP is broken too. Can't copy the log from TWRP. Seems like System flashs are also faulty over TWRP. Had to use fastboot to flash the system too to get My Device booting. Log will come once i'm in the system!

EDIT2: Can't boot into the System. Think the Recovery messed up the Vendor Partition somehow...
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
Updated Build Prop

Just Made this some Minutes ago while working on My new Patch... Just Copy both Files to the Internal Storage (Not in a Folder), and flash the the ZIP (Remove the .txt Extension from the Prop before (snap.prop)). It will cleanly Patch Your build props without duplicating entries or leaving different Values on one Entry.

You can Check in Developer Settings under GPU Rendering if it worked (Should be On even after Reboots)

Enjoy :cowboy:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ricardo99831390:
What does your patch do?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
In first Line optimizations of existing Settings and adding Software/Hardware configs and Features. You will notice a more fluid ui, better performance in Games, better overall audio quality and some extras like more Audio Volume Steps, Lockscreen Rotation and other Stuff. 99% of the ROMs are coming with Generic Build Props which gets changed by my Patches (While also adding libs, frameworks, apps and permissions in the full Patches).

This is just a prop edit from My last Patch which works still very well on Pie. A more optimized script will come with my new full patch...

BR:cowboy:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
Hmmm, I'm curious about these lines:

sf.display_density=400
sf.display-size=2160x3840
sf.lcd_density=400
sf.lcd_size=2160x3840
sys.display-density=480
sys.display-size=2160x3840

And there are some more references about setting display size to 4K... Not sure how the patches are applied, but does this mean it'll patch the system to always try using 4K resolution? I recall having seen some games flicker when I set to that mode (using terminal commands), so I ended up switching it back to default and not using it. Speaking of which, is it currently possible to utilize 1080p@120Hz (the Dynamic Resolution Switching functionality) in our HAL yet?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
These Lines are simply telling the System/Apps which Resolution can be used. They should be on GSI ROMs in the System Build Prop since Treble splitted the handling of some Values. I'm still researching in this and since i'm the only one who does that will it take some Time to set this Entries to the right place and Values again. My next Patch will include two Scripts with two config files for Vendor and System build.props containing the right Entries for each. But it's good to use already and the only bug i found was related to the Screen Rotation Sensors (Display does not go back in normal Postion with Auto Rotation on).

In short, add this Line to any GSI build.prop on any Device and Youtube, Netflix, Amazon and Co. will play in 4K. If the Display can switches over to this Resolution, is handled by the Vendor/Kernel Part since Treble. As far as i know runs our XZ Premium on 1080@60 all the Time on GSIs (Tested with mine). Maybe can the OP do something about that... Stock based Treble instead of the actual SODP could be also a Solution to us...
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
[MENTION=8321130]Sjll[/MENTION]

I was researching about TWRP and was wondering if You could compare the TWRP from the Axon 7 (Oki Lab Mod) with ours to find the Issue... The Partitions should be called by Name which are the same on All Devices, but maybe does the Repartition Zip breaks something. I've also seen a Guy on the XZ Forums who does Treble and uses another way for it. Maybe could You talk to him and work together!?

It is really strange that our TWRP has just Recovery and Boot Image Install Options officially. I'm curious if [MENTION=3816568]Myself5[/MENTION] can help out here as official TWRP Maintainer for the XZP?

---------- Post added at 03:33 ---------- Previous post was at 03:33 ----------

[/COLOR [MENTION=8321130]Sjll[/MENTION]

I was researching about TWRP and was wondering if You could compare the TWRP from the Axon 7 (Oki Lab Mod) with ours to find the Issue... The Partitions should be called by Name which are the same on All Devices, but maybe does the Repartition Zip breaks something. I've also seen a Guy on the XZ Forums who does Treble and uses another way for it. Maybe could You talk to him and work together!?

It is really strange that our TWRP has just Recovery and Boot Image Install Options officially. I'm curious if [MENTION=3816568]Myself5[/MENTION] can help out here as official TWRP Maintainer for the XZP?