From a68b2696e8dbc78553e18a89b663a745190202cb Mon Sep 17 00:00:00 2001 From: Garfield Tan Date: Mon, 17 Jul 2023 13:12:10 -0700 Subject: [PATCH] Let the lazy CAS HAL to override the regular one Some devices may choose to use the lazy version of CAS HAL than the regular one, but the default one is added to pretty much all devices in the commit 4f5534b0d381a0968e81ee20e81b791aebe5493d in the platform/build project. Adding the lazy version will duplicate the implementation of CAS HAL. This is what is done in the 1.2 HIDL implementation. Bug: 291344726 Test: Only the lazy implementation is installed to devices that require the lazy version. Change-Id: I88ee8d2fa4c27720817e65e5c41ffc74d6b2d61f --- cas/aidl/default/Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/cas/aidl/default/Android.bp b/cas/aidl/default/Android.bp index 3c16d577fb..6ce568192a 100644 --- a/cas/aidl/default/Android.bp +++ b/cas/aidl/default/Android.bp @@ -68,6 +68,7 @@ cc_binary { defaults: ["cas_service_example_defaults"], init_rc: ["cas-default-lazy.rc"], cflags: ["-DLAZY_SERVICE"], + overrides: ["android.hardware.cas-service.example"], } cc_fuzz {