Route GNSS HAL libbinder traffic to /dev/vndbinder

Bug: 36565056
Test: no more gnss crash at boot

Change-Id: Ib3935beeb521dc655c5d7e1b6d7680a190b3fd4e
Signed-off-by: Iliyan Malchev <malchev@google.com>
This commit is contained in:
Iliyan Malchev
2017-04-14 00:17:50 -07:00
parent be31e7c571
commit 2dd67a43b6
2 changed files with 6 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ LOCAL_SHARED_LIBRARIES := \
libutils \
libhardware_legacy \
libhardware \
libbinder \
LOCAL_SHARED_LIBRARIES += \
libhidlbase \

View File

@@ -4,9 +4,14 @@
#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>();
}