Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb55dc13 authored by jiabin's avatar jiabin
Browse files

Allow to open USB HAL module.

Bug: 266216550
Test: TH
Change-Id: I928cefbf4e84af9bdefce86650608ed28aa68295
parent d5101e99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ status_t DevicesFactoryHalAidl::openDevice(const char *name, sp<DeviceHalInterfa
    // however currently we still get the list of module names from the config.
    // Since the example service does not have all modules, the SM will wait
    // for the missing ones forever.
    if (strcmp(name, "primary") == 0 || strcmp(name, "r_submix") == 0) {
    if (strcmp(name, "primary") == 0 || strcmp(name, "r_submix") == 0 || strcmp(name, "usb") == 0) {
        if (strcmp(name, "primary") == 0) name = "default";
        auto serviceName = std::string(IModule::descriptor) + "/" + name;
        service = IModule::fromBinder(