exynos9610: The IUsb interface uses "default" service name
authorBadhri Jagan Sridharan <Badhri@google.com>
Tue, 28 Mar 2017 21:24:00 +0000 (14:24 -0700)
committerJan Altensen <info@stricted.net>
Mon, 7 Dec 2020 07:23:11 +0000 (08:23 +0100)
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

hidl/usb/service.cpp

index b4db24144795aa1a84ad2570acfb3802fe3797ff..2a53c3d1ff8f9240390cd0dbda6adf5f964665a2 100644 (file)
@@ -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<IUsb> service = new Usb();
 
     configureRpcThreadpool(1, true /*callerWillJoin*/);
-    service->registerAsService(instance);
+    service->registerAsService();
 
     ALOGI("USB HAL Ready.");
     joinRpcThreadpool();