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

Commit a7a0658e authored by Yifan Hong's avatar Yifan Hong Committed by android-build-merger
Browse files

Merge "Fix includes; use IBase instead of IBinder."

am: bd5dc9df

Change-Id: Ic75eab82059ff0d1bf483f11d55fb9a6a74dd539
parents aa51c8c5 bd5dc9df
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -514,11 +514,7 @@ static bool pokeBinderServices()
static void pokeHalServices()
{
    using ::android::hidl::manager::V1_0::IServiceManager;
    using ::android::hardware::IBinder;
    using ::android::hardware::hidl_string;
    using ::android::hardware::Parcel;

    Parcel data;

    sp<IServiceManager> sm = ::android::hardware::defaultServiceManager();
    auto listRet = sm->list([&](const auto &interfaces) {
@@ -530,9 +526,7 @@ static void pokeHalServices()
            hidl_string fqInterfaceName = fqInstanceName.substr(0, n);
            hidl_string instanceName = fqInstanceName.substr(n+1, std::string::npos);
            auto getRet = sm->get(fqInterfaceName, instanceName, [&](const auto &interface) {
                // TODO(b/32756130)
                // Once IServiceManager returns IBase, use interface->notifySyspropsChanged() here
                interface->transact(IBinder::SYSPROPS_TRANSACTION, data, nullptr, 0, nullptr);
                interface->notifySyspropsChanged();
            });
            if (!getRet.isOk()) {
                fprintf(stderr, "failed to get service %s: %s\n",