diff --git a/sensors/common/default/2.X/multihal/HalProxyCallback.cpp b/sensors/common/default/2.X/multihal/HalProxyCallback.cpp index 3c1b17c8f0..addefe8d09 100644 --- a/sensors/common/default/2.X/multihal/HalProxyCallback.cpp +++ b/sensors/common/default/2.X/multihal/HalProxyCallback.cpp @@ -68,6 +68,10 @@ std::vector HalProxyCallbackBase::processEvents(const std::vector eventsOut; for (V2_1::Event event : events) { event.sensorHandle = setSubHalIndex(event.sensorHandle, mSubHalIndex); + if (event.sensorType == V2_1::SensorType::DYNAMIC_SENSOR_META) { + event.u.dynamic.sensorHandle = + setSubHalIndex(event.u.dynamic.sensorHandle, mSubHalIndex); + } eventsOut.push_back(event); const V2_1::SensorInfo& sensor = mCallback->getSensorInfo(event.sensorHandle); if ((sensor.flags & V1_0::SensorFlagBits::WAKE_UP) != 0) {