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
This commit is contained in:
Badhri Jagan Sridharan
2017-03-28 14:24:00 -07:00
parent 7a95e0d0d1
commit dfc1cbd1d9

View 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();