• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[9.0] Project Treble For XZ Premium [Final]

Search This thread

Sjll

Recognized Developer
Jun 4, 2017
510
591
Chongqing
Project Treble [Pie] For XZ Premium

Based on Sony Open Devices

I am not responsible for bricked devices, dead SD cards.


请中文用户遵守XDA规则,使用双语留言

Required files:

[Non-Tested]

[Tested]

V1.06-Patch:Link
You can replace the same file in /system/vendor/etc with V1.06-Patch, this patch could improve the performance a lot.

V1.05:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_yoshino.zip
V1.0:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_yoshino.zip
V0.95:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_yoshino.zip
V0.93:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v8_yoshino.zip
V0.85:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v5_yoshino.zip
EDIT: AEX 6.2 and Magisk works fine with V0.85, with Disable ForceEncrypt @LSS4181
V0.8:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v5_yoshino.zip
V0.3:Link With: SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V4_YOSHINO.ZIP
V0.2:Link With: SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V4_YOSHINO.ZIP
V0.1:Link With: SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V3_YOSHINO.ZIP
Twrp:Link
First: Flash Twrp I built which supports a Vendor Partition

Code:
fastboot flash recovery < DIR of recovery.img >
Second: flash Treble-xzp-VX.X.zip in Twrp .
Third: flash SW_binaries provided by Sony.

You can download it from Sony official website.
Code:
fastboot flash oem < DIR of OEM.img >

Fourth: Flash a GSI compatible System image and boot!


Update and known BUG:
V1.05:
Update:

1. Thermal back, you will not hot in this summer.
2. CPU quiet back.
3. F2FS support for cache(Qnovo) and userdata partitions.

V1.0:
Fix:

1. Source code update.
2. Cancel 90Hz.
3. Support Erfans's Android Q GSI.
Our treble file could support Erfans's Android Q GSI, You need to flash this fix.
If you meet crash, you need to delete vendor/overlay.
If you meet endless bootanimite, Try to force reboot.
Bugs:

Need to feedback.

V0.95:
Fix:

1. Source code update.
2. 90Hz Screen frame rate.
Bugs:
Need to feedback.

V0.85:
Fix:

1. Revert to HMP to get better performance.
2. Magisk Fix.
Bugs:
Need to feedback.

V0.8:
New feature:
1. Kernel EAS support.
2. Camera HAL3 support
3. Crosshatch HAL.
Fix:
1. Sleep dead bug totally fixed.
2. Camera disconnect bug fixed.
Bugs:
1. Magisk FC.

V0.3:
Fix:

1.Sleep dead bug should be fixed, tested on PE 9.0 GSI.
Bugs:
1.Camera disconnect after screen-off.

V0.2:
Bugs:

1. May sleep dead.
2.Camera disconnect after screen-off.

V0.1:
Bugs:

1. Wifi is broken(Only G8142).
2. USB connection is broken.
3. May sleep dead.


XDA:DevDB Information
Treble For XZP, ROM for the Sony Xperia XZ Premium

Source Codes
Link
Contributors
Sjll
ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x

Paypal
I am very happy to receive your donation.

Version Information
Status:
Testing

Created 2018-12-20
Last Updated 2019-08-12
 

Attachments

  • 1.jpg
    1.jpg
    256.7 KB · Views: 7,620
  • 2.jpg
    2.jpg
    249.7 KB · Views: 7,493
  • 5.jpg
    5.jpg
    234.8 KB · Views: 7,355
  • 3.jpg
    3.jpg
    245.3 KB · Views: 7,139
Last edited:

Miustone

Senior Member
@Sjll

Thanks heaps mate, hugely appreciated, downloading a few different GSI's now ;)

@Miustone

Any recommendations? Im downloading aosp extended and lineage 16.0 images now.

AEX (AOSP Extended) and other Official GSIs are the best Images You can get for now (No big Bugs). Only one unofficial GSI was running good for Me and that was Pixel Expierence from XDA. I really have to find a way to edit the Vendor Content of our XZPs to gain more Features and stuff Like that. There are just many things i miss on my Xperia which are available on My AMOLED Axon 7 after editing the Vendor/OEM Image manually with Root... But no Wonder, the OEM Images are directly from SONY... But i'm looking Forward. Treble is the best what happend to Android in all this Years :)
 
  • Like
Reactions: josephnero

Beetle84

Recognized Contributor
Oct 24, 2013
2,472
1,479
Hervey Bay
Motorola Moto G100 / Edge S
AEX (AOSP Extended) and other Official GSIs are the best Images You can get for now (No big Bugs). Only one unofficial GSI was running good for Me and that was Pixel Expierence from XDA. I really have to find a way to edit the Vendor Content of our XZPs to gain more Features and stuff Like that. There are just many things i miss on my Xperia which are available on My AMOLED Axon 7 after editing the Vendor/OEM Image manually with Root... But no Wonder, the OEM Images are directly from SONY... But i'm looking Forward. Treble is the best what happend to Android in all this Years :)

AEX is working nicely so far for me, this is a gamechanger for the XZP, I was beginning to look at new handsets but not for a while now.

WiFi working fine for me on G8141.
 

Attachments

  • IMG_20181222_232949.jpg
    IMG_20181222_232949.jpg
    106.7 KB · Views: 1,401
  • Like
Reactions: josephnero

leiersai

Member
Mar 22, 2017
44
3
AEX (AOSP Extended) and other Official GSIs are the best Images You can get for now (No big Bugs). Only one unofficial GSI was running good for Me and that was Pixel Expierence from XDA. I really have to find a way to edit the Vendor Content of our XZPs to gain more Features and stuff Like that. There are just many things i miss on my Xperia which are available on My AMOLED Axon 7 after editing the Vendor/OEM Image manually with Root... But no Wonder, the OEM Images are directly from SONY... But i'm looking Forward. Treble is the best what happend to Android in all this Years :)
is it possible to port dsee-hx and noise canceling on other ROMs?
 

Miustone

Senior Member
AEX is working nicely so far for me, this is a gamechanger for the XZP, I was beginning to look at new handsets but not for a while now.

WiFi working fine for me on G8141.

Same here in all Points. What a nice Gift to the Holidays :) My XZ Premium feels like a actual Device again. Think i'll get one for My GF too. The Prices are low atm and it's just a Solid Piece of Hardware combined with Treble. Was thinking about Xiaomi for her but the G8141 plays Out the Most actual Devices in the Price Range (~300€). Only real Upgrade for me could be a XZ3 but looks like that has to wait now...

Edit. Think the XZ Premium has the better Design and Speaker Layout. But damn, i would Like to have a 1440p OLED SONY ?
 
Last edited:

Miustone

Senior Member
@OP

Could You add the Vendor Partition to the Wipe Menu ,and System and OEM/Vendor Options in the Image Flash Menu from TWRP? I have that Options on My Axon 7 (OKI Labs TWRP Mod from XDA). I'm also unsure if the AROMA TWRP Patch Out of this Forum is already included. The TWRP Versions we use is a bit older i think (3.1.xxxx).

Everything besides Bluetooth is working really Well. Performance is a lot better compared to My Axon 7 and more will be possible after playing around with the Vendor Content. Great Base to Play with!

Thanks again! I'll spent a Coffee next Year!
 
  • Like
Reactions: ricardo99831390

Sjll

Recognized Developer
Jun 4, 2017
510
591
Chongqing
Awesome! You Made me very Happy. Now can i fully Focus on Treble Development! I will Support You with Feedback and maybe some possible Bug fixes. Keep Up the Work, you did a great start for now!

The SODP team has done a lot of work on Pie GSI compatibility. I just use the existed partitions and modified source code to make treble works on XZP.
 

Miustone

Senior Member
@Miustone how's the camera in our XZP with AEX? Is it still as 'grumpy' as it was on Oreo?
I remember you working on enhancing the camera for AOSP.

It is much better right now. Full Camera 2 API Support including RAW and with the right APP like Open Camera do You have full Control of everything. The Sleep Dead Bug is with AEX no problem btw. Just enable the Always on Display Option and it will never sleep. Battery is pretty good and i get over the whole day with LTE+, Wifi and 4hrs+ Display usage. The Treble Kernel is really good and with some fine tuning with Kernel Adiutor is everything even better :)

I'm playing right now with the Vendor Partition eg. the build.prop and gained already some nice optimizations like better responding Ok Google Commands and better Noise Reduction. I think there will come soon some good stuff to Treble on our Xperias :fingers-crossed:
 

Beetle84

Recognized Contributor
Oct 24, 2013
2,472
1,479
Hervey Bay
Motorola Moto G100 / Edge S
It is much better right now. Full Camera 2 API Support including RAW and with the right APP like Open Camera do You have full Control of everything. The Sleep Dead Bug is with AEX no problem btw. Just enable the Always on Display Option and it will never sleep. Battery is pretty good and i get over the whole day with LTE+, Wifi and 4hrs+ Display usage. The Treble Kernel is really good and with some fine tuning with Kernel Adiutor is everything even better :)

I'm playing right now with the Vendor Partition eg. the build.prop and gained already some nice optimizations like better responding Ok Google Commands and better Noise Reduction. I think there will come soon some good stuff to Treble on our Xperias :fingers-crossed:

Cheers for the always on display tip, aex will be my daily driver now.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    Project Treble [Pie] For XZ Premium

    Based on Sony Open Devices

    I am not responsible for bricked devices, dead SD cards.


    请中文用户遵守XDA规则,使用双语留言

    Required files:

    [Non-Tested]

    [Tested]

    V1.06-Patch:Link
    You can replace the same file in /system/vendor/etc with V1.06-Patch, this patch could improve the performance a lot.

    V1.05:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_yoshino.zip
    V1.0:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_yoshino.zip
    V0.95:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_yoshino.zip
    V0.93:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v8_yoshino.zip
    V0.85:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v5_yoshino.zip
    EDIT: AEX 6.2 and Magisk works fine with V0.85, with Disable ForceEncrypt @LSS4181
    V0.8:Link With: SW_binaries_for_Xperia_Android_9.0_2.3.2_v5_yoshino.zip
    V0.3:Link With: SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V4_YOSHINO.ZIP
    V0.2:Link With: SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V4_YOSHINO.ZIP
    V0.1:Link With: SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V3_YOSHINO.ZIP
    Twrp:Link
    First: Flash Twrp I built which supports a Vendor Partition

    Code:
    fastboot flash recovery < DIR of recovery.img >
    Second: flash Treble-xzp-VX.X.zip in Twrp .
    Third: flash SW_binaries provided by Sony.

    You can download it from Sony official website.
    Code:
    fastboot flash oem < DIR of OEM.img >

    Fourth: Flash a GSI compatible System image and boot!


    Update and known BUG:
    V1.05:
    Update:

    1. Thermal back, you will not hot in this summer.
    2. CPU quiet back.
    3. F2FS support for cache(Qnovo) and userdata partitions.

    V1.0:
    Fix:

    1. Source code update.
    2. Cancel 90Hz.
    3. Support Erfans's Android Q GSI.
    Our treble file could support Erfans's Android Q GSI, You need to flash this fix.
    If you meet crash, you need to delete vendor/overlay.
    If you meet endless bootanimite, Try to force reboot.
    Bugs:

    Need to feedback.

    V0.95:
    Fix:

    1. Source code update.
    2. 90Hz Screen frame rate.
    Bugs:
    Need to feedback.

    V0.85:
    Fix:

    1. Revert to HMP to get better performance.
    2. Magisk Fix.
    Bugs:
    Need to feedback.

    V0.8:
    New feature:
    1. Kernel EAS support.
    2. Camera HAL3 support
    3. Crosshatch HAL.
    Fix:
    1. Sleep dead bug totally fixed.
    2. Camera disconnect bug fixed.
    Bugs:
    1. Magisk FC.

    V0.3:
    Fix:

    1.Sleep dead bug should be fixed, tested on PE 9.0 GSI.
    Bugs:
    1.Camera disconnect after screen-off.

    V0.2:
    Bugs:

    1. May sleep dead.
    2.Camera disconnect after screen-off.

    V0.1:
    Bugs:

    1. Wifi is broken(Only G8142).
    2. USB connection is broken.
    3. May sleep dead.


    XDA:DevDB Information
    Treble For XZP, ROM for the Sony Xperia XZ Premium

    Source Codes
    Link
    Contributors
    Sjll
    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 4.x

    Paypal
    I am very happy to receive your donation.

    Version Information
    Status:
    Testing

    Created 2018-12-20
    Last Updated 2019-08-12
    6
    @Miustone how's the camera in our XZP with AEX? Is it still as 'grumpy' as it was on Oreo?
    I remember you working on enhancing the camera for AOSP.

    It is much better right now. Full Camera 2 API Support including RAW and with the right APP like Open Camera do You have full Control of everything. The Sleep Dead Bug is with AEX no problem btw. Just enable the Always on Display Option and it will never sleep. Battery is pretty good and i get over the whole day with LTE+, Wifi and 4hrs+ Display usage. The Treble Kernel is really good and with some fine tuning with Kernel Adiutor is everything even better :)

    I'm playing right now with the Vendor Partition eg. the build.prop and gained already some nice optimizations like better responding Ok Google Commands and better Noise Reduction. I think there will come soon some good stuff to Treble on our Xperias :fingers-crossed:
    6
    How about having a go using SOMC (stock) rather than SODP? I'm not sure if possibly we'll need libs from from newer Sony's that have treble but it'll be much more optimised.
    I'm woring on it.
    4
    I believe that was a GSIROM dependant bug. But still exists for 0.2.

    It's the bug of SODP, need offcial fix it.
    3
    Installer

    For our XZ Premium with no Image Support for Vendor and System Images in TWRP...

    Place "system.img" or "vendor.img" in the correct zip installer (root directory) and flash with TWRP. The Vendor Image is the Image You'll download from SONY. Not sure if it's working yet but please let Me know! Don't have the Time to test...

    BR