Project Treble must be supported on devices that launch with Android 8.0 Oreo out-of-the -box. However, older Android devices need not comply to Project Treble requirements. Also, the devices that get Android 8.0 Oreo update are also exempted.
Mi 5 Project Treble
A major development was witnessed earlier this year when Xiaomi Redmi Note 4 bought Project Treble support. Then, the Xiaomi Mi 5s also received Project Treble compatibility unofficially. And now Mi 5 is also receiving Project Treble support, though unofficially.
The Mi 5 (device codename: gemini) is a 2016 Xiaomi flagship smartphone. It has a high-end list of specifications, including the Qualcomm Snapdragon 820 system-on-chip, 3GB/4GB of RAM with 32GB/64GB/128GB of storage, 5.15-inch Full HD (1920×1080) 16:9 IPS display, 16MP rear camera, 4MP front camera, and a 3000mAh battery. It shipped with MIUI 7 on top of Android Marshmallow, and it has recently received the MIUI 9 update. An Android Oreo-based MIUI Global Beta ROM has also been released for the device.
Treble support for the Mi 5 brings two partitions: system and vendor. The system partition contains the generic system image (GSI), while the vendor partition has device specific files required for booting and running the phone.
It should be noted that the Xiaomi Mi 5 is an A-only device. Regarding Generic System Images, users need to download ARM64 and A-only images (such as Phh-Treble by XDA Senior Member phhusson). The developers mention that the latest version of Phh-Treble is working with the Project Treble gemini zip. Thanks to Treble, Mi 5 users can easily change the system image and run different system images with the same kernel and vendor partition.
The instructions to install the alpha Project Treble zip on the Xiaomi Mi 5 are:
- Download the Project Treble zip.
- Download an A-only GSI image.
- Reboot to recovery (the developers mention that TWRP 3.2.1-1 is required).
- Wipe the System/Data/Cache/Dalvik partitions.
- Flash Treble gemini zip.
- Flash the GSI system image, and reboot.