From e48d39e54da1b6c594af74e5d0b6f3a991886608 Mon Sep 17 00:00:00 2001 From: Menna Awadallah Date: Mon, 17 Jul 2023 13:07:08 +0000 Subject: [PATCH] Enable Magnetometer sensor injection by AIDL flag Enable the flag to be used by cuttlefish. Test: Manual. Bug: 291566976 Change-Id: I2dffc862742b86453e1ffda7954e2b73e1e74c52 --- sensors/aidl/default/Sensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensors/aidl/default/Sensor.cpp b/sensors/aidl/default/Sensor.cpp index 3bdd8b6f1b..241dd47c94 100644 --- a/sensors/aidl/default/Sensor.cpp +++ b/sensors/aidl/default/Sensor.cpp @@ -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(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION); }; void MagnetometerSensor::readEventPayload(EventPayload& payload) {