Project Treble for Xperia XZ
Hey everyone,
I've updated the Project Treble builds for Android 10 and system-as-root.
No repartitioning necessary! This method is re-using the oem partition.
What is Project Treble?
Understanding Project Treble and Android updates
Talkin’ Treble: How Android engineers are winning the war on fragmentation
What are GSIs?
Android Source: Generic System Image (GSI)
Downloads:
How to install:
Bugs: See post #2
List of GSIs: phhusson's treble Generic System Image
Important: You need an AB, ARM64, system-as-root GSI! This is different from the Pie Project Treble builds!
GSIs based on phhusson's work offer the best compatibility.
Magisk: For Magisk to work, you need to tweak your TWRP installation, since it doesn't know that we have shuffled /vendor to the oem partition. You need to change /oem to /vendor in TWRP's fstab file.
See above for a tweaked TWRP.
If you want to go back to any other AOSP-based ROM that is not a GSI, simply re-flash the regular oem image and install like you usually would.
For developers:
This method is repurposing the oem partition to hold /vendor and odm(blobs). There's 400mb of space on that partition and we are only using ~260mb for blobs, while vendor is only about 20-30mb.
Re-partitioning can be quite dangerous if you do not know what you are doing. This method should be safe for everyone.
Developer guide to building yourself: sx.ix5.org
Tested:
Bugs are the same as the regular AOSP builds, plus some more if the GSI is not built well or doesn't have tweaks for Sony devices.
XDA:DevDB Information
Project Treble for Xperia XZ [F8331/2], ROM for the Sony Xperia XZ
Contributors
local__hero
Source Code: https://sx.ix5.org/info/fake-treble-for-xperia-xz/
ROM OS Version: Android 10
ROM Kernel: Linux 4.x
ROM Firmware Required: Stock .184 or .192
Based On: AOSP
Version Information
Status: Nightly
Created 2020-01-03
Last Updated 2020-07-22
Hey everyone,
I've updated the Project Treble builds for Android 10 and system-as-root.
No repartitioning necessary! This method is re-using the oem partition.
What is Project Treble?
Understanding Project Treble and Android updates
Talkin’ Treble: How Android engineers are winning the war on fragmentation
What are GSIs?
Android Source: Generic System Image (GSI)
Downloads:
- ROM: Download the latest aosp_f8331_*-TREBLE-NOSYSTEM-NIGHTLY.zip from sx.ix5.org/files/builds/kagura/treble/
- TWRP: Download twrp-kagura-oem-to-vendor.img
How to install:
- Back up your stuff
- Wipe data and caches
- Install the zip via TWRP (or unzip and install just the /boot and /vendor images via fastboot)
- Install any GSI via "fastboot flash system your-gsi-image.img"
- To use Magisk: Flash twrp-kagura-oem-to-vendor.img as recovery. Reboot into recovery and install Magisk like you usually would. If you want to go back to another ROM, you need to re-flash your old TWRP recovery as well. Note: Magisk is untested at the moment, needs tweaked recovery to accept new system-as-root status I guess.
Bugs: See post #2
DO NOT POST HERE FOR FLASHING HELP OR YOU WILL BE REPORTED. Read everything before posting.
If you have questions, ask them in this thread: Xperia XZ Pie ROMs Questions and Answers Thread
List of GSIs: phhusson's treble Generic System Image
Important: You need an AB, ARM64, system-as-root GSI! This is different from the Pie Project Treble builds!
GSIs based on phhusson's work offer the best compatibility.
Magisk: For Magisk to work, you need to tweak your TWRP installation, since it doesn't know that we have shuffled /vendor to the oem partition. You need to change /oem to /vendor in TWRP's fstab file.
See above for a tweaked TWRP.
If you want to go back to any other AOSP-based ROM that is not a GSI, simply re-flash the regular oem image and install like you usually would.
For developers:
This method is repurposing the oem partition to hold /vendor and odm(blobs). There's 400mb of space on that partition and we are only using ~260mb for blobs, while vendor is only about 20-30mb.
Re-partitioning can be quite dangerous if you do not know what you are doing. This method should be safe for everyone.
Developer guide to building yourself: sx.ix5.org
Tested:
- LineageOS 17
- Pixel Experience
- Camera should work everywhere
Bugs are the same as the regular AOSP builds, plus some more if the GSI is not built well or doesn't have tweaks for Sony devices.
XDA:DevDB Information
Project Treble for Xperia XZ [F8331/2], ROM for the Sony Xperia XZ
Contributors
local__hero
Source Code: https://sx.ix5.org/info/fake-treble-for-xperia-xz/
ROM OS Version: Android 10
ROM Kernel: Linux 4.x
ROM Firmware Required: Stock .184 or .192
Based On: AOSP
Version Information
Status: Nightly
Created 2020-01-03
Last Updated 2020-07-22
Last edited: