Treble is a project aimed at making Android update times faster by separating part of the operating system from vendor implementation to a new vendor interface. Treble provides some of the updates (security patches, kernel, etc.) for the device by Google rather than from the Android OS framework. The second part of the update is provided by the device-specific original vendor (graphical superstructure of the user environment, vendor specific system applications, etc.)
Project Treble originated with the release of Android 8.0 Oreo and marks a revolutionary change in the system's architecture. It can be imagined as a fragmentation of the integral framework and the implementation of a manufacturer's old and new operating system.
The Android operating system consists mainly of the following layers:
For example:
Many phones use one camera system. The Sony Exmor RS IMX378 is used by Google Pixel, Xiaomi Mi5S and BlackBerry KEYone. Even when all of these phones have the same operating system, the photos look different for each device because each phone uses a different HAL. HAL basically solves the amount of software editing, such as contrast, colour rendering, and so on.
HAL is tailor-made for each specific hardware and software. By changing one or the other, it stops working as it should. Project Treble, however, has defined unchangeable interfaces by which hardware (camera, microphone, etc.) changes us sikved by the software. You can imagine this as a "software connector" that allows you to attach various different codes.