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

Commit a42866b4 authored by Steven Moreland's avatar Steven Moreland
Browse files

Make atrace not depend on /dev/hwbinder.

Bug: 31262344
Test: compiles
Change-Id: I2b4fa6815723507dd04afda19e99e5a15053dc66
parent 68603971
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -517,6 +517,12 @@ static void pokeHalServices()
    using ::android::hardware::hidl_string;

    sp<IServiceManager> sm = ::android::hardware::defaultServiceManager();

    if (sm == nullptr) {
        fprintf(stderr, "failed to get IServiceManager to poke hal services\n");
        return;
    }

    auto listRet = sm->list([&](const auto &interfaces) {
        for (size_t i = 0; i < interfaces.size(); i++) {
            string fqInstanceName = interfaces[i];