diff options
Diffstat (limited to 'livedisplay/1.0/default/service.cpp')
| -rw-r--r-- | livedisplay/1.0/default/service.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/livedisplay/1.0/default/service.cpp b/livedisplay/1.0/default/service.cpp index b8f5cb5..026c26c 100644 --- a/livedisplay/1.0/default/service.cpp +++ b/livedisplay/1.0/default/service.cpp @@ -39,21 +39,14 @@ using ::vendor::lineage::livedisplay::V1_0::implementation::Color; int main() { status_t status; - android::sp<IColor> service = nullptr; - LOG(INFO) << "LiveDisplay HAL service is starting."; // The LiveDisplay HAL may communicate to other vendor components via /dev/vndbinder android::ProcessState::initWithDriver("/dev/vndbinder"); - service = Color::getInstance(); - if (service == nullptr) { - LOG(ERROR) << "Can not create an instance of LiveDisplay HAL Iface, exiting."; - goto shutdown; - } - configureRpcThreadpool(1, true /*callerWillJoin*/); + android::sp<IColor> service = new Color(); status = service->registerAsService(); if (status != OK) { LOG(ERROR) << "Could not register service for LiveDisplay HAL Iface (" << status << ")"; |
