Loading gnss/1.0/default/Android.mk +24 −0 Original line number Original line Diff line number Diff line Loading @@ -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) gnss/1.0/default/android.hardware.gnss@1.0-service.rc 0 → 100644 +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 gnss/1.0/default/service.cpp 0 → 100644 +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"); } Loading
gnss/1.0/default/Android.mk +24 −0 Original line number Original line Diff line number Diff line Loading @@ -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)
gnss/1.0/default/android.hardware.gnss@1.0-service.rc 0 → 100644 +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
gnss/1.0/default/service.cpp 0 → 100644 +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"); }