From: Badhri Jagan Sridharan Date: Tue, 28 Mar 2017 21:24:00 +0000 (-0700) Subject: exynos9610: The IUsb interface uses "default" service name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b165edfa13dc92d42841841ea88327a4d1578a0;p=GitHub%2Fmoto-9609%2Fandroid_device_motorola_exynos9610-common.git exynos9610: The IUsb interface uses "default" service name By default, it is expected that the service does not rename itself unless there is more than one service exposed by the interface. This CL changes the usb hal service name back to "default" instead of "usb_hal" Bug: 36097487 Test: Manually tested role swap and UI behavior Change-Id: I4a0aa4423c80cd893c578bc58b9276956daba732 --- diff --git a/hidl/usb/service.cpp b/hidl/usb/service.cpp index b4db241..2a53c3d 100644 --- a/hidl/usb/service.cpp +++ b/hidl/usb/service.cpp @@ -28,12 +28,10 @@ using android::hardware::usb::V1_0::IUsb; using android::hardware::usb::V1_0::implementation::Usb; int main() { - const char instance[] = "usb_hal"; - android::sp service = new Usb(); configureRpcThreadpool(1, true /*callerWillJoin*/); - service->registerAsService(instance); + service->registerAsService(); ALOGI("USB HAL Ready."); joinRpcThreadpool();