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

Commit e1e9220d authored by Yifan Hong's avatar Yifan Hong Committed by Iliyan Malchev
Browse files

Fix includes; use IBase instead of IBinder.

Test: mma
Change-Id: I2604772ff952ed451cc87be330ed131452db8eff
parent 49670c84
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -525,11 +525,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) {
@@ -541,9 +537,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",