rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #define LOG_TAG "android.hardware.gnss@1.0-service" |
| 2 | |
| 3 | #include <android/hardware/gnss/1.0/IGnss.h> |
| 4 | |
| 5 | #include <hidl/LegacySupport.h> |
| 6 | |
| 7 | #include <binder/ProcessState.h> |
| 8 | |
| 9 | using android::hardware::gnss::V1_0::IGnss; |
| 10 | using android::hardware::defaultPassthroughServiceImplementation; |
| 11 | |
| 12 | int main() { |
| 13 | // The GNSS HAL may communicate to other vendor components via |
| 14 | // /dev/vndbinder |
| 15 | android::ProcessState::initWithDriver("/dev/vndbinder"); |
| 16 | return defaultPassthroughServiceImplementation<IGnss>(); |
| 17 | } |