From 697cb33c45a36982c4346b20aa360207359ad9ea Mon Sep 17 00:00:00 2001 From: Keun young Park Date: Wed, 20 Nov 2019 18:29:35 -0800 Subject: [PATCH] Add DISABLED_OPTIONAL_FEATURES property - This allows disabling specific optional features in car service from vehicle hal layer. Bug: 144504820 Test: run with car service Change-Id: I419ad86b75151aba129730bdc75c9bc1e47333cf --- automotive/vehicle/2.0/types.hal | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/automotive/vehicle/2.0/types.hal b/automotive/vehicle/2.0/types.hal index 279d5cd30a..24fcf76b2f 100644 --- a/automotive/vehicle/2.0/types.hal +++ b/automotive/vehicle/2.0/types.hal @@ -2381,6 +2381,26 @@ enum VehicleProperty : int32_t { | VehiclePropertyType:BOOLEAN | VehicleArea:GLOBAL), + /** + * Allow disabling optional featurs from vhal. + * + * This property reports optional features that should be disabled. + * All allowed optional features for the system is declared in Car service overlay, + * config_allowed_optional_car_features. + * This property allows disabling features defined in the overlay. Without this property, + * all the features declared in the overlay will be enabled. + * + * Value read should include all features disabled with ',' separation. + * ex) "com.android.car.user.CarUserNoticeService,storage_monitoring" + * @change_mode VehiclePropertyChangeMode:STATIC + * @access VehiclePropertyAccess:READ + */ + DISABLED_OPTIONAL_FEATURES = ( + 0x0F06 + | VehiclePropertyGroup:SYSTEM + | VehiclePropertyType:STRING + | VehicleArea:GLOBAL), + }; /**