In Android 8.0 and higher, the lower-level layers are re-written to adopt a new, more modular architecture. Devices running Android 8.0 and higher must support HALs written in HIDL, with a few exceptions listed below. These HALs can be binderized or passthrough. In Android 11, HALs written in AIDL are also supported. All AIDL HALs are binderized.
Binderized HALs. HALs expressed in HAL interface definition language (HIDL) or Android interface definition language (AIDL). These HALs replace both conventional and legacy HALs used in earlier versions of Android. In a Binderized HAL, the Android framework and HALs communicate with each other using binder inter-process communication (IPC) calls. All devices launching with Android 8.0 or later must support binderized HALs only.
Passthrough HALs. A HIDL-wrapped conventional or Legacy HALs These HALs wrap existing HALs and can serve the HAL in binderized and same-process (passthrough) modes. Devices upgrading to Android 8.0 can use passthrough HALs.
HAL mode requirements
|Launch with Android 8.0||HALs listed in Passthrough HALs must be passthrough.||All other HALs are binderized (including HALs that are vendor extensions).|
|Upgrade to Android 8.0||HALs listed in Passthrough HALs must be passthrough.||HALs listed in Binderized HALs must be binderized.|
|All other HALs provided by the vendor image can be in passthrough OR binderized mode. In a fully Treble-compliant device, all of these must be binderized.|
Android requires the following HALS to to be binderized on all Android devices regardless of whether they are launch devices or upgrade devices:
fingerprintdwhich is no longer in Android 8.0.
email@example.com. New in Android 8.0.
firstname.lastname@example.org. The original interface provided by this HAL could not be shimmed and was changed. Because of this,
dumpstate_boardmust be re-implemented on a given device (this is an optional HAL).
email@example.com. Required to be binderized in Android 8.0 so file descriptors don't have to be shared between trusted and untrusted processes.
firstname.lastname@example.org. Replaces the interface provided by
rildwhich lives in its own process.
email@example.com. New in Android 8.0.
firstname.lastname@example.org. New in Android 8.0, replaces the legacy Wi-Fi HAL library that was loaded into
email@example.com. A HIDL interface over the existing
Android requires the following HALs to be in passthrough mode on all Android devices regardless of whether they are launch devices or upgrade devices:
firstname.lastname@example.org. Maps memory into the process it lives in.
email@example.com. Passes items in the same process (equivalent to
All HALs not listed above must be binderized for launch devices.
Same-Process HALs (SP-HALs) always open in the same process in which they are used. They include all HALs not expressed in HIDL as well as some that are not binderized. Membership in the SP-HAL set is controlled only by Google, with no exceptions.
SP-HALs include the following:
firstname.lastname@example.org(provided by the Android system, always passthrough)