summaryrefslogtreecommitdiffstats
path: root/gnss/1.0-legacy/service.cpp
blob: 9771fbbe227182b97f47ce6b54b4fe11a78f24c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define LOG_TAG "android.hardware.gnss@1.0-service.legacy"

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

#include <hidl/LegacySupport.h>

#include <binder/ProcessState.h>

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

int main() {
    // The GNSS HAL may communicate to other vendor components via
    // /dev/vndbinder
    android::ProcessState::initWithDriver("/dev/vndbinder");
    return defaultPassthroughServiceImplementation<IGnss>();
}