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

Commit 79bd5cb8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add GNSS HAL service"

parents 02ed4647 b5fbbfe2
Loading
Loading
Loading
Loading
+24 −0
Original line number Original line Diff line number Diff line
@@ -27,3 +27,27 @@ LOCAL_SHARED_LIBRARIES := \
    libhardware
    libhardware


include $(BUILD_SHARED_LIBRARY)
include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE := android.hardware.gnss@1.0-service
LOCAL_INIT_RC := android.hardware.gnss@1.0-service.rc
LOCAL_SRC_FILES := \
    service.cpp \

LOCAL_SHARED_LIBRARIES := \
    liblog \
    libcutils \
    libdl \
    libbase \
    libutils \
    libhardware_legacy \
    libhardware \

LOCAL_SHARED_LIBRARIES += \
    libhwbinder \
    libhidlbase \
    libhidltransport \
    android.hardware.gnss@1.0 \

include $(BUILD_EXECUTABLE)
+4 −0
Original line number Original line Diff line number Diff line
service gnss_service /system/bin/hw/android.hardware.gnss@1.0-service
    class main
    user system
    group system
+12 −0
Original line number Original line Diff line number Diff line
#define LOG_TAG "android.hardware.gnss@1.0-service"

#include <android/hardware/gnss/1.0/IGnss.h>

#include <hidl/LegacySupport.h>

using android::hardware::gnss::V1_0::IGnss;
using android::hardware::defaultPassthroughServiceImplementation;

int main() {
    return defaultPassthroughServiceImplementation<IGnss>("gnss");
}