Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56c0c84d authored by Steve Paik's avatar Steve Paik
Browse files

Enable vehicle HAL to be controlled via ADB

Add emulator functionality to DefaultVehicleHal:

- Create default list of properties based upon DefaultConfig.h
- Add socket that is reachable via ADB to set/get vehicle properties.

BUG: 29601815
Test: Tested with Python interface from host.
Change-Id: I6f8e4cba37d927565e10797875eb8f5a1840a94f
parent 46a1accf
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -40,6 +40,28 @@ LOCAL_SHARED_LIBRARIES := \

include $(BUILD_STATIC_LIBRARY)

###############################################################################
# Vehicle HAL Protobuf library
###############################################################################
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-proto-files-under, impl/proto)

LOCAL_PROTOC_OPTIMIZE_TYPE := nano

LOCAL_MODULE := $(module_prefix)-libproto-native
LOCAL_MODULE_CLASS := STATIC_LIBRARIES

LOCAL_MODULE_TAGS := optional

LOCAL_STRIP_MODULE := keep_symbols

generated_sources_dir := $(call local-generated-sources-dir)
LOCAL_EXPORT_C_INCLUDE_DIRS := \
    $(generated_sources_dir)/proto/$(LOCAL_PATH)/impl/proto

include $(BUILD_STATIC_LIBRARY)


###############################################################################
# Vehicle default VehicleHAL implementation
###############################################################################
@@ -55,9 +77,13 @@ LOCAL_SHARED_LIBRARIES := \
    libhidltransport \
    libhwbinder \
    liblog \
    libprotobuf-cpp-lite \
    libutils \
    $(module_prefix) \

LOCAL_STATIC_LIBRARIES := \
    $(module_prefix)-libproto-native

include $(BUILD_STATIC_LIBRARY)


@@ -114,7 +140,11 @@ LOCAL_SHARED_LIBRARIES := \
    libhidltransport \
    libhwbinder \
    liblog \
    libprotobuf-cpp-lite \
    libutils \
    $(module_prefix) \

LOCAL_STATIC_LIBRARIES := \
    $(module_prefix)-libproto-native

include $(BUILD_EXECUTABLE)
+1 −1
Original line number Diff line number Diff line
service vehicle-hal-2.0 /system/bin/hw/android.hardware.automotive.vehicle@2.0-service
    class hal
    user vehicle_network
    group system
    group system inet