Skip to content

Use libui for gralloc on devices without legacy gralloc HAL

On some Android 11 devices that shipped with gralloc 4 (Volla 22 and other devices with MediaTek SoCs) there is no gralloc HAL library anymore that can be loaded through libhybris.

This MR tries to implement similar thing to what libhwc2_compat_layer does via libui as that has abstraction over multiple gralloc versions and communicates with gralloc allocator service via HIDL, while still loading the mapper library inside the process.

Upstream PR: https://github.com/libhybris/libhybris/pull/509, however may need this earlier in UT libhybris fork as Volla 22 is expected to be shipped next month.

Merge request reports