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

Commit 90e74b4c authored by Rocky Fang's avatar Rocky Fang
Browse files

Sensor Server: Check return value of transact

Test: Presubmit
Flag: EXEMPT bugfix
Bug: 408215565
Change-Id: I3ca41bd1cf83e247a266fc019e49eae31a9f76c0
parent da7f2fb8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -153,7 +153,11 @@ public:
        data.writeInt32(mode);
        data.writeString16(opPackageName);
        data.writeString16(attributionTag);
        remote()->transact(CREATE_SENSOR_EVENT_CONNECTION, data, &reply);

        status_t status = remote()->transact(CREATE_SENSOR_EVENT_CONNECTION, data, &reply);
        if (status != OK) {
            ALOGE("Failed to create sensor event connection: %s", statusToString(status).c_str());
        }
        return interface_cast<ISensorEventConnection>(reply.readStrongBinder());
    }