2016-11-02 17:57:55 +01:00
|
|
|
#define LOG_TAG "android.hardware.gnss@1.0-service"
|
|
|
|
|
|
|
|
#include <android/hardware/gnss/1.0/IGnss.h>
|
|
|
|
|
|
|
|
#include <hidl/LegacySupport.h>
|
|
|
|
|
2017-04-14 09:17:50 +02:00
|
|
|
#include <binder/ProcessState.h>
|
|
|
|
|
2016-11-02 17:57:55 +01:00
|
|
|
using android::hardware::gnss::V1_0::IGnss;
|
|
|
|
using android::hardware::defaultPassthroughServiceImplementation;
|
|
|
|
|
|
|
|
int main() {
|
2017-04-14 09:17:50 +02:00
|
|
|
// The GNSS HAL may communicate to other vendor components via
|
|
|
|
// /dev/vndbinder
|
|
|
|
android::ProcessState::initWithDriver("/dev/vndbinder");
|
2017-01-24 00:14:08 +01:00
|
|
|
return defaultPassthroughServiceImplementation<IGnss>();
|
2016-11-02 17:57:55 +01:00
|
|
|
}
|