Merge "Enable Magnetometer sensor injection by AIDL flag" into main am: 9e9c6feffa

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2657662

Change-Id: I0e115577bbaa57a3cce8edb7a273af287306923f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-07-26 18:06:47 +00:00 committed by Automerger Merge Worker
commit 38ed98a535

View file

@ -268,7 +268,7 @@ MagnetometerSensor::MagnetometerSensor(int32_t sensorHandle, ISensorsEventCallba
mSensorInfo.fifoReservedEventCount = 0;
mSensorInfo.fifoMaxEventCount = 0;
mSensorInfo.requiredPermission = "";
mSensorInfo.flags = 0;
mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION);
};
void MagnetometerSensor::readEventPayload(EventPayload& payload) {