From 2dd88e6c8a66adbf8644b87188259254a7715628 Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Thu, 25 Apr 2024 18:48:48 +0000 Subject: [PATCH] Explain how to add service_contexts for stable-c mapper Stable-c mapper instance should be declared in two ways: - vintf manifest - service_contexts The latter part was missing. Bug: 336010345 Change-Id: I7bd776bf7d943049ef319c90739dae10071409ab Test: documentation --- graphics/mapper/stable-c/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/graphics/mapper/stable-c/README.md b/graphics/mapper/stable-c/README.md index 0b9b499b0e..919119a1b5 100644 --- a/graphics/mapper/stable-c/README.md +++ b/graphics/mapper/stable-c/README.md @@ -22,6 +22,12 @@ as the `` in the VINTF manifest `` section. For example: ``` defines that the IMapper 5.0 library is provided by `/vendor/lib[64]/hw/mapper.minigbm.so`. +ServiceManager should be able to `find` the instance. The instance should be labelled in +`service_contexts` as follows: +``` +mapper/minigbm u:object_r:hal_graphics_mapper_service:s0 +``` + This library must export the following `extern "C"` symbols: ### `ANDROID_HAL_STABLEC_VERSION`