AZN747

 找回密码
 立即注册
搜索
查看: 1324|回复: 0

New Project Treble by Google on Oreo Easy to upgrade Android

[复制链接]
发表于 2018-2-6 04:48:42 | 显示全部楼层 |阅读模式
Project Treble is most commonly described as an attempt by Google to modularize the Android OS framework to separate vendor specific code. Let’s break things down a bit more:

The full update process to bring a new Android version to devices is a long and complex topic, but Sony has done a great job with this infographic which outlines the basic steps.
The “vendor” usually refers to silicon-manufacturers such as Qualcomm, but can also refer to the maker of any other proprietary hardware found in a device. The “device maker” or “OEM” usually needs to wait for the vendor to update their code so the proprietary hardware works with the Android OS framework in a newer version of Android.
However, what is happening with Project Treble is that Google is requiring that any vendor-specific code be separated from the Android OS framework and instead live in its own vendor implementation. Usually this means that there is now a separate /vendor partition on Treble-enabled smartphones that contains a bunch of HALs (Hardware Abstraction Layers).
Furthermore, vendors must implement code that lets the Android OS framework communicate with HALs in a standardized way. This is done via HIDL (HAL Interface Definition Language). With this in place, an OEM can work on an Android update without having to wait on vendors to update their HALs. Theoretically, this should speed up the entire Android update process as vendors can update their code at any time through the Play Store, for example.
To help understand what a HAL is and how it relates to Android, let’s consider an analogy. Imagine a car. The steering wheel and brakes are the HAL while the driver is the Android OS framework. The driver (Android) moves the steering wheel and presses on the brakes (the HAL) in order to control the movement of the car (the hardware).
Now imagine if we lived in a world where every car manufacturer decided to design their steering wheels or re-arrange their brakes in a completely different way. If you put a driver in a new car, they may be confused with how to initially handle the vehicle. But thanks to standards, every driver should be familiar with how to operate a steering wheel and brakes on almost any car. Further, driving school teaches all drivers the proper way to operate a vehicle. In this analogy, the vehicle standards are Project Treble and driving school is HIDL.
Project Treble Android Oreo
Android Oreo on the Honor 8 Pro. Credits: XDA Recognized Developer OldDroid

What devices will get Project Treble support?
All devices that launch with Android 8.0 Oreo or above must fully support Project Treble.
All devices that upgrade to Android 8.0 Oreo are not required to fully support Project Treble.
The devices that have updates (official releases or closed betas) to Android 8.0 Oreo and do support Treble include the following:
Google Pixel
Google Pixel XL
Huawei Mate 9
Honor 8 Pro
Honor 9
Essential Phone
It is unlikely for any devices to unofficially receive Project Treble support via custom ROM development. HALs are not open source after all.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

AZN747

GMT-5, 2024-3-29 05:46 , Processed in 0.032300 second(s), 13 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表