mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-09 07:33:28 +00:00
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:
@@ -47,6 +47,7 @@ LOCAL_SHARED_LIBRARIES := \
|
|||||||
libutils \
|
libutils \
|
||||||
libhardware_legacy \
|
libhardware_legacy \
|
||||||
libhardware \
|
libhardware \
|
||||||
|
libbinder \
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES += \
|
LOCAL_SHARED_LIBRARIES += \
|
||||||
libhidlbase \
|
libhidlbase \
|
||||||
|
|||||||
@@ -4,9 +4,14 @@
|
|||||||
|
|
||||||
#include <hidl/LegacySupport.h>
|
#include <hidl/LegacySupport.h>
|
||||||
|
|
||||||
|
#include <binder/ProcessState.h>
|
||||||
|
|
||||||
using android::hardware::gnss::V1_0::IGnss;
|
using android::hardware::gnss::V1_0::IGnss;
|
||||||
using android::hardware::defaultPassthroughServiceImplementation;
|
using android::hardware::defaultPassthroughServiceImplementation;
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
// The GNSS HAL may communicate to other vendor components via
|
||||||
|
// /dev/vndbinder
|
||||||
|
android::ProcessState::initWithDriver("/dev/vndbinder");
|
||||||
return defaultPassthroughServiceImplementation<IGnss>();
|
return defaultPassthroughServiceImplementation<IGnss>();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user